From c71a7380d26850ec36883d6aa301e5fb3cedc31b Mon Sep 17 00:00:00 2001 From: Ali Yousefi Date: Tue, 3 Oct 2023 14:25:01 +0330 Subject: [PATCH] update client --- .../PaymentsGeneratedServices/OpenAPI.cs | 10 +++++----- .../PaymentsGeneratedServices/OpenAPI.nswag.json | 5 ++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/CSharp/EasyMicroservices.PaymentsMicroservice.Clients/Connected Services/PaymentsGeneratedServices/OpenAPI.cs b/src/CSharp/EasyMicroservices.PaymentsMicroservice.Clients/Connected Services/PaymentsGeneratedServices/OpenAPI.cs index c9c4f92..44fb0d8 100644 --- a/src/CSharp/EasyMicroservices.PaymentsMicroservice.Clients/Connected Services/PaymentsGeneratedServices/OpenAPI.cs +++ b/src/CSharp/EasyMicroservices.PaymentsMicroservice.Clients/Connected Services/PaymentsGeneratedServices/OpenAPI.cs @@ -1281,21 +1281,21 @@ public virtual async System.Threading.Tasks.TaskSuccess /// A server side error occurred. - public virtual System.Threading.Tasks.Task OpenPortalAsync(long? id) + public virtual System.Threading.Tasks.Task OpenPortalAsync(string portalKey) { - return OpenPortalAsync(id, System.Threading.CancellationToken.None); + return OpenPortalAsync(portalKey, System.Threading.CancellationToken.None); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task OpenPortalAsync(long? id, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task OpenPortalAsync(string portalKey, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/OrderPortal/OpenPortal?"); - if (id != null) + if (portalKey != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("id") + "=").Append(System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("portalKey") + "=").Append(System.Uri.EscapeDataString(ConvertToString(portalKey, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; diff --git a/src/CSharp/EasyMicroservices.PaymentsMicroservice.Clients/Connected Services/PaymentsGeneratedServices/OpenAPI.nswag.json b/src/CSharp/EasyMicroservices.PaymentsMicroservice.Clients/Connected Services/PaymentsGeneratedServices/OpenAPI.nswag.json index 45689dd..a9539b4 100644 --- a/src/CSharp/EasyMicroservices.PaymentsMicroservice.Clients/Connected Services/PaymentsGeneratedServices/OpenAPI.nswag.json +++ b/src/CSharp/EasyMicroservices.PaymentsMicroservice.Clients/Connected Services/PaymentsGeneratedServices/OpenAPI.nswag.json @@ -680,11 +680,10 @@ "operationId": "OpenPortal", "parameters": [ { - "name": "id", + "name": "portalKey", "in": "query", "schema": { - "type": "integer", - "format": "int64" + "type": "string" } } ],