From d8f8f8b4715adc295aeb1e286d5a02bf226229b6 Mon Sep 17 00:00:00 2001 From: Rytis Reventas Date: Tue, 13 Dec 2022 15:26:58 +0200 Subject: [PATCH] Release 5.0.0 --- .github/workflows/publishing.yaml | 2 +- README.md | 13 +- src/Wallee.Test/Wallee.Test.csproj | 5 +- src/Wallee/Client/ApiClient.cs | 33 +- src/Wallee/Client/Configuration.cs | 14 +- src/Wallee/Client/ExceptionFactory.cs | 2 +- src/Wallee/Model/Account.cs | 4 +- src/Wallee/Model/Address.cs | 2 +- src/Wallee/Model/AnalyticsQueryExecution.cs | 2 +- src/Wallee/Model/BankAccount.cs | 2 +- src/Wallee/Model/BankTransaction.cs | 4 +- src/Wallee/Model/CardCryptogram.cs | 2 +- src/Wallee/Model/CardholderAuthentication.cs | 4 +- src/Wallee/Model/Charge.cs | 4 +- src/Wallee/Model/ChargeAttempt.cs | 10 +- src/Wallee/Model/ChargeFlow.cs | 2 +- src/Wallee/Model/ChargeFlowLevel.cs | 2 +- .../Model/ChargeFlowLevelConfiguration.cs | 2 +- src/Wallee/Model/ClientError.cs | 2 +- src/Wallee/Model/Condition.cs | 2 +- src/Wallee/Model/ConnectorInvocation.cs | 2 +- src/Wallee/Model/CurrencyBankAccount.cs | 2 +- src/Wallee/Model/CustomerAddress.cs | 2 +- src/Wallee/Model/CustomerPostalAddress.cs | 2 +- src/Wallee/Model/DebtCollectionCase.cs | 4 +- src/Wallee/Model/DebtCollectorCondition.cs | 2 +- .../Model/DebtCollectorConfiguration.cs | 2 +- src/Wallee/Model/DeliveryIndication.cs | 2 +- src/Wallee/Model/DocumentTemplate.cs | 2 +- src/Wallee/Model/FailureReason.cs | 2 +- src/Wallee/Model/InstallmentPayment.cs | 2 +- src/Wallee/Model/InstallmentPaymentSlice.cs | 2 +- .../Model/InstallmentPlanConfiguration.cs | 2 +- .../InstallmentPlanSliceConfiguration.cs | 2 +- .../Model/InvoiceReconciliationRecord.cs | 6 +- src/Wallee/Model/InvoiceReimbursement.cs | 2 +- src/Wallee/Model/LabelDescriptor.cs | 2 +- src/Wallee/Model/LineItem.cs | 2 +- src/Wallee/Model/ManualTask.cs | 2 +- src/Wallee/Model/ManualTaskAction.cs | 2 +- src/Wallee/Model/PaymentAppConnector.cs | 2 +- src/Wallee/Model/PaymentAppProcessor.cs | 4 +- src/Wallee/Model/PaymentConnector.cs | 4 +- .../Model/PaymentConnectorConfiguration.cs | 2 +- src/Wallee/Model/PaymentContract.cs | 2 +- .../Model/PaymentInitiationAdviceFile.cs | 2 +- src/Wallee/Model/PaymentLink.cs | 8 +- .../Model/PaymentMethodConfiguration.cs | 6 +- .../Model/PaymentProcessorConfiguration.cs | 2 +- src/Wallee/Model/PaymentTerminal.cs | 2 +- .../Model/PaymentTerminalConfiguration.cs | 2 +- .../PaymentTerminalConfigurationVersion.cs | 2 +- src/Wallee/Model/PaymentTerminalLocation.cs | 2 +- .../Model/PaymentTerminalLocationVersion.cs | 2 +- src/Wallee/Model/ProductMeteredFee.cs | 4 +- src/Wallee/Model/ProductPeriodFee.cs | 2 +- src/Wallee/Model/ProductSetupFee.cs | 2 +- src/Wallee/Model/Refund.cs | 6 +- src/Wallee/Model/ResourcePath.cs | 2 +- src/Wallee/Model/Role.cs | 2 +- src/Wallee/Model/Scope.cs | 2 +- src/Wallee/Model/ShopifyIntegration.cs | 6 +- src/Wallee/Model/ShopifyRecurringOrder.cs | 2 +- src/Wallee/Model/ShopifySubscriber.cs | 2 +- src/Wallee/Model/ShopifySubscription.cs | 2 +- .../Model/ShopifySubscriptionProduct.cs | 8 +- .../Model/ShopifySubscriptionSuspension.cs | 6 +- .../Model/ShopifySubscriptionVersion.cs | 6 +- .../Model/ShopifySubscriptionVersionItem.cs | 2 +- src/Wallee/Model/ShopifyTransaction.cs | 2 +- src/Wallee/Model/Space.cs | 2 +- src/Wallee/Model/SpaceReference.cs | 2 +- src/Wallee/Model/SpaceView.cs | 2 +- src/Wallee/Model/Subscriber.cs | 2 +- src/Wallee/Model/Subscription.cs | 2 +- src/Wallee/Model/SubscriptionAffiliate.cs | 2 +- src/Wallee/Model/SubscriptionCharge.cs | 6 +- src/Wallee/Model/SubscriptionLedgerEntry.cs | 2 +- src/Wallee/Model/SubscriptionMetric.cs | 2 +- src/Wallee/Model/SubscriptionPeriodBill.cs | 2 +- src/Wallee/Model/SubscriptionProduct.cs | 2 +- .../SubscriptionProductComponentReference.cs | 2 +- .../Model/SubscriptionProductVersion.cs | 4 +- src/Wallee/Model/SubscriptionSuspension.cs | 6 +- src/Wallee/Model/SubscriptionVersion.cs | 2 +- src/Wallee/Model/TaxClass.cs | 2 +- src/Wallee/Model/Token.cs | 2 +- src/Wallee/Model/TokenVersion.cs | 4 +- src/Wallee/Model/TokenizedCardData.cs | 2 +- src/Wallee/Model/Transaction.cs | 16 +- src/Wallee/Model/TransactionCompletion.cs | 4 +- src/Wallee/Model/TransactionGroup.cs | 2 +- src/Wallee/Model/TransactionInvoice.cs | 4 +- .../Model/TransactionLineItemVersion.cs | 2 +- src/Wallee/Model/TransactionVoid.cs | 4 +- src/Wallee/Model/User.cs | 4 +- src/Wallee/Model/WebhookIdentity.cs | 2 +- src/Wallee/Model/WebhookListener.cs | 2 +- src/Wallee/Model/WebhookUrl.cs | 2 +- src/Wallee/Service/AccountService.cs | 120 +++--- src/Wallee/Service/AnalyticsQueryService.cs | 120 +++--- src/Wallee/Service/ApplicationUserService.cs | 120 +++--- src/Wallee/Service/BankAccountService.cs | 62 ++- src/Wallee/Service/BankTransactionService.cs | 62 ++- src/Wallee/Service/CardProcessingService.cs | 41 +- src/Wallee/Service/ChargeAttemptService.cs | 62 ++- .../Service/ChargeBankTransactionService.cs | 62 ++- .../ChargeFlowLevelPaymentLinkService.cs | 62 ++- src/Wallee/Service/ChargeFlowLevelService.cs | 82 ++-- src/Wallee/Service/ChargeFlowService.cs | 141 +++---- src/Wallee/Service/ConditionTypeService.cs | 42 +-- src/Wallee/Service/CountryService.cs | 22 +- src/Wallee/Service/CountryStateService.cs | 42 +-- .../Service/CurrencyBankAccountService.cs | 62 ++- src/Wallee/Service/CurrencyService.cs | 22 +- src/Wallee/Service/CustomerAddressService.cs | 138 +++---- src/Wallee/Service/CustomerCommentService.cs | 156 +++----- src/Wallee/Service/CustomerService.cs | 120 +++--- .../Service/DebtCollectionCaseService.cs | 234 +++++------- .../DebtCollectorConfigurationService.cs | 62 ++- src/Wallee/Service/DebtCollectorService.cs | 42 +-- .../Service/DeliveryIndicationService.cs | 102 ++--- src/Wallee/Service/DocumentTemplateService.cs | 62 ++- .../Service/DocumentTemplateTypeService.cs | 42 +-- .../ExternalTransferBankTransactionService.cs | 62 ++- src/Wallee/Service/HumanUserService.cs | 141 +++---- .../Service/InstallmentPaymentService.cs | 82 ++-- .../Service/InstallmentPaymentSliceService.cs | 62 ++- .../InstallmentPlanCalculationService.cs | 22 +- .../InstallmentPlanConfigurationService.cs | 62 ++- ...nstallmentPlanSliceConfigurationService.cs | 62 ++- .../InternalTransferBankTransactionService.cs | 62 ++- ...eReconciliationRecordInvoiceLinkService.cs | 98 ++--- .../InvoiceReconciliationRecordService.cs | 116 ++---- .../Service/InvoiceReimbursementService.cs | 96 ++--- .../Service/LabelDescriptionGroupService.cs | 42 +-- src/Wallee/Service/LabelDescriptionService.cs | 42 +-- src/Wallee/Service/LanguageService.cs | 22 +- .../Service/LegalOrganizationFormService.cs | 62 ++- src/Wallee/Service/ManualTaskService.cs | 62 ++- src/Wallee/Service/MerticUsageService.cs | 22 +- .../PaymentConnectorConfigurationService.cs | 62 ++- src/Wallee/Service/PaymentConnectorService.cs | 42 +-- src/Wallee/Service/PaymentLinkService.cs | 120 +++--- .../Service/PaymentMethodBrandService.cs | 42 +-- .../PaymentMethodConfigurationService.cs | 62 ++- src/Wallee/Service/PaymentMethodService.cs | 42 +-- .../PaymentProcessorConfigurationService.cs | 62 ++- src/Wallee/Service/PaymentProcessorService.cs | 42 +-- src/Wallee/Service/PaymentTerminalService.cs | 130 +++---- .../Service/PaymentTerminalTillService.cs | 46 +-- ...aymentTerminalTransactionSummaryService.cs | 82 ++-- src/Wallee/Service/PaymentWebAppService.cs | 169 +++------ src/Wallee/Service/PermissionService.cs | 42 +-- .../Service/RefundBankTransactionService.cs | 62 ++- src/Wallee/Service/RefundCommentService.cs | 136 +++---- .../RefundRecoveryBankTransactionService.cs | 62 ++- src/Wallee/Service/RefundService.cs | 162 +++----- .../Service/ShopifyRecurringOrderService.cs | 80 ++-- .../Service/ShopifySubscriberService.cs | 82 ++-- .../ShopifySubscriptionProductService.cs | 102 ++--- .../Service/ShopifySubscriptionService.cs | 140 +++---- .../ShopifySubscriptionSuspensionService.cs | 100 ++--- .../ShopifySubscriptionVersionService.cs | 62 ++- .../Service/ShopifyTransactionService.cs | 62 ++- src/Wallee/Service/SpaceService.cs | 120 +++--- src/Wallee/Service/StaticValueService.cs | 42 +-- src/Wallee/Service/SubscriberService.cs | 120 +++--- .../Service/SubscriptionAffiliateService.cs | 120 +++--- .../Service/SubscriptionChargeService.cs | 102 ++--- .../Service/SubscriptionLedgerEntryService.cs | 82 ++-- .../Service/SubscriptionMetricService.cs | 120 +++--- .../Service/SubscriptionMetricUsageService.cs | 82 ++-- .../Service/SubscriptionPeriodBillService.cs | 62 ++- ...ubscriptionProductComponentGroupService.cs | 120 +++--- .../SubscriptionProductComponentService.cs | 120 +++--- .../SubscriptionProductFeeTierService.cs | 120 +++--- .../SubscriptionProductMeteredFeeService.cs | 120 +++--- .../SubscriptionProductPeriodFeeService.cs | 120 +++--- .../SubscriptionProductRetirementService.cs | 82 ++-- .../Service/SubscriptionProductService.cs | 102 ++--- .../SubscriptionProductSetupFeeService.cs | 120 +++--- ...criptionProductVersionRetirementService.cs | 82 ++-- .../SubscriptionProductVersionService.cs | 122 +++--- src/Wallee/Service/SubscriptionService.cs | 220 ++++------- .../Service/SubscriptionSuspensionService.cs | 102 ++--- .../Service/SubscriptionVersionService.cs | 62 ++- src/Wallee/Service/TokenService.cs | 196 ++++------ src/Wallee/Service/TokenVersionService.cs | 82 ++-- .../Service/TransactionCommentService.cs | 136 +++---- .../Service/TransactionCompletionService.cs | 142 +++---- .../Service/TransactionIframeService.cs | 23 +- .../TransactionInvoiceCommentService.cs | 136 +++---- .../Service/TransactionInvoiceService.cs | 182 ++++----- .../Service/TransactionLightboxService.cs | 23 +- .../TransactionLineItemVersionService.cs | 82 ++-- .../Service/TransactionMobileSdkService.cs | 23 +- .../Service/TransactionPaymentPageService.cs | 23 +- src/Wallee/Service/TransactionService.cs | 356 +++++++----------- .../Service/TransactionTerminalService.cs | 41 +- src/Wallee/Service/TransactionVoidService.cs | 102 ++--- src/Wallee/Service/UserAccountRoleService.cs | 60 ++- src/Wallee/Service/UserSpaceRoleService.cs | 60 ++- src/Wallee/Service/WebAppService.cs | 59 ++- src/Wallee/Service/WebhookListenerService.cs | 120 +++--- src/Wallee/Service/WebhookUrlService.cs | 120 +++--- src/Wallee/Wallee.csproj | 11 +- 207 files changed, 3536 insertions(+), 6324 deletions(-) diff --git a/.github/workflows/publishing.yaml b/.github/workflows/publishing.yaml index 1a0f1f8..661aa00 100644 --- a/.github/workflows/publishing.yaml +++ b/.github/workflows/publishing.yaml @@ -24,7 +24,7 @@ jobs: nuget restore Wallee.sln nuget install NUnit.Console -Version 3.11.1 -OutputDirectory testrunner msbuild /t:restore Wallee.sln && msbuild Wallee.sln /t:build /p:Configuration=Release - mono testrunner/NUnit.ConsoleRunner.3.11.1/tools/nunit3-console.exe ./src/Wallee.Test/bin/Release/net452/Wallee.Test.dll --inprocess + mono testrunner/NUnit.ConsoleRunner.3.11.1/tools/nunit3-console.exe ./src/Wallee.Test/bin/Release/net5.0/Wallee.Test.dll --inprocess publish: needs: build diff --git a/README.md b/README.md index b7779b9..9984fcb 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,12 @@ The wallee C# library wraps around the wallee API. This library facilitates your ## Frameworks supported -- .NET 4.5 or later +- .NET 4.6.1 or later - Windows Phone 7.1 (Mango) ## Dependencies -- [RestSharp](https://www.nuget.org/packages/RestSharp) - [106.2.1, 107) +- [RestSharp](https://www.nuget.org/packages/RestSharp) - 108.0.1 - [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.1 - [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.6.0 @@ -26,19 +26,18 @@ Install-Package Newtonsoft.Json Install-Package JsonSubTypes ``` -NOTE: RestSharp versions greater than [106.2.1, 107) have a bug which causes file uploads to fail. See [RestSharp#742](https://github.com/restsharp/RestSharp/issues/742) ## Installation ``` # Package Manager -Install-Package Wallee -Version 4.3.11 +Install-Package Wallee -Version 5.0.0 # .NET CLI -dotnet add package Wallee --version 4.3.11 +dotnet add package Wallee --version 5.0.0 # Paket CLI -paket add Wallee --version 4.3.11 +paket add Wallee --version 5.0.0 # PackageReference - + ``` Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces: diff --git a/src/Wallee.Test/Wallee.Test.csproj b/src/Wallee.Test/Wallee.Test.csproj index 81eefe9..c9ab140 100644 --- a/src/Wallee.Test/Wallee.Test.csproj +++ b/src/Wallee.Test/Wallee.Test.csproj @@ -1,6 +1,6 @@ - netstandard2.0;net452 + netstandard2.0;net5.0 Wallee.Test @@ -19,7 +19,7 @@ - + @@ -27,6 +27,7 @@ + diff --git a/src/Wallee/Client/ApiClient.cs b/src/Wallee/Client/ApiClient.cs index 0b4e05f..716b0fe 100644 --- a/src/Wallee/Client/ApiClient.cs +++ b/src/Wallee/Client/ApiClient.cs @@ -27,14 +27,14 @@ public partial class ApiClient /// Allows for extending request processing for generated code. /// /// The RestSharp request object - partial void InterceptRequest(IRestRequest request); + partial void InterceptRequest(RestRequest request); /// /// Allows for extending response processing for generated code. /// /// The RestSharp request object /// The RestSharp response object - partial void InterceptResponse(IRestRequest request, IRestResponse response); + partial void InterceptResponse(RestRequest request, RestResponse response); /// /// Initializes a new instance of the class @@ -123,12 +123,12 @@ private RestRequest PrepareRequest( // add file parameter, if any foreach(var param in fileParams) { - request.AddFile(param.Value.Name, param.Value.Writer, param.Value.FileName, param.Value.ContentLength, param.Value.ContentType); + request.AddFile(param.Value.Name, param.Value.FileName, param.Value.ContentType); } if (postBody != null) // http body (model or byte[]) parameter { - request.AddParameter(contentType, postBody, ParameterType.RequestBody); + request.AddBody(postBody, contentType); } return request; @@ -155,7 +155,7 @@ public Object CallApi( { Dictionary defaultHeaderParams = new Dictionary() { - {"x-meta-sdk-version", "4.3.11"}, + {"x-meta-sdk-version", "5.0.0"}, {"x-meta-sdk-language", "csharp"}, {"x-meta-sdk-provider", "wallee"}, {"x-meta-sdk-language-version", Environment.Version.ToString()} @@ -166,7 +166,7 @@ public Object CallApi( pathParams, contentType); // set user agent - RestClient.UserAgent = Configuration.UserAgent; + RestClient.Options.UserAgent = Configuration.UserAgent; InterceptRequest(request); var response = RestClient.Execute(request); @@ -241,9 +241,9 @@ public string ParameterToString(object obj) /// The HTTP response. /// Object type. /// Object representation of the JSON string. - public object Deserialize(IRestResponse response, Type type) + public object Deserialize(RestResponse response, Type type) { - IList headers = response.Headers; + IReadOnlyCollection headers = response.Headers; if (type == typeof(byte[])) // return byte array { return response.RawBytes; @@ -342,9 +342,16 @@ public String SelectHeaderContentType(String[] contentTypes) foreach (var contentType in contentTypes) { if (IsJsonMime(contentType.ToLower())) - return contentType; + { + String jsonContentType = contentType; + int index = jsonContentType.IndexOf(";"); + if (index >= 0) + { + jsonContentType = jsonContentType.Substring(0, index); + } + return jsonContentType; + } } - return contentTypes[0]; // use the first content type specified in 'consumes' } @@ -503,11 +510,11 @@ private static bool IsCollection(object value) public IEnumerable> AuthenticationHeaders(Method method, string path, List> queryParams) { var headers = new List>(); - var pathWithQueryString = RestClient.BaseUrl.AbsolutePath + path + ToQueryString(queryParams); + var pathWithQueryString = RestClient.Options.BaseUrl.AbsolutePath + path + ToQueryString(queryParams); var version = "1"; var userID = Configuration.ApplicationUserID; var timestamp = (long)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; - var signature = version + "|" + userID + "|" + timestamp + "|" + method + "|" + pathWithQueryString; + var signature = version + "|" + userID + "|" + timestamp + "|" + method.ToString().ToUpper() + "|" + pathWithQueryString; headers.Add(new KeyValuePair("x-mac-version", version)); headers.Add(new KeyValuePair("x-mac-userid", userID)); headers.Add(new KeyValuePair("x-mac-timestamp", timestamp.ToString())); @@ -550,7 +557,7 @@ private String ToQueryString(List> queryParams) /// https://docs.microsoft.com/en-us/dotnet/api/system.net.httpwebrequest.timeout?view=netcore-3.1 /// public void ResetTimeout(){ - RestClient.Timeout = 100 * 1000; + RestClient.Options.MaxTimeout = 100 * 1000; } } diff --git a/src/Wallee/Client/Configuration.cs b/src/Wallee/Client/Configuration.cs index 3b8180b..bc24dc1 100644 --- a/src/Wallee/Client/Configuration.cs +++ b/src/Wallee/Client/Configuration.cs @@ -19,7 +19,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "4.3.11"; + public const string Version = "5.0.0"; /// /// Identifier for ISO 8601 DateTime Format @@ -90,7 +90,7 @@ public Configuration(string applicationUserID, string authenticationKey) } _authenticationKey = authenticationKey; _applicationUserID = applicationUserID; - UserAgent = "Wallee/4.3.11/csharp"; + UserAgent = "Wallee/5.0.0/csharp"; BasePath = "https://app-wallee.com:443/api"; DefaultHeader = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); @@ -128,7 +128,7 @@ public virtual string BasePath { _basePath = value; // pass-through to ApiClient if it's set. if(_apiClient != null) { - _apiClient.RestClient.BaseUrl = new Uri(_basePath); + _apiClient.RestClient.Options.BaseUrl = new Uri(_basePath); } } } @@ -166,8 +166,8 @@ public string AuthenticationKey public virtual int Timeout { - get { return ApiClient.RestClient.Timeout; } - set { ApiClient.RestClient.Timeout = value; } + get { return ApiClient.RestClient.Options.MaxTimeout; } + set { ApiClient.RestClient.Options.MaxTimeout = value; } } /// @@ -338,8 +338,8 @@ public static String ToDebugReport() String report = "C# SDK (Wallee) Debug Report:\n"; report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; - report += " Version of the API: 4.3.11\n"; - report += " SDK Package Version: 4.3.11\n"; + report += " Version of the API: 5.0.0\n"; + report += " SDK Package Version: 5.0.0\n"; return report; } diff --git a/src/Wallee/Client/ExceptionFactory.cs b/src/Wallee/Client/ExceptionFactory.cs index 7eeb775..dca2499 100644 --- a/src/Wallee/Client/ExceptionFactory.cs +++ b/src/Wallee/Client/ExceptionFactory.cs @@ -28,5 +28,5 @@ namespace Wallee.Client /// Method name /// Response /// Exceptions - public delegate Exception ExceptionFactory(string methodName, IRestResponse response); + public delegate Exception ExceptionFactory(string methodName, RestResponse response); } diff --git a/src/Wallee/Model/Account.cs b/src/Wallee/Model/Account.cs index b129183..80a8e28 100644 --- a/src/Wallee/Model/Account.cs +++ b/src/Wallee/Model/Account.cs @@ -24,13 +24,13 @@ public partial class Account : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public AccountState? State { get; set; } + public AccountState? State { get; private set; } /// /// The account type defines which role and capabilities it has. /// /// The account type defines which role and capabilities it has. [DataMember(Name="type", EmitDefaultValue=false)] - public AccountType? Type { get; set; } + public AccountType? Type { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/Address.cs b/src/Wallee/Model/Address.cs index 334dc9a..e9f2dc8 100644 --- a/src/Wallee/Model/Address.cs +++ b/src/Wallee/Model/Address.cs @@ -24,7 +24,7 @@ public partial class Address : IEquatable
/// Gets or Sets Gender ///
[DataMember(Name="gender", EmitDefaultValue=false)] - public Gender? Gender { get; set; } + public Gender? Gender { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/AnalyticsQueryExecution.cs b/src/Wallee/Model/AnalyticsQueryExecution.cs index 54f5c11..1cfc119 100644 --- a/src/Wallee/Model/AnalyticsQueryExecution.cs +++ b/src/Wallee/Model/AnalyticsQueryExecution.cs @@ -25,7 +25,7 @@ public partial class AnalyticsQueryExecution : IEquatable /// The current state of the query execution. [DataMember(Name="state", EmitDefaultValue=false)] - public AnalyticsQueryExecutionState? State { get; set; } + public AnalyticsQueryExecutionState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/BankAccount.cs b/src/Wallee/Model/BankAccount.cs index 31a9c6d..e4cb8c3 100644 --- a/src/Wallee/Model/BankAccount.cs +++ b/src/Wallee/Model/BankAccount.cs @@ -24,7 +24,7 @@ public partial class BankAccount : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public BankAccountState? State { get; set; } + public BankAccountState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/BankTransaction.cs b/src/Wallee/Model/BankTransaction.cs index a3f4e4f..49792d9 100644 --- a/src/Wallee/Model/BankTransaction.cs +++ b/src/Wallee/Model/BankTransaction.cs @@ -24,12 +24,12 @@ public partial class BankTransaction : IEquatable /// Gets or Sets FlowDirection /// [DataMember(Name="flowDirection", EmitDefaultValue=false)] - public BankTransactionFlowDirection? FlowDirection { get; set; } + public BankTransactionFlowDirection? FlowDirection { get; private set; } /// /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public BankTransactionState? State { get; set; } + public BankTransactionState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/CardCryptogram.cs b/src/Wallee/Model/CardCryptogram.cs index 85d0fb7..688c50c 100644 --- a/src/Wallee/Model/CardCryptogram.cs +++ b/src/Wallee/Model/CardCryptogram.cs @@ -24,7 +24,7 @@ public partial class CardCryptogram : IEquatable /// Gets or Sets Type /// [DataMember(Name="type", EmitDefaultValue=false)] - public CardCryptogramType? Type { get; set; } + public CardCryptogramType? Type { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/CardholderAuthentication.cs b/src/Wallee/Model/CardholderAuthentication.cs index 8204969..84877e2 100644 --- a/src/Wallee/Model/CardholderAuthentication.cs +++ b/src/Wallee/Model/CardholderAuthentication.cs @@ -24,12 +24,12 @@ public partial class CardholderAuthentication : IEquatable [DataMember(Name="authenticationResponse", EmitDefaultValue=false)] - public CardAuthenticationResponse? AuthenticationResponse { get; set; } + public CardAuthenticationResponse? AuthenticationResponse { get; private set; } /// /// Gets or Sets Version /// [DataMember(Name="version", EmitDefaultValue=false)] - public CardAuthenticationVersion? Version { get; set; } + public CardAuthenticationVersion? Version { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/Charge.cs b/src/Wallee/Model/Charge.cs index b9c4d80..458871e 100644 --- a/src/Wallee/Model/Charge.cs +++ b/src/Wallee/Model/Charge.cs @@ -24,12 +24,12 @@ public partial class Charge : TransactionAwareEntity, IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public ChargeState? State { get; set; } + public ChargeState? State { get; private set; } /// /// Gets or Sets Type /// [DataMember(Name="type", EmitDefaultValue=false)] - public ChargeType? Type { get; set; } + public ChargeType? Type { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ChargeAttempt.cs b/src/Wallee/Model/ChargeAttempt.cs index dc2b01e..462b1cc 100644 --- a/src/Wallee/Model/ChargeAttempt.cs +++ b/src/Wallee/Model/ChargeAttempt.cs @@ -24,28 +24,28 @@ public partial class ChargeAttempt : TransactionAwareEntity, IEquatable [DataMember(Name="completionBehavior", EmitDefaultValue=false)] - public TransactionCompletionBehavior? CompletionBehavior { get; set; } + public TransactionCompletionBehavior? CompletionBehavior { get; private set; } /// /// The customers presence indicates which kind of customer interaction was used during the charge attempt. /// /// The customers presence indicates which kind of customer interaction was used during the charge attempt. [DataMember(Name="customersPresence", EmitDefaultValue=false)] - public CustomersPresence? CustomersPresence { get; set; } + public CustomersPresence? CustomersPresence { get; private set; } /// /// Gets or Sets Environment /// [DataMember(Name="environment", EmitDefaultValue=false)] - public ChargeAttemptEnvironment? Environment { get; set; } + public ChargeAttemptEnvironment? Environment { get; private set; } /// /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public ChargeAttemptState? State { get; set; } + public ChargeAttemptState? State { get; private set; } /// /// Gets or Sets WalletType /// [DataMember(Name="walletType", EmitDefaultValue=false)] - public WalletType? WalletType { get; set; } + public WalletType? WalletType { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ChargeFlow.cs b/src/Wallee/Model/ChargeFlow.cs index a22df0f..9f28651 100644 --- a/src/Wallee/Model/ChargeFlow.cs +++ b/src/Wallee/Model/ChargeFlow.cs @@ -24,7 +24,7 @@ public partial class ChargeFlow : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ChargeFlowLevel.cs b/src/Wallee/Model/ChargeFlowLevel.cs index 53f3e81..38814b2 100644 --- a/src/Wallee/Model/ChargeFlowLevel.cs +++ b/src/Wallee/Model/ChargeFlowLevel.cs @@ -24,7 +24,7 @@ public partial class ChargeFlowLevel : TransactionAwareEntity, IEquatable [DataMember(Name="state", EmitDefaultValue=false)] - public ChargeFlowLevelState? State { get; set; } + public ChargeFlowLevelState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ChargeFlowLevelConfiguration.cs b/src/Wallee/Model/ChargeFlowLevelConfiguration.cs index 5fd694e..3d8471f 100644 --- a/src/Wallee/Model/ChargeFlowLevelConfiguration.cs +++ b/src/Wallee/Model/ChargeFlowLevelConfiguration.cs @@ -24,7 +24,7 @@ public partial class ChargeFlowLevelConfiguration : IEquatable [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ClientError.cs b/src/Wallee/Model/ClientError.cs index 095006a..4c650ee 100644 --- a/src/Wallee/Model/ClientError.cs +++ b/src/Wallee/Model/ClientError.cs @@ -25,7 +25,7 @@ public partial class ClientError : IEquatable /// /// The type of the client error. [DataMember(Name="type", EmitDefaultValue=false)] - public ClientErrorType? Type { get; set; } + public ClientErrorType? Type { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/Condition.cs b/src/Wallee/Model/Condition.cs index 8de0f9a..cb09d33 100644 --- a/src/Wallee/Model/Condition.cs +++ b/src/Wallee/Model/Condition.cs @@ -24,7 +24,7 @@ public partial class Condition : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ConnectorInvocation.cs b/src/Wallee/Model/ConnectorInvocation.cs index a76b435..5a7be64 100644 --- a/src/Wallee/Model/ConnectorInvocation.cs +++ b/src/Wallee/Model/ConnectorInvocation.cs @@ -24,7 +24,7 @@ public partial class ConnectorInvocation : TransactionAwareEntity, IEquatable [DataMember(Name="stage", EmitDefaultValue=false)] - public ConnectorInvocationStage? Stage { get; set; } + public ConnectorInvocationStage? Stage { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/CurrencyBankAccount.cs b/src/Wallee/Model/CurrencyBankAccount.cs index 3c7acaa..5d7fe7b 100644 --- a/src/Wallee/Model/CurrencyBankAccount.cs +++ b/src/Wallee/Model/CurrencyBankAccount.cs @@ -24,7 +24,7 @@ public partial class CurrencyBankAccount : IEquatable /// Gets or Sets Environment /// [DataMember(Name="environment", EmitDefaultValue=false)] - public BankAccountEnvironment? Environment { get; set; } + public BankAccountEnvironment? Environment { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/CustomerAddress.cs b/src/Wallee/Model/CustomerAddress.cs index 8b5c859..d45af2d 100644 --- a/src/Wallee/Model/CustomerAddress.cs +++ b/src/Wallee/Model/CustomerAddress.cs @@ -24,7 +24,7 @@ public partial class CustomerAddress : IEquatable /// Gets or Sets AddressType /// [DataMember(Name="addressType", EmitDefaultValue=false)] - public CustomerAddressType? AddressType { get; set; } + public CustomerAddressType? AddressType { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/CustomerPostalAddress.cs b/src/Wallee/Model/CustomerPostalAddress.cs index 20c5177..afcc399 100644 --- a/src/Wallee/Model/CustomerPostalAddress.cs +++ b/src/Wallee/Model/CustomerPostalAddress.cs @@ -24,7 +24,7 @@ public partial class CustomerPostalAddress : IEquatable /// Gets or Sets Gender /// [DataMember(Name="gender", EmitDefaultValue=false)] - public Gender? Gender { get; set; } + public Gender? Gender { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/DebtCollectionCase.cs b/src/Wallee/Model/DebtCollectionCase.cs index 952531f..f64b7f1 100644 --- a/src/Wallee/Model/DebtCollectionCase.cs +++ b/src/Wallee/Model/DebtCollectionCase.cs @@ -25,12 +25,12 @@ public partial class DebtCollectionCase : IEquatable /// /// The environment in which this case will be processed. There must be a debt collector configuration present which supports the chosen environment. [DataMember(Name="environment", EmitDefaultValue=false)] - public DebtCollectionEnvironment? Environment { get; set; } + public DebtCollectionEnvironment? Environment { get; private set; } /// /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public DebtCollectionCaseState? State { get; set; } + public DebtCollectionCaseState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/DebtCollectorCondition.cs b/src/Wallee/Model/DebtCollectorCondition.cs index 5e8d3ee..4882474 100644 --- a/src/Wallee/Model/DebtCollectorCondition.cs +++ b/src/Wallee/Model/DebtCollectorCondition.cs @@ -24,7 +24,7 @@ public partial class DebtCollectorCondition : IEquatable [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/DebtCollectorConfiguration.cs b/src/Wallee/Model/DebtCollectorConfiguration.cs index 26676ed..3436fab 100644 --- a/src/Wallee/Model/DebtCollectorConfiguration.cs +++ b/src/Wallee/Model/DebtCollectorConfiguration.cs @@ -24,7 +24,7 @@ public partial class DebtCollectorConfiguration : IEquatable [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/DeliveryIndication.cs b/src/Wallee/Model/DeliveryIndication.cs index c245de9..ec45c81 100644 --- a/src/Wallee/Model/DeliveryIndication.cs +++ b/src/Wallee/Model/DeliveryIndication.cs @@ -24,7 +24,7 @@ public partial class DeliveryIndication : TransactionAwareEntity, IEquatable [DataMember(Name="state", EmitDefaultValue=false)] - public DeliveryIndicationState? State { get; set; } + public DeliveryIndicationState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/DocumentTemplate.cs b/src/Wallee/Model/DocumentTemplate.cs index b64cd51..1aed069 100644 --- a/src/Wallee/Model/DocumentTemplate.cs +++ b/src/Wallee/Model/DocumentTemplate.cs @@ -24,7 +24,7 @@ public partial class DocumentTemplate : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/FailureReason.cs b/src/Wallee/Model/FailureReason.cs index 924db43..4baef06 100644 --- a/src/Wallee/Model/FailureReason.cs +++ b/src/Wallee/Model/FailureReason.cs @@ -24,7 +24,7 @@ public partial class FailureReason : IEquatable /// Gets or Sets Category /// [DataMember(Name="category", EmitDefaultValue=false)] - public FailureCategory? Category { get; set; } + public FailureCategory? Category { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/InstallmentPayment.cs b/src/Wallee/Model/InstallmentPayment.cs index 4bb4f0e..06e5889 100644 --- a/src/Wallee/Model/InstallmentPayment.cs +++ b/src/Wallee/Model/InstallmentPayment.cs @@ -24,7 +24,7 @@ public partial class InstallmentPayment : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public InstallmentPaymentState? State { get; set; } + public InstallmentPaymentState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/InstallmentPaymentSlice.cs b/src/Wallee/Model/InstallmentPaymentSlice.cs index 7e4145f..169e6a6 100644 --- a/src/Wallee/Model/InstallmentPaymentSlice.cs +++ b/src/Wallee/Model/InstallmentPaymentSlice.cs @@ -24,7 +24,7 @@ public partial class InstallmentPaymentSlice : TransactionAwareEntity, IEquatab /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public InstallmentPaymentSliceState? State { get; set; } + public InstallmentPaymentSliceState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/InstallmentPlanConfiguration.cs b/src/Wallee/Model/InstallmentPlanConfiguration.cs index 6335cb2..4aa38b9 100644 --- a/src/Wallee/Model/InstallmentPlanConfiguration.cs +++ b/src/Wallee/Model/InstallmentPlanConfiguration.cs @@ -24,7 +24,7 @@ public partial class InstallmentPlanConfiguration : IEquatable [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/InstallmentPlanSliceConfiguration.cs b/src/Wallee/Model/InstallmentPlanSliceConfiguration.cs index 2232fe5..fcdc8f4 100644 --- a/src/Wallee/Model/InstallmentPlanSliceConfiguration.cs +++ b/src/Wallee/Model/InstallmentPlanSliceConfiguration.cs @@ -24,7 +24,7 @@ public partial class InstallmentPlanSliceConfiguration : IEquatable [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/InvoiceReconciliationRecord.cs b/src/Wallee/Model/InvoiceReconciliationRecord.cs index bd14c86..5f0fb7f 100644 --- a/src/Wallee/Model/InvoiceReconciliationRecord.cs +++ b/src/Wallee/Model/InvoiceReconciliationRecord.cs @@ -24,17 +24,17 @@ public partial class InvoiceReconciliationRecord : TransactionAwareEntity, IEqu /// Gets or Sets Environment /// [DataMember(Name="environment", EmitDefaultValue=false)] - public ChargeAttemptEnvironment? Environment { get; set; } + public ChargeAttemptEnvironment? Environment { get; private set; } /// /// Gets or Sets RejectionStatus /// [DataMember(Name="rejectionStatus", EmitDefaultValue=false)] - public InvoiceReconciliationRecordRejectionStatus? RejectionStatus { get; set; } + public InvoiceReconciliationRecordRejectionStatus? RejectionStatus { get; private set; } /// /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public InvoiceReconciliationRecordState? State { get; set; } + public InvoiceReconciliationRecordState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/InvoiceReimbursement.cs b/src/Wallee/Model/InvoiceReimbursement.cs index a92b09e..e57558c 100644 --- a/src/Wallee/Model/InvoiceReimbursement.cs +++ b/src/Wallee/Model/InvoiceReimbursement.cs @@ -24,7 +24,7 @@ public partial class InvoiceReimbursement : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public InvoiceReimbursementState? State { get; set; } + public InvoiceReimbursementState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/LabelDescriptor.cs b/src/Wallee/Model/LabelDescriptor.cs index 2fe6ac9..aa340de 100644 --- a/src/Wallee/Model/LabelDescriptor.cs +++ b/src/Wallee/Model/LabelDescriptor.cs @@ -24,7 +24,7 @@ public partial class LabelDescriptor : IEquatable /// Gets or Sets Category /// [DataMember(Name="category", EmitDefaultValue=false)] - public LabelDescriptorCategory? Category { get; set; } + public LabelDescriptorCategory? Category { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/LineItem.cs b/src/Wallee/Model/LineItem.cs index ff3b742..fd8a37f 100644 --- a/src/Wallee/Model/LineItem.cs +++ b/src/Wallee/Model/LineItem.cs @@ -24,7 +24,7 @@ public partial class LineItem : IEquatable /// Gets or Sets Type /// [DataMember(Name="type", EmitDefaultValue=false)] - public LineItemType? Type { get; set; } + public LineItemType? Type { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ManualTask.cs b/src/Wallee/Model/ManualTask.cs index ea4d5df..60c3fc7 100644 --- a/src/Wallee/Model/ManualTask.cs +++ b/src/Wallee/Model/ManualTask.cs @@ -24,7 +24,7 @@ public partial class ManualTask : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public ManualTaskState? State { get; set; } + public ManualTaskState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ManualTaskAction.cs b/src/Wallee/Model/ManualTaskAction.cs index 1808930..093c2d1 100644 --- a/src/Wallee/Model/ManualTaskAction.cs +++ b/src/Wallee/Model/ManualTaskAction.cs @@ -24,7 +24,7 @@ public partial class ManualTaskAction : IEquatable /// Gets or Sets Style /// [DataMember(Name="style", EmitDefaultValue=false)] - public ManualTaskActionStyle? Style { get; set; } + public ManualTaskActionStyle? Style { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/PaymentAppConnector.cs b/src/Wallee/Model/PaymentAppConnector.cs index 6425033..1866295 100644 --- a/src/Wallee/Model/PaymentAppConnector.cs +++ b/src/Wallee/Model/PaymentAppConnector.cs @@ -24,7 +24,7 @@ public partial class PaymentAppConnector : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public PaymentAppConnectorState? State { get; set; } + public PaymentAppConnectorState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/PaymentAppProcessor.cs b/src/Wallee/Model/PaymentAppProcessor.cs index 876bd0d..a25d6d2 100644 --- a/src/Wallee/Model/PaymentAppProcessor.cs +++ b/src/Wallee/Model/PaymentAppProcessor.cs @@ -24,12 +24,12 @@ public partial class PaymentAppProcessor : IEquatable /// Gets or Sets ConfiguredEnvironment /// [DataMember(Name="configuredEnvironment", EmitDefaultValue=false)] - public ChargeAttemptEnvironment? ConfiguredEnvironment { get; set; } + public ChargeAttemptEnvironment? ConfiguredEnvironment { get; private set; } /// /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public PaymentAppProcessorState? State { get; set; } + public PaymentAppProcessorState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/PaymentConnector.cs b/src/Wallee/Model/PaymentConnector.cs index bd6fe53..9186fc2 100644 --- a/src/Wallee/Model/PaymentConnector.cs +++ b/src/Wallee/Model/PaymentConnector.cs @@ -24,12 +24,12 @@ public partial class PaymentConnector : IEquatable /// Gets or Sets DataCollectionType /// [DataMember(Name="dataCollectionType", EmitDefaultValue=false)] - public DataCollectionType? DataCollectionType { get; set; } + public DataCollectionType? DataCollectionType { get; private set; } /// /// Gets or Sets PrimaryRiskTaker /// [DataMember(Name="primaryRiskTaker", EmitDefaultValue=false)] - public PaymentPrimaryRiskTaker? PrimaryRiskTaker { get; set; } + public PaymentPrimaryRiskTaker? PrimaryRiskTaker { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/PaymentConnectorConfiguration.cs b/src/Wallee/Model/PaymentConnectorConfiguration.cs index 27978d8..04298e5 100644 --- a/src/Wallee/Model/PaymentConnectorConfiguration.cs +++ b/src/Wallee/Model/PaymentConnectorConfiguration.cs @@ -24,7 +24,7 @@ public partial class PaymentConnectorConfiguration : IEquatable [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/PaymentContract.cs b/src/Wallee/Model/PaymentContract.cs index aad0f2d..7992d66 100644 --- a/src/Wallee/Model/PaymentContract.cs +++ b/src/Wallee/Model/PaymentContract.cs @@ -24,7 +24,7 @@ public partial class PaymentContract : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public PaymentContractState? State { get; set; } + public PaymentContractState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/PaymentInitiationAdviceFile.cs b/src/Wallee/Model/PaymentInitiationAdviceFile.cs index e58c606..32044fe 100644 --- a/src/Wallee/Model/PaymentInitiationAdviceFile.cs +++ b/src/Wallee/Model/PaymentInitiationAdviceFile.cs @@ -24,7 +24,7 @@ public partial class PaymentInitiationAdviceFile : IEquatable [DataMember(Name="state", EmitDefaultValue=false)] - public PaymentInitiationAdviceFileState? State { get; set; } + public PaymentInitiationAdviceFileState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/PaymentLink.cs b/src/Wallee/Model/PaymentLink.cs index 50e91d5..b553c2a 100644 --- a/src/Wallee/Model/PaymentLink.cs +++ b/src/Wallee/Model/PaymentLink.cs @@ -25,24 +25,24 @@ public partial class PaymentLink : IEquatable /// /// The billing address handling mode controls if the address is collected or not and how it is collected. [DataMember(Name="billingAddressHandlingMode", EmitDefaultValue=false)] - public PaymentLinkAddressHandlingMode? BillingAddressHandlingMode { get; set; } + public PaymentLinkAddressHandlingMode? BillingAddressHandlingMode { get; private set; } /// /// The protection mode determines if the payment link is protected against tampering and in what way. /// /// The protection mode determines if the payment link is protected against tampering and in what way. [DataMember(Name="protectionMode", EmitDefaultValue=false)] - public PaymentLinkProtectionMode? ProtectionMode { get; set; } + public PaymentLinkProtectionMode? ProtectionMode { get; private set; } /// /// The shipping address handling mode controls if the address is collected or not and how it is collected. /// /// The shipping address handling mode controls if the address is collected or not and how it is collected. [DataMember(Name="shippingAddressHandlingMode", EmitDefaultValue=false)] - public PaymentLinkAddressHandlingMode? ShippingAddressHandlingMode { get; set; } + public PaymentLinkAddressHandlingMode? ShippingAddressHandlingMode { get; private set; } /// /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/PaymentMethodConfiguration.cs b/src/Wallee/Model/PaymentMethodConfiguration.cs index 3f4c745..1e3c565 100644 --- a/src/Wallee/Model/PaymentMethodConfiguration.cs +++ b/src/Wallee/Model/PaymentMethodConfiguration.cs @@ -25,18 +25,18 @@ public partial class PaymentMethodConfiguration : IEquatable /// The data collection type determines who is collecting the payment information. This can be done either by the processor (offsite) or by our application (onsite). [DataMember(Name="dataCollectionType", EmitDefaultValue=false)] - public DataCollectionType? DataCollectionType { get; set; } + public DataCollectionType? DataCollectionType { get; private set; } /// /// When the buyer is present on the payment page or within the iFrame the payment details can be stored automatically. The buyer will be able to use the stored payment details for subsequent transactions. When the transaction already contains a token one-click payments are disabled anyway /// /// When the buyer is present on the payment page or within the iFrame the payment details can be stored automatically. The buyer will be able to use the stored payment details for subsequent transactions. When the transaction already contains a token one-click payments are disabled anyway [DataMember(Name="oneClickPaymentMode", EmitDefaultValue=false)] - public OneClickPaymentMode? OneClickPaymentMode { get; set; } + public OneClickPaymentMode? OneClickPaymentMode { get; private set; } /// /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/PaymentProcessorConfiguration.cs b/src/Wallee/Model/PaymentProcessorConfiguration.cs index a29f2e9..1c5930a 100644 --- a/src/Wallee/Model/PaymentProcessorConfiguration.cs +++ b/src/Wallee/Model/PaymentProcessorConfiguration.cs @@ -24,7 +24,7 @@ public partial class PaymentProcessorConfiguration : IEquatable [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/PaymentTerminal.cs b/src/Wallee/Model/PaymentTerminal.cs index 4fde2bc..caab1e5 100644 --- a/src/Wallee/Model/PaymentTerminal.cs +++ b/src/Wallee/Model/PaymentTerminal.cs @@ -24,7 +24,7 @@ public partial class PaymentTerminal : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public PaymentTerminalState? State { get; set; } + public PaymentTerminalState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/PaymentTerminalConfiguration.cs b/src/Wallee/Model/PaymentTerminalConfiguration.cs index 4d2b6c4..9a015ff 100644 --- a/src/Wallee/Model/PaymentTerminalConfiguration.cs +++ b/src/Wallee/Model/PaymentTerminalConfiguration.cs @@ -24,7 +24,7 @@ public partial class PaymentTerminalConfiguration : IEquatable [DataMember(Name="state", EmitDefaultValue=false)] - public PaymentTerminalConfigurationState? State { get; set; } + public PaymentTerminalConfigurationState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/PaymentTerminalConfigurationVersion.cs b/src/Wallee/Model/PaymentTerminalConfigurationVersion.cs index fa10705..07b5e91 100644 --- a/src/Wallee/Model/PaymentTerminalConfigurationVersion.cs +++ b/src/Wallee/Model/PaymentTerminalConfigurationVersion.cs @@ -24,7 +24,7 @@ public partial class PaymentTerminalConfigurationVersion : IEquatable [DataMember(Name="state", EmitDefaultValue=false)] - public PaymentTerminalConfigurationVersionState? State { get; set; } + public PaymentTerminalConfigurationVersionState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/PaymentTerminalLocation.cs b/src/Wallee/Model/PaymentTerminalLocation.cs index 3d22734..c05e9f9 100644 --- a/src/Wallee/Model/PaymentTerminalLocation.cs +++ b/src/Wallee/Model/PaymentTerminalLocation.cs @@ -24,7 +24,7 @@ public partial class PaymentTerminalLocation : IEquatable [DataMember(Name="state", EmitDefaultValue=false)] - public PaymentTerminalLocationState? State { get; set; } + public PaymentTerminalLocationState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/PaymentTerminalLocationVersion.cs b/src/Wallee/Model/PaymentTerminalLocationVersion.cs index 042bc8c..47bf22c 100644 --- a/src/Wallee/Model/PaymentTerminalLocationVersion.cs +++ b/src/Wallee/Model/PaymentTerminalLocationVersion.cs @@ -24,7 +24,7 @@ public partial class PaymentTerminalLocationVersion : IEquatable [DataMember(Name="state", EmitDefaultValue=false)] - public PaymentTerminalLocationVersionState? State { get; set; } + public PaymentTerminalLocationVersionState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ProductMeteredFee.cs b/src/Wallee/Model/ProductMeteredFee.cs index 85d3a84..9fc0616 100644 --- a/src/Wallee/Model/ProductMeteredFee.cs +++ b/src/Wallee/Model/ProductMeteredFee.cs @@ -25,12 +25,12 @@ public partial class ProductMeteredFee : IEquatable /// /// The tier pricing determines the calculation method of the tiers. The prices of the different tiers can be applied in different ways. The tier pricing controls this calculation. [DataMember(Name="tierPricing", EmitDefaultValue=false)] - public ProductMeteredTierPricing? TierPricing { get; set; } + public ProductMeteredTierPricing? TierPricing { get; private set; } /// /// Gets or Sets Type /// [DataMember(Name="type", EmitDefaultValue=false)] - public ProductFeeType? Type { get; set; } + public ProductFeeType? Type { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ProductPeriodFee.cs b/src/Wallee/Model/ProductPeriodFee.cs index dd1b3aa..7020a9f 100644 --- a/src/Wallee/Model/ProductPeriodFee.cs +++ b/src/Wallee/Model/ProductPeriodFee.cs @@ -24,7 +24,7 @@ public partial class ProductPeriodFee : IEquatable /// Gets or Sets Type /// [DataMember(Name="type", EmitDefaultValue=false)] - public ProductFeeType? Type { get; set; } + public ProductFeeType? Type { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ProductSetupFee.cs b/src/Wallee/Model/ProductSetupFee.cs index 0de9007..aa4244e 100644 --- a/src/Wallee/Model/ProductSetupFee.cs +++ b/src/Wallee/Model/ProductSetupFee.cs @@ -24,7 +24,7 @@ public partial class ProductSetupFee : IEquatable /// Gets or Sets Type /// [DataMember(Name="type", EmitDefaultValue=false)] - public ProductFeeType? Type { get; set; } + public ProductFeeType? Type { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/Refund.cs b/src/Wallee/Model/Refund.cs index 41ff4ca..902dd76 100644 --- a/src/Wallee/Model/Refund.cs +++ b/src/Wallee/Model/Refund.cs @@ -24,17 +24,17 @@ public partial class Refund : IEquatable /// Gets or Sets Environment /// [DataMember(Name="environment", EmitDefaultValue=false)] - public Environment? Environment { get; set; } + public Environment? Environment { get; private set; } /// /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public RefundState? State { get; set; } + public RefundState? State { get; private set; } /// /// Gets or Sets Type /// [DataMember(Name="type", EmitDefaultValue=false)] - public RefundType? Type { get; set; } + public RefundType? Type { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ResourcePath.cs b/src/Wallee/Model/ResourcePath.cs index d49b77c..8d8557a 100644 --- a/src/Wallee/Model/ResourcePath.cs +++ b/src/Wallee/Model/ResourcePath.cs @@ -24,7 +24,7 @@ public partial class ResourcePath : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public ResourceState? State { get; set; } + public ResourceState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/Role.cs b/src/Wallee/Model/Role.cs index 9020ca8..d81b97d 100644 --- a/src/Wallee/Model/Role.cs +++ b/src/Wallee/Model/Role.cs @@ -24,7 +24,7 @@ public partial class Role : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public RoleState? State { get; set; } + public RoleState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/Scope.cs b/src/Wallee/Model/Scope.cs index 6fff79a..a4a3ebc 100644 --- a/src/Wallee/Model/Scope.cs +++ b/src/Wallee/Model/Scope.cs @@ -24,7 +24,7 @@ public partial class Scope : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ShopifyIntegration.cs b/src/Wallee/Model/ShopifyIntegration.cs index c494afb..b3fa857 100644 --- a/src/Wallee/Model/ShopifyIntegration.cs +++ b/src/Wallee/Model/ShopifyIntegration.cs @@ -24,17 +24,17 @@ public partial class ShopifyIntegration : IEquatable /// Gets or Sets PaymentAppVersion /// [DataMember(Name="paymentAppVersion", EmitDefaultValue=false)] - public ShopifyIntegrationPaymentAppVersion? PaymentAppVersion { get; set; } + public ShopifyIntegrationPaymentAppVersion? PaymentAppVersion { get; private set; } /// /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Gets or Sets SubscriptionAppVersion /// [DataMember(Name="subscriptionAppVersion", EmitDefaultValue=false)] - public ShopifyIntegrationSubscriptionAppVersion? SubscriptionAppVersion { get; set; } + public ShopifyIntegrationSubscriptionAppVersion? SubscriptionAppVersion { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ShopifyRecurringOrder.cs b/src/Wallee/Model/ShopifyRecurringOrder.cs index c67cf64..15a29e3 100644 --- a/src/Wallee/Model/ShopifyRecurringOrder.cs +++ b/src/Wallee/Model/ShopifyRecurringOrder.cs @@ -24,7 +24,7 @@ public partial class ShopifyRecurringOrder : TransactionAwareEntity, IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public ShopifyRecurringOrderState? State { get; set; } + public ShopifyRecurringOrderState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ShopifySubscriber.cs b/src/Wallee/Model/ShopifySubscriber.cs index 9b95886..ac3685c 100644 --- a/src/Wallee/Model/ShopifySubscriber.cs +++ b/src/Wallee/Model/ShopifySubscriber.cs @@ -24,7 +24,7 @@ public partial class ShopifySubscriber : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public ShopifySubscriberState? State { get; set; } + public ShopifySubscriberState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ShopifySubscription.cs b/src/Wallee/Model/ShopifySubscription.cs index 754b1da..6c5a304 100644 --- a/src/Wallee/Model/ShopifySubscription.cs +++ b/src/Wallee/Model/ShopifySubscription.cs @@ -24,7 +24,7 @@ public partial class ShopifySubscription : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public ShopifySubscriptionState? State { get; set; } + public ShopifySubscriptionState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ShopifySubscriptionProduct.cs b/src/Wallee/Model/ShopifySubscriptionProduct.cs index 507f0f4..1308602 100644 --- a/src/Wallee/Model/ShopifySubscriptionProduct.cs +++ b/src/Wallee/Model/ShopifySubscriptionProduct.cs @@ -25,23 +25,23 @@ public partial class ShopifySubscriptionProduct : IEquatable /// Define how frequently recurring orders should be created. [DataMember(Name="billingIntervalUnit", EmitDefaultValue=false)] - public ShopifySubscriptionBillingIntervalUnit? BillingIntervalUnit { get; set; } + public ShopifySubscriptionBillingIntervalUnit? BillingIntervalUnit { get; private set; } /// /// Define the weekday on which the recurring orders should be created. /// /// Define the weekday on which the recurring orders should be created. [DataMember(Name="billingWeekday", EmitDefaultValue=false)] - public ShopifySubscriptionWeekday? BillingWeekday { get; set; } + public ShopifySubscriptionWeekday? BillingWeekday { get; private set; } /// /// Gets or Sets PricingOption /// [DataMember(Name="pricingOption", EmitDefaultValue=false)] - public ShopifySubscriptionProductPricingOption? PricingOption { get; set; } + public ShopifySubscriptionProductPricingOption? PricingOption { get; private set; } /// /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public ShopifySubscriptionProductState? State { get; set; } + public ShopifySubscriptionProductState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ShopifySubscriptionSuspension.cs b/src/Wallee/Model/ShopifySubscriptionSuspension.cs index caa1577..d54afcd 100644 --- a/src/Wallee/Model/ShopifySubscriptionSuspension.cs +++ b/src/Wallee/Model/ShopifySubscriptionSuspension.cs @@ -24,17 +24,17 @@ public partial class ShopifySubscriptionSuspension : IEquatable [DataMember(Name="initiator", EmitDefaultValue=false)] - public ShopifySubscriptionSuspensionInitiator? Initiator { get; set; } + public ShopifySubscriptionSuspensionInitiator? Initiator { get; private set; } /// /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public ShopifySubscriptionSuspensionState? State { get; set; } + public ShopifySubscriptionSuspensionState? State { get; private set; } /// /// Gets or Sets Type /// [DataMember(Name="type", EmitDefaultValue=false)] - public ShopifySubscriptionSuspensionType? Type { get; set; } + public ShopifySubscriptionSuspensionType? Type { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ShopifySubscriptionVersion.cs b/src/Wallee/Model/ShopifySubscriptionVersion.cs index 17f8184..50518e9 100644 --- a/src/Wallee/Model/ShopifySubscriptionVersion.cs +++ b/src/Wallee/Model/ShopifySubscriptionVersion.cs @@ -24,17 +24,17 @@ public partial class ShopifySubscriptionVersion : IEquatable [DataMember(Name="billingIntervalUnit", EmitDefaultValue=false)] - public ShopifySubscriptionBillingIntervalUnit? BillingIntervalUnit { get; set; } + public ShopifySubscriptionBillingIntervalUnit? BillingIntervalUnit { get; private set; } /// /// Gets or Sets BillingWeekday /// [DataMember(Name="billingWeekday", EmitDefaultValue=false)] - public ShopifySubscriptionWeekday? BillingWeekday { get; set; } + public ShopifySubscriptionWeekday? BillingWeekday { get; private set; } /// /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public ShopifySubscriptionVersionState? State { get; set; } + public ShopifySubscriptionVersionState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ShopifySubscriptionVersionItem.cs b/src/Wallee/Model/ShopifySubscriptionVersionItem.cs index 161c6d0..ee9f513 100644 --- a/src/Wallee/Model/ShopifySubscriptionVersionItem.cs +++ b/src/Wallee/Model/ShopifySubscriptionVersionItem.cs @@ -24,7 +24,7 @@ public partial class ShopifySubscriptionVersionItem : IEquatable [DataMember(Name="priceStrategy", EmitDefaultValue=false)] - public ShopifySubscriptionVersionItemPriceStrategy? PriceStrategy { get; set; } + public ShopifySubscriptionVersionItemPriceStrategy? PriceStrategy { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/ShopifyTransaction.cs b/src/Wallee/Model/ShopifyTransaction.cs index 325e692..feb3820 100644 --- a/src/Wallee/Model/ShopifyTransaction.cs +++ b/src/Wallee/Model/ShopifyTransaction.cs @@ -24,7 +24,7 @@ public partial class ShopifyTransaction : TransactionAwareEntity, IEquatable [DataMember(Name="state", EmitDefaultValue=false)] - public ShopifyTransactionState? State { get; set; } + public ShopifyTransactionState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/Space.cs b/src/Wallee/Model/Space.cs index 3abb86c..593befb 100644 --- a/src/Wallee/Model/Space.cs +++ b/src/Wallee/Model/Space.cs @@ -24,7 +24,7 @@ public partial class Space : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/SpaceReference.cs b/src/Wallee/Model/SpaceReference.cs index ccc9af9..6b84b81 100644 --- a/src/Wallee/Model/SpaceReference.cs +++ b/src/Wallee/Model/SpaceReference.cs @@ -24,7 +24,7 @@ public partial class SpaceReference : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public SpaceReferenceState? State { get; set; } + public SpaceReferenceState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/SpaceView.cs b/src/Wallee/Model/SpaceView.cs index baba693..61a9a76 100644 --- a/src/Wallee/Model/SpaceView.cs +++ b/src/Wallee/Model/SpaceView.cs @@ -24,7 +24,7 @@ public partial class SpaceView : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/Subscriber.cs b/src/Wallee/Model/Subscriber.cs index 00b2bfb..b140218 100644 --- a/src/Wallee/Model/Subscriber.cs +++ b/src/Wallee/Model/Subscriber.cs @@ -24,7 +24,7 @@ public partial class Subscriber : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/Subscription.cs b/src/Wallee/Model/Subscription.cs index 9ed305d..5de1e5f 100644 --- a/src/Wallee/Model/Subscription.cs +++ b/src/Wallee/Model/Subscription.cs @@ -24,7 +24,7 @@ public partial class Subscription : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public SubscriptionState? State { get; set; } + public SubscriptionState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/SubscriptionAffiliate.cs b/src/Wallee/Model/SubscriptionAffiliate.cs index 1561f33..e197bc2 100644 --- a/src/Wallee/Model/SubscriptionAffiliate.cs +++ b/src/Wallee/Model/SubscriptionAffiliate.cs @@ -24,7 +24,7 @@ public partial class SubscriptionAffiliate : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/SubscriptionCharge.cs b/src/Wallee/Model/SubscriptionCharge.cs index b806691..3cb80ba 100644 --- a/src/Wallee/Model/SubscriptionCharge.cs +++ b/src/Wallee/Model/SubscriptionCharge.cs @@ -24,17 +24,17 @@ public partial class SubscriptionCharge : IEquatable /// Gets or Sets ProcessingType /// [DataMember(Name="processingType", EmitDefaultValue=false)] - public SubscriptionChargeProcessingType? ProcessingType { get; set; } + public SubscriptionChargeProcessingType? ProcessingType { get; private set; } /// /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public SubscriptionChargeState? State { get; set; } + public SubscriptionChargeState? State { get; private set; } /// /// Gets or Sets Type /// [DataMember(Name="type", EmitDefaultValue=false)] - public SubscriptionChargeType? Type { get; set; } + public SubscriptionChargeType? Type { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/SubscriptionLedgerEntry.cs b/src/Wallee/Model/SubscriptionLedgerEntry.cs index d713a46..e6ec092 100644 --- a/src/Wallee/Model/SubscriptionLedgerEntry.cs +++ b/src/Wallee/Model/SubscriptionLedgerEntry.cs @@ -24,7 +24,7 @@ public partial class SubscriptionLedgerEntry : IEquatable [DataMember(Name="state", EmitDefaultValue=false)] - public SubscriptionLedgerEntryState? State { get; set; } + public SubscriptionLedgerEntryState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/SubscriptionMetric.cs b/src/Wallee/Model/SubscriptionMetric.cs index 481e5f2..6ea1531 100644 --- a/src/Wallee/Model/SubscriptionMetric.cs +++ b/src/Wallee/Model/SubscriptionMetric.cs @@ -24,7 +24,7 @@ public partial class SubscriptionMetric : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/SubscriptionPeriodBill.cs b/src/Wallee/Model/SubscriptionPeriodBill.cs index c48b3de..b247522 100644 --- a/src/Wallee/Model/SubscriptionPeriodBill.cs +++ b/src/Wallee/Model/SubscriptionPeriodBill.cs @@ -24,7 +24,7 @@ public partial class SubscriptionPeriodBill : IEquatable [DataMember(Name="state", EmitDefaultValue=false)] - public SubscriptionPeriodBillState? State { get; set; } + public SubscriptionPeriodBillState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/SubscriptionProduct.cs b/src/Wallee/Model/SubscriptionProduct.cs index 657ba90..4072369 100644 --- a/src/Wallee/Model/SubscriptionProduct.cs +++ b/src/Wallee/Model/SubscriptionProduct.cs @@ -24,7 +24,7 @@ public partial class SubscriptionProduct : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public SubscriptionProductState? State { get; set; } + public SubscriptionProductState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/SubscriptionProductComponentReference.cs b/src/Wallee/Model/SubscriptionProductComponentReference.cs index 46bf1c9..759a5ef 100644 --- a/src/Wallee/Model/SubscriptionProductComponentReference.cs +++ b/src/Wallee/Model/SubscriptionProductComponentReference.cs @@ -24,7 +24,7 @@ public partial class SubscriptionProductComponentReference : IEquatable [DataMember(Name="state", EmitDefaultValue=false)] - public SubscriptionProductComponentReferenceState? State { get; set; } + public SubscriptionProductComponentReferenceState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/SubscriptionProductVersion.cs b/src/Wallee/Model/SubscriptionProductVersion.cs index 2f4ca44..3d7ca81 100644 --- a/src/Wallee/Model/SubscriptionProductVersion.cs +++ b/src/Wallee/Model/SubscriptionProductVersion.cs @@ -24,13 +24,13 @@ public partial class SubscriptionProductVersion : IEquatable [DataMember(Name="state", EmitDefaultValue=false)] - public SubscriptionProductVersionState? State { get; set; } + public SubscriptionProductVersionState? State { get; private set; } /// /// Strategy that is used for tax calculation in fees. /// /// Strategy that is used for tax calculation in fees. [DataMember(Name="taxCalculation", EmitDefaultValue=false)] - public TaxCalculation? TaxCalculation { get; set; } + public TaxCalculation? TaxCalculation { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/SubscriptionSuspension.cs b/src/Wallee/Model/SubscriptionSuspension.cs index 07f1004..e543ea9 100644 --- a/src/Wallee/Model/SubscriptionSuspension.cs +++ b/src/Wallee/Model/SubscriptionSuspension.cs @@ -25,18 +25,18 @@ public partial class SubscriptionSuspension : IEquatable /// When the suspension reaches the planned end date the end action will be carried out. This action is only executed when the suspension is ended automatically based on the end date. [DataMember(Name="endAction", EmitDefaultValue=false)] - public SubscriptionSuspensionAction? EndAction { get; set; } + public SubscriptionSuspensionAction? EndAction { get; private set; } /// /// The suspension reason indicates why a suspension has been created. /// /// The suspension reason indicates why a suspension has been created. [DataMember(Name="reason", EmitDefaultValue=false)] - public SubscriptionSuspensionReason? Reason { get; set; } + public SubscriptionSuspensionReason? Reason { get; private set; } /// /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public SubscriptionSuspensionState? State { get; set; } + public SubscriptionSuspensionState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/SubscriptionVersion.cs b/src/Wallee/Model/SubscriptionVersion.cs index 88098a8..92cbd43 100644 --- a/src/Wallee/Model/SubscriptionVersion.cs +++ b/src/Wallee/Model/SubscriptionVersion.cs @@ -24,7 +24,7 @@ public partial class SubscriptionVersion : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public SubscriptionVersionState? State { get; set; } + public SubscriptionVersionState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/TaxClass.cs b/src/Wallee/Model/TaxClass.cs index f861d58..1df3362 100644 --- a/src/Wallee/Model/TaxClass.cs +++ b/src/Wallee/Model/TaxClass.cs @@ -24,7 +24,7 @@ public partial class TaxClass : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/Token.cs b/src/Wallee/Model/Token.cs index a98e7a8..f9906c1 100644 --- a/src/Wallee/Model/Token.cs +++ b/src/Wallee/Model/Token.cs @@ -24,7 +24,7 @@ public partial class Token : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/TokenVersion.cs b/src/Wallee/Model/TokenVersion.cs index 23e4a25..44f2afc 100644 --- a/src/Wallee/Model/TokenVersion.cs +++ b/src/Wallee/Model/TokenVersion.cs @@ -24,12 +24,12 @@ public partial class TokenVersion : IEquatable /// Gets or Sets Environment /// [DataMember(Name="environment", EmitDefaultValue=false)] - public ChargeAttemptEnvironment? Environment { get; set; } + public ChargeAttemptEnvironment? Environment { get; private set; } /// /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public TokenVersionState? State { get; set; } + public TokenVersionState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/TokenizedCardData.cs b/src/Wallee/Model/TokenizedCardData.cs index d58751f..d5262c1 100644 --- a/src/Wallee/Model/TokenizedCardData.cs +++ b/src/Wallee/Model/TokenizedCardData.cs @@ -24,7 +24,7 @@ public partial class TokenizedCardData : IEquatable /// Gets or Sets RecurringIndicator /// [DataMember(Name="recurringIndicator", EmitDefaultValue=false)] - public RecurringIndicator? RecurringIndicator { get; set; } + public RecurringIndicator? RecurringIndicator { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/Transaction.cs b/src/Wallee/Model/Transaction.cs index 30d237c..2e8e32d 100644 --- a/src/Wallee/Model/Transaction.cs +++ b/src/Wallee/Model/Transaction.cs @@ -25,47 +25,47 @@ public partial class Transaction : IEquatable /// /// The environment in which this transaction was successfully authorized. [DataMember(Name="authorizationEnvironment", EmitDefaultValue=false)] - public ChargeAttemptEnvironment? AuthorizationEnvironment { get; set; } + public ChargeAttemptEnvironment? AuthorizationEnvironment { get; private set; } /// /// The completion behavior controls when the transaction is completed. /// /// The completion behavior controls when the transaction is completed. [DataMember(Name="completionBehavior", EmitDefaultValue=false)] - public TransactionCompletionBehavior? CompletionBehavior { get; set; } + public TransactionCompletionBehavior? CompletionBehavior { get; private set; } /// /// The customer's presence indicates what kind of authentication method was finally used during authorization of the transaction. If no value is provided, 'Virtually Present' is used by default. /// /// The customer's presence indicates what kind of authentication method was finally used during authorization of the transaction. If no value is provided, 'Virtually Present' is used by default. [DataMember(Name="customersPresence", EmitDefaultValue=false)] - public CustomersPresence? CustomersPresence { get; set; } + public CustomersPresence? CustomersPresence { get; private set; } /// /// Gets or Sets Environment /// [DataMember(Name="environment", EmitDefaultValue=false)] - public Environment? Environment { get; set; } + public Environment? Environment { get; private set; } /// /// The environment selection strategy determines how the environment (test or production) for processing the transaction is selected. /// /// The environment selection strategy determines how the environment (test or production) for processing the transaction is selected. [DataMember(Name="environmentSelectionStrategy", EmitDefaultValue=false)] - public TransactionEnvironmentSelectionStrategy? EnvironmentSelectionStrategy { get; set; } + public TransactionEnvironmentSelectionStrategy? EnvironmentSelectionStrategy { get; private set; } /// /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public TransactionState? State { get; set; } + public TransactionState? State { get; private set; } /// /// The tokenization mode controls if and how the tokenization of payment information is applied to the transaction. /// /// The tokenization mode controls if and how the tokenization of payment information is applied to the transaction. [DataMember(Name="tokenizationMode", EmitDefaultValue=false)] - public TokenizationMode? TokenizationMode { get; set; } + public TokenizationMode? TokenizationMode { get; private set; } /// /// The user interface type defines through which user interface the transaction has been processed resp. created. /// /// The user interface type defines through which user interface the transaction has been processed resp. created. [DataMember(Name="userInterfaceType", EmitDefaultValue=false)] - public TransactionUserInterfaceType? UserInterfaceType { get; set; } + public TransactionUserInterfaceType? UserInterfaceType { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/TransactionCompletion.cs b/src/Wallee/Model/TransactionCompletion.cs index e00ceed..b7cef4c 100644 --- a/src/Wallee/Model/TransactionCompletion.cs +++ b/src/Wallee/Model/TransactionCompletion.cs @@ -24,12 +24,12 @@ public partial class TransactionCompletion : TransactionAwareEntity, IEquatable /// Gets or Sets Mode /// [DataMember(Name="mode", EmitDefaultValue=false)] - public TransactionCompletionMode? Mode { get; set; } + public TransactionCompletionMode? Mode { get; private set; } /// /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public TransactionCompletionState? State { get; set; } + public TransactionCompletionState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/TransactionGroup.cs b/src/Wallee/Model/TransactionGroup.cs index 9408790..339416a 100644 --- a/src/Wallee/Model/TransactionGroup.cs +++ b/src/Wallee/Model/TransactionGroup.cs @@ -24,7 +24,7 @@ public partial class TransactionGroup : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public TransactionGroupState? State { get; set; } + public TransactionGroupState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/TransactionInvoice.cs b/src/Wallee/Model/TransactionInvoice.cs index a172e8e..d7f8138 100644 --- a/src/Wallee/Model/TransactionInvoice.cs +++ b/src/Wallee/Model/TransactionInvoice.cs @@ -24,12 +24,12 @@ public partial class TransactionInvoice : TransactionAwareEntity, IEquatable [DataMember(Name="environment", EmitDefaultValue=false)] - public Environment? Environment { get; set; } + public Environment? Environment { get; private set; } /// /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public TransactionInvoiceState? State { get; set; } + public TransactionInvoiceState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/TransactionLineItemVersion.cs b/src/Wallee/Model/TransactionLineItemVersion.cs index 5c6fe25..dad4971 100644 --- a/src/Wallee/Model/TransactionLineItemVersion.cs +++ b/src/Wallee/Model/TransactionLineItemVersion.cs @@ -24,7 +24,7 @@ public partial class TransactionLineItemVersion : TransactionAwareEntity, IEqua /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public TransactionLineItemVersionState? State { get; set; } + public TransactionLineItemVersionState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/TransactionVoid.cs b/src/Wallee/Model/TransactionVoid.cs index b52c7ec..2749b69 100644 --- a/src/Wallee/Model/TransactionVoid.cs +++ b/src/Wallee/Model/TransactionVoid.cs @@ -24,12 +24,12 @@ public partial class TransactionVoid : TransactionAwareEntity, IEquatable [DataMember(Name="mode", EmitDefaultValue=false)] - public TransactionVoidMode? Mode { get; set; } + public TransactionVoidMode? Mode { get; private set; } /// /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public TransactionVoidState? State { get; set; } + public TransactionVoidState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/User.cs b/src/Wallee/Model/User.cs index f2065e9..243e59a 100644 --- a/src/Wallee/Model/User.cs +++ b/src/Wallee/Model/User.cs @@ -24,12 +24,12 @@ public partial class User : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Gets or Sets UserType /// [DataMember(Name="userType", EmitDefaultValue=false)] - public UserType? UserType { get; set; } + public UserType? UserType { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/WebhookIdentity.cs b/src/Wallee/Model/WebhookIdentity.cs index a913075..8d7996b 100644 --- a/src/Wallee/Model/WebhookIdentity.cs +++ b/src/Wallee/Model/WebhookIdentity.cs @@ -24,7 +24,7 @@ public partial class WebhookIdentity : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/WebhookListener.cs b/src/Wallee/Model/WebhookListener.cs index c329f8a..e8b7f08 100644 --- a/src/Wallee/Model/WebhookListener.cs +++ b/src/Wallee/Model/WebhookListener.cs @@ -24,7 +24,7 @@ public partial class WebhookListener : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Model/WebhookUrl.cs b/src/Wallee/Model/WebhookUrl.cs index d8d5a07..831407a 100644 --- a/src/Wallee/Model/WebhookUrl.cs +++ b/src/Wallee/Model/WebhookUrl.cs @@ -24,7 +24,7 @@ public partial class WebhookUrl : IEquatable /// Gets or Sets State /// [DataMember(Name="state", EmitDefaultValue=false)] - public CreationEntityState? State { get; set; } + public CreationEntityState? State { get; private set; } /// /// Initializes a new instance of the class. /// diff --git a/src/Wallee/Service/AccountService.cs b/src/Wallee/Service/AccountService.cs index 21b1192..68836c9 100644 --- a/src/Wallee/Service/AccountService.cs +++ b/src/Wallee/Service/AccountService.cs @@ -172,7 +172,7 @@ public AccountService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -227,20 +227,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (filter != null && filter.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(filter); // http body (model) parameter @@ -253,8 +245,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -266,8 +258,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -301,20 +295,12 @@ public ApiResponse< Account > CreateWithHttpInfo (AccountCreate entity) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (entity != null && entity.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(entity); // http body (model) parameter @@ -327,8 +313,8 @@ public ApiResponse< Account > CreateWithHttpInfo (AccountCreate entity) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -340,8 +326,10 @@ public ApiResponse< Account > CreateWithHttpInfo (AccountCreate entity) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Account) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Account))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Account) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Account))); } /// /// Delete Deletes the entity with the given id. @@ -374,20 +362,12 @@ public ApiResponse DeleteWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null && id.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(id); // http body (model) parameter @@ -400,8 +380,8 @@ public ApiResponse DeleteWithHttpInfo (long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -413,7 +393,9 @@ public ApiResponse DeleteWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -448,27 +430,19 @@ public ApiResponse< Account > ReadWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -480,8 +454,10 @@ public ApiResponse< Account > ReadWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Account) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Account))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Account) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Account))); } /// /// Search Searches for the entities as specified by the given query. @@ -515,20 +491,12 @@ public ApiResponse< List > SearchWithHttpInfo (EntityQuery query) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (query != null && query.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(query); // http body (model) parameter @@ -541,8 +509,8 @@ public ApiResponse< List > SearchWithHttpInfo (EntityQuery query) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -554,8 +522,10 @@ public ApiResponse< List > SearchWithHttpInfo (EntityQuery query) } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -589,20 +559,12 @@ public ApiResponse< Account > UpdateWithHttpInfo (AccountUpdate entity) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (entity != null && entity.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(entity); // http body (model) parameter @@ -615,8 +577,8 @@ public ApiResponse< Account > UpdateWithHttpInfo (AccountUpdate entity) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -628,8 +590,10 @@ public ApiResponse< Account > UpdateWithHttpInfo (AccountUpdate entity) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Account) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Account))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Account) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Account))); } } } diff --git a/src/Wallee/Service/AnalyticsQueryService.cs b/src/Wallee/Service/AnalyticsQueryService.cs index 8645bff..5e3ef6b 100644 --- a/src/Wallee/Service/AnalyticsQueryService.cs +++ b/src/Wallee/Service/AnalyticsQueryService.cs @@ -178,7 +178,7 @@ public AnalyticsQueryService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -235,27 +235,19 @@ public ApiResponse CancelExecutionWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -267,7 +259,9 @@ public ApiResponse CancelExecutionWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -308,20 +302,12 @@ public ApiResponse< AnalyticsQueryResultBatch > FetchResultWithHttpInfo (long? i var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter if (timeout != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "timeout", timeout)); // query parameter if (maxRows != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "maxRows", maxRows)); // query parameter @@ -330,8 +316,8 @@ public ApiResponse< AnalyticsQueryResultBatch > FetchResultWithHttpInfo (long? i this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -343,8 +329,10 @@ public ApiResponse< AnalyticsQueryResultBatch > FetchResultWithHttpInfo (long? i } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AnalyticsQueryResultBatch) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AnalyticsQueryResultBatch))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (AnalyticsQueryResultBatch) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AnalyticsQueryResultBatch))); } /// /// Generate Download URL Generate a URL from which the results of a query execution can be downloaded in CSV format. @@ -380,28 +368,20 @@ public ApiResponse< string > GenerateDownloadUrlWithHttpInfo (long? id, int? tim var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "text/plain" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter if (timeout != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "timeout", timeout)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -413,8 +393,10 @@ public ApiResponse< string > GenerateDownloadUrlWithHttpInfo (long? id, int? tim } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); } /// /// Get Schemas Get the schemas describing the available tables and their columns. @@ -443,26 +425,18 @@ public ApiResponse< List > SchemaWithHttpInfo () var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -474,8 +448,10 @@ public ApiResponse< List > SchemaWithHttpInfo () } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Execution Status Returns the current status of a query execution. @@ -509,27 +485,19 @@ public ApiResponse< AnalyticsQueryExecution > StatusWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -541,8 +509,10 @@ public ApiResponse< AnalyticsQueryExecution > StatusWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AnalyticsQueryExecution) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AnalyticsQueryExecution))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (AnalyticsQueryExecution) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AnalyticsQueryExecution))); } /// /// Submit Query Submits a query for execution. @@ -576,20 +546,12 @@ public ApiResponse< AnalyticsQueryExecution > SubmitQueryWithHttpInfo (Analytics var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (query != null && query.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(query); // http body (model) parameter @@ -602,8 +564,8 @@ public ApiResponse< AnalyticsQueryExecution > SubmitQueryWithHttpInfo (Analytics this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -615,8 +577,10 @@ public ApiResponse< AnalyticsQueryExecution > SubmitQueryWithHttpInfo (Analytics } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (AnalyticsQueryExecution) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AnalyticsQueryExecution))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (AnalyticsQueryExecution) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(AnalyticsQueryExecution))); } } } diff --git a/src/Wallee/Service/ApplicationUserService.cs b/src/Wallee/Service/ApplicationUserService.cs index 8e0a318..4faba73 100644 --- a/src/Wallee/Service/ApplicationUserService.cs +++ b/src/Wallee/Service/ApplicationUserService.cs @@ -172,7 +172,7 @@ public ApplicationUserService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -227,20 +227,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (filter != null && filter.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(filter); // http body (model) parameter @@ -253,8 +245,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -266,8 +258,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the application user with the given properties. @@ -301,20 +295,12 @@ public ApiResponse< ApplicationUserCreateWithMacKey > CreateWithHttpInfo (Applic var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (entity != null && entity.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(entity); // http body (model) parameter @@ -327,8 +313,8 @@ public ApiResponse< ApplicationUserCreateWithMacKey > CreateWithHttpInfo (Applic this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -340,8 +326,10 @@ public ApiResponse< ApplicationUserCreateWithMacKey > CreateWithHttpInfo (Applic } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ApplicationUserCreateWithMacKey) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApplicationUserCreateWithMacKey))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ApplicationUserCreateWithMacKey) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApplicationUserCreateWithMacKey))); } /// /// Delete Deletes the entity with the given id. @@ -374,20 +362,12 @@ public ApiResponse DeleteWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null && id.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(id); // http body (model) parameter @@ -400,8 +380,8 @@ public ApiResponse DeleteWithHttpInfo (long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -413,7 +393,9 @@ public ApiResponse DeleteWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -448,27 +430,19 @@ public ApiResponse< ApplicationUser > ReadWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -480,8 +454,10 @@ public ApiResponse< ApplicationUser > ReadWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ApplicationUser) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApplicationUser))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ApplicationUser) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApplicationUser))); } /// /// Search Searches for the entities as specified by the given query. @@ -515,20 +491,12 @@ public ApiResponse< List > SearchWithHttpInfo (EntityQuery quer var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (query != null && query.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(query); // http body (model) parameter @@ -541,8 +509,8 @@ public ApiResponse< List > SearchWithHttpInfo (EntityQuery quer this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -554,8 +522,10 @@ public ApiResponse< List > SearchWithHttpInfo (EntityQuery quer } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -589,20 +559,12 @@ public ApiResponse< ApplicationUser > UpdateWithHttpInfo (ApplicationUserUpdate var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (entity != null && entity.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(entity); // http body (model) parameter @@ -615,8 +577,8 @@ public ApiResponse< ApplicationUser > UpdateWithHttpInfo (ApplicationUserUpdate this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -628,8 +590,10 @@ public ApiResponse< ApplicationUser > UpdateWithHttpInfo (ApplicationUserUpdate } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ApplicationUser) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApplicationUser))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ApplicationUser) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ApplicationUser))); } } } diff --git a/src/Wallee/Service/BankAccountService.cs b/src/Wallee/Service/BankAccountService.cs index a70e320..2068320 100644 --- a/src/Wallee/Service/BankAccountService.cs +++ b/src/Wallee/Service/BankAccountService.cs @@ -115,7 +115,7 @@ public BankAccountService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -175,20 +175,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -202,8 +194,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -255,28 +249,20 @@ public ApiResponse< BankAccount > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< BankAccount > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BankAccount) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BankAccount))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (BankAccount) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BankAccount))); } /// /// Search Searches for the entities as specified by the given query. @@ -328,20 +316,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entit var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -355,8 +335,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entit this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -368,8 +348,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entit } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/BankTransactionService.cs b/src/Wallee/Service/BankTransactionService.cs index 78c42ee..1b40ad8 100644 --- a/src/Wallee/Service/BankTransactionService.cs +++ b/src/Wallee/Service/BankTransactionService.cs @@ -115,7 +115,7 @@ public BankTransactionService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -175,20 +175,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -202,8 +194,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -255,28 +249,20 @@ public ApiResponse< BankTransaction > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< BankTransaction > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (BankTransaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BankTransaction))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (BankTransaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(BankTransaction))); } /// /// Search Searches for the entities as specified by the given query. @@ -328,20 +316,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -355,8 +335,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -368,8 +348,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/CardProcessingService.cs b/src/Wallee/Service/CardProcessingService.cs index a28ee79..01e77d7 100644 --- a/src/Wallee/Service/CardProcessingService.cs +++ b/src/Wallee/Service/CardProcessingService.cs @@ -100,7 +100,7 @@ public CardProcessingService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -173,20 +173,12 @@ public ApiResponse< Transaction > ProcessWithHttpInfo (long? spaceId, long? tran var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (transactionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "transactionId", transactionId)); // query parameter if (paymentMethodConfigurationId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "paymentMethodConfigurationId", paymentMethodConfigurationId)); // query parameter @@ -202,8 +194,8 @@ public ApiResponse< Transaction > ProcessWithHttpInfo (long? spaceId, long? tran this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public ApiResponse< Transaction > ProcessWithHttpInfo (long? spaceId, long? tran } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); } /// /// Process With 3-D Secure The process method will process the transaction with the given card details by eventually using 3-D secure. The buyer has to be redirect to the URL returned by this method. @@ -265,19 +259,12 @@ public ApiResponse< string > ProcessWith3DSecureWithHttpInfo (long? spaceId, lon var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (transactionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "transactionId", transactionId)); // query parameter if (paymentMethodConfigurationId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "paymentMethodConfigurationId", paymentMethodConfigurationId)); // query parameter @@ -293,8 +280,8 @@ public ApiResponse< string > ProcessWith3DSecureWithHttpInfo (long? spaceId, lon this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -306,8 +293,10 @@ public ApiResponse< string > ProcessWith3DSecureWithHttpInfo (long? spaceId, lon } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); } } } diff --git a/src/Wallee/Service/ChargeAttemptService.cs b/src/Wallee/Service/ChargeAttemptService.cs index fc5c00d..7637cee 100644 --- a/src/Wallee/Service/ChargeAttemptService.cs +++ b/src/Wallee/Service/ChargeAttemptService.cs @@ -115,7 +115,7 @@ public ChargeAttemptService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -175,20 +175,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -202,8 +194,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -255,28 +249,20 @@ public ApiResponse< ChargeAttempt > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< ChargeAttempt > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ChargeAttempt) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ChargeAttempt))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ChargeAttempt) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ChargeAttempt))); } /// /// Search Searches for the entities as specified by the given query. @@ -328,20 +316,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Ent var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -355,8 +335,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Ent this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -368,8 +348,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Ent } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/ChargeBankTransactionService.cs b/src/Wallee/Service/ChargeBankTransactionService.cs index 00e85ab..db0cfc3 100644 --- a/src/Wallee/Service/ChargeBankTransactionService.cs +++ b/src/Wallee/Service/ChargeBankTransactionService.cs @@ -115,7 +115,7 @@ public ChargeBankTransactionService(Wallee.Client.Configuration configuration = /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -175,20 +175,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -202,8 +194,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -255,28 +249,20 @@ public ApiResponse< ChargeBankTransaction > ReadWithHttpInfo (long? spaceId, lon var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< ChargeBankTransaction > ReadWithHttpInfo (long? spaceId, lon } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ChargeBankTransaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ChargeBankTransaction))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ChargeBankTransaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ChargeBankTransaction))); } /// /// Search Searches for the entities as specified by the given query. @@ -328,20 +316,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spac var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -355,8 +335,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spac this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -368,8 +348,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spac } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/ChargeFlowLevelPaymentLinkService.cs b/src/Wallee/Service/ChargeFlowLevelPaymentLinkService.cs index 019b3d4..8e189a5 100644 --- a/src/Wallee/Service/ChargeFlowLevelPaymentLinkService.cs +++ b/src/Wallee/Service/ChargeFlowLevelPaymentLinkService.cs @@ -115,7 +115,7 @@ public ChargeFlowLevelPaymentLinkService(Wallee.Client.Configuration configurati /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -175,20 +175,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -202,8 +194,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -255,28 +249,20 @@ public ApiResponse< ChargeFlowLevelPaymentLink > ReadWithHttpInfo (long? spaceId var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< ChargeFlowLevelPaymentLink > ReadWithHttpInfo (long? spaceId } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ChargeFlowLevelPaymentLink) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ChargeFlowLevelPaymentLink))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ChargeFlowLevelPaymentLink) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ChargeFlowLevelPaymentLink))); } /// /// Search Searches for the entities as specified by the given query. @@ -328,20 +316,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -355,8 +335,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -368,8 +348,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/ChargeFlowLevelService.cs b/src/Wallee/Service/ChargeFlowLevelService.cs index 3a5850c..a5e5eb3 100644 --- a/src/Wallee/Service/ChargeFlowLevelService.cs +++ b/src/Wallee/Service/ChargeFlowLevelService.cs @@ -138,7 +138,7 @@ public ChargeFlowLevelService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -198,20 +198,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -225,8 +217,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -238,8 +230,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -278,28 +272,20 @@ public ApiResponse< ChargeFlowLevel > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -311,8 +297,10 @@ public ApiResponse< ChargeFlowLevel > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ChargeFlowLevel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ChargeFlowLevel))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ChargeFlowLevel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ChargeFlowLevel))); } /// /// Search Searches for the entities as specified by the given query. @@ -351,20 +339,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -378,8 +358,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -391,8 +371,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Send Payment Link Sends the payment link of the charge flow level with the given 'id'. @@ -431,28 +413,20 @@ public ApiResponse< ChargeFlowLevel > SendMessageWithHttpInfo (long? spaceId, lo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -464,8 +438,10 @@ public ApiResponse< ChargeFlowLevel > SendMessageWithHttpInfo (long? spaceId, lo } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ChargeFlowLevel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ChargeFlowLevel))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ChargeFlowLevel) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ChargeFlowLevel))); } } } diff --git a/src/Wallee/Service/ChargeFlowService.cs b/src/Wallee/Service/ChargeFlowService.cs index fca2ab6..499a06d 100644 --- a/src/Wallee/Service/ChargeFlowService.cs +++ b/src/Wallee/Service/ChargeFlowService.cs @@ -211,7 +211,7 @@ public ChargeFlowService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -274,27 +274,19 @@ public ApiResponse< Transaction > ApplyFlowWithHttpInfo (long? spaceId, long? id var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -306,8 +298,10 @@ public ApiResponse< Transaction > ApplyFlowWithHttpInfo (long? spaceId, long? id } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); } /// /// Cancel Charge Flow This operation cancels the charge flow that is linked with the transaction indicated by the given ID. @@ -346,27 +340,19 @@ public ApiResponse< Transaction > CancelChargeFlowWithHttpInfo (long? spaceId, l var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -378,8 +364,10 @@ public ApiResponse< Transaction > CancelChargeFlowWithHttpInfo (long? spaceId, l } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); } /// /// Count Counts the number of items in the database as restricted by the given filter. @@ -415,20 +403,12 @@ public ApiResponse< Transaction > CancelChargeFlowWithHttpInfo (long? spaceId, l var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -442,8 +422,8 @@ public ApiResponse< Transaction > CancelChargeFlowWithHttpInfo (long? spaceId, l this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -455,8 +435,10 @@ public ApiResponse< Transaction > CancelChargeFlowWithHttpInfo (long? spaceId, l } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Fetch Charge Flow Payment Page URL This operation allows to fetch the payment page URL that is been applied on the charge flow linked with the provided transaction. The operation might return an empty result when no payment page is needed or can be invoked. @@ -495,28 +477,19 @@ public ApiResponse< string > FetchChargeFlowPaymentPageUrlWithHttpInfo (long? sp var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/plain;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -528,8 +501,10 @@ public ApiResponse< string > FetchChargeFlowPaymentPageUrlWithHttpInfo (long? sp } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -568,28 +543,20 @@ public ApiResponse< ChargeFlow > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -601,8 +568,10 @@ public ApiResponse< ChargeFlow > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ChargeFlow) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ChargeFlow))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ChargeFlow) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ChargeFlow))); } /// /// Search Searches for the entities as specified by the given query. @@ -641,20 +610,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entity var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -668,8 +629,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entity this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -681,8 +642,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entity } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// updateRecipient @@ -730,19 +693,11 @@ public ApiResponse UpdateRecipientWithHttpInfo (long? spaceId, long? tra var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (transactionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "transactionId", transactionId)); // query parameter if (type != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "type", type)); // query parameter @@ -751,8 +706,8 @@ public ApiResponse UpdateRecipientWithHttpInfo (long? spaceId, long? tra this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -764,7 +719,9 @@ public ApiResponse UpdateRecipientWithHttpInfo (long? spaceId, long? tra } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } } diff --git a/src/Wallee/Service/ConditionTypeService.cs b/src/Wallee/Service/ConditionTypeService.cs index 443cf16..1749bee 100644 --- a/src/Wallee/Service/ConditionTypeService.cs +++ b/src/Wallee/Service/ConditionTypeService.cs @@ -86,7 +86,7 @@ public ConditionTypeService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -139,26 +139,18 @@ public ApiResponse< List > AllWithHttpInfo () var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -170,8 +162,10 @@ public ApiResponse< List > AllWithHttpInfo () } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -205,27 +199,19 @@ public ApiResponse< ConditionType > ReadWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -237,8 +223,10 @@ public ApiResponse< ConditionType > ReadWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ConditionType) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ConditionType))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ConditionType) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ConditionType))); } } } diff --git a/src/Wallee/Service/CountryService.cs b/src/Wallee/Service/CountryService.cs index 56acdd4..1082f6b 100644 --- a/src/Wallee/Service/CountryService.cs +++ b/src/Wallee/Service/CountryService.cs @@ -65,7 +65,7 @@ public CountryService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -118,26 +118,18 @@ public ApiResponse< List > AllWithHttpInfo () var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -149,8 +141,10 @@ public ApiResponse< List > AllWithHttpInfo () } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/CountryStateService.cs b/src/Wallee/Service/CountryStateService.cs index a989e86..62fbbe7 100644 --- a/src/Wallee/Service/CountryStateService.cs +++ b/src/Wallee/Service/CountryStateService.cs @@ -86,7 +86,7 @@ public CountryStateService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -139,26 +139,18 @@ public ApiResponse< List > AllWithHttpInfo () var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -170,8 +162,10 @@ public ApiResponse< List > AllWithHttpInfo () } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Find by Country This operation returns all states for a given country. @@ -205,27 +199,19 @@ public ApiResponse< List > CountryWithHttpInfo (string code) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (code != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "code", code)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -237,8 +223,10 @@ public ApiResponse< List > CountryWithHttpInfo (string code) } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/CurrencyBankAccountService.cs b/src/Wallee/Service/CurrencyBankAccountService.cs index 31b77d7..b11930e 100644 --- a/src/Wallee/Service/CurrencyBankAccountService.cs +++ b/src/Wallee/Service/CurrencyBankAccountService.cs @@ -115,7 +115,7 @@ public CurrencyBankAccountService(Wallee.Client.Configuration configuration = nu /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -175,20 +175,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -202,8 +194,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -255,28 +249,20 @@ public ApiResponse< CurrencyBankAccount > ReadWithHttpInfo (long? spaceId, long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< CurrencyBankAccount > ReadWithHttpInfo (long? spaceId, long? } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (CurrencyBankAccount) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CurrencyBankAccount))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (CurrencyBankAccount) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CurrencyBankAccount))); } /// /// Search Searches for the entities as specified by the given query. @@ -328,20 +316,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceI var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -355,8 +335,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceI this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -368,8 +348,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceI } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/CurrencyService.cs b/src/Wallee/Service/CurrencyService.cs index 7933706..40bb557 100644 --- a/src/Wallee/Service/CurrencyService.cs +++ b/src/Wallee/Service/CurrencyService.cs @@ -65,7 +65,7 @@ public CurrencyService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -118,26 +118,18 @@ public ApiResponse< List > AllWithHttpInfo () var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -149,8 +141,10 @@ public ApiResponse< List > AllWithHttpInfo () } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/CustomerAddressService.cs b/src/Wallee/Service/CustomerAddressService.cs index 6914e0f..869d0fb 100644 --- a/src/Wallee/Service/CustomerAddressService.cs +++ b/src/Wallee/Service/CustomerAddressService.cs @@ -207,7 +207,7 @@ public CustomerAddressService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -267,20 +267,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -294,8 +286,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -307,8 +299,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -347,20 +341,12 @@ public ApiResponse< CustomerAddress > CreateWithHttpInfo (long? spaceId, Custome var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -374,8 +360,8 @@ public ApiResponse< CustomerAddress > CreateWithHttpInfo (long? spaceId, Custome this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -387,8 +373,10 @@ public ApiResponse< CustomerAddress > CreateWithHttpInfo (long? spaceId, Custome } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (CustomerAddress) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CustomerAddress))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (CustomerAddress) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CustomerAddress))); } /// /// Delete Deletes the entity with the given id. @@ -426,20 +414,12 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null && id.GetType() != typeof(byte[])) { @@ -453,8 +433,8 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -466,7 +446,9 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -506,28 +488,20 @@ public ApiResponse< CustomerAddress > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -539,8 +513,10 @@ public ApiResponse< CustomerAddress > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (CustomerAddress) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CustomerAddress))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (CustomerAddress) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CustomerAddress))); } /// /// Search Searches for the entities as specified by the given query. @@ -579,20 +555,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -606,8 +574,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -619,8 +587,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// selectDefaultAddress @@ -658,28 +628,20 @@ public ApiResponse SelectDefaultAddressWithHttpInfo (long? spaceId, long var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -691,7 +653,9 @@ public ApiResponse SelectDefaultAddressWithHttpInfo (long? spaceId, long } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -731,20 +695,12 @@ public ApiResponse< CustomerAddress > UpdateWithHttpInfo (long? spaceId, Custome var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -758,8 +714,8 @@ public ApiResponse< CustomerAddress > UpdateWithHttpInfo (long? spaceId, Custome this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -771,8 +727,10 @@ public ApiResponse< CustomerAddress > UpdateWithHttpInfo (long? spaceId, Custome } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (CustomerAddress) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CustomerAddress))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (CustomerAddress) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CustomerAddress))); } } } diff --git a/src/Wallee/Service/CustomerCommentService.cs b/src/Wallee/Service/CustomerCommentService.cs index 3b02399..0360f4b 100644 --- a/src/Wallee/Service/CustomerCommentService.cs +++ b/src/Wallee/Service/CustomerCommentService.cs @@ -230,7 +230,7 @@ public CustomerCommentService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -290,20 +290,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -317,8 +309,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -330,8 +322,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -370,20 +364,12 @@ public ApiResponse< CustomerComment > CreateWithHttpInfo (long? spaceId, Custome var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -397,8 +383,8 @@ public ApiResponse< CustomerComment > CreateWithHttpInfo (long? spaceId, Custome this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -410,8 +396,10 @@ public ApiResponse< CustomerComment > CreateWithHttpInfo (long? spaceId, Custome } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (CustomerComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CustomerComment))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (CustomerComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CustomerComment))); } /// /// Delete Deletes the entity with the given id. @@ -449,20 +437,12 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null && id.GetType() != typeof(byte[])) { @@ -476,8 +456,8 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -489,7 +469,9 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -528,28 +510,20 @@ public ApiResponse PinCommentWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -561,7 +535,9 @@ public ApiResponse PinCommentWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -601,28 +577,20 @@ public ApiResponse< CustomerComment > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -634,8 +602,10 @@ public ApiResponse< CustomerComment > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (CustomerComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CustomerComment))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (CustomerComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CustomerComment))); } /// /// Search Searches for the entities as specified by the given query. @@ -674,20 +644,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -701,8 +663,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -714,8 +676,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// unpinComment @@ -753,28 +717,20 @@ public ApiResponse UnpinCommentWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -786,7 +742,9 @@ public ApiResponse UnpinCommentWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -826,20 +784,12 @@ public ApiResponse< CustomerComment > UpdateWithHttpInfo (long? spaceId, Custome var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -853,8 +803,8 @@ public ApiResponse< CustomerComment > UpdateWithHttpInfo (long? spaceId, Custome this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -866,8 +816,10 @@ public ApiResponse< CustomerComment > UpdateWithHttpInfo (long? spaceId, Custome } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (CustomerComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CustomerComment))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (CustomerComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(CustomerComment))); } } } diff --git a/src/Wallee/Service/CustomerService.cs b/src/Wallee/Service/CustomerService.cs index ff4b241..5f66bd1 100644 --- a/src/Wallee/Service/CustomerService.cs +++ b/src/Wallee/Service/CustomerService.cs @@ -184,7 +184,7 @@ public CustomerService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -244,20 +244,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -271,8 +263,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -284,8 +276,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -324,20 +318,12 @@ public ApiResponse< Customer > CreateWithHttpInfo (long? spaceId, CustomerCreate var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -351,8 +337,8 @@ public ApiResponse< Customer > CreateWithHttpInfo (long? spaceId, CustomerCreate this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -364,8 +350,10 @@ public ApiResponse< Customer > CreateWithHttpInfo (long? spaceId, CustomerCreate } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Customer) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Customer))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Customer) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Customer))); } /// /// Delete Deletes the entity with the given id. @@ -403,20 +391,12 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null && id.GetType() != typeof(byte[])) { @@ -430,8 +410,8 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -443,7 +423,9 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -483,28 +465,20 @@ public ApiResponse< Customer > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -516,8 +490,10 @@ public ApiResponse< Customer > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Customer) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Customer))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Customer) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Customer))); } /// /// Search Searches for the entities as specified by the given query. @@ -556,20 +532,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, EntityQu var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -583,8 +551,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, EntityQu this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -596,8 +564,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, EntityQu } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -636,20 +606,12 @@ public ApiResponse< Customer > UpdateWithHttpInfo (long? spaceId, CustomerActive var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -663,8 +625,8 @@ public ApiResponse< Customer > UpdateWithHttpInfo (long? spaceId, CustomerActive this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -676,8 +638,10 @@ public ApiResponse< Customer > UpdateWithHttpInfo (long? spaceId, CustomerActive } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Customer) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Customer))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Customer) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Customer))); } } } diff --git a/src/Wallee/Service/DebtCollectionCaseService.cs b/src/Wallee/Service/DebtCollectionCaseService.cs index 9dd635e..f682f8e 100644 --- a/src/Wallee/Service/DebtCollectionCaseService.cs +++ b/src/Wallee/Service/DebtCollectionCaseService.cs @@ -330,7 +330,7 @@ public DebtCollectionCaseService(Wallee.Client.Configuration configuration = nul /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -403,18 +403,11 @@ public ApiResponse< DebtCollectionReceipt > AddCollectedAmountWithHttpInfo (long var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter if (collectedAmount != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "collectedAmount", collectedAmount)); // query parameter @@ -423,8 +416,8 @@ public ApiResponse< DebtCollectionReceipt > AddCollectedAmountWithHttpInfo (long this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -436,8 +429,10 @@ public ApiResponse< DebtCollectionReceipt > AddCollectedAmountWithHttpInfo (long } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DebtCollectionReceipt) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DebtCollectionReceipt))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (DebtCollectionReceipt) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DebtCollectionReceipt))); } /// /// Attach Document Attach an additional supporting document to the case. @@ -486,18 +481,11 @@ public ApiResponse< DebtCollectionCaseDocument > AttachDocumentWithHttpInfo (lon var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter if (fileName != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "fileName", fileName)); // query parameter @@ -506,8 +494,8 @@ public ApiResponse< DebtCollectionCaseDocument > AttachDocumentWithHttpInfo (lon this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -519,8 +507,10 @@ public ApiResponse< DebtCollectionCaseDocument > AttachDocumentWithHttpInfo (lon } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DebtCollectionCaseDocument) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DebtCollectionCaseDocument))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (DebtCollectionCaseDocument) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DebtCollectionCaseDocument))); } /// /// Close Closes the debt collection case, meaning no further money can be collected. @@ -559,26 +549,19 @@ public ApiResponse< DebtCollectionCase > CloseWithHttpInfo (long? spaceId, long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -590,8 +573,10 @@ public ApiResponse< DebtCollectionCase > CloseWithHttpInfo (long? spaceId, long? } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DebtCollectionCase) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DebtCollectionCase))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (DebtCollectionCase) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DebtCollectionCase))); } /// /// Count Counts the number of items in the database as restricted by the given filter. @@ -627,20 +612,12 @@ public ApiResponse< DebtCollectionCase > CloseWithHttpInfo (long? spaceId, long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -654,8 +631,8 @@ public ApiResponse< DebtCollectionCase > CloseWithHttpInfo (long? spaceId, long? this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -667,8 +644,10 @@ public ApiResponse< DebtCollectionCase > CloseWithHttpInfo (long? spaceId, long? } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -707,20 +686,12 @@ public ApiResponse< DebtCollectionCase > CreateWithHttpInfo (long? spaceId, Debt var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -734,8 +705,8 @@ public ApiResponse< DebtCollectionCase > CreateWithHttpInfo (long? spaceId, Debt this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -747,8 +718,10 @@ public ApiResponse< DebtCollectionCase > CreateWithHttpInfo (long? spaceId, Debt } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DebtCollectionCase) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DebtCollectionCase))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (DebtCollectionCase) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DebtCollectionCase))); } /// /// Delete Deletes the entity with the given id. @@ -786,20 +759,12 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null && id.GetType() != typeof(byte[])) { @@ -813,8 +778,8 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -826,7 +791,9 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -866,26 +833,19 @@ public ApiResponse< List > DocumentsWithHttpInfo (lo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -897,8 +857,10 @@ public ApiResponse< List > DocumentsWithHttpInfo (lo } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Mark Case As Prepared This operation will mark a debt collection case as prepared and allow the collection process to proceed. @@ -937,26 +899,19 @@ public ApiResponse< DebtCollectionCase > MarkAsPreparedWithHttpInfo (long? space var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -968,8 +923,10 @@ public ApiResponse< DebtCollectionCase > MarkAsPreparedWithHttpInfo (long? space } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DebtCollectionCase) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DebtCollectionCase))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (DebtCollectionCase) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DebtCollectionCase))); } /// /// Mark Case As Reviewed This operation will mark a debt collection case as reviewed and allow the collection process to proceed. @@ -1008,26 +965,19 @@ public ApiResponse< DebtCollectionCase > MarkAsReviewedWithHttpInfo (long? space var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1039,8 +989,10 @@ public ApiResponse< DebtCollectionCase > MarkAsReviewedWithHttpInfo (long? space } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DebtCollectionCase) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DebtCollectionCase))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (DebtCollectionCase) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DebtCollectionCase))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -1079,28 +1031,20 @@ public ApiResponse< DebtCollectionCase > ReadWithHttpInfo (long? spaceId, long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1112,8 +1056,10 @@ public ApiResponse< DebtCollectionCase > ReadWithHttpInfo (long? spaceId, long? } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DebtCollectionCase) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DebtCollectionCase))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (DebtCollectionCase) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DebtCollectionCase))); } /// /// Search Searches for the entities as specified by the given query. @@ -1152,20 +1098,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -1179,8 +1117,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1192,8 +1130,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -1232,20 +1172,12 @@ public ApiResponse< DebtCollectionCase > UpdateWithHttpInfo (long? spaceId, Debt var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -1259,8 +1191,8 @@ public ApiResponse< DebtCollectionCase > UpdateWithHttpInfo (long? spaceId, Debt this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1272,8 +1204,10 @@ public ApiResponse< DebtCollectionCase > UpdateWithHttpInfo (long? spaceId, Debt } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DebtCollectionCase) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DebtCollectionCase))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (DebtCollectionCase) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DebtCollectionCase))); } } } diff --git a/src/Wallee/Service/DebtCollectorConfigurationService.cs b/src/Wallee/Service/DebtCollectorConfigurationService.cs index ee8ff17..7b0a99b 100644 --- a/src/Wallee/Service/DebtCollectorConfigurationService.cs +++ b/src/Wallee/Service/DebtCollectorConfigurationService.cs @@ -115,7 +115,7 @@ public DebtCollectorConfigurationService(Wallee.Client.Configuration configurati /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -175,20 +175,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -202,8 +194,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -255,28 +249,20 @@ public ApiResponse< DebtCollectorConfiguration > ReadWithHttpInfo (long? spaceId var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< DebtCollectorConfiguration > ReadWithHttpInfo (long? spaceId } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DebtCollectorConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DebtCollectorConfiguration))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (DebtCollectorConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DebtCollectorConfiguration))); } /// /// Search Searches for the entities as specified by the given query. @@ -328,20 +316,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -355,8 +335,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -368,8 +348,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/DebtCollectorService.cs b/src/Wallee/Service/DebtCollectorService.cs index 6d921d9..0e2cf19 100644 --- a/src/Wallee/Service/DebtCollectorService.cs +++ b/src/Wallee/Service/DebtCollectorService.cs @@ -86,7 +86,7 @@ public DebtCollectorService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -139,26 +139,18 @@ public ApiResponse< List > AllWithHttpInfo () var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -170,8 +162,10 @@ public ApiResponse< List > AllWithHttpInfo () } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -205,27 +199,19 @@ public ApiResponse< DebtCollector > ReadWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -237,8 +223,10 @@ public ApiResponse< DebtCollector > ReadWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DebtCollector) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DebtCollector))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (DebtCollector) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DebtCollector))); } } } diff --git a/src/Wallee/Service/DeliveryIndicationService.cs b/src/Wallee/Service/DeliveryIndicationService.cs index 42c1177..8061a08 100644 --- a/src/Wallee/Service/DeliveryIndicationService.cs +++ b/src/Wallee/Service/DeliveryIndicationService.cs @@ -161,7 +161,7 @@ public DeliveryIndicationService(Wallee.Client.Configuration configuration = nul /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -221,20 +221,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -248,8 +240,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -261,8 +253,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// markAsNotSuitable This operation marks the delivery indication as not suitable. @@ -301,19 +295,11 @@ public ApiResponse< DeliveryIndication > MarkAsNotSuitableWithHttpInfo (long? sp var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (deliveryIndicationId != null && deliveryIndicationId.GetType() != typeof(byte[])) { @@ -327,8 +313,8 @@ public ApiResponse< DeliveryIndication > MarkAsNotSuitableWithHttpInfo (long? sp this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -340,8 +326,10 @@ public ApiResponse< DeliveryIndication > MarkAsNotSuitableWithHttpInfo (long? sp } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DeliveryIndication) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DeliveryIndication))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (DeliveryIndication) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DeliveryIndication))); } /// /// markAsSuitable This operation marks the delivery indication as suitable. @@ -380,19 +368,11 @@ public ApiResponse< DeliveryIndication > MarkAsSuitableWithHttpInfo (long? space var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (deliveryIndicationId != null && deliveryIndicationId.GetType() != typeof(byte[])) { @@ -406,8 +386,8 @@ public ApiResponse< DeliveryIndication > MarkAsSuitableWithHttpInfo (long? space this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -419,8 +399,10 @@ public ApiResponse< DeliveryIndication > MarkAsSuitableWithHttpInfo (long? space } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DeliveryIndication) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DeliveryIndication))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (DeliveryIndication) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DeliveryIndication))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -459,28 +441,20 @@ public ApiResponse< DeliveryIndication > ReadWithHttpInfo (long? spaceId, long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -492,8 +466,10 @@ public ApiResponse< DeliveryIndication > ReadWithHttpInfo (long? spaceId, long? } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DeliveryIndication) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DeliveryIndication))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (DeliveryIndication) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DeliveryIndication))); } /// /// Search Searches for the entities as specified by the given query. @@ -532,20 +508,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -559,8 +527,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -572,8 +540,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/DocumentTemplateService.cs b/src/Wallee/Service/DocumentTemplateService.cs index e7525b3..6b35b9d 100644 --- a/src/Wallee/Service/DocumentTemplateService.cs +++ b/src/Wallee/Service/DocumentTemplateService.cs @@ -115,7 +115,7 @@ public DocumentTemplateService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -175,20 +175,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -202,8 +194,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -255,28 +249,20 @@ public ApiResponse< DocumentTemplate > ReadWithHttpInfo (long? spaceId, long? id var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< DocumentTemplate > ReadWithHttpInfo (long? spaceId, long? id } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTemplate) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTemplate))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (DocumentTemplate) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTemplate))); } /// /// Search Searches for the entities as specified by the given query. @@ -328,20 +316,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -355,8 +335,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -368,8 +348,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/DocumentTemplateTypeService.cs b/src/Wallee/Service/DocumentTemplateTypeService.cs index 0d889fc..d218380 100644 --- a/src/Wallee/Service/DocumentTemplateTypeService.cs +++ b/src/Wallee/Service/DocumentTemplateTypeService.cs @@ -86,7 +86,7 @@ public DocumentTemplateTypeService(Wallee.Client.Configuration configuration = n /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -139,26 +139,18 @@ public ApiResponse< List > AllWithHttpInfo () var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -170,8 +162,10 @@ public ApiResponse< List > AllWithHttpInfo () } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -205,27 +199,19 @@ public ApiResponse< DocumentTemplateType > ReadWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -237,8 +223,10 @@ public ApiResponse< DocumentTemplateType > ReadWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (DocumentTemplateType) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTemplateType))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (DocumentTemplateType) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(DocumentTemplateType))); } } } diff --git a/src/Wallee/Service/ExternalTransferBankTransactionService.cs b/src/Wallee/Service/ExternalTransferBankTransactionService.cs index e4cc5f1..06226b1 100644 --- a/src/Wallee/Service/ExternalTransferBankTransactionService.cs +++ b/src/Wallee/Service/ExternalTransferBankTransactionService.cs @@ -115,7 +115,7 @@ public ExternalTransferBankTransactionService(Wallee.Client.Configuration config /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -175,20 +175,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -202,8 +194,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -255,28 +249,20 @@ public ApiResponse< ExternalTransferBankTransaction > ReadWithHttpInfo (long? sp var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< ExternalTransferBankTransaction > ReadWithHttpInfo (long? sp } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ExternalTransferBankTransaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ExternalTransferBankTransaction))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ExternalTransferBankTransaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ExternalTransferBankTransaction))); } /// /// Search Searches for the entities as specified by the given query. @@ -328,20 +316,12 @@ public ApiResponse< List > SearchWithHttpInfo ( var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -355,8 +335,8 @@ public ApiResponse< List > SearchWithHttpInfo ( this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -368,8 +348,10 @@ public ApiResponse< List > SearchWithHttpInfo ( } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/HumanUserService.cs b/src/Wallee/Service/HumanUserService.cs index 3873f23..4add017 100644 --- a/src/Wallee/Service/HumanUserService.cs +++ b/src/Wallee/Service/HumanUserService.cs @@ -193,7 +193,7 @@ public HumanUserService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -248,20 +248,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (filter != null && filter.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(filter); // http body (model) parameter @@ -274,8 +266,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -287,8 +279,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -322,20 +316,12 @@ public ApiResponse< HumanUser > CreateWithHttpInfo (HumanUserCreate entity) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (entity != null && entity.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(entity); // http body (model) parameter @@ -348,8 +334,8 @@ public ApiResponse< HumanUser > CreateWithHttpInfo (HumanUserCreate entity) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -361,8 +347,10 @@ public ApiResponse< HumanUser > CreateWithHttpInfo (HumanUserCreate entity) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (HumanUser) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(HumanUser))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (HumanUser) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(HumanUser))); } /// /// Delete Deletes the entity with the given id. @@ -395,20 +383,12 @@ public ApiResponse DeleteWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null && id.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(id); // http body (model) parameter @@ -421,8 +401,8 @@ public ApiResponse DeleteWithHttpInfo (long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -434,7 +414,9 @@ public ApiResponse DeleteWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -469,21 +451,12 @@ public ApiResponse< byte[] > ExportWithHttpInfo (EntityExportRequest request) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8", - "text/csv" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (request != null && request.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter @@ -496,8 +469,8 @@ public ApiResponse< byte[] > ExportWithHttpInfo (EntityExportRequest request) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -509,8 +482,10 @@ public ApiResponse< byte[] > ExportWithHttpInfo (EntityExportRequest request) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (byte[]) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(byte[]))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (byte[]) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(byte[]))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -544,27 +519,19 @@ public ApiResponse< HumanUser > ReadWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -576,8 +543,10 @@ public ApiResponse< HumanUser > ReadWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (HumanUser) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(HumanUser))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (HumanUser) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(HumanUser))); } /// /// Search Searches for the entities as specified by the given query. @@ -611,20 +580,12 @@ public ApiResponse< List > SearchWithHttpInfo (EntityQuery query) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (query != null && query.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(query); // http body (model) parameter @@ -637,8 +598,8 @@ public ApiResponse< List > SearchWithHttpInfo (EntityQuery query) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -650,8 +611,10 @@ public ApiResponse< List > SearchWithHttpInfo (EntityQuery query) } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -685,20 +648,12 @@ public ApiResponse< HumanUser > UpdateWithHttpInfo (HumanUserUpdate entity) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (entity != null && entity.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(entity); // http body (model) parameter @@ -711,8 +666,8 @@ public ApiResponse< HumanUser > UpdateWithHttpInfo (HumanUserUpdate entity) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -724,8 +679,10 @@ public ApiResponse< HumanUser > UpdateWithHttpInfo (HumanUserUpdate entity) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (HumanUser) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(HumanUser))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (HumanUser) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(HumanUser))); } } } diff --git a/src/Wallee/Service/InstallmentPaymentService.cs b/src/Wallee/Service/InstallmentPaymentService.cs index 8eaed42..e36a606 100644 --- a/src/Wallee/Service/InstallmentPaymentService.cs +++ b/src/Wallee/Service/InstallmentPaymentService.cs @@ -140,7 +140,7 @@ public InstallmentPaymentService(Wallee.Client.Configuration configuration = nul /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -203,20 +203,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -230,8 +222,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -243,8 +235,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Installment Payment This operation creates based up on the given transaction an installment payment. @@ -288,19 +282,11 @@ public ApiResponse< InstallmentPayment > CreateInstallmentPaymentWithHttpInfo (l var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (transactionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "transactionId", transactionId)); // query parameter if (installmentPlanConfiguration != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "installmentPlanConfiguration", installmentPlanConfiguration)); // query parameter @@ -308,8 +294,8 @@ public ApiResponse< InstallmentPayment > CreateInstallmentPaymentWithHttpInfo (l this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -321,8 +307,10 @@ public ApiResponse< InstallmentPayment > CreateInstallmentPaymentWithHttpInfo (l } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (InstallmentPayment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InstallmentPayment))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (InstallmentPayment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InstallmentPayment))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -361,28 +349,20 @@ public ApiResponse< InstallmentPayment > ReadWithHttpInfo (long? spaceId, long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -394,8 +374,10 @@ public ApiResponse< InstallmentPayment > ReadWithHttpInfo (long? spaceId, long? } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (InstallmentPayment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InstallmentPayment))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (InstallmentPayment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InstallmentPayment))); } /// /// Search Searches for the entities as specified by the given query. @@ -434,20 +416,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -461,8 +435,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -474,8 +448,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/InstallmentPaymentSliceService.cs b/src/Wallee/Service/InstallmentPaymentSliceService.cs index b5c9d9f..71202db 100644 --- a/src/Wallee/Service/InstallmentPaymentSliceService.cs +++ b/src/Wallee/Service/InstallmentPaymentSliceService.cs @@ -115,7 +115,7 @@ public InstallmentPaymentSliceService(Wallee.Client.Configuration configuration /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -178,20 +178,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -205,8 +197,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -218,8 +210,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -258,28 +252,20 @@ public ApiResponse< InstallmentPaymentSlice > ReadWithHttpInfo (long? spaceId, l var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -291,8 +277,10 @@ public ApiResponse< InstallmentPaymentSlice > ReadWithHttpInfo (long? spaceId, l } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (InstallmentPaymentSlice) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InstallmentPaymentSlice))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (InstallmentPaymentSlice) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InstallmentPaymentSlice))); } /// /// Search Searches for the entities as specified by the given query. @@ -331,20 +319,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? sp var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -358,8 +338,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? sp this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -371,8 +351,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? sp } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/InstallmentPlanCalculationService.cs b/src/Wallee/Service/InstallmentPlanCalculationService.cs index 5d3f581..8cda167 100644 --- a/src/Wallee/Service/InstallmentPlanCalculationService.cs +++ b/src/Wallee/Service/InstallmentPlanCalculationService.cs @@ -69,7 +69,7 @@ public InstallmentPlanCalculationService(Wallee.Client.Configuration configurati /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -132,27 +132,19 @@ public ApiResponse< List > CalculatePlansWithHttpInfo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (transactionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "transactionId", transactionId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -164,8 +156,10 @@ public ApiResponse< List > CalculatePlansWithHttpInfo } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/InstallmentPlanConfigurationService.cs b/src/Wallee/Service/InstallmentPlanConfigurationService.cs index 978355b..f601c56 100644 --- a/src/Wallee/Service/InstallmentPlanConfigurationService.cs +++ b/src/Wallee/Service/InstallmentPlanConfigurationService.cs @@ -115,7 +115,7 @@ public InstallmentPlanConfigurationService(Wallee.Client.Configuration configura /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -178,20 +178,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -205,8 +197,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -218,8 +210,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -258,28 +252,20 @@ public ApiResponse< InstallmentPlanConfiguration > ReadWithHttpInfo (long? space var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -291,8 +277,10 @@ public ApiResponse< InstallmentPlanConfiguration > ReadWithHttpInfo (long? space } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (InstallmentPlanConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InstallmentPlanConfiguration))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (InstallmentPlanConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InstallmentPlanConfiguration))); } /// /// Search Searches for the entities as specified by the given query. @@ -331,20 +319,12 @@ public ApiResponse< List > SearchWithHttpInfo (lon var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -358,8 +338,8 @@ public ApiResponse< List > SearchWithHttpInfo (lon this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -371,8 +351,10 @@ public ApiResponse< List > SearchWithHttpInfo (lon } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/InstallmentPlanSliceConfigurationService.cs b/src/Wallee/Service/InstallmentPlanSliceConfigurationService.cs index dd99069..81b9389 100644 --- a/src/Wallee/Service/InstallmentPlanSliceConfigurationService.cs +++ b/src/Wallee/Service/InstallmentPlanSliceConfigurationService.cs @@ -115,7 +115,7 @@ public InstallmentPlanSliceConfigurationService(Wallee.Client.Configuration conf /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -178,20 +178,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -205,8 +197,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -218,8 +210,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -258,28 +252,20 @@ public ApiResponse< InstallmentPlanSliceConfiguration > ReadWithHttpInfo (long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -291,8 +277,10 @@ public ApiResponse< InstallmentPlanSliceConfiguration > ReadWithHttpInfo (long? } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (InstallmentPlanSliceConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InstallmentPlanSliceConfiguration))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (InstallmentPlanSliceConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InstallmentPlanSliceConfiguration))); } /// /// Search Searches for the entities as specified by the given query. @@ -331,20 +319,12 @@ public ApiResponse< List > SearchWithHttpInfo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -358,8 +338,8 @@ public ApiResponse< List > SearchWithHttpInfo this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -371,8 +351,10 @@ public ApiResponse< List > SearchWithHttpInfo } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/InternalTransferBankTransactionService.cs b/src/Wallee/Service/InternalTransferBankTransactionService.cs index 358b854..09de3aa 100644 --- a/src/Wallee/Service/InternalTransferBankTransactionService.cs +++ b/src/Wallee/Service/InternalTransferBankTransactionService.cs @@ -115,7 +115,7 @@ public InternalTransferBankTransactionService(Wallee.Client.Configuration config /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -175,20 +175,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -202,8 +194,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -255,28 +249,20 @@ public ApiResponse< InternalTransferBankTransaction > ReadWithHttpInfo (long? sp var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< InternalTransferBankTransaction > ReadWithHttpInfo (long? sp } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (InternalTransferBankTransaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InternalTransferBankTransaction))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (InternalTransferBankTransaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InternalTransferBankTransaction))); } /// /// Search Searches for the entities as specified by the given query. @@ -328,20 +316,12 @@ public ApiResponse< List > SearchWithHttpInfo ( var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -355,8 +335,8 @@ public ApiResponse< List > SearchWithHttpInfo ( this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -368,8 +348,10 @@ public ApiResponse< List > SearchWithHttpInfo ( } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/InvoiceReconciliationRecordInvoiceLinkService.cs b/src/Wallee/Service/InvoiceReconciliationRecordInvoiceLinkService.cs index 7b3cd2c..13fa987 100644 --- a/src/Wallee/Service/InvoiceReconciliationRecordInvoiceLinkService.cs +++ b/src/Wallee/Service/InvoiceReconciliationRecordInvoiceLinkService.cs @@ -167,7 +167,7 @@ public InvoiceReconciliationRecordInvoiceLinkService(Wallee.Client.Configuration /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -227,20 +227,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -254,8 +246,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -267,8 +259,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Link Invoice Links the invoice reconciliation record with the provided invoice. @@ -314,18 +308,11 @@ public ApiResponse< InvoiceReconciliationRecordInvoiceLink > LinkWithHttpInfo (l var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (recordId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "recordId", recordId)); // query parameter if (completionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "completionId", completionId)); // query parameter @@ -334,8 +321,8 @@ public ApiResponse< InvoiceReconciliationRecordInvoiceLink > LinkWithHttpInfo (l this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -347,8 +334,10 @@ public ApiResponse< InvoiceReconciliationRecordInvoiceLink > LinkWithHttpInfo (l } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (InvoiceReconciliationRecordInvoiceLink) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InvoiceReconciliationRecordInvoiceLink))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (InvoiceReconciliationRecordInvoiceLink) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InvoiceReconciliationRecordInvoiceLink))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -387,28 +376,20 @@ public ApiResponse< InvoiceReconciliationRecordInvoiceLink > ReadWithHttpInfo (l var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -420,8 +401,10 @@ public ApiResponse< InvoiceReconciliationRecordInvoiceLink > ReadWithHttpInfo (l } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (InvoiceReconciliationRecordInvoiceLink) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InvoiceReconciliationRecordInvoiceLink))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (InvoiceReconciliationRecordInvoiceLink) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InvoiceReconciliationRecordInvoiceLink))); } /// /// Search Searches for the entities as specified by the given query. @@ -460,20 +443,12 @@ public ApiResponse< List > SearchWithHtt var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -487,8 +462,8 @@ public ApiResponse< List > SearchWithHtt this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -500,8 +475,10 @@ public ApiResponse< List > SearchWithHtt } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Unlink Invoice Unlinks the invoice reconciliation record from the provided invoice. @@ -544,18 +521,11 @@ public ApiResponse UnlinkTransactionWithHttpInfo (long? spaceId, long? r var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (recordId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "recordId", recordId)); // query parameter if (completionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "completionId", completionId)); // query parameter @@ -563,8 +533,8 @@ public ApiResponse UnlinkTransactionWithHttpInfo (long? spaceId, long? r this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -576,7 +546,9 @@ public ApiResponse UnlinkTransactionWithHttpInfo (long? spaceId, long? r } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } } diff --git a/src/Wallee/Service/InvoiceReconciliationRecordService.cs b/src/Wallee/Service/InvoiceReconciliationRecordService.cs index 8ff697b..10fbd38 100644 --- a/src/Wallee/Service/InvoiceReconciliationRecordService.cs +++ b/src/Wallee/Service/InvoiceReconciliationRecordService.cs @@ -184,7 +184,7 @@ public InvoiceReconciliationRecordService(Wallee.Client.Configuration configurat /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -244,20 +244,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -271,8 +263,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -284,8 +276,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Discard Discards the invoice reconciliation record. @@ -323,26 +317,19 @@ public ApiResponse DiscardWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -354,7 +341,9 @@ public ApiResponse DiscardWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -394,28 +383,20 @@ public ApiResponse< InvoiceReconciliationRecord > ReadWithHttpInfo (long? spaceI var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -427,8 +408,10 @@ public ApiResponse< InvoiceReconciliationRecord > ReadWithHttpInfo (long? spaceI } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (InvoiceReconciliationRecord) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InvoiceReconciliationRecord))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (InvoiceReconciliationRecord) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InvoiceReconciliationRecord))); } /// /// Resolve Resolves the invoice reconciliation record. @@ -466,26 +449,19 @@ public ApiResponse ResolveWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -497,7 +473,9 @@ public ApiResponse ResolveWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -537,20 +515,12 @@ public ApiResponse< List > SearchWithHttpInfo (long var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -564,8 +534,8 @@ public ApiResponse< List > SearchWithHttpInfo (long this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -577,8 +547,10 @@ public ApiResponse< List > SearchWithHttpInfo (long } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Search for matchable invoices by query Searches for transaction invoices by given query. @@ -617,20 +589,12 @@ public ApiResponse< List > SearchForInvoicesByQueryWithHttpI var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -644,8 +608,8 @@ public ApiResponse< List > SearchForInvoicesByQueryWithHttpI this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -657,8 +621,10 @@ public ApiResponse< List > SearchForInvoicesByQueryWithHttpI } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/InvoiceReimbursementService.cs b/src/Wallee/Service/InvoiceReimbursementService.cs index c7e0120..7f7a70b 100644 --- a/src/Wallee/Service/InvoiceReimbursementService.cs +++ b/src/Wallee/Service/InvoiceReimbursementService.cs @@ -167,7 +167,7 @@ public InvoiceReimbursementService(Wallee.Client.Configuration configuration = n /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -227,20 +227,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -254,8 +246,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -267,8 +259,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -307,28 +301,20 @@ public ApiResponse< InvoiceReimbursement > ReadWithHttpInfo (long? spaceId, long var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -340,8 +326,10 @@ public ApiResponse< InvoiceReimbursement > ReadWithHttpInfo (long? spaceId, long } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (InvoiceReimbursement) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InvoiceReimbursement))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (InvoiceReimbursement) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InvoiceReimbursement))); } /// /// Search Searches for the entities as specified by the given query. @@ -380,20 +368,12 @@ public ApiResponse< List > SearchWithHt var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -407,8 +387,8 @@ public ApiResponse< List > SearchWithHt this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -420,8 +400,10 @@ public ApiResponse< List > SearchWithHt } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update payment connector configuration Updates payment connector configuration for reimbursement which is in manual review. @@ -464,18 +446,11 @@ public ApiResponse UpdateConnectorWithHttpInfo (long? spaceId, long? id, var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter if (paymentConnectorConfigurationId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "paymentConnectorConfigurationId", paymentConnectorConfigurationId)); // query parameter @@ -483,8 +458,8 @@ public ApiResponse UpdateConnectorWithHttpInfo (long? spaceId, long? id, this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -496,7 +471,9 @@ public ApiResponse UpdateConnectorWithHttpInfo (long? spaceId, long? id, } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -539,18 +516,11 @@ public ApiResponse UpdateIbanWithHttpInfo (long? spaceId, long? id, stri var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter if (recipientIban != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "recipientIban", recipientIban)); // query parameter @@ -559,8 +529,8 @@ public ApiResponse UpdateIbanWithHttpInfo (long? spaceId, long? id, stri this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -572,7 +542,9 @@ public ApiResponse UpdateIbanWithHttpInfo (long? spaceId, long? id, stri } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } } diff --git a/src/Wallee/Service/LabelDescriptionGroupService.cs b/src/Wallee/Service/LabelDescriptionGroupService.cs index 0749b39..937adbb 100644 --- a/src/Wallee/Service/LabelDescriptionGroupService.cs +++ b/src/Wallee/Service/LabelDescriptionGroupService.cs @@ -86,7 +86,7 @@ public LabelDescriptionGroupService(Wallee.Client.Configuration configuration = /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -139,26 +139,18 @@ public ApiResponse< List > AllWithHttpInfo () var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -170,8 +162,10 @@ public ApiResponse< List > AllWithHttpInfo () } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -205,27 +199,19 @@ public ApiResponse< LabelDescriptorGroup > ReadWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -237,8 +223,10 @@ public ApiResponse< LabelDescriptorGroup > ReadWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LabelDescriptorGroup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LabelDescriptorGroup))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (LabelDescriptorGroup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LabelDescriptorGroup))); } } } diff --git a/src/Wallee/Service/LabelDescriptionService.cs b/src/Wallee/Service/LabelDescriptionService.cs index 196cf67..d4edcc7 100644 --- a/src/Wallee/Service/LabelDescriptionService.cs +++ b/src/Wallee/Service/LabelDescriptionService.cs @@ -86,7 +86,7 @@ public LabelDescriptionService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -139,26 +139,18 @@ public ApiResponse< List > AllWithHttpInfo () var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -170,8 +162,10 @@ public ApiResponse< List > AllWithHttpInfo () } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -205,27 +199,19 @@ public ApiResponse< LabelDescriptor > ReadWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -237,8 +223,10 @@ public ApiResponse< LabelDescriptor > ReadWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LabelDescriptor) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LabelDescriptor))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (LabelDescriptor) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LabelDescriptor))); } } } diff --git a/src/Wallee/Service/LanguageService.cs b/src/Wallee/Service/LanguageService.cs index 58b60bd..90b5db5 100644 --- a/src/Wallee/Service/LanguageService.cs +++ b/src/Wallee/Service/LanguageService.cs @@ -65,7 +65,7 @@ public LanguageService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -118,26 +118,18 @@ public ApiResponse< List > AllWithHttpInfo () var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -149,8 +141,10 @@ public ApiResponse< List > AllWithHttpInfo () } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/LegalOrganizationFormService.cs b/src/Wallee/Service/LegalOrganizationFormService.cs index 9b26a5b..5e89349 100644 --- a/src/Wallee/Service/LegalOrganizationFormService.cs +++ b/src/Wallee/Service/LegalOrganizationFormService.cs @@ -107,7 +107,7 @@ public LegalOrganizationFormService(Wallee.Client.Configuration configuration = /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -160,26 +160,18 @@ public ApiResponse< List > AllWithHttpInfo () var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -191,8 +183,10 @@ public ApiResponse< List > AllWithHttpInfo () } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Find by Country This operation returns all legal organization forms for a given country. @@ -226,27 +220,19 @@ public ApiResponse< List > CountryWithHttpInfo (string co var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (code != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "code", code)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -258,8 +244,10 @@ public ApiResponse< List > CountryWithHttpInfo (string co } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -293,27 +281,19 @@ public ApiResponse< LegalOrganizationForm > ReadWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -325,8 +305,10 @@ public ApiResponse< LegalOrganizationForm > ReadWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (LegalOrganizationForm) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LegalOrganizationForm))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (LegalOrganizationForm) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LegalOrganizationForm))); } } } diff --git a/src/Wallee/Service/ManualTaskService.cs b/src/Wallee/Service/ManualTaskService.cs index f197628..8b3455f 100644 --- a/src/Wallee/Service/ManualTaskService.cs +++ b/src/Wallee/Service/ManualTaskService.cs @@ -115,7 +115,7 @@ public ManualTaskService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -175,20 +175,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -202,8 +194,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -255,28 +249,20 @@ public ApiResponse< ManualTask > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< ManualTask > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ManualTask) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ManualTask))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ManualTask) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ManualTask))); } /// /// Search Searches for the entities as specified by the given query. @@ -328,20 +316,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entity var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -355,8 +335,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entity this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -368,8 +348,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entity } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/MerticUsageService.cs b/src/Wallee/Service/MerticUsageService.cs index 2865b1e..d7b0a27 100644 --- a/src/Wallee/Service/MerticUsageService.cs +++ b/src/Wallee/Service/MerticUsageService.cs @@ -71,7 +71,7 @@ public MerticUsageService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -139,20 +139,12 @@ public ApiResponse< List > CalculateWithHttpInfo (long? spaceId, Da var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (start != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "start", start)); // query parameter if (end != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "end", end)); // query parameter @@ -160,8 +152,8 @@ public ApiResponse< List > CalculateWithHttpInfo (long? spaceId, Da this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -173,8 +165,10 @@ public ApiResponse< List > CalculateWithHttpInfo (long? spaceId, Da } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/PaymentConnectorConfigurationService.cs b/src/Wallee/Service/PaymentConnectorConfigurationService.cs index 52bcf46..069443a 100644 --- a/src/Wallee/Service/PaymentConnectorConfigurationService.cs +++ b/src/Wallee/Service/PaymentConnectorConfigurationService.cs @@ -115,7 +115,7 @@ public PaymentConnectorConfigurationService(Wallee.Client.Configuration configur /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -175,20 +175,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -202,8 +194,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -255,28 +249,20 @@ public ApiResponse< PaymentConnectorConfiguration > ReadWithHttpInfo (long? spac var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< PaymentConnectorConfiguration > ReadWithHttpInfo (long? spac } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PaymentConnectorConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentConnectorConfiguration))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (PaymentConnectorConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentConnectorConfiguration))); } /// /// Search Searches for the entities as specified by the given query. @@ -328,20 +316,12 @@ public ApiResponse< List > SearchWithHttpInfo (lo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -355,8 +335,8 @@ public ApiResponse< List > SearchWithHttpInfo (lo this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -368,8 +348,10 @@ public ApiResponse< List > SearchWithHttpInfo (lo } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/PaymentConnectorService.cs b/src/Wallee/Service/PaymentConnectorService.cs index 3705d5f..8e478f0 100644 --- a/src/Wallee/Service/PaymentConnectorService.cs +++ b/src/Wallee/Service/PaymentConnectorService.cs @@ -86,7 +86,7 @@ public PaymentConnectorService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -139,26 +139,18 @@ public ApiResponse< List > AllWithHttpInfo () var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -170,8 +162,10 @@ public ApiResponse< List > AllWithHttpInfo () } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -205,27 +199,19 @@ public ApiResponse< PaymentConnector > ReadWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -237,8 +223,10 @@ public ApiResponse< PaymentConnector > ReadWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PaymentConnector) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentConnector))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (PaymentConnector) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentConnector))); } } } diff --git a/src/Wallee/Service/PaymentLinkService.cs b/src/Wallee/Service/PaymentLinkService.cs index 9f6a54b..499b4ea 100644 --- a/src/Wallee/Service/PaymentLinkService.cs +++ b/src/Wallee/Service/PaymentLinkService.cs @@ -184,7 +184,7 @@ public PaymentLinkService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -244,20 +244,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -271,8 +263,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -284,8 +276,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -324,20 +318,12 @@ public ApiResponse< PaymentLink > CreateWithHttpInfo (long? spaceId, PaymentLink var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -351,8 +337,8 @@ public ApiResponse< PaymentLink > CreateWithHttpInfo (long? spaceId, PaymentLink this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -364,8 +350,10 @@ public ApiResponse< PaymentLink > CreateWithHttpInfo (long? spaceId, PaymentLink } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PaymentLink) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentLink))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (PaymentLink) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentLink))); } /// /// Delete Deletes the entity with the given id. @@ -403,20 +391,12 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null && id.GetType() != typeof(byte[])) { @@ -430,8 +410,8 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -443,7 +423,9 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -483,28 +465,20 @@ public ApiResponse< PaymentLink > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -516,8 +490,10 @@ public ApiResponse< PaymentLink > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PaymentLink) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentLink))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (PaymentLink) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentLink))); } /// /// Search Searches for the entities as specified by the given query. @@ -556,20 +532,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entit var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -583,8 +551,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entit this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -596,8 +564,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entit } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -636,20 +606,12 @@ public ApiResponse< PaymentLink > UpdateWithHttpInfo (long? spaceId, PaymentLink var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -663,8 +625,8 @@ public ApiResponse< PaymentLink > UpdateWithHttpInfo (long? spaceId, PaymentLink this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -676,8 +638,10 @@ public ApiResponse< PaymentLink > UpdateWithHttpInfo (long? spaceId, PaymentLink } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PaymentLink) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentLink))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (PaymentLink) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentLink))); } } } diff --git a/src/Wallee/Service/PaymentMethodBrandService.cs b/src/Wallee/Service/PaymentMethodBrandService.cs index 43236c3..5d03332 100644 --- a/src/Wallee/Service/PaymentMethodBrandService.cs +++ b/src/Wallee/Service/PaymentMethodBrandService.cs @@ -86,7 +86,7 @@ public PaymentMethodBrandService(Wallee.Client.Configuration configuration = nul /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -139,26 +139,18 @@ public ApiResponse< List > AllWithHttpInfo () var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -170,8 +162,10 @@ public ApiResponse< List > AllWithHttpInfo () } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -205,27 +199,19 @@ public ApiResponse< PaymentMethodBrand > ReadWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -237,8 +223,10 @@ public ApiResponse< PaymentMethodBrand > ReadWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PaymentMethodBrand) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentMethodBrand))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (PaymentMethodBrand) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentMethodBrand))); } } } diff --git a/src/Wallee/Service/PaymentMethodConfigurationService.cs b/src/Wallee/Service/PaymentMethodConfigurationService.cs index 3923300..f61f96e 100644 --- a/src/Wallee/Service/PaymentMethodConfigurationService.cs +++ b/src/Wallee/Service/PaymentMethodConfigurationService.cs @@ -115,7 +115,7 @@ public PaymentMethodConfigurationService(Wallee.Client.Configuration configurati /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -175,20 +175,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -202,8 +194,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -255,28 +249,20 @@ public ApiResponse< PaymentMethodConfiguration > ReadWithHttpInfo (long? spaceId var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< PaymentMethodConfiguration > ReadWithHttpInfo (long? spaceId } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PaymentMethodConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentMethodConfiguration))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (PaymentMethodConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentMethodConfiguration))); } /// /// Search Searches for the entities as specified by the given query. @@ -328,20 +316,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -355,8 +335,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -368,8 +348,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/PaymentMethodService.cs b/src/Wallee/Service/PaymentMethodService.cs index 6287677..15655a5 100644 --- a/src/Wallee/Service/PaymentMethodService.cs +++ b/src/Wallee/Service/PaymentMethodService.cs @@ -86,7 +86,7 @@ public PaymentMethodService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -139,26 +139,18 @@ public ApiResponse< List > AllWithHttpInfo () var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -170,8 +162,10 @@ public ApiResponse< List > AllWithHttpInfo () } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -205,27 +199,19 @@ public ApiResponse< PaymentMethod > ReadWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -237,8 +223,10 @@ public ApiResponse< PaymentMethod > ReadWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PaymentMethod) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentMethod))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (PaymentMethod) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentMethod))); } } } diff --git a/src/Wallee/Service/PaymentProcessorConfigurationService.cs b/src/Wallee/Service/PaymentProcessorConfigurationService.cs index 5f6b59a..f3d9230 100644 --- a/src/Wallee/Service/PaymentProcessorConfigurationService.cs +++ b/src/Wallee/Service/PaymentProcessorConfigurationService.cs @@ -115,7 +115,7 @@ public PaymentProcessorConfigurationService(Wallee.Client.Configuration configur /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -175,20 +175,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -202,8 +194,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -255,28 +249,20 @@ public ApiResponse< PaymentProcessorConfiguration > ReadWithHttpInfo (long? spac var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< PaymentProcessorConfiguration > ReadWithHttpInfo (long? spac } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PaymentProcessorConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentProcessorConfiguration))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (PaymentProcessorConfiguration) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentProcessorConfiguration))); } /// /// Search Searches for the entities as specified by the given query. @@ -328,20 +316,12 @@ public ApiResponse< List > SearchWithHttpInfo (lo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -355,8 +335,8 @@ public ApiResponse< List > SearchWithHttpInfo (lo this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -368,8 +348,10 @@ public ApiResponse< List > SearchWithHttpInfo (lo } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/PaymentProcessorService.cs b/src/Wallee/Service/PaymentProcessorService.cs index 00d9a4d..4a6032f 100644 --- a/src/Wallee/Service/PaymentProcessorService.cs +++ b/src/Wallee/Service/PaymentProcessorService.cs @@ -86,7 +86,7 @@ public PaymentProcessorService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -139,26 +139,18 @@ public ApiResponse< List > AllWithHttpInfo () var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -170,8 +162,10 @@ public ApiResponse< List > AllWithHttpInfo () } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -205,27 +199,19 @@ public ApiResponse< PaymentProcessor > ReadWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -237,8 +223,10 @@ public ApiResponse< PaymentProcessor > ReadWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PaymentProcessor) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentProcessor))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (PaymentProcessor) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentProcessor))); } } } diff --git a/src/Wallee/Service/PaymentTerminalService.cs b/src/Wallee/Service/PaymentTerminalService.cs index 702a3ef..8f6a9ca 100644 --- a/src/Wallee/Service/PaymentTerminalService.cs +++ b/src/Wallee/Service/PaymentTerminalService.cs @@ -209,7 +209,7 @@ public PaymentTerminalService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -269,20 +269,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -296,8 +288,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -309,8 +301,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Link Device With Terminal Links the device with given serial number with terminal. @@ -353,18 +347,11 @@ public ApiResponse LinkWithHttpInfo (long? spaceId, long? terminalId, st var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (terminalId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "terminalId", terminalId)); // query parameter if (serialNumber != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "serialNumber", serialNumber)); // query parameter @@ -372,8 +359,8 @@ public ApiResponse LinkWithHttpInfo (long? spaceId, long? terminalId, st this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -385,7 +372,9 @@ public ApiResponse LinkWithHttpInfo (long? spaceId, long? terminalId, st } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -425,28 +414,20 @@ public ApiResponse< PaymentTerminal > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -458,8 +439,10 @@ public ApiResponse< PaymentTerminal > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PaymentTerminal) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentTerminal))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (PaymentTerminal) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentTerminal))); } /// /// Search Searches for the entities as specified by the given query. @@ -498,20 +481,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -525,8 +500,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -538,8 +513,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Remotely Trigger Final Balance Remotely triggers the final balance receipt on the terminal. @@ -577,26 +554,19 @@ public ApiResponse TriggerFinalBalanceWithHttpInfo (long? spaceId, long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (terminalId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "terminalId", terminalId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -608,7 +578,9 @@ public ApiResponse TriggerFinalBalanceWithHttpInfo (long? spaceId, long? } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -647,26 +619,19 @@ public ApiResponse TriggerFinalBalanceByIdentifierWithHttpInfo (long? sp var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (terminalIdentifier != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "terminalIdentifier", terminalIdentifier)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -678,7 +643,9 @@ public ApiResponse TriggerFinalBalanceByIdentifierWithHttpInfo (long? sp } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -717,26 +684,19 @@ public ApiResponse UnlinkWithHttpInfo (long? spaceId, long? terminalId) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (terminalId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "terminalId", terminalId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -748,7 +708,9 @@ public ApiResponse UnlinkWithHttpInfo (long? spaceId, long? terminalId) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } } diff --git a/src/Wallee/Service/PaymentTerminalTillService.cs b/src/Wallee/Service/PaymentTerminalTillService.cs index a7b9218..dc70ff7 100644 --- a/src/Wallee/Service/PaymentTerminalTillService.cs +++ b/src/Wallee/Service/PaymentTerminalTillService.cs @@ -100,7 +100,7 @@ public PaymentTerminalTillService(Wallee.Client.Configuration configuration = nu /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -170,30 +170,22 @@ public ApiResponse< Transaction > PerformTransactionWithHttpInfo (long? spaceId, var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (transactionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "transactionId", transactionId)); // query parameter if (terminalId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "terminalId", terminalId)); // query parameter if (language != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "language", language)); // query parameter - this.Configuration.ApiClient.RestClient.Timeout = 90 * 1000; + this.Configuration.ApiClient.RestClient.Options.MaxTimeout = 90 * 1000; // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -205,8 +197,10 @@ public ApiResponse< Transaction > PerformTransactionWithHttpInfo (long? spaceId, } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); } /// /// Perform Payment Terminal Transaction (using TID) Starts a payment terminal transaction and waits for its completion. If the call returns with a long polling timeout status, you may try again. The processing of the transaction will be picked up where it was left off. @@ -252,30 +246,22 @@ public ApiResponse< Transaction > PerformTransactionByIdentifierWithHttpInfo (lo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (transactionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "transactionId", transactionId)); // query parameter if (terminalIdentifier != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "terminalIdentifier", terminalIdentifier)); // query parameter if (language != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "language", language)); // query parameter - this.Configuration.ApiClient.RestClient.Timeout = 90 * 1000; + this.Configuration.ApiClient.RestClient.Options.MaxTimeout = 90 * 1000; // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -287,8 +273,10 @@ public ApiResponse< Transaction > PerformTransactionByIdentifierWithHttpInfo (lo } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); } } } diff --git a/src/Wallee/Service/PaymentTerminalTransactionSummaryService.cs b/src/Wallee/Service/PaymentTerminalTransactionSummaryService.cs index 4ae3540..dc41c90 100644 --- a/src/Wallee/Service/PaymentTerminalTransactionSummaryService.cs +++ b/src/Wallee/Service/PaymentTerminalTransactionSummaryService.cs @@ -138,7 +138,7 @@ public PaymentTerminalTransactionSummaryService(Wallee.Client.Configuration conf /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -198,20 +198,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -225,8 +217,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -238,8 +230,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Fetch Receipt Returns the terminal receipt corresponding to the specified transaction summary id. @@ -278,20 +272,12 @@ public ApiResponse< RenderedTerminalTransactionSummary > FetchReceiptWithHttpInf var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (request != null && request.GetType() != typeof(byte[])) { @@ -305,8 +291,8 @@ public ApiResponse< RenderedTerminalTransactionSummary > FetchReceiptWithHttpInf this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -318,8 +304,10 @@ public ApiResponse< RenderedTerminalTransactionSummary > FetchReceiptWithHttpInf } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RenderedTerminalTransactionSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RenderedTerminalTransactionSummary))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (RenderedTerminalTransactionSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RenderedTerminalTransactionSummary))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -358,28 +346,20 @@ public ApiResponse< PaymentTerminalTransactionSummary > ReadWithHttpInfo (long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -391,8 +371,10 @@ public ApiResponse< PaymentTerminalTransactionSummary > ReadWithHttpInfo (long? } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PaymentTerminalTransactionSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentTerminalTransactionSummary))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (PaymentTerminalTransactionSummary) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentTerminalTransactionSummary))); } /// /// Search Searches for the entities as specified by the given query. @@ -431,20 +413,12 @@ public ApiResponse< List > SearchWithHttpInfo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -458,8 +432,8 @@ public ApiResponse< List > SearchWithHttpInfo this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -471,8 +445,10 @@ public ApiResponse< List > SearchWithHttpInfo } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/PaymentWebAppService.cs b/src/Wallee/Service/PaymentWebAppService.cs index 69cbefb..013e922 100644 --- a/src/Wallee/Service/PaymentWebAppService.cs +++ b/src/Wallee/Service/PaymentWebAppService.cs @@ -253,7 +253,7 @@ public PaymentWebAppService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -316,27 +316,20 @@ public ApiResponse< PaymentAppProcessor > ActivateProcessorForProductionWithHttp var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (externalId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "externalId", externalId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -348,8 +341,10 @@ public ApiResponse< PaymentAppProcessor > ActivateProcessorForProductionWithHttp } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PaymentAppProcessor) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentAppProcessor))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (PaymentAppProcessor) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentAppProcessor))); } /// /// Delete Connector This operation removes the web app payment connector from the given space. @@ -387,26 +382,19 @@ public ApiResponse DeleteConnectorWithHttpInfo (long? spaceId, string ex var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (externalId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "externalId", externalId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -418,7 +406,9 @@ public ApiResponse DeleteConnectorWithHttpInfo (long? spaceId, string ex } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -457,26 +447,19 @@ public ApiResponse DeleteProcessorWithHttpInfo (long? spaceId, string ex var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (externalId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "externalId", externalId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -488,7 +471,9 @@ public ApiResponse DeleteProcessorWithHttpInfo (long? spaceId, string ex } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -528,18 +513,11 @@ public ApiResponse< PaymentAppConnector > InsertOrUpdateConnectorWithHttpInfo (l var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (request != null && request.GetType() != typeof(byte[])) { @@ -553,8 +531,8 @@ public ApiResponse< PaymentAppConnector > InsertOrUpdateConnectorWithHttpInfo (l this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -566,8 +544,10 @@ public ApiResponse< PaymentAppConnector > InsertOrUpdateConnectorWithHttpInfo (l } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PaymentAppConnector) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentAppConnector))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (PaymentAppConnector) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentAppConnector))); } /// /// Insert or Update Processor This operation inserts or updates a web app payment processor. @@ -606,18 +586,11 @@ public ApiResponse< PaymentAppProcessor > InsertOrUpdateProcessorWithHttpInfo (l var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (request != null && request.GetType() != typeof(byte[])) { @@ -631,8 +604,8 @@ public ApiResponse< PaymentAppProcessor > InsertOrUpdateProcessorWithHttpInfo (l this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -644,8 +617,10 @@ public ApiResponse< PaymentAppProcessor > InsertOrUpdateProcessorWithHttpInfo (l } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (PaymentAppProcessor) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentAppProcessor))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (PaymentAppProcessor) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(PaymentAppProcessor))); } /// /// Update Charge Attempt This operation updates the state of the charge attempt. This method can be invoked for transactions originally created with a processor associated with the web app that invokes this operation. The returned charge attempt corresponds to the charge attempt indicated in the request. @@ -684,18 +659,11 @@ public ApiResponse< ChargeAttempt > UpdateChargeAttemptWithHttpInfo (long? space var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (request != null && request.GetType() != typeof(byte[])) { @@ -709,8 +677,8 @@ public ApiResponse< ChargeAttempt > UpdateChargeAttemptWithHttpInfo (long? space this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -722,8 +690,10 @@ public ApiResponse< ChargeAttempt > UpdateChargeAttemptWithHttpInfo (long? space } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ChargeAttempt) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ChargeAttempt))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ChargeAttempt) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ChargeAttempt))); } /// /// Update Completion This operation updates the state of the transaction completion. This method can be invoked for transactions originally created with a processor associated with the web app that invokes this operation. The returned completion corresponds to the completion indicated in the request. @@ -762,18 +732,11 @@ public ApiResponse< TransactionCompletion > UpdateCompletionWithHttpInfo (long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (request != null && request.GetType() != typeof(byte[])) { @@ -787,8 +750,8 @@ public ApiResponse< TransactionCompletion > UpdateCompletionWithHttpInfo (long? this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -800,8 +763,10 @@ public ApiResponse< TransactionCompletion > UpdateCompletionWithHttpInfo (long? } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionCompletion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionCompletion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionCompletion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionCompletion))); } /// /// Update Refund This operation updates the state of the refund. This method can be invoked for transactions originally created with a processor associated with the web app that invokes this operation. The returned refund corresponds to the refund indicated in the request. @@ -840,18 +805,11 @@ public ApiResponse< Refund > UpdateRefundWithHttpInfo (long? spaceId, PaymentApp var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (request != null && request.GetType() != typeof(byte[])) { @@ -865,8 +823,8 @@ public ApiResponse< Refund > UpdateRefundWithHttpInfo (long? spaceId, PaymentApp this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -878,8 +836,10 @@ public ApiResponse< Refund > UpdateRefundWithHttpInfo (long? spaceId, PaymentApp } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Refund) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Refund))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Refund) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Refund))); } /// /// Update Void This operation updates the state of the transaction void. This method can be invoked for transactions originally created with a processor associated with the web app that invokes this operation. The returned void corresponds to the void indicated in the request. @@ -918,18 +878,11 @@ public ApiResponse< TransactionVoid > UpdateVoidWithHttpInfo (long? spaceId, Pay var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (request != null && request.GetType() != typeof(byte[])) { @@ -943,8 +896,8 @@ public ApiResponse< TransactionVoid > UpdateVoidWithHttpInfo (long? spaceId, Pay this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -956,8 +909,10 @@ public ApiResponse< TransactionVoid > UpdateVoidWithHttpInfo (long? spaceId, Pay } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionVoid) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionVoid))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionVoid) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionVoid))); } } } diff --git a/src/Wallee/Service/PermissionService.cs b/src/Wallee/Service/PermissionService.cs index 82b7c0e..54eb45e 100644 --- a/src/Wallee/Service/PermissionService.cs +++ b/src/Wallee/Service/PermissionService.cs @@ -86,7 +86,7 @@ public PermissionService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -139,26 +139,18 @@ public ApiResponse< List > AllWithHttpInfo () var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -170,8 +162,10 @@ public ApiResponse< List > AllWithHttpInfo () } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -205,27 +199,19 @@ public ApiResponse< Permission > ReadWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -237,8 +223,10 @@ public ApiResponse< Permission > ReadWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Permission) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Permission))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Permission) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Permission))); } } } diff --git a/src/Wallee/Service/RefundBankTransactionService.cs b/src/Wallee/Service/RefundBankTransactionService.cs index c7e3de9..e2ffe1f 100644 --- a/src/Wallee/Service/RefundBankTransactionService.cs +++ b/src/Wallee/Service/RefundBankTransactionService.cs @@ -115,7 +115,7 @@ public RefundBankTransactionService(Wallee.Client.Configuration configuration = /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -175,20 +175,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -202,8 +194,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -255,28 +249,20 @@ public ApiResponse< RefundBankTransaction > ReadWithHttpInfo (long? spaceId, lon var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< RefundBankTransaction > ReadWithHttpInfo (long? spaceId, lon } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RefundBankTransaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RefundBankTransaction))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (RefundBankTransaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RefundBankTransaction))); } /// /// Search Searches for the entities as specified by the given query. @@ -328,20 +316,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spac var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -355,8 +335,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spac this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -368,8 +348,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spac } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/RefundCommentService.cs b/src/Wallee/Service/RefundCommentService.cs index ac4f356..9c8678e 100644 --- a/src/Wallee/Service/RefundCommentService.cs +++ b/src/Wallee/Service/RefundCommentService.cs @@ -207,7 +207,7 @@ public RefundCommentService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -270,28 +270,20 @@ public ApiResponse< List > AllWithHttpInfo (long? spaceId, long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (refundId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "refundId", refundId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -303,8 +295,10 @@ public ApiResponse< List > AllWithHttpInfo (long? spaceId, long? } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Create Creates the comment with the given properties. @@ -343,20 +337,12 @@ public ApiResponse< RefundComment > CreateWithHttpInfo (long? spaceId, RefundCom var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -370,8 +356,8 @@ public ApiResponse< RefundComment > CreateWithHttpInfo (long? spaceId, RefundCom this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -383,8 +369,10 @@ public ApiResponse< RefundComment > CreateWithHttpInfo (long? spaceId, RefundCom } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RefundComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RefundComment))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (RefundComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RefundComment))); } /// /// Delete Deletes the comment with the given id. @@ -422,28 +410,20 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -455,7 +435,9 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -494,28 +476,20 @@ public ApiResponse PinWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -527,7 +501,9 @@ public ApiResponse PinWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -567,28 +543,20 @@ public ApiResponse< RefundComment > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -600,8 +568,10 @@ public ApiResponse< RefundComment > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RefundComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RefundComment))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (RefundComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RefundComment))); } /// /// Unpin Unpins the comment from the top. @@ -639,28 +609,20 @@ public ApiResponse UnpinWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -672,7 +634,9 @@ public ApiResponse UnpinWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -712,20 +676,12 @@ public ApiResponse< RefundComment > UpdateWithHttpInfo (long? spaceId, RefundCom var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -739,8 +695,8 @@ public ApiResponse< RefundComment > UpdateWithHttpInfo (long? spaceId, RefundCom this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -752,8 +708,10 @@ public ApiResponse< RefundComment > UpdateWithHttpInfo (long? spaceId, RefundCom } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RefundComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RefundComment))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (RefundComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RefundComment))); } } } diff --git a/src/Wallee/Service/RefundRecoveryBankTransactionService.cs b/src/Wallee/Service/RefundRecoveryBankTransactionService.cs index 8f602d0..1a534d6 100644 --- a/src/Wallee/Service/RefundRecoveryBankTransactionService.cs +++ b/src/Wallee/Service/RefundRecoveryBankTransactionService.cs @@ -115,7 +115,7 @@ public RefundRecoveryBankTransactionService(Wallee.Client.Configuration configur /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -175,20 +175,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -202,8 +194,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -255,28 +249,20 @@ public ApiResponse< RefundRecoveryBankTransaction > ReadWithHttpInfo (long? spac var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< RefundRecoveryBankTransaction > ReadWithHttpInfo (long? spac } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RefundRecoveryBankTransaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RefundRecoveryBankTransaction))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (RefundRecoveryBankTransaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RefundRecoveryBankTransaction))); } /// /// Search Searches for the entities as specified by the given query. @@ -328,20 +316,12 @@ public ApiResponse< List > SearchWithHttpInfo (lo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -355,8 +335,8 @@ public ApiResponse< List > SearchWithHttpInfo (lo this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -368,8 +348,10 @@ public ApiResponse< List > SearchWithHttpInfo (lo } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/RefundService.cs b/src/Wallee/Service/RefundService.cs index d264b82..3f48e90 100644 --- a/src/Wallee/Service/RefundService.cs +++ b/src/Wallee/Service/RefundService.cs @@ -232,7 +232,7 @@ public RefundService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -292,20 +292,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -319,8 +311,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -332,8 +324,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// fail This operation allows to mark a refund as failed which is in state MANUAL_CHECK. @@ -372,27 +366,19 @@ public ApiResponse< Refund > FailWithHttpInfo (long? spaceId, long? refundId) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (refundId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "refundId", refundId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -404,8 +390,10 @@ public ApiResponse< Refund > FailWithHttpInfo (long? spaceId, long? refundId) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Refund) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Refund))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Refund) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Refund))); } /// /// getRefundDocument Returns the PDF document for the refund with given id. @@ -444,28 +432,20 @@ public ApiResponse< RenderedDocument > GetRefundDocumentWithHttpInfo (long? spac var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -477,8 +457,10 @@ public ApiResponse< RenderedDocument > GetRefundDocumentWithHttpInfo (long? spac } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RenderedDocument) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RenderedDocument))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (RenderedDocument) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RenderedDocument))); } /// /// getRefundDocumentWithTargetMediaType Returns the PDF document for the refund with given id and the given target media type. @@ -522,20 +504,12 @@ public ApiResponse< RenderedDocument > GetRefundDocumentWithTargetMediaTypeWithH var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter if (targetMediaTypeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "targetMediaTypeId", targetMediaTypeId)); // query parameter @@ -543,8 +517,8 @@ public ApiResponse< RenderedDocument > GetRefundDocumentWithTargetMediaTypeWithH this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -556,8 +530,10 @@ public ApiResponse< RenderedDocument > GetRefundDocumentWithTargetMediaTypeWithH } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RenderedDocument) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RenderedDocument))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (RenderedDocument) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RenderedDocument))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -596,28 +572,20 @@ public ApiResponse< Refund > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -629,8 +597,10 @@ public ApiResponse< Refund > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Refund) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Refund))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Refund) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Refund))); } /// /// create This operation creates and executes a refund of a particular transaction. @@ -669,20 +639,12 @@ public ApiResponse< Refund > RefundWithHttpInfo (long? spaceId, RefundCreate ref var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (refund != null && refund.GetType() != typeof(byte[])) { @@ -696,8 +658,8 @@ public ApiResponse< Refund > RefundWithHttpInfo (long? spaceId, RefundCreate ref this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -709,8 +671,10 @@ public ApiResponse< Refund > RefundWithHttpInfo (long? spaceId, RefundCreate ref } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Refund) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Refund))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Refund) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Refund))); } /// /// Search Searches for the entities as specified by the given query. @@ -749,20 +713,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, EntityQuer var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -776,8 +732,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, EntityQuer this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -789,8 +745,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, EntityQuer } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// succeed This operation allows to mark a refund as successful which is in state MANUAL_CHECK. @@ -829,27 +787,19 @@ public ApiResponse< Refund > SucceedWithHttpInfo (long? spaceId, long? refundId) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (refundId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "refundId", refundId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -861,8 +811,10 @@ public ApiResponse< Refund > SucceedWithHttpInfo (long? spaceId, long? refundId) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Refund) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Refund))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Refund) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Refund))); } } } diff --git a/src/Wallee/Service/ShopifyRecurringOrderService.cs b/src/Wallee/Service/ShopifyRecurringOrderService.cs index 9ec68e7..12d5fc9 100644 --- a/src/Wallee/Service/ShopifyRecurringOrderService.cs +++ b/src/Wallee/Service/ShopifyRecurringOrderService.cs @@ -138,7 +138,7 @@ public ShopifyRecurringOrderService(Wallee.Client.Configuration configuration = /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -198,20 +198,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -225,8 +217,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -238,8 +230,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -278,28 +272,20 @@ public ApiResponse< ShopifyRecurringOrder > ReadWithHttpInfo (long? spaceId, lon var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -311,8 +297,10 @@ public ApiResponse< ShopifyRecurringOrder > ReadWithHttpInfo (long? spaceId, lon } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ShopifyRecurringOrder) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifyRecurringOrder))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ShopifyRecurringOrder) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifyRecurringOrder))); } /// /// Search Searches for the entities as specified by the given query. @@ -351,20 +339,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spac var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -378,8 +358,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spac this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -391,8 +371,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spac } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This operation allows to update a Shopify recurring order. @@ -430,20 +412,12 @@ public ApiResponse UpdateWithHttpInfo (long? spaceId, ShopifyRecurringOr var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (updateRequest != null && updateRequest.GetType() != typeof(byte[])) { @@ -457,8 +431,8 @@ public ApiResponse UpdateWithHttpInfo (long? spaceId, ShopifyRecurringOr this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -470,7 +444,9 @@ public ApiResponse UpdateWithHttpInfo (long? spaceId, ShopifyRecurringOr } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } } diff --git a/src/Wallee/Service/ShopifySubscriberService.cs b/src/Wallee/Service/ShopifySubscriberService.cs index 67e8474..cf15ce5 100644 --- a/src/Wallee/Service/ShopifySubscriberService.cs +++ b/src/Wallee/Service/ShopifySubscriberService.cs @@ -138,7 +138,7 @@ public ShopifySubscriberService(Wallee.Client.Configuration configuration = null /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -198,20 +198,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -225,8 +217,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -238,8 +230,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -278,28 +272,20 @@ public ApiResponse< ShopifySubscriber > ReadWithHttpInfo (long? spaceId, long? i var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -311,8 +297,10 @@ public ApiResponse< ShopifySubscriber > ReadWithHttpInfo (long? spaceId, long? i } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ShopifySubscriber) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriber))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ShopifySubscriber) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriber))); } /// /// Search Searches for the entities as specified by the given query. @@ -351,20 +339,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -378,8 +358,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -391,8 +371,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -431,20 +413,12 @@ public ApiResponse< ShopifySubscriber > UpdateWithHttpInfo (long? spaceId, Shopi var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -458,8 +432,8 @@ public ApiResponse< ShopifySubscriber > UpdateWithHttpInfo (long? spaceId, Shopi this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -471,8 +445,10 @@ public ApiResponse< ShopifySubscriber > UpdateWithHttpInfo (long? spaceId, Shopi } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ShopifySubscriber) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriber))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ShopifySubscriber) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriber))); } } } diff --git a/src/Wallee/Service/ShopifySubscriptionProductService.cs b/src/Wallee/Service/ShopifySubscriptionProductService.cs index e2fc5de..23f3365 100644 --- a/src/Wallee/Service/ShopifySubscriptionProductService.cs +++ b/src/Wallee/Service/ShopifySubscriptionProductService.cs @@ -161,7 +161,7 @@ public ShopifySubscriptionProductService(Wallee.Client.Configuration configurati /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -221,20 +221,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -248,8 +240,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -261,8 +253,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -301,20 +295,12 @@ public ApiResponse< ShopifySubscriptionProduct > CreateWithHttpInfo (long? space var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -328,8 +314,8 @@ public ApiResponse< ShopifySubscriptionProduct > CreateWithHttpInfo (long? space this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -341,8 +327,10 @@ public ApiResponse< ShopifySubscriptionProduct > CreateWithHttpInfo (long? space } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ShopifySubscriptionProduct) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriptionProduct))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ShopifySubscriptionProduct) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriptionProduct))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -381,28 +369,20 @@ public ApiResponse< ShopifySubscriptionProduct > ReadWithHttpInfo (long? spaceId var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -414,8 +394,10 @@ public ApiResponse< ShopifySubscriptionProduct > ReadWithHttpInfo (long? spaceId } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ShopifySubscriptionProduct) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriptionProduct))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ShopifySubscriptionProduct) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriptionProduct))); } /// /// Search Searches for the entities as specified by the given query. @@ -454,20 +436,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -481,8 +455,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -494,8 +468,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -534,20 +510,12 @@ public ApiResponse< ShopifySubscriptionProduct > UpdateWithHttpInfo (long? space var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -561,8 +529,8 @@ public ApiResponse< ShopifySubscriptionProduct > UpdateWithHttpInfo (long? space this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -574,8 +542,10 @@ public ApiResponse< ShopifySubscriptionProduct > UpdateWithHttpInfo (long? space } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ShopifySubscriptionProduct) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriptionProduct))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ShopifySubscriptionProduct) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriptionProduct))); } } } diff --git a/src/Wallee/Service/ShopifySubscriptionService.cs b/src/Wallee/Service/ShopifySubscriptionService.cs index 92d823d..4a00604 100644 --- a/src/Wallee/Service/ShopifySubscriptionService.cs +++ b/src/Wallee/Service/ShopifySubscriptionService.cs @@ -209,7 +209,7 @@ public ShopifySubscriptionService(Wallee.Client.Configuration configuration = nu /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -269,20 +269,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -296,8 +288,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -309,8 +301,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create This operation allows to create a Shopify subscription. @@ -349,20 +343,12 @@ public ApiResponse< ShopifySubscriptionVersion > CreateWithHttpInfo (long? space var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (creationRequest != null && creationRequest.GetType() != typeof(byte[])) { @@ -376,8 +362,8 @@ public ApiResponse< ShopifySubscriptionVersion > CreateWithHttpInfo (long? space this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -389,8 +375,10 @@ public ApiResponse< ShopifySubscriptionVersion > CreateWithHttpInfo (long? space } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ShopifySubscriptionVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriptionVersion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ShopifySubscriptionVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriptionVersion))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -429,28 +417,20 @@ public ApiResponse< ShopifySubscription > ReadWithHttpInfo (long? spaceId, long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -462,8 +442,10 @@ public ApiResponse< ShopifySubscription > ReadWithHttpInfo (long? spaceId, long? } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ShopifySubscription) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscription))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ShopifySubscription) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscription))); } /// /// Search Searches for the entities as specified by the given query. @@ -502,20 +484,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceI var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -529,8 +503,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceI this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -542,8 +516,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceI } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Terminate This operation allows to terminate a Shopify subscription. @@ -586,19 +562,11 @@ public ApiResponse TerminateWithHttpInfo (long? spaceId, long? subscript var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (subscriptionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "subscriptionId", subscriptionId)); // query parameter if (respectTerminationPeriod != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "respectTerminationPeriod", respectTerminationPeriod)); // query parameter @@ -606,8 +574,8 @@ public ApiResponse TerminateWithHttpInfo (long? spaceId, long? subscript this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -619,7 +587,9 @@ public ApiResponse TerminateWithHttpInfo (long? spaceId, long? subscript } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -659,20 +629,12 @@ public ApiResponse< ShopifySubscriptionVersion > UpdateWithHttpInfo (long? space var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (subscription != null && subscription.GetType() != typeof(byte[])) { @@ -686,8 +648,8 @@ public ApiResponse< ShopifySubscriptionVersion > UpdateWithHttpInfo (long? space this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -699,8 +661,10 @@ public ApiResponse< ShopifySubscriptionVersion > UpdateWithHttpInfo (long? space } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ShopifySubscriptionVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriptionVersion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ShopifySubscriptionVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriptionVersion))); } /// /// Update Addresses This operation allows to update a Shopify subscription addresses. @@ -739,20 +703,12 @@ public ApiResponse< ShopifySubscriptionVersion > UpdateAddressesWithHttpInfo (lo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (updateRequest != null && updateRequest.GetType() != typeof(byte[])) { @@ -766,8 +722,8 @@ public ApiResponse< ShopifySubscriptionVersion > UpdateAddressesWithHttpInfo (lo this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -779,8 +735,10 @@ public ApiResponse< ShopifySubscriptionVersion > UpdateAddressesWithHttpInfo (lo } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ShopifySubscriptionVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriptionVersion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ShopifySubscriptionVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriptionVersion))); } } } diff --git a/src/Wallee/Service/ShopifySubscriptionSuspensionService.cs b/src/Wallee/Service/ShopifySubscriptionSuspensionService.cs index fe459ad..0a7427d 100644 --- a/src/Wallee/Service/ShopifySubscriptionSuspensionService.cs +++ b/src/Wallee/Service/ShopifySubscriptionSuspensionService.cs @@ -161,7 +161,7 @@ public ShopifySubscriptionSuspensionService(Wallee.Client.Configuration configur /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -221,20 +221,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -248,8 +240,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -261,8 +253,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Reactivate This operation allows to reactivate a suspended Shopify subscription. @@ -300,27 +294,19 @@ public ApiResponse ReactivateWithHttpInfo (long? spaceId, long? subscrip var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (subscriptionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "subscriptionId", subscriptionId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -332,7 +318,9 @@ public ApiResponse ReactivateWithHttpInfo (long? spaceId, long? subscrip } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -372,28 +360,20 @@ public ApiResponse< ShopifySubscriptionSuspension > ReadWithHttpInfo (long? spac var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -405,8 +385,10 @@ public ApiResponse< ShopifySubscriptionSuspension > ReadWithHttpInfo (long? spac } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ShopifySubscriptionSuspension) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriptionSuspension))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ShopifySubscriptionSuspension) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriptionSuspension))); } /// /// Search Searches for the entities as specified by the given query. @@ -445,20 +427,12 @@ public ApiResponse< List > SearchWithHttpInfo (lo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -472,8 +446,8 @@ public ApiResponse< List > SearchWithHttpInfo (lo this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -485,8 +459,10 @@ public ApiResponse< List > SearchWithHttpInfo (lo } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Suspend This operation allows to suspend a Shopify subscription. @@ -525,20 +501,12 @@ public ApiResponse< ShopifySubscriptionSuspension > SuspendWithHttpInfo (long? s var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (suspension != null && suspension.GetType() != typeof(byte[])) { @@ -552,8 +520,8 @@ public ApiResponse< ShopifySubscriptionSuspension > SuspendWithHttpInfo (long? s this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -565,8 +533,10 @@ public ApiResponse< ShopifySubscriptionSuspension > SuspendWithHttpInfo (long? s } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ShopifySubscriptionSuspension) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriptionSuspension))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ShopifySubscriptionSuspension) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriptionSuspension))); } } } diff --git a/src/Wallee/Service/ShopifySubscriptionVersionService.cs b/src/Wallee/Service/ShopifySubscriptionVersionService.cs index 1ceb975..301721c 100644 --- a/src/Wallee/Service/ShopifySubscriptionVersionService.cs +++ b/src/Wallee/Service/ShopifySubscriptionVersionService.cs @@ -115,7 +115,7 @@ public ShopifySubscriptionVersionService(Wallee.Client.Configuration configurati /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -175,20 +175,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -202,8 +194,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -255,28 +249,20 @@ public ApiResponse< ShopifySubscriptionVersion > ReadWithHttpInfo (long? spaceId var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< ShopifySubscriptionVersion > ReadWithHttpInfo (long? spaceId } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ShopifySubscriptionVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriptionVersion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ShopifySubscriptionVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifySubscriptionVersion))); } /// /// Search Searches for the entities as specified by the given query. @@ -328,20 +316,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -355,8 +335,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -368,8 +348,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/ShopifyTransactionService.cs b/src/Wallee/Service/ShopifyTransactionService.cs index d8a9e3b..b15c62a 100644 --- a/src/Wallee/Service/ShopifyTransactionService.cs +++ b/src/Wallee/Service/ShopifyTransactionService.cs @@ -115,7 +115,7 @@ public ShopifyTransactionService(Wallee.Client.Configuration configuration = nul /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -175,20 +175,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -202,8 +194,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -255,28 +249,20 @@ public ApiResponse< ShopifyTransaction > ReadWithHttpInfo (long? spaceId, long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< ShopifyTransaction > ReadWithHttpInfo (long? spaceId, long? } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ShopifyTransaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifyTransaction))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ShopifyTransaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ShopifyTransaction))); } /// /// Search Searches for the entities as specified by the given query. @@ -328,20 +316,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -355,8 +335,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -368,8 +348,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/SpaceService.cs b/src/Wallee/Service/SpaceService.cs index 90a5d6f..1fa2be7 100644 --- a/src/Wallee/Service/SpaceService.cs +++ b/src/Wallee/Service/SpaceService.cs @@ -172,7 +172,7 @@ public SpaceService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -227,20 +227,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (filter != null && filter.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(filter); // http body (model) parameter @@ -253,8 +245,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -266,8 +258,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -301,20 +295,12 @@ public ApiResponse< Space > CreateWithHttpInfo (SpaceCreate entity) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (entity != null && entity.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(entity); // http body (model) parameter @@ -327,8 +313,8 @@ public ApiResponse< Space > CreateWithHttpInfo (SpaceCreate entity) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -340,8 +326,10 @@ public ApiResponse< Space > CreateWithHttpInfo (SpaceCreate entity) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Space) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Space))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Space) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Space))); } /// /// Delete Deletes the entity with the given id. @@ -374,20 +362,12 @@ public ApiResponse DeleteWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null && id.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(id); // http body (model) parameter @@ -400,8 +380,8 @@ public ApiResponse DeleteWithHttpInfo (long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -413,7 +393,9 @@ public ApiResponse DeleteWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -448,27 +430,19 @@ public ApiResponse< Space > ReadWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -480,8 +454,10 @@ public ApiResponse< Space > ReadWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Space) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Space))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Space) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Space))); } /// /// Search Searches for the entities as specified by the given query. @@ -515,20 +491,12 @@ public ApiResponse< List > SearchWithHttpInfo (EntityQuery query) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (query != null && query.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(query); // http body (model) parameter @@ -541,8 +509,8 @@ public ApiResponse< List > SearchWithHttpInfo (EntityQuery query) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -554,8 +522,10 @@ public ApiResponse< List > SearchWithHttpInfo (EntityQuery query) } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -589,20 +559,12 @@ public ApiResponse< Space > UpdateWithHttpInfo (SpaceUpdate entity) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (entity != null && entity.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(entity); // http body (model) parameter @@ -615,8 +577,8 @@ public ApiResponse< Space > UpdateWithHttpInfo (SpaceUpdate entity) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -628,8 +590,10 @@ public ApiResponse< Space > UpdateWithHttpInfo (SpaceUpdate entity) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Space) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Space))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Space) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Space))); } } } diff --git a/src/Wallee/Service/StaticValueService.cs b/src/Wallee/Service/StaticValueService.cs index 499beaa..1e39834 100644 --- a/src/Wallee/Service/StaticValueService.cs +++ b/src/Wallee/Service/StaticValueService.cs @@ -86,7 +86,7 @@ public StaticValueService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -139,26 +139,18 @@ public ApiResponse< List > AllWithHttpInfo () var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -170,8 +162,10 @@ public ApiResponse< List > AllWithHttpInfo () } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -205,27 +199,19 @@ public ApiResponse< StaticValue > ReadWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -237,8 +223,10 @@ public ApiResponse< StaticValue > ReadWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (StaticValue) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StaticValue))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (StaticValue) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(StaticValue))); } } } diff --git a/src/Wallee/Service/SubscriberService.cs b/src/Wallee/Service/SubscriberService.cs index 3cfd67e..dde25a6 100644 --- a/src/Wallee/Service/SubscriberService.cs +++ b/src/Wallee/Service/SubscriberService.cs @@ -184,7 +184,7 @@ public SubscriberService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -244,20 +244,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -271,8 +263,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -284,8 +276,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -324,20 +318,12 @@ public ApiResponse< Subscriber > CreateWithHttpInfo (long? spaceId, SubscriberCr var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -351,8 +337,8 @@ public ApiResponse< Subscriber > CreateWithHttpInfo (long? spaceId, SubscriberCr this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -364,8 +350,10 @@ public ApiResponse< Subscriber > CreateWithHttpInfo (long? spaceId, SubscriberCr } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Subscriber) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Subscriber))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Subscriber) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Subscriber))); } /// /// Delete Deletes the entity with the given id. @@ -403,20 +391,12 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null && id.GetType() != typeof(byte[])) { @@ -430,8 +410,8 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -443,7 +423,9 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -483,28 +465,20 @@ public ApiResponse< Subscriber > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -516,8 +490,10 @@ public ApiResponse< Subscriber > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Subscriber) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Subscriber))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Subscriber) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Subscriber))); } /// /// Search Searches for the entities as specified by the given query. @@ -556,20 +532,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entity var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -583,8 +551,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entity this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -596,8 +564,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entity } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -636,20 +606,12 @@ public ApiResponse< Subscriber > UpdateWithHttpInfo (long? spaceId, SubscriberUp var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -663,8 +625,8 @@ public ApiResponse< Subscriber > UpdateWithHttpInfo (long? spaceId, SubscriberUp this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -676,8 +638,10 @@ public ApiResponse< Subscriber > UpdateWithHttpInfo (long? spaceId, SubscriberUp } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Subscriber) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Subscriber))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Subscriber) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Subscriber))); } } } diff --git a/src/Wallee/Service/SubscriptionAffiliateService.cs b/src/Wallee/Service/SubscriptionAffiliateService.cs index 1413b64..f2c261d 100644 --- a/src/Wallee/Service/SubscriptionAffiliateService.cs +++ b/src/Wallee/Service/SubscriptionAffiliateService.cs @@ -184,7 +184,7 @@ public SubscriptionAffiliateService(Wallee.Client.Configuration configuration = /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -244,20 +244,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -271,8 +263,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -284,8 +276,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -324,20 +318,12 @@ public ApiResponse< SubscriptionAffiliate > CreateWithHttpInfo (long? spaceId, S var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -351,8 +337,8 @@ public ApiResponse< SubscriptionAffiliate > CreateWithHttpInfo (long? spaceId, S this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -364,8 +350,10 @@ public ApiResponse< SubscriptionAffiliate > CreateWithHttpInfo (long? spaceId, S } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionAffiliate) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionAffiliate))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionAffiliate) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionAffiliate))); } /// /// Delete Deletes the entity with the given id. @@ -403,20 +391,12 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null && id.GetType() != typeof(byte[])) { @@ -430,8 +410,8 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -443,7 +423,9 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -483,28 +465,20 @@ public ApiResponse< SubscriptionAffiliate > ReadWithHttpInfo (long? spaceId, lon var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -516,8 +490,10 @@ public ApiResponse< SubscriptionAffiliate > ReadWithHttpInfo (long? spaceId, lon } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionAffiliate) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionAffiliate))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionAffiliate) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionAffiliate))); } /// /// Search Searches for the entities as specified by the given query. @@ -556,20 +532,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spac var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -583,8 +551,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spac this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -596,8 +564,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spac } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -636,20 +606,12 @@ public ApiResponse< SubscriptionAffiliate > UpdateWithHttpInfo (long? spaceId, S var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -663,8 +625,8 @@ public ApiResponse< SubscriptionAffiliate > UpdateWithHttpInfo (long? spaceId, S this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -676,8 +638,10 @@ public ApiResponse< SubscriptionAffiliate > UpdateWithHttpInfo (long? spaceId, S } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionAffiliate) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionAffiliate))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionAffiliate) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionAffiliate))); } } } diff --git a/src/Wallee/Service/SubscriptionChargeService.cs b/src/Wallee/Service/SubscriptionChargeService.cs index 298f0ad..3890a4b 100644 --- a/src/Wallee/Service/SubscriptionChargeService.cs +++ b/src/Wallee/Service/SubscriptionChargeService.cs @@ -161,7 +161,7 @@ public SubscriptionChargeService(Wallee.Client.Configuration configuration = nul /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -221,20 +221,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -248,8 +240,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -261,8 +253,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create The create operation creates a new subscription charge. @@ -301,20 +295,12 @@ public ApiResponse< SubscriptionCharge > CreateWithHttpInfo (long? spaceId, Subs var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (charge != null && charge.GetType() != typeof(byte[])) { @@ -328,8 +314,8 @@ public ApiResponse< SubscriptionCharge > CreateWithHttpInfo (long? spaceId, Subs this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -341,8 +327,10 @@ public ApiResponse< SubscriptionCharge > CreateWithHttpInfo (long? spaceId, Subs } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionCharge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionCharge))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionCharge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionCharge))); } /// /// discard This operation allows to discard a scheduled charge. @@ -381,27 +369,19 @@ public ApiResponse< SubscriptionCharge > DiscardWithHttpInfo (long? spaceId, lon var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (chargeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "chargeId", chargeId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -413,8 +393,10 @@ public ApiResponse< SubscriptionCharge > DiscardWithHttpInfo (long? spaceId, lon } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionCharge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionCharge))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionCharge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionCharge))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -453,28 +435,20 @@ public ApiResponse< SubscriptionCharge > ReadWithHttpInfo (long? spaceId, long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -486,8 +460,10 @@ public ApiResponse< SubscriptionCharge > ReadWithHttpInfo (long? spaceId, long? } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionCharge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionCharge))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionCharge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionCharge))); } /// /// Search Searches for the entities as specified by the given query. @@ -526,20 +502,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -553,8 +521,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -566,8 +534,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/SubscriptionLedgerEntryService.cs b/src/Wallee/Service/SubscriptionLedgerEntryService.cs index 6494b3e..2221c57 100644 --- a/src/Wallee/Service/SubscriptionLedgerEntryService.cs +++ b/src/Wallee/Service/SubscriptionLedgerEntryService.cs @@ -138,7 +138,7 @@ public SubscriptionLedgerEntryService(Wallee.Client.Configuration configuration /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -198,20 +198,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -225,8 +217,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -238,8 +230,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create The create operation creates a new subscription ledger entry. @@ -278,20 +272,12 @@ public ApiResponse< SubscriptionLedgerEntry > CreateWithHttpInfo (long? spaceId, var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entry != null && entry.GetType() != typeof(byte[])) { @@ -305,8 +291,8 @@ public ApiResponse< SubscriptionLedgerEntry > CreateWithHttpInfo (long? spaceId, this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -318,8 +304,10 @@ public ApiResponse< SubscriptionLedgerEntry > CreateWithHttpInfo (long? spaceId, } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionLedgerEntry) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionLedgerEntry))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionLedgerEntry) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionLedgerEntry))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -358,28 +346,20 @@ public ApiResponse< SubscriptionLedgerEntry > ReadWithHttpInfo (long? spaceId, l var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -391,8 +371,10 @@ public ApiResponse< SubscriptionLedgerEntry > ReadWithHttpInfo (long? spaceId, l } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionLedgerEntry) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionLedgerEntry))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionLedgerEntry) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionLedgerEntry))); } /// /// Search Searches for the entities as specified by the given query. @@ -431,20 +413,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? sp var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -458,8 +432,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? sp this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -471,8 +445,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? sp } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/SubscriptionMetricService.cs b/src/Wallee/Service/SubscriptionMetricService.cs index fadc9c3..4d42a1e 100644 --- a/src/Wallee/Service/SubscriptionMetricService.cs +++ b/src/Wallee/Service/SubscriptionMetricService.cs @@ -184,7 +184,7 @@ public SubscriptionMetricService(Wallee.Client.Configuration configuration = nul /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -244,20 +244,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -271,8 +263,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -284,8 +276,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -324,20 +318,12 @@ public ApiResponse< SubscriptionMetric > CreateWithHttpInfo (long? spaceId, Subs var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -351,8 +337,8 @@ public ApiResponse< SubscriptionMetric > CreateWithHttpInfo (long? spaceId, Subs this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -364,8 +350,10 @@ public ApiResponse< SubscriptionMetric > CreateWithHttpInfo (long? spaceId, Subs } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionMetric) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionMetric))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionMetric) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionMetric))); } /// /// Delete Deletes the entity with the given id. @@ -403,20 +391,12 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null && id.GetType() != typeof(byte[])) { @@ -430,8 +410,8 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -443,7 +423,9 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -483,28 +465,20 @@ public ApiResponse< SubscriptionMetric > ReadWithHttpInfo (long? spaceId, long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -516,8 +490,10 @@ public ApiResponse< SubscriptionMetric > ReadWithHttpInfo (long? spaceId, long? } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionMetric) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionMetric))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionMetric) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionMetric))); } /// /// Search Searches for the entities as specified by the given query. @@ -556,20 +532,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -583,8 +551,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -596,8 +564,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -636,20 +606,12 @@ public ApiResponse< SubscriptionMetric > UpdateWithHttpInfo (long? spaceId, Subs var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -663,8 +625,8 @@ public ApiResponse< SubscriptionMetric > UpdateWithHttpInfo (long? spaceId, Subs this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -676,8 +638,10 @@ public ApiResponse< SubscriptionMetric > UpdateWithHttpInfo (long? spaceId, Subs } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionMetric) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionMetric))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionMetric) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionMetric))); } } } diff --git a/src/Wallee/Service/SubscriptionMetricUsageService.cs b/src/Wallee/Service/SubscriptionMetricUsageService.cs index 051d3fa..b45ec21 100644 --- a/src/Wallee/Service/SubscriptionMetricUsageService.cs +++ b/src/Wallee/Service/SubscriptionMetricUsageService.cs @@ -138,7 +138,7 @@ public SubscriptionMetricUsageService(Wallee.Client.Configuration configuration /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -198,20 +198,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -225,8 +217,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -238,8 +230,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create This operation creates a new metric usage report. @@ -278,20 +272,12 @@ public ApiResponse< SubscriptionMetricUsageReport > CreateWithHttpInfo (long? sp var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (usageReport != null && usageReport.GetType() != typeof(byte[])) { @@ -305,8 +291,8 @@ public ApiResponse< SubscriptionMetricUsageReport > CreateWithHttpInfo (long? sp this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -318,8 +304,10 @@ public ApiResponse< SubscriptionMetricUsageReport > CreateWithHttpInfo (long? sp } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionMetricUsageReport) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionMetricUsageReport))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionMetricUsageReport) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionMetricUsageReport))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -358,28 +346,20 @@ public ApiResponse< SubscriptionMetricUsageReport > ReadWithHttpInfo (long? spac var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -391,8 +371,10 @@ public ApiResponse< SubscriptionMetricUsageReport > ReadWithHttpInfo (long? spac } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionMetricUsageReport) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionMetricUsageReport))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionMetricUsageReport) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionMetricUsageReport))); } /// /// Search Searches for the entities as specified by the given query. @@ -431,20 +413,12 @@ public ApiResponse< List > SearchWithHttpInfo (lo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -458,8 +432,8 @@ public ApiResponse< List > SearchWithHttpInfo (lo this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -471,8 +445,10 @@ public ApiResponse< List > SearchWithHttpInfo (lo } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/SubscriptionPeriodBillService.cs b/src/Wallee/Service/SubscriptionPeriodBillService.cs index 8649f21..2f44269 100644 --- a/src/Wallee/Service/SubscriptionPeriodBillService.cs +++ b/src/Wallee/Service/SubscriptionPeriodBillService.cs @@ -115,7 +115,7 @@ public SubscriptionPeriodBillService(Wallee.Client.Configuration configuration = /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -175,20 +175,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -202,8 +194,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -255,28 +249,20 @@ public ApiResponse< SubscriptionPeriodBill > ReadWithHttpInfo (long? spaceId, lo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< SubscriptionPeriodBill > ReadWithHttpInfo (long? spaceId, lo } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionPeriodBill) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionPeriodBill))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionPeriodBill) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionPeriodBill))); } /// /// Search Searches for the entities as specified by the given query. @@ -328,20 +316,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spa var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -355,8 +335,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spa this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -368,8 +348,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spa } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/SubscriptionProductComponentGroupService.cs b/src/Wallee/Service/SubscriptionProductComponentGroupService.cs index 7c49fca..b44a3f9 100644 --- a/src/Wallee/Service/SubscriptionProductComponentGroupService.cs +++ b/src/Wallee/Service/SubscriptionProductComponentGroupService.cs @@ -184,7 +184,7 @@ public SubscriptionProductComponentGroupService(Wallee.Client.Configuration conf /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -244,20 +244,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -271,8 +263,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -284,8 +276,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -324,20 +318,12 @@ public ApiResponse< SubscriptionProductComponentGroup > CreateWithHttpInfo (long var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -351,8 +337,8 @@ public ApiResponse< SubscriptionProductComponentGroup > CreateWithHttpInfo (long this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -364,8 +350,10 @@ public ApiResponse< SubscriptionProductComponentGroup > CreateWithHttpInfo (long } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionProductComponentGroup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductComponentGroup))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionProductComponentGroup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductComponentGroup))); } /// /// Delete Deletes the entity with the given id. @@ -403,20 +391,12 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null && id.GetType() != typeof(byte[])) { @@ -430,8 +410,8 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -443,7 +423,9 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -483,28 +465,20 @@ public ApiResponse< SubscriptionProductComponentGroup > ReadWithHttpInfo (long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -516,8 +490,10 @@ public ApiResponse< SubscriptionProductComponentGroup > ReadWithHttpInfo (long? } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionProductComponentGroup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductComponentGroup))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionProductComponentGroup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductComponentGroup))); } /// /// Search Searches for the entities as specified by the given query. @@ -556,20 +532,12 @@ public ApiResponse< List > SearchWithHttpInfo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -583,8 +551,8 @@ public ApiResponse< List > SearchWithHttpInfo this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -596,8 +564,10 @@ public ApiResponse< List > SearchWithHttpInfo } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -636,20 +606,12 @@ public ApiResponse< SubscriptionProductComponentGroup > UpdateWithHttpInfo (long var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -663,8 +625,8 @@ public ApiResponse< SubscriptionProductComponentGroup > UpdateWithHttpInfo (long this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -676,8 +638,10 @@ public ApiResponse< SubscriptionProductComponentGroup > UpdateWithHttpInfo (long } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionProductComponentGroup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductComponentGroup))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionProductComponentGroup) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductComponentGroup))); } } } diff --git a/src/Wallee/Service/SubscriptionProductComponentService.cs b/src/Wallee/Service/SubscriptionProductComponentService.cs index b6ca0f3..6111ba6 100644 --- a/src/Wallee/Service/SubscriptionProductComponentService.cs +++ b/src/Wallee/Service/SubscriptionProductComponentService.cs @@ -184,7 +184,7 @@ public SubscriptionProductComponentService(Wallee.Client.Configuration configura /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -244,20 +244,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -271,8 +263,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -284,8 +276,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -324,20 +318,12 @@ public ApiResponse< SubscriptionProductComponent > CreateWithHttpInfo (long? spa var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -351,8 +337,8 @@ public ApiResponse< SubscriptionProductComponent > CreateWithHttpInfo (long? spa this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -364,8 +350,10 @@ public ApiResponse< SubscriptionProductComponent > CreateWithHttpInfo (long? spa } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionProductComponent) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductComponent))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionProductComponent) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductComponent))); } /// /// Delete Deletes the entity with the given id. @@ -403,20 +391,12 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null && id.GetType() != typeof(byte[])) { @@ -430,8 +410,8 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -443,7 +423,9 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -483,28 +465,20 @@ public ApiResponse< SubscriptionProductComponent > ReadWithHttpInfo (long? space var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -516,8 +490,10 @@ public ApiResponse< SubscriptionProductComponent > ReadWithHttpInfo (long? space } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionProductComponent) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductComponent))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionProductComponent) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductComponent))); } /// /// Search Searches for the entities as specified by the given query. @@ -556,20 +532,12 @@ public ApiResponse< List > SearchWithHttpInfo (lon var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -583,8 +551,8 @@ public ApiResponse< List > SearchWithHttpInfo (lon this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -596,8 +564,10 @@ public ApiResponse< List > SearchWithHttpInfo (lon } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -636,20 +606,12 @@ public ApiResponse< SubscriptionProductComponent > UpdateWithHttpInfo (long? spa var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -663,8 +625,8 @@ public ApiResponse< SubscriptionProductComponent > UpdateWithHttpInfo (long? spa this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -676,8 +638,10 @@ public ApiResponse< SubscriptionProductComponent > UpdateWithHttpInfo (long? spa } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionProductComponent) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductComponent))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionProductComponent) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductComponent))); } } } diff --git a/src/Wallee/Service/SubscriptionProductFeeTierService.cs b/src/Wallee/Service/SubscriptionProductFeeTierService.cs index dae3095..4d51563 100644 --- a/src/Wallee/Service/SubscriptionProductFeeTierService.cs +++ b/src/Wallee/Service/SubscriptionProductFeeTierService.cs @@ -184,7 +184,7 @@ public SubscriptionProductFeeTierService(Wallee.Client.Configuration configurati /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -244,20 +244,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -271,8 +263,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -284,8 +276,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -324,20 +318,12 @@ public ApiResponse< ProductMeteredTierFee > CreateWithHttpInfo (long? spaceId, P var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -351,8 +337,8 @@ public ApiResponse< ProductMeteredTierFee > CreateWithHttpInfo (long? spaceId, P this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -364,8 +350,10 @@ public ApiResponse< ProductMeteredTierFee > CreateWithHttpInfo (long? spaceId, P } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProductMeteredTierFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductMeteredTierFee))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ProductMeteredTierFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductMeteredTierFee))); } /// /// Delete Deletes the entity with the given id. @@ -403,20 +391,12 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null && id.GetType() != typeof(byte[])) { @@ -430,8 +410,8 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -443,7 +423,9 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -483,28 +465,20 @@ public ApiResponse< ProductMeteredTierFee > ReadWithHttpInfo (long? spaceId, lon var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -516,8 +490,10 @@ public ApiResponse< ProductMeteredTierFee > ReadWithHttpInfo (long? spaceId, lon } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProductMeteredTierFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductMeteredTierFee))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ProductMeteredTierFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductMeteredTierFee))); } /// /// Search Searches for the entities as specified by the given query. @@ -556,20 +532,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spac var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -583,8 +551,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spac this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -596,8 +564,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spac } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -636,20 +606,12 @@ public ApiResponse< ProductMeteredTierFee > UpdateWithHttpInfo (long? spaceId, P var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -663,8 +625,8 @@ public ApiResponse< ProductMeteredTierFee > UpdateWithHttpInfo (long? spaceId, P this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -676,8 +638,10 @@ public ApiResponse< ProductMeteredTierFee > UpdateWithHttpInfo (long? spaceId, P } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProductMeteredTierFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductMeteredTierFee))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ProductMeteredTierFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductMeteredTierFee))); } } } diff --git a/src/Wallee/Service/SubscriptionProductMeteredFeeService.cs b/src/Wallee/Service/SubscriptionProductMeteredFeeService.cs index a48e555..2483f4c 100644 --- a/src/Wallee/Service/SubscriptionProductMeteredFeeService.cs +++ b/src/Wallee/Service/SubscriptionProductMeteredFeeService.cs @@ -184,7 +184,7 @@ public SubscriptionProductMeteredFeeService(Wallee.Client.Configuration configur /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -244,20 +244,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -271,8 +263,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -284,8 +276,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -324,20 +318,12 @@ public ApiResponse< ProductMeteredFee > CreateWithHttpInfo (long? spaceId, Produ var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -351,8 +337,8 @@ public ApiResponse< ProductMeteredFee > CreateWithHttpInfo (long? spaceId, Produ this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -364,8 +350,10 @@ public ApiResponse< ProductMeteredFee > CreateWithHttpInfo (long? spaceId, Produ } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProductMeteredFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductMeteredFee))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ProductMeteredFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductMeteredFee))); } /// /// Delete Deletes the entity with the given id. @@ -403,20 +391,12 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null && id.GetType() != typeof(byte[])) { @@ -430,8 +410,8 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -443,7 +423,9 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -483,28 +465,20 @@ public ApiResponse< ProductMeteredFee > ReadWithHttpInfo (long? spaceId, long? i var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -516,8 +490,10 @@ public ApiResponse< ProductMeteredFee > ReadWithHttpInfo (long? spaceId, long? i } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProductMeteredFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductMeteredFee))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ProductMeteredFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductMeteredFee))); } /// /// Search Searches for the entities as specified by the given query. @@ -556,20 +532,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -583,8 +551,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -596,8 +564,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -636,20 +606,12 @@ public ApiResponse< ProductMeteredFee > UpdateWithHttpInfo (long? spaceId, Produ var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -663,8 +625,8 @@ public ApiResponse< ProductMeteredFee > UpdateWithHttpInfo (long? spaceId, Produ this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -676,8 +638,10 @@ public ApiResponse< ProductMeteredFee > UpdateWithHttpInfo (long? spaceId, Produ } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProductMeteredFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductMeteredFee))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ProductMeteredFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductMeteredFee))); } } } diff --git a/src/Wallee/Service/SubscriptionProductPeriodFeeService.cs b/src/Wallee/Service/SubscriptionProductPeriodFeeService.cs index 8d2e0e6..7753e76 100644 --- a/src/Wallee/Service/SubscriptionProductPeriodFeeService.cs +++ b/src/Wallee/Service/SubscriptionProductPeriodFeeService.cs @@ -184,7 +184,7 @@ public SubscriptionProductPeriodFeeService(Wallee.Client.Configuration configura /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -244,20 +244,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -271,8 +263,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -284,8 +276,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -324,20 +318,12 @@ public ApiResponse< ProductPeriodFee > CreateWithHttpInfo (long? spaceId, Produc var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -351,8 +337,8 @@ public ApiResponse< ProductPeriodFee > CreateWithHttpInfo (long? spaceId, Produc this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -364,8 +350,10 @@ public ApiResponse< ProductPeriodFee > CreateWithHttpInfo (long? spaceId, Produc } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProductPeriodFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductPeriodFee))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ProductPeriodFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductPeriodFee))); } /// /// Delete Deletes the entity with the given id. @@ -403,20 +391,12 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null && id.GetType() != typeof(byte[])) { @@ -430,8 +410,8 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -443,7 +423,9 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -483,28 +465,20 @@ public ApiResponse< ProductPeriodFee > ReadWithHttpInfo (long? spaceId, long? id var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -516,8 +490,10 @@ public ApiResponse< ProductPeriodFee > ReadWithHttpInfo (long? spaceId, long? id } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProductPeriodFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductPeriodFee))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ProductPeriodFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductPeriodFee))); } /// /// Search Searches for the entities as specified by the given query. @@ -556,20 +532,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -583,8 +551,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -596,8 +564,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -636,20 +606,12 @@ public ApiResponse< ProductPeriodFee > UpdateWithHttpInfo (long? spaceId, Produc var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -663,8 +625,8 @@ public ApiResponse< ProductPeriodFee > UpdateWithHttpInfo (long? spaceId, Produc this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -676,8 +638,10 @@ public ApiResponse< ProductPeriodFee > UpdateWithHttpInfo (long? spaceId, Produc } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProductPeriodFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductPeriodFee))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ProductPeriodFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductPeriodFee))); } } } diff --git a/src/Wallee/Service/SubscriptionProductRetirementService.cs b/src/Wallee/Service/SubscriptionProductRetirementService.cs index 4f46dce..6e45ed1 100644 --- a/src/Wallee/Service/SubscriptionProductRetirementService.cs +++ b/src/Wallee/Service/SubscriptionProductRetirementService.cs @@ -138,7 +138,7 @@ public SubscriptionProductRetirementService(Wallee.Client.Configuration configur /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -198,20 +198,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -225,8 +217,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -238,8 +230,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create The create operation creates a new product retirement. @@ -278,20 +272,12 @@ public ApiResponse< SubscriptionProductRetirement > CreateWithHttpInfo (long? sp var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (retirement != null && retirement.GetType() != typeof(byte[])) { @@ -305,8 +291,8 @@ public ApiResponse< SubscriptionProductRetirement > CreateWithHttpInfo (long? sp this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -318,8 +304,10 @@ public ApiResponse< SubscriptionProductRetirement > CreateWithHttpInfo (long? sp } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionProductRetirement) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductRetirement))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionProductRetirement) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductRetirement))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -358,28 +346,20 @@ public ApiResponse< SubscriptionProductRetirement > ReadWithHttpInfo (long? spac var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -391,8 +371,10 @@ public ApiResponse< SubscriptionProductRetirement > ReadWithHttpInfo (long? spac } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionProductRetirement) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductRetirement))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionProductRetirement) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductRetirement))); } /// /// Search Searches for the entities as specified by the given query. @@ -431,20 +413,12 @@ public ApiResponse< List > SearchWithHttpInfo (lo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -458,8 +432,8 @@ public ApiResponse< List > SearchWithHttpInfo (lo this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -471,8 +445,10 @@ public ApiResponse< List > SearchWithHttpInfo (lo } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/SubscriptionProductService.cs b/src/Wallee/Service/SubscriptionProductService.cs index 9eeb45d..5aaf8cf 100644 --- a/src/Wallee/Service/SubscriptionProductService.cs +++ b/src/Wallee/Service/SubscriptionProductService.cs @@ -161,7 +161,7 @@ public SubscriptionProductService(Wallee.Client.Configuration configuration = nu /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -221,20 +221,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -248,8 +240,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -261,8 +253,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -301,20 +295,12 @@ public ApiResponse< SubscriptionProduct > CreateWithHttpInfo (long? spaceId, Sub var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -328,8 +314,8 @@ public ApiResponse< SubscriptionProduct > CreateWithHttpInfo (long? spaceId, Sub this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -341,8 +327,10 @@ public ApiResponse< SubscriptionProduct > CreateWithHttpInfo (long? spaceId, Sub } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionProduct) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProduct))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionProduct) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProduct))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -381,28 +369,20 @@ public ApiResponse< SubscriptionProduct > ReadWithHttpInfo (long? spaceId, long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -414,8 +394,10 @@ public ApiResponse< SubscriptionProduct > ReadWithHttpInfo (long? spaceId, long? } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionProduct) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProduct))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionProduct) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProduct))); } /// /// Search Searches for the entities as specified by the given query. @@ -454,20 +436,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceI var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -481,8 +455,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceI this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -494,8 +468,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceI } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -534,20 +510,12 @@ public ApiResponse< SubscriptionProduct > UpdateWithHttpInfo (long? spaceId, Sub var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -561,8 +529,8 @@ public ApiResponse< SubscriptionProduct > UpdateWithHttpInfo (long? spaceId, Sub this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -574,8 +542,10 @@ public ApiResponse< SubscriptionProduct > UpdateWithHttpInfo (long? spaceId, Sub } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionProduct) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProduct))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionProduct) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProduct))); } } } diff --git a/src/Wallee/Service/SubscriptionProductSetupFeeService.cs b/src/Wallee/Service/SubscriptionProductSetupFeeService.cs index 11cf51e..58a17b7 100644 --- a/src/Wallee/Service/SubscriptionProductSetupFeeService.cs +++ b/src/Wallee/Service/SubscriptionProductSetupFeeService.cs @@ -184,7 +184,7 @@ public SubscriptionProductSetupFeeService(Wallee.Client.Configuration configurat /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -244,20 +244,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -271,8 +263,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -284,8 +276,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -324,20 +318,12 @@ public ApiResponse< ProductSetupFee > CreateWithHttpInfo (long? spaceId, Product var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -351,8 +337,8 @@ public ApiResponse< ProductSetupFee > CreateWithHttpInfo (long? spaceId, Product this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -364,8 +350,10 @@ public ApiResponse< ProductSetupFee > CreateWithHttpInfo (long? spaceId, Product } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProductSetupFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductSetupFee))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ProductSetupFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductSetupFee))); } /// /// Delete Deletes the entity with the given id. @@ -403,20 +391,12 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null && id.GetType() != typeof(byte[])) { @@ -430,8 +410,8 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -443,7 +423,9 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -483,28 +465,20 @@ public ApiResponse< ProductSetupFee > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -516,8 +490,10 @@ public ApiResponse< ProductSetupFee > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProductSetupFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductSetupFee))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ProductSetupFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductSetupFee))); } /// /// Search Searches for the entities as specified by the given query. @@ -556,20 +532,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -583,8 +551,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -596,8 +564,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -636,20 +606,12 @@ public ApiResponse< ProductSetupFee > UpdateWithHttpInfo (long? spaceId, Product var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -663,8 +625,8 @@ public ApiResponse< ProductSetupFee > UpdateWithHttpInfo (long? spaceId, Product this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -676,8 +638,10 @@ public ApiResponse< ProductSetupFee > UpdateWithHttpInfo (long? spaceId, Product } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (ProductSetupFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductSetupFee))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (ProductSetupFee) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(ProductSetupFee))); } } } diff --git a/src/Wallee/Service/SubscriptionProductVersionRetirementService.cs b/src/Wallee/Service/SubscriptionProductVersionRetirementService.cs index 3ecae60..18604d8 100644 --- a/src/Wallee/Service/SubscriptionProductVersionRetirementService.cs +++ b/src/Wallee/Service/SubscriptionProductVersionRetirementService.cs @@ -138,7 +138,7 @@ public SubscriptionProductVersionRetirementService(Wallee.Client.Configuration c /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -198,20 +198,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -225,8 +217,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -238,8 +230,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create The create operation creates a new product version retirement. @@ -278,20 +272,12 @@ public ApiResponse< SubscriptionProductVersionRetirement > CreateWithHttpInfo (l var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (retirement != null && retirement.GetType() != typeof(byte[])) { @@ -305,8 +291,8 @@ public ApiResponse< SubscriptionProductVersionRetirement > CreateWithHttpInfo (l this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -318,8 +304,10 @@ public ApiResponse< SubscriptionProductVersionRetirement > CreateWithHttpInfo (l } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionProductVersionRetirement) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductVersionRetirement))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionProductVersionRetirement) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductVersionRetirement))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -358,28 +346,20 @@ public ApiResponse< SubscriptionProductVersionRetirement > ReadWithHttpInfo (lon var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -391,8 +371,10 @@ public ApiResponse< SubscriptionProductVersionRetirement > ReadWithHttpInfo (lon } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionProductVersionRetirement) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductVersionRetirement))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionProductVersionRetirement) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductVersionRetirement))); } /// /// Search Searches for the entities as specified by the given query. @@ -431,20 +413,12 @@ public ApiResponse< List > SearchWithHttpI var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -458,8 +432,8 @@ public ApiResponse< List > SearchWithHttpI this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -471,8 +445,10 @@ public ApiResponse< List > SearchWithHttpI } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/SubscriptionProductVersionService.cs b/src/Wallee/Service/SubscriptionProductVersionService.cs index d71338b..2760546 100644 --- a/src/Wallee/Service/SubscriptionProductVersionService.cs +++ b/src/Wallee/Service/SubscriptionProductVersionService.cs @@ -184,7 +184,7 @@ public SubscriptionProductVersionService(Wallee.Client.Configuration configurati /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -247,28 +247,20 @@ public ApiResponse< SubscriptionProductVersion > ActivateWithHttpInfo (long? spa var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (productVersionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "productVersionId", productVersionId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -280,8 +272,10 @@ public ApiResponse< SubscriptionProductVersion > ActivateWithHttpInfo (long? spa } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionProductVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductVersion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionProductVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductVersion))); } /// /// Count Counts the number of items in the database as restricted by the given filter. @@ -317,20 +311,12 @@ public ApiResponse< SubscriptionProductVersion > ActivateWithHttpInfo (long? spa var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -344,8 +330,8 @@ public ApiResponse< SubscriptionProductVersion > ActivateWithHttpInfo (long? spa this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -357,8 +343,10 @@ public ApiResponse< SubscriptionProductVersion > ActivateWithHttpInfo (long? spa } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -397,20 +385,12 @@ public ApiResponse< SubscriptionProductVersion > CreateWithHttpInfo (long? space var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -424,8 +404,8 @@ public ApiResponse< SubscriptionProductVersion > CreateWithHttpInfo (long? space this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -437,8 +417,10 @@ public ApiResponse< SubscriptionProductVersion > CreateWithHttpInfo (long? space } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionProductVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductVersion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionProductVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductVersion))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -477,28 +459,20 @@ public ApiResponse< SubscriptionProductVersion > ReadWithHttpInfo (long? spaceId var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -510,8 +484,10 @@ public ApiResponse< SubscriptionProductVersion > ReadWithHttpInfo (long? spaceId } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionProductVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductVersion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionProductVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductVersion))); } /// /// Search Searches for the entities as specified by the given query. @@ -550,20 +526,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -577,8 +545,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -590,8 +558,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -630,20 +600,12 @@ public ApiResponse< SubscriptionProductVersion > UpdateWithHttpInfo (long? space var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -657,8 +619,8 @@ public ApiResponse< SubscriptionProductVersion > UpdateWithHttpInfo (long? space this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -670,8 +632,10 @@ public ApiResponse< SubscriptionProductVersion > UpdateWithHttpInfo (long? space } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionProductVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductVersion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionProductVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionProductVersion))); } } } diff --git a/src/Wallee/Service/SubscriptionService.cs b/src/Wallee/Service/SubscriptionService.cs index 9e28f73..d2ce1d1 100644 --- a/src/Wallee/Service/SubscriptionService.cs +++ b/src/Wallee/Service/SubscriptionService.cs @@ -311,7 +311,7 @@ public SubscriptionService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -374,20 +374,12 @@ public ApiResponse< SubscriptionVersion > ApplyChangesWithHttpInfo (long? spaceI var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (request != null && request.GetType() != typeof(byte[])) { @@ -401,8 +393,8 @@ public ApiResponse< SubscriptionVersion > ApplyChangesWithHttpInfo (long? spaceI this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -414,8 +406,10 @@ public ApiResponse< SubscriptionVersion > ApplyChangesWithHttpInfo (long? spaceI } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionVersion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionVersion))); } /// /// Count Counts the number of items in the database as restricted by the given filter. @@ -451,20 +445,12 @@ public ApiResponse< SubscriptionVersion > ApplyChangesWithHttpInfo (long? spaceI var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -478,8 +464,8 @@ public ApiResponse< SubscriptionVersion > ApplyChangesWithHttpInfo (long? spaceI this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -491,8 +477,10 @@ public ApiResponse< SubscriptionVersion > ApplyChangesWithHttpInfo (long? spaceI } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create The create operation creates a new subscription and a corresponding subscription version. @@ -531,20 +519,12 @@ public ApiResponse< SubscriptionVersion > CreateWithHttpInfo (long? spaceId, Sub var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (createRequest != null && createRequest.GetType() != typeof(byte[])) { @@ -558,8 +538,8 @@ public ApiResponse< SubscriptionVersion > CreateWithHttpInfo (long? spaceId, Sub this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -571,8 +551,10 @@ public ApiResponse< SubscriptionVersion > CreateWithHttpInfo (long? spaceId, Sub } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionVersion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionVersion))); } /// /// initialize The initialize operation initializes a subscription. This method uses charge flows to carry out the transaction. @@ -611,27 +593,19 @@ public ApiResponse< SubscriptionCharge > InitializeWithHttpInfo (long? spaceId, var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (subscriptionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "subscriptionId", subscriptionId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -643,8 +617,10 @@ public ApiResponse< SubscriptionCharge > InitializeWithHttpInfo (long? spaceId, } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionCharge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionCharge))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionCharge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionCharge))); } /// /// initializeSubscriberPresent The initialize operation initializes a subscription when the subscriber is present. The method will initialize a transaction which has to be completed by using the transaction service. @@ -687,19 +663,11 @@ public ApiResponse< SubscriptionCharge > InitializeSubscriberPresentWithHttpInfo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (subscriptionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "subscriptionId", subscriptionId)); // query parameter if (successUrl != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "successUrl", successUrl)); // query parameter @@ -708,8 +676,8 @@ public ApiResponse< SubscriptionCharge > InitializeSubscriberPresentWithHttpInfo this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -721,8 +689,10 @@ public ApiResponse< SubscriptionCharge > InitializeSubscriberPresentWithHttpInfo } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionCharge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionCharge))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionCharge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionCharge))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -761,28 +731,20 @@ public ApiResponse< Subscription > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -794,8 +756,10 @@ public ApiResponse< Subscription > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Subscription) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Subscription))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Subscription) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Subscription))); } /// /// Search Searches for the entities as specified by the given query. @@ -834,20 +798,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Enti var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -861,8 +817,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Enti this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -874,8 +830,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Enti } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Search Subscription Invoices This operation allows to search for subscription invoices. @@ -919,20 +877,12 @@ public ApiResponse< List > SearchSubscriptionInvoicesWithHtt var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (subscriptionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "subscriptionId", subscriptionId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) @@ -947,8 +897,8 @@ public ApiResponse< List > SearchSubscriptionInvoicesWithHtt this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -960,8 +910,10 @@ public ApiResponse< List > SearchSubscriptionInvoicesWithHtt } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// terminate This operation allows to terminate a subscription. @@ -1004,19 +956,11 @@ public ApiResponse TerminateWithHttpInfo (long? spaceId, long? subscript var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (subscriptionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "subscriptionId", subscriptionId)); // query parameter if (respectTerminationPeriod != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "respectTerminationPeriod", respectTerminationPeriod)); // query parameter @@ -1024,8 +968,8 @@ public ApiResponse TerminateWithHttpInfo (long? spaceId, long? subscript this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1037,7 +981,9 @@ public ApiResponse TerminateWithHttpInfo (long? spaceId, long? subscript } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -1082,20 +1028,12 @@ public ApiResponse< Subscription > UpdateWithHttpInfo (long? spaceId, long? subs var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (subscriptionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "subscriptionId", subscriptionId)); // query parameter if (request != null && request.GetType() != typeof(byte[])) @@ -1110,8 +1048,8 @@ public ApiResponse< Subscription > UpdateWithHttpInfo (long? spaceId, long? subs this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1123,8 +1061,10 @@ public ApiResponse< Subscription > UpdateWithHttpInfo (long? spaceId, long? subs } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Subscription) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Subscription))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Subscription) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Subscription))); } /// /// update product version The update product version operation updates the product version of the subscription to the latest active product version. @@ -1168,19 +1108,11 @@ public ApiResponse< SubscriptionVersion > UpdateProductVersionWithHttpInfo (long var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (subscriptionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "subscriptionId", subscriptionId)); // query parameter if (respectTerminationPeriod != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "respectTerminationPeriod", respectTerminationPeriod)); // query parameter @@ -1188,8 +1120,8 @@ public ApiResponse< SubscriptionVersion > UpdateProductVersionWithHttpInfo (long this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1201,8 +1133,10 @@ public ApiResponse< SubscriptionVersion > UpdateProductVersionWithHttpInfo (long } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionVersion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionVersion))); } } } diff --git a/src/Wallee/Service/SubscriptionSuspensionService.cs b/src/Wallee/Service/SubscriptionSuspensionService.cs index c104305..8bc0d48 100644 --- a/src/Wallee/Service/SubscriptionSuspensionService.cs +++ b/src/Wallee/Service/SubscriptionSuspensionService.cs @@ -161,7 +161,7 @@ public SubscriptionSuspensionService(Wallee.Client.Configuration configuration = /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -221,20 +221,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -248,8 +240,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -261,8 +253,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create The create operation creates a new subscription suspension. @@ -301,20 +295,12 @@ public ApiResponse< SubscriptionSuspension > CreateWithHttpInfo (long? spaceId, var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (suspension != null && suspension.GetType() != typeof(byte[])) { @@ -328,8 +314,8 @@ public ApiResponse< SubscriptionSuspension > CreateWithHttpInfo (long? spaceId, this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -341,8 +327,10 @@ public ApiResponse< SubscriptionSuspension > CreateWithHttpInfo (long? spaceId, } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionSuspension) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionSuspension))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionSuspension) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionSuspension))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -381,28 +369,20 @@ public ApiResponse< SubscriptionSuspension > ReadWithHttpInfo (long? spaceId, lo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -414,8 +394,10 @@ public ApiResponse< SubscriptionSuspension > ReadWithHttpInfo (long? spaceId, lo } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionSuspension) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionSuspension))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionSuspension) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionSuspension))); } /// /// Search Searches for the entities as specified by the given query. @@ -454,20 +436,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spa var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -481,8 +455,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spa this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -494,8 +468,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spa } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// terminate The create operation creates a new subscription suspension. @@ -534,28 +510,20 @@ public ApiResponse< SubscriptionSuspension > TerminateWithHttpInfo (long? spaceI var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (suspensionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "suspensionId", suspensionId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -567,8 +535,10 @@ public ApiResponse< SubscriptionSuspension > TerminateWithHttpInfo (long? spaceI } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionSuspension) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionSuspension))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionSuspension) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionSuspension))); } } } diff --git a/src/Wallee/Service/SubscriptionVersionService.cs b/src/Wallee/Service/SubscriptionVersionService.cs index 4ae7161..0c04dfd 100644 --- a/src/Wallee/Service/SubscriptionVersionService.cs +++ b/src/Wallee/Service/SubscriptionVersionService.cs @@ -115,7 +115,7 @@ public SubscriptionVersionService(Wallee.Client.Configuration configuration = nu /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -175,20 +175,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -202,8 +194,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -215,8 +207,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -255,28 +249,20 @@ public ApiResponse< SubscriptionVersion > ReadWithHttpInfo (long? spaceId, long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< SubscriptionVersion > ReadWithHttpInfo (long? spaceId, long? } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (SubscriptionVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionVersion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (SubscriptionVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(SubscriptionVersion))); } /// /// Search Searches for the entities as specified by the given query. @@ -328,20 +316,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceI var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -355,8 +335,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceI this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -368,8 +348,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceI } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/TokenService.cs b/src/Wallee/Service/TokenService.cs index da08d42..731135f 100644 --- a/src/Wallee/Service/TokenService.cs +++ b/src/Wallee/Service/TokenService.cs @@ -276,7 +276,7 @@ public TokenService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -339,26 +339,19 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (transactionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "transactionId", transactionId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -370,8 +363,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); } /// /// Count Counts the number of items in the database as restricted by the given filter. @@ -407,20 +402,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -434,8 +421,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -447,8 +434,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -487,20 +476,12 @@ public ApiResponse< Token > CreateWithHttpInfo (long? spaceId, TokenCreate entit var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -514,8 +495,8 @@ public ApiResponse< Token > CreateWithHttpInfo (long? spaceId, TokenCreate entit this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -527,8 +508,10 @@ public ApiResponse< Token > CreateWithHttpInfo (long? spaceId, TokenCreate entit } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Token) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Token))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Token) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Token))); } /// /// Create Token Based On Transaction This operation creates a token for the given transaction and fills it with the stored payment information of the transaction. @@ -567,26 +550,19 @@ public ApiResponse< TokenVersion > CreateTokenBasedOnTransactionWithHttpInfo (lo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (transactionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "transactionId", transactionId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -598,8 +574,10 @@ public ApiResponse< TokenVersion > CreateTokenBasedOnTransactionWithHttpInfo (lo } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TokenVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TokenVersion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TokenVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TokenVersion))); } /// /// Create Transaction for Token Update This operation creates a transaction which allows the updating of the provided token. @@ -638,26 +616,19 @@ public ApiResponse< Transaction > CreateTransactionForTokenUpdateWithHttpInfo (l var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (tokenId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "tokenId", tokenId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -669,8 +640,10 @@ public ApiResponse< Transaction > CreateTransactionForTokenUpdateWithHttpInfo (l } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); } /// /// Delete Deletes the entity with the given id. @@ -708,20 +681,12 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null && id.GetType() != typeof(byte[])) { @@ -735,8 +700,8 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -748,7 +713,9 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -788,26 +755,19 @@ public ApiResponse< Charge > ProcessTransactionWithHttpInfo (long? spaceId, long var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (transactionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "transactionId", transactionId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -819,8 +779,10 @@ public ApiResponse< Charge > ProcessTransactionWithHttpInfo (long? spaceId, long } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Charge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Charge))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Charge) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Charge))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -859,28 +821,20 @@ public ApiResponse< Token > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -892,8 +846,10 @@ public ApiResponse< Token > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Token) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Token))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Token) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Token))); } /// /// Search Searches for the entities as specified by the given query. @@ -932,20 +888,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, EntityQuery var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -959,8 +907,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, EntityQuery this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -972,8 +920,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, EntityQuery } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -1012,20 +962,12 @@ public ApiResponse< Token > UpdateWithHttpInfo (long? spaceId, TokenUpdate entit var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -1039,8 +981,8 @@ public ApiResponse< Token > UpdateWithHttpInfo (long? spaceId, TokenUpdate entit this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1052,8 +994,10 @@ public ApiResponse< Token > UpdateWithHttpInfo (long? spaceId, TokenUpdate entit } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Token) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Token))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Token) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Token))); } } } diff --git a/src/Wallee/Service/TokenVersionService.cs b/src/Wallee/Service/TokenVersionService.cs index c79e2b4..f268ea7 100644 --- a/src/Wallee/Service/TokenVersionService.cs +++ b/src/Wallee/Service/TokenVersionService.cs @@ -138,7 +138,7 @@ public TokenVersionService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -201,28 +201,20 @@ public ApiResponse< TokenVersion > ActiveVersionWithHttpInfo (long? spaceId, lon var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -234,8 +226,10 @@ public ApiResponse< TokenVersion > ActiveVersionWithHttpInfo (long? spaceId, lon } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TokenVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TokenVersion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TokenVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TokenVersion))); } /// /// Count Counts the number of items in the database as restricted by the given filter. @@ -271,20 +265,12 @@ public ApiResponse< TokenVersion > ActiveVersionWithHttpInfo (long? spaceId, lon var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -298,8 +284,8 @@ public ApiResponse< TokenVersion > ActiveVersionWithHttpInfo (long? spaceId, lon this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -311,8 +297,10 @@ public ApiResponse< TokenVersion > ActiveVersionWithHttpInfo (long? spaceId, lon } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -351,28 +339,20 @@ public ApiResponse< TokenVersion > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -384,8 +364,10 @@ public ApiResponse< TokenVersion > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TokenVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TokenVersion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TokenVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TokenVersion))); } /// /// Search Searches for the entities as specified by the given query. @@ -424,20 +406,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Enti var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -451,8 +425,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Enti this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -464,8 +438,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Enti } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/TransactionCommentService.cs b/src/Wallee/Service/TransactionCommentService.cs index b8f324e..4b674cb 100644 --- a/src/Wallee/Service/TransactionCommentService.cs +++ b/src/Wallee/Service/TransactionCommentService.cs @@ -207,7 +207,7 @@ public TransactionCommentService(Wallee.Client.Configuration configuration = nul /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -270,28 +270,20 @@ public ApiResponse< List > AllWithHttpInfo (long? spaceId, l var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (transactionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "transactionId", transactionId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -303,8 +295,10 @@ public ApiResponse< List > AllWithHttpInfo (long? spaceId, l } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Create Creates the comment with the given properties. @@ -343,20 +337,12 @@ public ApiResponse< TransactionComment > CreateWithHttpInfo (long? spaceId, Tran var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -370,8 +356,8 @@ public ApiResponse< TransactionComment > CreateWithHttpInfo (long? spaceId, Tran this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -383,8 +369,10 @@ public ApiResponse< TransactionComment > CreateWithHttpInfo (long? spaceId, Tran } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionComment))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionComment))); } /// /// Delete Deletes the comment with the given id. @@ -422,28 +410,20 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -455,7 +435,9 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -494,28 +476,20 @@ public ApiResponse PinWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -527,7 +501,9 @@ public ApiResponse PinWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -567,28 +543,20 @@ public ApiResponse< TransactionComment > ReadWithHttpInfo (long? spaceId, long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -600,8 +568,10 @@ public ApiResponse< TransactionComment > ReadWithHttpInfo (long? spaceId, long? } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionComment))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionComment))); } /// /// Unpin Unpins the comment from the top. @@ -639,28 +609,20 @@ public ApiResponse UnpinWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -672,7 +634,9 @@ public ApiResponse UnpinWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -712,20 +676,12 @@ public ApiResponse< TransactionComment > UpdateWithHttpInfo (long? spaceId, Tran var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -739,8 +695,8 @@ public ApiResponse< TransactionComment > UpdateWithHttpInfo (long? spaceId, Tran this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -752,8 +708,10 @@ public ApiResponse< TransactionComment > UpdateWithHttpInfo (long? spaceId, Tran } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionComment))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionComment))); } } } diff --git a/src/Wallee/Service/TransactionCompletionService.cs b/src/Wallee/Service/TransactionCompletionService.cs index 1867a78..927e4e8 100644 --- a/src/Wallee/Service/TransactionCompletionService.cs +++ b/src/Wallee/Service/TransactionCompletionService.cs @@ -207,7 +207,7 @@ public TransactionCompletionService(Wallee.Client.Configuration configuration = /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -270,27 +270,19 @@ public ApiResponse< TransactionCompletion > CompleteOfflineWithHttpInfo (long? s var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -302,8 +294,10 @@ public ApiResponse< TransactionCompletion > CompleteOfflineWithHttpInfo (long? s } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionCompletion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionCompletion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionCompletion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionCompletion))); } /// /// completeOnline This operation completes the transaction online. The completion is forwarded to the processor. This implies that the processor may take some actions based on the completion. @@ -342,27 +336,19 @@ public ApiResponse< TransactionCompletion > CompleteOnlineWithHttpInfo (long? sp var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -374,8 +360,10 @@ public ApiResponse< TransactionCompletion > CompleteOnlineWithHttpInfo (long? sp } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionCompletion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionCompletion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionCompletion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionCompletion))); } /// /// completePartiallyOffline This operation can be used to partially complete the transaction offline. The completion is not forwarded to the processor. This implies the processor does not do anything. This method is only here to fix manually the transaction state. @@ -414,20 +402,12 @@ public ApiResponse< TransactionCompletion > CompletePartiallyOfflineWithHttpInfo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (completion != null && completion.GetType() != typeof(byte[])) { @@ -441,8 +421,8 @@ public ApiResponse< TransactionCompletion > CompletePartiallyOfflineWithHttpInfo this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -454,8 +434,10 @@ public ApiResponse< TransactionCompletion > CompletePartiallyOfflineWithHttpInfo } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionCompletion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionCompletion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionCompletion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionCompletion))); } /// /// completePartiallyOnline This operation can be used to partially complete the transaction online. The completion is forwarded to the processor. This implies that the processor may take some actions based on the completion. @@ -494,20 +476,12 @@ public ApiResponse< TransactionCompletion > CompletePartiallyOnlineWithHttpInfo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (completion != null && completion.GetType() != typeof(byte[])) { @@ -521,8 +495,8 @@ public ApiResponse< TransactionCompletion > CompletePartiallyOnlineWithHttpInfo this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -534,8 +508,10 @@ public ApiResponse< TransactionCompletion > CompletePartiallyOnlineWithHttpInfo } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionCompletion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionCompletion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionCompletion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionCompletion))); } /// /// Count Counts the number of items in the database as restricted by the given filter. @@ -571,20 +547,12 @@ public ApiResponse< TransactionCompletion > CompletePartiallyOnlineWithHttpInfo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -598,8 +566,8 @@ public ApiResponse< TransactionCompletion > CompletePartiallyOnlineWithHttpInfo this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -611,8 +579,10 @@ public ApiResponse< TransactionCompletion > CompletePartiallyOnlineWithHttpInfo } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -651,28 +621,20 @@ public ApiResponse< TransactionCompletion > ReadWithHttpInfo (long? spaceId, lon var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -684,8 +646,10 @@ public ApiResponse< TransactionCompletion > ReadWithHttpInfo (long? spaceId, lon } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionCompletion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionCompletion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionCompletion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionCompletion))); } /// /// Search Searches for the entities as specified by the given query. @@ -724,20 +688,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spac var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -751,8 +707,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spac this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -764,8 +720,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spac } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/TransactionIframeService.cs b/src/Wallee/Service/TransactionIframeService.cs index 521e46f..a1041ce 100644 --- a/src/Wallee/Service/TransactionIframeService.cs +++ b/src/Wallee/Service/TransactionIframeService.cs @@ -69,7 +69,7 @@ public TransactionIframeService(Wallee.Client.Configuration configuration = null /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -132,28 +132,19 @@ public ApiResponse< string > JavascriptUrlWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/plain;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -165,8 +156,10 @@ public ApiResponse< string > JavascriptUrlWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); } } } diff --git a/src/Wallee/Service/TransactionInvoiceCommentService.cs b/src/Wallee/Service/TransactionInvoiceCommentService.cs index d01fa60..e3ad72d 100644 --- a/src/Wallee/Service/TransactionInvoiceCommentService.cs +++ b/src/Wallee/Service/TransactionInvoiceCommentService.cs @@ -207,7 +207,7 @@ public TransactionInvoiceCommentService(Wallee.Client.Configuration configuratio /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -270,28 +270,20 @@ public ApiResponse< List > AllWithHttpInfo (long? spa var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (invoiceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "invoiceId", invoiceId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -303,8 +295,10 @@ public ApiResponse< List > AllWithHttpInfo (long? spa } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Create Creates the comment with the given properties. @@ -343,20 +337,12 @@ public ApiResponse< TransactionInvoiceComment > CreateWithHttpInfo (long? spaceI var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -370,8 +356,8 @@ public ApiResponse< TransactionInvoiceComment > CreateWithHttpInfo (long? spaceI this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -383,8 +369,10 @@ public ApiResponse< TransactionInvoiceComment > CreateWithHttpInfo (long? spaceI } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionInvoiceComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionInvoiceComment))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionInvoiceComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionInvoiceComment))); } /// /// Delete Deletes the comment with the given id. @@ -422,28 +410,20 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -455,7 +435,9 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -494,28 +476,20 @@ public ApiResponse PinWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -527,7 +501,9 @@ public ApiResponse PinWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -567,28 +543,20 @@ public ApiResponse< TransactionInvoiceComment > ReadWithHttpInfo (long? spaceId, var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -600,8 +568,10 @@ public ApiResponse< TransactionInvoiceComment > ReadWithHttpInfo (long? spaceId, } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionInvoiceComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionInvoiceComment))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionInvoiceComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionInvoiceComment))); } /// /// Unpin Unpins the comment from the top. @@ -639,28 +609,20 @@ public ApiResponse UnpinWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -672,7 +634,9 @@ public ApiResponse UnpinWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -712,20 +676,12 @@ public ApiResponse< TransactionInvoiceComment > UpdateWithHttpInfo (long? spaceI var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -739,8 +695,8 @@ public ApiResponse< TransactionInvoiceComment > UpdateWithHttpInfo (long? spaceI this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -752,8 +708,10 @@ public ApiResponse< TransactionInvoiceComment > UpdateWithHttpInfo (long? spaceI } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionInvoiceComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionInvoiceComment))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionInvoiceComment) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionInvoiceComment))); } } } diff --git a/src/Wallee/Service/TransactionInvoiceService.cs b/src/Wallee/Service/TransactionInvoiceService.cs index e4a81a7..db4caf8 100644 --- a/src/Wallee/Service/TransactionInvoiceService.cs +++ b/src/Wallee/Service/TransactionInvoiceService.cs @@ -257,7 +257,7 @@ public TransactionInvoiceService(Wallee.Client.Configuration configuration = nul /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -317,20 +317,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -344,8 +336,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -357,8 +349,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// getInvoiceDocument Returns the PDF document for the transaction invoice with given id. @@ -397,28 +391,20 @@ public ApiResponse< RenderedDocument > GetInvoiceDocumentWithHttpInfo (long? spa var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -430,8 +416,10 @@ public ApiResponse< RenderedDocument > GetInvoiceDocumentWithHttpInfo (long? spa } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RenderedDocument) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RenderedDocument))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (RenderedDocument) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RenderedDocument))); } /// /// getInvoiceDocumentWithTargetMediaType Returns the PDF document for the transaction invoice with given id and target media type id. @@ -475,20 +463,12 @@ public ApiResponse< RenderedDocument > GetInvoiceDocumentWithTargetMediaTypeWith var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter if (targetMediaTypeId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "targetMediaTypeId", targetMediaTypeId)); // query parameter @@ -496,8 +476,8 @@ public ApiResponse< RenderedDocument > GetInvoiceDocumentWithTargetMediaTypeWith this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -509,8 +489,10 @@ public ApiResponse< RenderedDocument > GetInvoiceDocumentWithTargetMediaTypeWith } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RenderedDocument) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RenderedDocument))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (RenderedDocument) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RenderedDocument))); } /// /// isReplacementPossible Returns whether the transaction invoice with the given id can be replaced. @@ -549,28 +531,20 @@ public ApiResponse< RenderedDocument > GetInvoiceDocumentWithTargetMediaTypeWith var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -582,8 +556,10 @@ public ApiResponse< RenderedDocument > GetInvoiceDocumentWithTargetMediaTypeWith } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); } /// /// Mark as Derecognized Marks the transaction invoice with the given id as derecognized. @@ -622,28 +598,20 @@ public ApiResponse< TransactionInvoice > MarkAsDerecognizedWithHttpInfo (long? s var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -655,8 +623,10 @@ public ApiResponse< TransactionInvoice > MarkAsDerecognizedWithHttpInfo (long? s } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionInvoice) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionInvoice))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionInvoice) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionInvoice))); } /// /// Mark as Paid Marks the transaction invoice with the given id as paid. @@ -695,28 +665,20 @@ public ApiResponse< TransactionInvoice > MarkAsPaidWithHttpInfo (long? spaceId, var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -728,8 +690,10 @@ public ApiResponse< TransactionInvoice > MarkAsPaidWithHttpInfo (long? spaceId, } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionInvoice) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionInvoice))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionInvoice) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionInvoice))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -768,28 +732,20 @@ public ApiResponse< TransactionInvoice > ReadWithHttpInfo (long? spaceId, long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -801,8 +757,10 @@ public ApiResponse< TransactionInvoice > ReadWithHttpInfo (long? spaceId, long? } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionInvoice) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionInvoice))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionInvoice) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionInvoice))); } /// /// replace Replaces the transaction invoice with given id with the replacement and returns the new transaction invoice. @@ -846,20 +804,12 @@ public ApiResponse< TransactionInvoice > ReplaceWithHttpInfo (long? spaceId, lon var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter if (replacement != null && replacement.GetType() != typeof(byte[])) @@ -874,8 +824,8 @@ public ApiResponse< TransactionInvoice > ReplaceWithHttpInfo (long? spaceId, lon this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -887,8 +837,10 @@ public ApiResponse< TransactionInvoice > ReplaceWithHttpInfo (long? spaceId, lon } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionInvoice) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionInvoice))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionInvoice) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionInvoice))); } /// /// Search Searches for the entities as specified by the given query. @@ -927,20 +879,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -954,8 +898,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -967,8 +911,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/TransactionLightboxService.cs b/src/Wallee/Service/TransactionLightboxService.cs index 3d3ec1b..b171ac7 100644 --- a/src/Wallee/Service/TransactionLightboxService.cs +++ b/src/Wallee/Service/TransactionLightboxService.cs @@ -69,7 +69,7 @@ public TransactionLightboxService(Wallee.Client.Configuration configuration = nu /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -132,28 +132,19 @@ public ApiResponse< string > JavascriptUrlWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/plain;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -165,8 +156,10 @@ public ApiResponse< string > JavascriptUrlWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); } } } diff --git a/src/Wallee/Service/TransactionLineItemVersionService.cs b/src/Wallee/Service/TransactionLineItemVersionService.cs index 21a2701..21c5afd 100644 --- a/src/Wallee/Service/TransactionLineItemVersionService.cs +++ b/src/Wallee/Service/TransactionLineItemVersionService.cs @@ -138,7 +138,7 @@ public TransactionLineItemVersionService(Wallee.Client.Configuration configurati /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -198,20 +198,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -225,8 +217,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -238,8 +230,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// create This operation applies a line item version on a particular transaction. @@ -278,20 +272,12 @@ public ApiResponse< TransactionLineItemVersion > CreateWithHttpInfo (long? space var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (lineItemVersion != null && lineItemVersion.GetType() != typeof(byte[])) { @@ -305,8 +291,8 @@ public ApiResponse< TransactionLineItemVersion > CreateWithHttpInfo (long? space this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -318,8 +304,10 @@ public ApiResponse< TransactionLineItemVersion > CreateWithHttpInfo (long? space } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionLineItemVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionLineItemVersion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionLineItemVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionLineItemVersion))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -358,28 +346,20 @@ public ApiResponse< TransactionLineItemVersion > ReadWithHttpInfo (long? spaceId var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -391,8 +371,10 @@ public ApiResponse< TransactionLineItemVersion > ReadWithHttpInfo (long? spaceId } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionLineItemVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionLineItemVersion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionLineItemVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionLineItemVersion))); } /// /// Search Searches for the entities as specified by the given query. @@ -431,20 +413,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -458,8 +432,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -471,8 +445,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } } } diff --git a/src/Wallee/Service/TransactionMobileSdkService.cs b/src/Wallee/Service/TransactionMobileSdkService.cs index 7e2ce67..f3e71b9 100644 --- a/src/Wallee/Service/TransactionMobileSdkService.cs +++ b/src/Wallee/Service/TransactionMobileSdkService.cs @@ -67,7 +67,7 @@ public TransactionMobileSdkService(Wallee.Client.Configuration configuration = n /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -125,27 +125,18 @@ public ApiResponse< string > PaymentFormUrlWithHttpInfo (string credentials) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/plain;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (credentials != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "credentials", credentials)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -157,8 +148,10 @@ public ApiResponse< string > PaymentFormUrlWithHttpInfo (string credentials) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); } } } diff --git a/src/Wallee/Service/TransactionPaymentPageService.cs b/src/Wallee/Service/TransactionPaymentPageService.cs index d34605e..97c5a9c 100644 --- a/src/Wallee/Service/TransactionPaymentPageService.cs +++ b/src/Wallee/Service/TransactionPaymentPageService.cs @@ -69,7 +69,7 @@ public TransactionPaymentPageService(Wallee.Client.Configuration configuration = /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -132,28 +132,19 @@ public ApiResponse< string > PaymentPageUrlWithHttpInfo (long? spaceId, long? id var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json", - "text/plain;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -165,8 +156,10 @@ public ApiResponse< string > PaymentPageUrlWithHttpInfo (long? spaceId, long? id } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); } } } diff --git a/src/Wallee/Service/TransactionService.cs b/src/Wallee/Service/TransactionService.cs index 37e55d3..bd4e2a3 100644 --- a/src/Wallee/Service/TransactionService.cs +++ b/src/Wallee/Service/TransactionService.cs @@ -458,7 +458,7 @@ public TransactionService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -521,20 +521,12 @@ public ApiResponse< Transaction > ConfirmWithHttpInfo (long? spaceId, Transactio var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (transactionModel != null && transactionModel.GetType() != typeof(byte[])) { @@ -548,8 +540,8 @@ public ApiResponse< Transaction > ConfirmWithHttpInfo (long? spaceId, Transactio this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -561,8 +553,10 @@ public ApiResponse< Transaction > ConfirmWithHttpInfo (long? spaceId, Transactio } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); } /// /// Count Counts the number of items in the database as restricted by the given filter. @@ -598,20 +592,12 @@ public ApiResponse< Transaction > ConfirmWithHttpInfo (long? spaceId, Transactio var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -625,8 +611,8 @@ public ApiResponse< Transaction > ConfirmWithHttpInfo (long? spaceId, Transactio this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -638,8 +624,10 @@ public ApiResponse< Transaction > ConfirmWithHttpInfo (long? spaceId, Transactio } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -678,20 +666,12 @@ public ApiResponse< Transaction > CreateWithHttpInfo (long? spaceId, Transaction var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (transaction != null && transaction.GetType() != typeof(byte[])) { @@ -705,8 +685,8 @@ public ApiResponse< Transaction > CreateWithHttpInfo (long? spaceId, Transaction this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -718,8 +698,10 @@ public ApiResponse< Transaction > CreateWithHttpInfo (long? spaceId, Transaction } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); } /// /// Create Transaction Credentials This operation allows to create transaction credentials to delegate temporarily the access to the web service API for this particular transaction. @@ -758,26 +740,19 @@ public ApiResponse< string > CreateTransactionCredentialsWithHttpInfo (long? spa var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -789,8 +764,10 @@ public ApiResponse< string > CreateTransactionCredentialsWithHttpInfo (long? spa } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); } /// /// Delete One-Click Token with Credentials This operation removes the given token. @@ -828,26 +805,19 @@ public ApiResponse DeleteOneClickTokenWithCredentialsWithHttpInfo (strin var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (credentials != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "credentials", credentials)); // query parameter if (tokenId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "tokenId", tokenId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -859,7 +829,9 @@ public ApiResponse DeleteOneClickTokenWithCredentialsWithHttpInfo (strin } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -899,21 +871,12 @@ public ApiResponse< byte[] > ExportWithHttpInfo (long? spaceId, EntityExportRequ var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8", - "text/csv" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (request != null && request.GetType() != typeof(byte[])) { @@ -927,8 +890,8 @@ public ApiResponse< byte[] > ExportWithHttpInfo (long? spaceId, EntityExportRequ this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -940,8 +903,10 @@ public ApiResponse< byte[] > ExportWithHttpInfo (long? spaceId, EntityExportRequ } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (byte[]) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(byte[]))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (byte[]) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(byte[]))); } /// /// Fetch One Click Tokens with Credentials This operation returns the token version objects which references the tokens usable as one-click payment tokens for the provided transaction. @@ -975,25 +940,18 @@ public ApiResponse< List > FetchOneClickTokensWithCredentialsWithH var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (credentials != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "credentials", credentials)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1005,8 +963,10 @@ public ApiResponse< List > FetchOneClickTokensWithCredentialsWithH } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Fetch Possible Payment Methods This operation allows to get the payment method configurations which can be used with the provided transaction. @@ -1050,19 +1010,11 @@ public ApiResponse< List > FetchPaymentMethodsWithHt var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter if (integrationMode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "integrationMode", integrationMode)); // query parameter @@ -1070,8 +1022,8 @@ public ApiResponse< List > FetchPaymentMethodsWithHt this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1083,8 +1035,10 @@ public ApiResponse< List > FetchPaymentMethodsWithHt } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Fetch Possible Payment Methods with Credentials This operation allows to get the payment method configurations which can be used with the provided transaction. @@ -1123,27 +1077,19 @@ public ApiResponse< List > FetchPaymentMethodsWithCr var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (credentials != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "credentials", credentials)); // query parameter if (integrationMode != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "integrationMode", integrationMode)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1155,8 +1101,10 @@ public ApiResponse< List > FetchPaymentMethodsWithCr } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// getInvoiceDocument Returns the PDF document for the transaction invoice with given id. @@ -1195,28 +1143,20 @@ public ApiResponse< RenderedDocument > GetInvoiceDocumentWithHttpInfo (long? spa var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1228,8 +1168,10 @@ public ApiResponse< RenderedDocument > GetInvoiceDocumentWithHttpInfo (long? spa } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RenderedDocument) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RenderedDocument))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (RenderedDocument) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RenderedDocument))); } /// /// getLatestSuccessfulTransactionLineItemVersion @@ -1268,27 +1210,19 @@ public ApiResponse< TransactionLineItemVersion > GetLatestTransactionLineItemVer var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1300,8 +1234,10 @@ public ApiResponse< TransactionLineItemVersion > GetLatestTransactionLineItemVer } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionLineItemVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionLineItemVersion))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionLineItemVersion) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionLineItemVersion))); } /// /// getPackingSlip Returns the packing slip for the transaction with given id. @@ -1340,28 +1276,20 @@ public ApiResponse< RenderedDocument > GetPackingSlipWithHttpInfo (long? spaceId var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1373,8 +1301,10 @@ public ApiResponse< RenderedDocument > GetPackingSlipWithHttpInfo (long? spaceId } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (RenderedDocument) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RenderedDocument))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (RenderedDocument) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(RenderedDocument))); } /// /// Process One-Click Token with Credentials This operation assigns the given token to the transaction and process it. This method will return an URL where the customer has to be redirect to complete the transaction. @@ -1413,26 +1343,19 @@ public ApiResponse< string > ProcessOneClickTokenAndRedirectWithCredentialsWithH var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (credentials != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "credentials", credentials)); // query parameter if (tokenId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "tokenId", tokenId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1444,8 +1367,10 @@ public ApiResponse< string > ProcessOneClickTokenAndRedirectWithCredentialsWithH } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); } /// /// Process Without User Interaction This operation processes the transaction without requiring that the customer is present. Means this operation applies strategies to process the transaction without a direct interaction with the buyer. This operation is suitable for recurring transactions. @@ -1484,26 +1409,19 @@ public ApiResponse< Transaction > ProcessWithoutUserInteractionWithHttpInfo (lon var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1515,8 +1433,10 @@ public ApiResponse< Transaction > ProcessWithoutUserInteractionWithHttpInfo (lon } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -1555,28 +1475,20 @@ public ApiResponse< Transaction > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1588,8 +1500,10 @@ public ApiResponse< Transaction > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); } /// /// Read With Credentials Reads the transaction with the given 'id' and returns it. This method uses the credentials to authenticate and identify the transaction. @@ -1623,27 +1537,19 @@ public ApiResponse< Transaction > ReadWithCredentialsWithHttpInfo (string creden var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (credentials != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "credentials", credentials)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1655,8 +1561,10 @@ public ApiResponse< Transaction > ReadWithCredentialsWithHttpInfo (string creden } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); } /// /// Search Searches for the entities as specified by the given query. @@ -1695,20 +1603,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entit var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -1722,8 +1622,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entit this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1735,8 +1635,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entit } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -1775,20 +1677,12 @@ public ApiResponse< Transaction > UpdateWithHttpInfo (long? spaceId, Transaction var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -1802,8 +1696,8 @@ public ApiResponse< Transaction > UpdateWithHttpInfo (long? spaceId, Transaction this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -1815,8 +1709,10 @@ public ApiResponse< Transaction > UpdateWithHttpInfo (long? spaceId, Transaction } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction))); } } } diff --git a/src/Wallee/Service/TransactionTerminalService.cs b/src/Wallee/Service/TransactionTerminalService.cs index f9409a3..8cb51fe 100644 --- a/src/Wallee/Service/TransactionTerminalService.cs +++ b/src/Wallee/Service/TransactionTerminalService.cs @@ -96,7 +96,7 @@ public TransactionTerminalService(Wallee.Client.Configuration configuration = nu /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -159,20 +159,12 @@ public ApiResponse< List > FetchReceiptsWithHttpInfo (l var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (request != null && request.GetType() != typeof(byte[])) { @@ -186,8 +178,8 @@ public ApiResponse< List > FetchReceiptsWithHttpInfo (l this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -199,8 +191,10 @@ public ApiResponse< List > FetchReceiptsWithHttpInfo (l } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Create Till Connection Credentials This operation creates a set of credentials to use within the WebSocket. @@ -246,18 +240,11 @@ public ApiResponse< string > TillConnectionCredentialsWithHttpInfo (long? spaceI var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (transactionId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "transactionId", transactionId)); // query parameter if (terminalId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "terminalId", terminalId)); // query parameter @@ -266,8 +253,8 @@ public ApiResponse< string > TillConnectionCredentialsWithHttpInfo (long? spaceI this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -279,8 +266,10 @@ public ApiResponse< string > TillConnectionCredentialsWithHttpInfo (long? spaceI } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (string) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(string))); } } } diff --git a/src/Wallee/Service/TransactionVoidService.cs b/src/Wallee/Service/TransactionVoidService.cs index e860701..f99d5c6 100644 --- a/src/Wallee/Service/TransactionVoidService.cs +++ b/src/Wallee/Service/TransactionVoidService.cs @@ -161,7 +161,7 @@ public TransactionVoidService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -221,20 +221,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -248,8 +240,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -261,8 +253,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Read Reads the entity with the given 'id' and returns it. @@ -301,28 +295,20 @@ public ApiResponse< TransactionVoid > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -334,8 +320,10 @@ public ApiResponse< TransactionVoid > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionVoid) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionVoid))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionVoid) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionVoid))); } /// /// Search Searches for the entities as specified by the given query. @@ -374,20 +362,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -401,8 +381,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -414,8 +394,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// voidOffline This operation voids the transaction offline. The void is not forwarded to the processor. This implies the processor does not do anything. This method is only here to fix manually the transaction state. @@ -454,27 +436,19 @@ public ApiResponse< TransactionVoid > VoidOfflineWithHttpInfo (long? spaceId, lo var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -486,8 +460,10 @@ public ApiResponse< TransactionVoid > VoidOfflineWithHttpInfo (long? spaceId, lo } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionVoid) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionVoid))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionVoid) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionVoid))); } /// /// voidOnline This operation voids the transaction online. The void is forwarded to the processor. This implies that the processor may take some actions based on the void. @@ -526,27 +502,19 @@ public ApiResponse< TransactionVoid > VoidOnlineWithHttpInfo (long? spaceId, lon var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -558,8 +526,10 @@ public ApiResponse< TransactionVoid > VoidOnlineWithHttpInfo (long? spaceId, lon } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (TransactionVoid) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionVoid))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (TransactionVoid) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TransactionVoid))); } } } diff --git a/src/Wallee/Service/UserAccountRoleService.cs b/src/Wallee/Service/UserAccountRoleService.cs index 226411d..ab1403c 100644 --- a/src/Wallee/Service/UserAccountRoleService.cs +++ b/src/Wallee/Service/UserAccountRoleService.cs @@ -117,7 +117,7 @@ public UserAccountRoleService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -187,19 +187,11 @@ public ApiResponse< UserAccountRole > AddRoleWithHttpInfo (long? userId, long? a var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (userId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId)); // query parameter if (accountId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "accountId", accountId)); // query parameter if (roleId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "roleId", roleId)); // query parameter @@ -208,8 +200,8 @@ public ApiResponse< UserAccountRole > AddRoleWithHttpInfo (long? userId, long? a this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -221,8 +213,10 @@ public ApiResponse< UserAccountRole > AddRoleWithHttpInfo (long? userId, long? a } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserAccountRole) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserAccountRole))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (UserAccountRole) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserAccountRole))); } /// /// List Roles List all the roles that are assigned to the given user in the given account. @@ -261,27 +255,19 @@ public ApiResponse< List > ListWithHttpInfo (long? userId, long var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (userId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId)); // query parameter if (accountId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "accountId", accountId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -293,8 +279,10 @@ public ApiResponse< List > ListWithHttpInfo (long? userId, long } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Remove Role This operation removes the specified user account role. @@ -327,26 +315,18 @@ public ApiResponse RemoveRoleWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -358,7 +338,9 @@ public ApiResponse RemoveRoleWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } } diff --git a/src/Wallee/Service/UserSpaceRoleService.cs b/src/Wallee/Service/UserSpaceRoleService.cs index c68d84a..34bec38 100644 --- a/src/Wallee/Service/UserSpaceRoleService.cs +++ b/src/Wallee/Service/UserSpaceRoleService.cs @@ -115,7 +115,7 @@ public UserSpaceRoleService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -183,19 +183,11 @@ public ApiResponse< UserSpaceRole > AddRoleWithHttpInfo (long? userId, long? spa var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (userId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId)); // query parameter if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (roleId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "roleId", roleId)); // query parameter @@ -203,8 +195,8 @@ public ApiResponse< UserSpaceRole > AddRoleWithHttpInfo (long? userId, long? spa this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -216,8 +208,10 @@ public ApiResponse< UserSpaceRole > AddRoleWithHttpInfo (long? userId, long? spa } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (UserSpaceRole) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserSpaceRole))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (UserSpaceRole) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(UserSpaceRole))); } /// /// List Roles List all the roles that are assigned to the given user in the given space. @@ -256,27 +250,19 @@ public ApiResponse< List > ListWithHttpInfo (long? userId, long? var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (userId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "userId", userId)); // query parameter if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -288,8 +274,10 @@ public ApiResponse< List > ListWithHttpInfo (long? userId, long? } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Remove Role This operation removes the specified user space role. @@ -322,26 +310,18 @@ public ApiResponse RemoveRoleWithHttpInfo (long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -353,7 +333,9 @@ public ApiResponse RemoveRoleWithHttpInfo (long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } } diff --git a/src/Wallee/Service/WebAppService.cs b/src/Wallee/Service/WebAppService.cs index 79a6681..c399a77 100644 --- a/src/Wallee/Service/WebAppService.cs +++ b/src/Wallee/Service/WebAppService.cs @@ -109,7 +109,7 @@ public WebAppService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -167,26 +167,18 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -198,8 +190,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (bool?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(bool?))); } /// /// Confirm This operation confirms the app installation. This method has to be invoked after the user returns to the web app. The request of the user will contain the code as a request parameter. The web app is implied by the client ID resp. user ID that is been used to invoke this operation. @@ -233,19 +227,11 @@ public ApiResponse< WebAppConfirmationResponse > ConfirmWithHttpInfo (WebAppConf var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (request != null && request.GetType() != typeof(byte[])) { localVarPostBody = this.Configuration.ApiClient.Serialize(request); // http body (model) parameter @@ -258,8 +244,8 @@ public ApiResponse< WebAppConfirmationResponse > ConfirmWithHttpInfo (WebAppConf this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -271,8 +257,10 @@ public ApiResponse< WebAppConfirmationResponse > ConfirmWithHttpInfo (WebAppConf } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WebAppConfirmationResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WebAppConfirmationResponse))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (WebAppConfirmationResponse) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WebAppConfirmationResponse))); } /// /// Uninstall This operation uninstalls the web app from the provided space. The web app is implied by the client ID resp. user ID that is been used to invoke this operation. @@ -305,25 +293,18 @@ public ApiResponse UninstallWithHttpInfo (long? spaceId) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -335,7 +316,9 @@ public ApiResponse UninstallWithHttpInfo (long? spaceId) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } } diff --git a/src/Wallee/Service/WebhookListenerService.cs b/src/Wallee/Service/WebhookListenerService.cs index 022a4e3..7be6bea 100644 --- a/src/Wallee/Service/WebhookListenerService.cs +++ b/src/Wallee/Service/WebhookListenerService.cs @@ -184,7 +184,7 @@ public WebhookListenerService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -244,20 +244,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -271,8 +263,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -284,8 +276,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -324,20 +318,12 @@ public ApiResponse< WebhookListener > CreateWithHttpInfo (long? spaceId, Webhook var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -351,8 +337,8 @@ public ApiResponse< WebhookListener > CreateWithHttpInfo (long? spaceId, Webhook this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -364,8 +350,10 @@ public ApiResponse< WebhookListener > CreateWithHttpInfo (long? spaceId, Webhook } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WebhookListener) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WebhookListener))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (WebhookListener) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WebhookListener))); } /// /// Delete Deletes the entity with the given id. @@ -403,20 +391,12 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null && id.GetType() != typeof(byte[])) { @@ -430,8 +410,8 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -443,7 +423,9 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -483,28 +465,20 @@ public ApiResponse< WebhookListener > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -516,8 +490,10 @@ public ApiResponse< WebhookListener > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WebhookListener) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WebhookListener))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (WebhookListener) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WebhookListener))); } /// /// Search Searches for the entities as specified by the given query. @@ -556,20 +532,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -583,8 +551,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -596,8 +564,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, E } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -636,20 +606,12 @@ public ApiResponse< WebhookListener > UpdateWithHttpInfo (long? spaceId, Webhook var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -663,8 +625,8 @@ public ApiResponse< WebhookListener > UpdateWithHttpInfo (long? spaceId, Webhook this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -676,8 +638,10 @@ public ApiResponse< WebhookListener > UpdateWithHttpInfo (long? spaceId, Webhook } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WebhookListener) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WebhookListener))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (WebhookListener) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WebhookListener))); } } } diff --git a/src/Wallee/Service/WebhookUrlService.cs b/src/Wallee/Service/WebhookUrlService.cs index 2de22fb..f6c18dc 100644 --- a/src/Wallee/Service/WebhookUrlService.cs +++ b/src/Wallee/Service/WebhookUrlService.cs @@ -184,7 +184,7 @@ public WebhookUrlService(Wallee.Client.Configuration configuration = null) /// The base path public String GetBasePath() { - return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); } @@ -244,20 +244,12 @@ public Wallee.Client.ExceptionFactory ExceptionFactory var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (filter != null && filter.GetType() != typeof(byte[])) { @@ -271,8 +263,8 @@ public Wallee.Client.ExceptionFactory ExceptionFactory this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -284,8 +276,10 @@ public Wallee.Client.ExceptionFactory ExceptionFactory } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (long?) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(long?))); } /// /// Create Creates the entity with the given properties. @@ -324,20 +318,12 @@ public ApiResponse< WebhookUrl > CreateWithHttpInfo (long? spaceId, WebhookUrlCr var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -351,8 +337,8 @@ public ApiResponse< WebhookUrl > CreateWithHttpInfo (long? spaceId, WebhookUrlCr this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -364,8 +350,10 @@ public ApiResponse< WebhookUrl > CreateWithHttpInfo (long? spaceId, WebhookUrlCr } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WebhookUrl) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WebhookUrl))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (WebhookUrl) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WebhookUrl))); } /// /// Delete Deletes the entity with the given id. @@ -403,20 +391,12 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null && id.GetType() != typeof(byte[])) { @@ -430,8 +410,8 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -443,7 +423,9 @@ public ApiResponse DeleteWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), null); } /// @@ -483,28 +465,20 @@ public ApiResponse< WebhookUrl > ReadWithHttpInfo (long? spaceId, long? id) var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "*/*" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -516,8 +490,10 @@ public ApiResponse< WebhookUrl > ReadWithHttpInfo (long? spaceId, long? id) } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WebhookUrl) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WebhookUrl))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (WebhookUrl) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WebhookUrl))); } /// /// Search Searches for the entities as specified by the given query. @@ -556,20 +532,12 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entity var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (query != null && query.GetType() != typeof(byte[])) { @@ -583,8 +551,8 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entity this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -596,8 +564,10 @@ public ApiResponse< List > SearchWithHttpInfo (long? spaceId, Entity } return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// Update This updates the entity with the given properties. Only those properties which should be updated can be provided. The 'id' and 'version' are required to identify the entity. @@ -636,20 +606,12 @@ public ApiResponse< WebhookUrl > UpdateWithHttpInfo (long? spaceId, WebhookUrlUp var localVarFileParams = new Dictionary(); Object localVarPostBody = null; - // to determine the Content-Type header + // to determine the Content type String[] localVarHttpContentTypes = new String[] { "application/json;charset=utf-8" }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); - // to determine the Accept header - String[] localVarHttpHeaderAccepts = new String[] { - "application/json;charset=utf-8" - }; - String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); - if (localVarHttpHeaderAccept != null) - localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); - if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter if (entity != null && entity.GetType() != typeof(byte[])) { @@ -663,8 +625,8 @@ public ApiResponse< WebhookUrl > UpdateWithHttpInfo (long? spaceId, WebhookUrlUp this.Configuration.ApiClient.ResetTimeout(); // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; @@ -676,8 +638,10 @@ public ApiResponse< WebhookUrl > UpdateWithHttpInfo (long? spaceId, WebhookUrlUp } return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()), - (WebhookUrl) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WebhookUrl))); + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (WebhookUrl) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WebhookUrl))); } } } diff --git a/src/Wallee/Wallee.csproj b/src/Wallee/Wallee.csproj index 27859ac..0e15b8e 100644 --- a/src/Wallee/Wallee.csproj +++ b/src/Wallee/Wallee.csproj @@ -1,6 +1,6 @@ - netstandard2.0;net452 + netstandard2.0;net5.0 true false ..\..\AssemblyOriginatorKeyFile.snk @@ -20,12 +20,12 @@ Wallee https://www.apache.org/licenses/LICENSE-2.0.txt https://github.com/wallee-payment/csharp-sdk - 4.3.11 - 4.3.11 + 5.0.0 + 5.0.0 Wallee;payment;sdk;Payment Integration Library customweb - 4.3.11 + 5.0.0 git https://github.com/wallee-payment/csharp-sdk.git Wallee @@ -34,7 +34,7 @@ Wallee - + @@ -42,6 +42,7 @@ +