From 5302b4007002fbcf1fc430ddacd342076aff734a Mon Sep 17 00:00:00 2001 From: wallee-deployment-user Date: Fri, 22 Dec 2023 15:06:38 +0100 Subject: [PATCH] Release 7.0.2 --- README.md | 10 +- src/Wallee/Client/ApiClient.cs | 4 +- src/Wallee/Client/Configuration.cs | 8 +- src/Wallee/Model/ChargeAttempt.cs | 22 +- src/Wallee/Model/PaymentConnector.cs | 15 ++ src/Wallee/Model/RestCountry.cs | 52 ++--- .../SubscriptionComponentConfiguration.cs | 45 ++++ src/Wallee/Model/WalletType.cs | 126 +++++++++-- .../Model/WebhookEncryptionPublicKey.cs | 120 +++++++++++ src/Wallee/Service/AccountService.cs | 20 ++ src/Wallee/Service/AnalyticsQueryService.cs | 20 ++ src/Wallee/Service/ApplicationUserService.cs | 20 ++ src/Wallee/Service/BankAccountService.cs | 11 + src/Wallee/Service/BankTransactionService.cs | 11 + src/Wallee/Service/CardProcessingService.cs | 8 + src/Wallee/Service/ChargeAttemptService.cs | 11 + .../Service/ChargeBankTransactionService.cs | 11 + .../ChargeFlowLevelPaymentLinkService.cs | 11 + src/Wallee/Service/ChargeFlowLevelService.cs | 14 ++ src/Wallee/Service/ChargeFlowService.cs | 23 ++ src/Wallee/Service/ConditionTypeService.cs | 8 + src/Wallee/Service/CountryService.cs | 5 + src/Wallee/Service/CountryStateService.cs | 8 + .../Service/CurrencyBankAccountService.cs | 11 + src/Wallee/Service/CurrencyService.cs | 5 + src/Wallee/Service/CustomerAddressService.cs | 23 ++ src/Wallee/Service/CustomerCommentService.cs | 26 +++ src/Wallee/Service/CustomerService.cs | 20 ++ .../Service/DebtCollectionCaseService.cs | 38 ++++ .../DebtCollectorConfigurationService.cs | 11 + src/Wallee/Service/DebtCollectorService.cs | 8 + .../Service/DeliveryIndicationService.cs | 17 ++ src/Wallee/Service/DocumentTemplateService.cs | 11 + .../Service/DocumentTemplateTypeService.cs | 8 + .../ExternalTransferBankTransactionService.cs | 11 + src/Wallee/Service/HumanUserService.cs | 23 ++ .../Service/InstallmentPaymentService.cs | 14 ++ .../Service/InstallmentPaymentSliceService.cs | 11 + .../InstallmentPlanCalculationService.cs | 5 + .../InstallmentPlanConfigurationService.cs | 11 + ...nstallmentPlanSliceConfigurationService.cs | 11 + .../InternalTransferBankTransactionService.cs | 11 + ...eReconciliationRecordInvoiceLinkService.cs | 17 ++ .../InvoiceReconciliationRecordService.cs | 20 ++ .../Service/InvoiceReimbursementService.cs | 17 ++ .../Service/LabelDescriptionGroupService.cs | 8 + src/Wallee/Service/LabelDescriptionService.cs | 8 + src/Wallee/Service/LanguageService.cs | 5 + .../Service/LegalOrganizationFormService.cs | 11 + src/Wallee/Service/ManualTaskService.cs | 11 + src/Wallee/Service/MerticUsageService.cs | 5 + .../PaymentConnectorConfigurationService.cs | 11 + src/Wallee/Service/PaymentConnectorService.cs | 8 + src/Wallee/Service/PaymentLinkService.cs | 20 ++ .../Service/PaymentMethodBrandService.cs | 8 + .../PaymentMethodConfigurationService.cs | 11 + src/Wallee/Service/PaymentMethodService.cs | 8 + .../PaymentProcessorConfigurationService.cs | 11 + src/Wallee/Service/PaymentProcessorService.cs | 8 + src/Wallee/Service/PaymentTerminalService.cs | 23 ++ .../Service/PaymentTerminalTillService.cs | 8 + ...aymentTerminalTransactionSummaryService.cs | 14 ++ src/Wallee/Service/PaymentWebAppService.cs | 29 +++ src/Wallee/Service/PermissionService.cs | 8 + .../Service/RefundBankTransactionService.cs | 11 + src/Wallee/Service/RefundCommentService.cs | 23 ++ .../RefundRecoveryBankTransactionService.cs | 11 + src/Wallee/Service/RefundService.cs | 26 +++ .../Service/ShopifyRecurringOrderService.cs | 14 ++ .../Service/ShopifySubscriberService.cs | 14 ++ .../ShopifySubscriptionProductService.cs | 17 ++ .../Service/ShopifySubscriptionService.cs | 23 ++ .../ShopifySubscriptionSuspensionService.cs | 17 ++ .../ShopifySubscriptionVersionService.cs | 11 + .../Service/ShopifyTransactionService.cs | 11 + src/Wallee/Service/SpaceService.cs | 20 ++ src/Wallee/Service/StaticValueService.cs | 8 + src/Wallee/Service/SubscriberService.cs | 20 ++ .../Service/SubscriptionAffiliateService.cs | 20 ++ .../Service/SubscriptionChargeService.cs | 17 ++ .../Service/SubscriptionLedgerEntryService.cs | 14 ++ .../Service/SubscriptionMetricService.cs | 20 ++ .../Service/SubscriptionMetricUsageService.cs | 14 ++ .../Service/SubscriptionPeriodBillService.cs | 11 + ...ubscriptionProductComponentGroupService.cs | 20 ++ .../SubscriptionProductComponentService.cs | 20 ++ .../SubscriptionProductFeeTierService.cs | 20 ++ .../SubscriptionProductMeteredFeeService.cs | 20 ++ .../SubscriptionProductPeriodFeeService.cs | 20 ++ .../SubscriptionProductRetirementService.cs | 14 ++ .../Service/SubscriptionProductService.cs | 17 ++ .../SubscriptionProductSetupFeeService.cs | 20 ++ ...criptionProductVersionRetirementService.cs | 14 ++ .../SubscriptionProductVersionService.cs | 20 ++ src/Wallee/Service/SubscriptionService.cs | 35 +++ .../Service/SubscriptionSuspensionService.cs | 17 ++ .../Service/SubscriptionVersionService.cs | 11 + src/Wallee/Service/TokenService.cs | 126 +++++++++++ src/Wallee/Service/TokenVersionService.cs | 14 ++ .../Service/TransactionCommentService.cs | 23 ++ .../Service/TransactionCompletionService.cs | 23 ++ .../Service/TransactionIframeService.cs | 5 + .../TransactionInvoiceCommentService.cs | 23 ++ .../Service/TransactionInvoiceService.cs | 29 +++ .../Service/TransactionLightboxService.cs | 5 + .../TransactionLineItemVersionService.cs | 14 ++ .../Service/TransactionMobileSdkService.cs | 5 + .../Service/TransactionPaymentPageService.cs | 5 + src/Wallee/Service/TransactionService.cs | 56 +++++ .../Service/TransactionTerminalService.cs | 8 + src/Wallee/Service/TransactionVoidService.cs | 17 ++ src/Wallee/Service/UserAccountRoleService.cs | 11 + src/Wallee/Service/UserSpaceRoleService.cs | 11 + src/Wallee/Service/WebAppService.cs | 11 + .../Service/WebhookEncryptionService.cs | 201 ++++++++++++++++++ src/Wallee/Service/WebhookListenerService.cs | 20 ++ src/Wallee/Service/WebhookUrlService.cs | 20 ++ src/Wallee/Util/EncryptionUtil.cs | 68 ++++++ src/Wallee/Wallee.csproj | 7 +- 119 files changed, 2332 insertions(+), 67 deletions(-) create mode 100644 src/Wallee/Model/WebhookEncryptionPublicKey.cs create mode 100644 src/Wallee/Service/WebhookEncryptionService.cs create mode 100644 src/Wallee/Util/EncryptionUtil.cs diff --git a/README.md b/README.md index 2b77ecb..1c818a2 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,14 @@ The wallee C# library wraps around the wallee API. This library facilitates your - [RestSharp](https://www.nuget.org/packages/RestSharp) - 110.2.0 - [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.3 - [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 2.0.1 +- [BouncyCastle.Cryptography](https://www.nuget.org/packages/BouncyCastle.Cryptography/) - 2.0.0 The DLLs included in the package may not be the latest version. We recommend using [NuGet](https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages: ``` Install-Package RestSharp Install-Package Newtonsoft.Json Install-Package JsonSubTypes +Install-Package BouncyCastle.Cryptography ``` @@ -31,13 +33,13 @@ Install-Package JsonSubTypes ## Installation ``` # Package Manager -Install-Package Wallee -Version 7.0.1 +Install-Package Wallee -Version 7.0.2 # .NET CLI -dotnet add package Wallee --version 7.0.1 +dotnet add package Wallee --version 7.0.2 # Paket CLI -paket add Wallee --version 7.0.1 +paket add Wallee --version 7.0.2 # PackageReference - + ``` Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces: diff --git a/src/Wallee/Client/ApiClient.cs b/src/Wallee/Client/ApiClient.cs index 72173ba..44d2af2 100644 --- a/src/Wallee/Client/ApiClient.cs +++ b/src/Wallee/Client/ApiClient.cs @@ -124,7 +124,7 @@ private RestRequest PrepareRequest( request.AddBody(postBody, contentType); } - if (contentType != null) + if (contentType != null && postBody != null) { request.AddHeader("Content-Type", contentType); } @@ -153,7 +153,7 @@ public Object CallApi( { Dictionary defaultHeaderParams = new Dictionary() { - {"x-meta-sdk-version", "7.0.1"}, + {"x-meta-sdk-version", "7.0.2"}, {"x-meta-sdk-language", "csharp"}, {"x-meta-sdk-provider", "wallee"}, {"x-meta-sdk-language-version", Environment.Version.ToString()} diff --git a/src/Wallee/Client/Configuration.cs b/src/Wallee/Client/Configuration.cs index 566d18c..0c45b0c 100644 --- a/src/Wallee/Client/Configuration.cs +++ b/src/Wallee/Client/Configuration.cs @@ -21,7 +21,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "7.0.1"; + public const string Version = "7.0.2"; /// /// Identifier for ISO 8601 DateTime Format @@ -94,7 +94,7 @@ public Configuration(string applicationUserID, string authenticationKey, RestCli _authenticationKey = authenticationKey; _applicationUserID = applicationUserID; _restClientOptions = restClientOptions; - UserAgent = "Wallee/7.0.1/csharp"; + UserAgent = "Wallee/7.0.2/csharp"; BasePath = "https://app-wallee.com:443/api"; DefaultHeader = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); @@ -355,8 +355,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: 7.0.1\n"; - report += " SDK Package Version: 7.0.1\n"; + report += " Version of the API: 7.0.2\n"; + report += " SDK Package Version: 7.0.2\n"; return report; } diff --git a/src/Wallee/Model/ChargeAttempt.cs b/src/Wallee/Model/ChargeAttempt.cs index ce962a9..457772c 100644 --- a/src/Wallee/Model/ChargeAttempt.cs +++ b/src/Wallee/Model/ChargeAttempt.cs @@ -43,11 +43,6 @@ public partial class ChargeAttempt : TransactionAwareEntity, IEquatable - /// Gets or Sets WalletType - /// - [DataMember(Name="walletType", EmitDefaultValue=false)] - public WalletType? WalletType { get; private set; } - /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] @@ -193,6 +188,11 @@ public ChargeAttempt() [DataMember(Name="version", EmitDefaultValue=false)] public int? Version { get; private set; } + /// + /// Gets or Sets Wallet + /// + [DataMember(Name="wallet", EmitDefaultValue=false)] + public WalletType Wallet { get; private set; } /// /// Returns the string presentation of the object @@ -231,7 +231,7 @@ public override string ToString() sb.Append(" TokenVersion: ").Append(TokenVersion).Append("\n"); sb.Append(" UserFailureMessage: ").Append(UserFailureMessage).Append("\n"); sb.Append(" Version: ").Append(Version).Append("\n"); - sb.Append(" WalletType: ").Append(WalletType).Append("\n"); + sb.Append(" Wallet: ").Append(Wallet).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -408,9 +408,9 @@ public bool Equals(ChargeAttempt input) this.Version.Equals(input.Version)) ) && base.Equals(input) && ( - this.WalletType == input.WalletType || - (this.WalletType != null && - this.WalletType.Equals(input.WalletType)) + this.Wallet == input.Wallet || + (this.Wallet != null && + this.Wallet.Equals(input.Wallet)) ); } @@ -479,8 +479,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.UserFailureMessage.GetHashCode(); if (this.Version != null) hashCode = hashCode * 59 + this.Version.GetHashCode(); - if (this.WalletType != null) - hashCode = hashCode * 59 + this.WalletType.GetHashCode(); + if (this.Wallet != null) + hashCode = hashCode * 59 + this.Wallet.GetHashCode(); return hashCode; } } diff --git a/src/Wallee/Model/PaymentConnector.cs b/src/Wallee/Model/PaymentConnector.cs index 1c8615b..e8f310d 100644 --- a/src/Wallee/Model/PaymentConnector.cs +++ b/src/Wallee/Model/PaymentConnector.cs @@ -97,6 +97,12 @@ public PaymentConnector() [DataMember(Name="processor", EmitDefaultValue=false)] public long? Processor { get; private set; } + /// + /// Gets or Sets SupportedCurrencies + /// + [DataMember(Name="supportedCurrencies", EmitDefaultValue=false)] + public List SupportedCurrencies { get; private set; } + /// /// Gets or Sets SupportedCustomersPresences /// @@ -128,6 +134,7 @@ public override string ToString() sb.Append(" PaymentMethodBrand: ").Append(PaymentMethodBrand).Append("\n"); sb.Append(" PrimaryRiskTaker: ").Append(PrimaryRiskTaker).Append("\n"); sb.Append(" Processor: ").Append(Processor).Append("\n"); + sb.Append(" SupportedCurrencies: ").Append(SupportedCurrencies).Append("\n"); sb.Append(" SupportedCustomersPresences: ").Append(SupportedCustomersPresences).Append("\n"); sb.Append(" SupportedFeatures: ").Append(SupportedFeatures).Append("\n"); sb.Append("}\n"); @@ -222,6 +229,12 @@ public bool Equals(PaymentConnector input) (this.Processor != null && this.Processor.Equals(input.Processor)) ) && + ( + this.SupportedCurrencies == input.SupportedCurrencies || + this.SupportedCurrencies != null && + input.SupportedCurrencies != null && + this.SupportedCurrencies.SequenceEqual(input.SupportedCurrencies) + ) && ( this.SupportedCustomersPresences == input.SupportedCustomersPresences || this.SupportedCustomersPresences != null && @@ -267,6 +280,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.PrimaryRiskTaker.GetHashCode(); if (this.Processor != null) hashCode = hashCode * 59 + this.Processor.GetHashCode(); + if (this.SupportedCurrencies != null) + hashCode = hashCode * 59 + this.SupportedCurrencies.GetHashCode(); if (this.SupportedCustomersPresences != null) hashCode = hashCode * 59 + this.SupportedCustomersPresences.GetHashCode(); if (this.SupportedFeatures != null) diff --git a/src/Wallee/Model/RestCountry.cs b/src/Wallee/Model/RestCountry.cs index 6087614..101ccbf 100644 --- a/src/Wallee/Model/RestCountry.cs +++ b/src/Wallee/Model/RestCountry.cs @@ -28,26 +28,26 @@ public RestCountry() { } + /// + /// Specifies the country's way of formatting addresses. + /// + /// Specifies the country's way of formatting addresses. + [DataMember(Name="addressFormat", EmitDefaultValue=false)] + public RestAddressFormat AddressFormat { get; private set; } + /// /// The country's two-letter code (ISO 3166-1 alpha-2 format). /// /// The country's two-letter code (ISO 3166-1 alpha-2 format). - [DataMember(Name="ISOCode2Letter", EmitDefaultValue=false)] - public string ISOCode2Letter { get; private set; } + [DataMember(Name="isoCode2", EmitDefaultValue=false)] + public string IsoCode2 { get; private set; } /// /// The country's three-letter code (ISO 3166-1 alpha-3 format). /// /// The country's three-letter code (ISO 3166-1 alpha-3 format). - [DataMember(Name="ISOCode3Letter", EmitDefaultValue=false)] - public string ISOCode3Letter { get; private set; } - - /// - /// Specifies the country's way of formatting addresses. - /// - /// Specifies the country's way of formatting addresses. - [DataMember(Name="addressFormat", EmitDefaultValue=false)] - public RestAddressFormat AddressFormat { get; private set; } + [DataMember(Name="isoCode3", EmitDefaultValue=false)] + public string IsoCode3 { get; private set; } /// /// The name of the country. @@ -78,9 +78,9 @@ public override string ToString() { var sb = new StringBuilder(); sb.Append("class RestCountry {\n"); - sb.Append(" ISOCode2Letter: ").Append(ISOCode2Letter).Append("\n"); - sb.Append(" ISOCode3Letter: ").Append(ISOCode3Letter).Append("\n"); sb.Append(" AddressFormat: ").Append(AddressFormat).Append("\n"); + sb.Append(" IsoCode2: ").Append(IsoCode2).Append("\n"); + sb.Append(" IsoCode3: ").Append(IsoCode3).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" NumericCode: ").Append(NumericCode).Append("\n"); sb.Append(" StateCodes: ").Append(StateCodes).Append("\n"); @@ -119,19 +119,19 @@ public bool Equals(RestCountry input) return ( - this.ISOCode2Letter == input.ISOCode2Letter || - (this.ISOCode2Letter != null && - this.ISOCode2Letter.Equals(input.ISOCode2Letter)) + this.AddressFormat == input.AddressFormat || + (this.AddressFormat != null && + this.AddressFormat.Equals(input.AddressFormat)) ) && ( - this.ISOCode3Letter == input.ISOCode3Letter || - (this.ISOCode3Letter != null && - this.ISOCode3Letter.Equals(input.ISOCode3Letter)) + this.IsoCode2 == input.IsoCode2 || + (this.IsoCode2 != null && + this.IsoCode2.Equals(input.IsoCode2)) ) && ( - this.AddressFormat == input.AddressFormat || - (this.AddressFormat != null && - this.AddressFormat.Equals(input.AddressFormat)) + this.IsoCode3 == input.IsoCode3 || + (this.IsoCode3 != null && + this.IsoCode3.Equals(input.IsoCode3)) ) && ( this.Name == input.Name || @@ -160,12 +160,12 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.ISOCode2Letter != null) - hashCode = hashCode * 59 + this.ISOCode2Letter.GetHashCode(); - if (this.ISOCode3Letter != null) - hashCode = hashCode * 59 + this.ISOCode3Letter.GetHashCode(); if (this.AddressFormat != null) hashCode = hashCode * 59 + this.AddressFormat.GetHashCode(); + if (this.IsoCode2 != null) + hashCode = hashCode * 59 + this.IsoCode2.GetHashCode(); + if (this.IsoCode3 != null) + hashCode = hashCode * 59 + this.IsoCode3.GetHashCode(); if (this.Name != null) hashCode = hashCode * 59 + this.Name.GetHashCode(); if (this.NumericCode != null) diff --git a/src/Wallee/Model/SubscriptionComponentConfiguration.cs b/src/Wallee/Model/SubscriptionComponentConfiguration.cs index 3dc4a47..adf06d1 100644 --- a/src/Wallee/Model/SubscriptionComponentConfiguration.cs +++ b/src/Wallee/Model/SubscriptionComponentConfiguration.cs @@ -34,12 +34,33 @@ public SubscriptionComponentConfiguration() [DataMember(Name="component", EmitDefaultValue=false)] public long? Component { get; private set; } + /// + /// A unique identifier for the object. + /// + /// A unique identifier for the object. + [DataMember(Name="id", EmitDefaultValue=false)] + public long? Id { get; private set; } + + /// + /// The ID of the space this object belongs to. + /// + /// The ID of the space this object belongs to. + [DataMember(Name="linkedSpaceId", EmitDefaultValue=false)] + public long? LinkedSpaceId { get; private set; } + /// /// Gets or Sets Quantity /// [DataMember(Name="quantity", EmitDefaultValue=false)] public decimal? Quantity { get; private set; } + /// + /// The version is used for optimistic locking and incremented whenever the object is updated. + /// + /// The version is used for optimistic locking and incremented whenever the object is updated. + [DataMember(Name="version", EmitDefaultValue=false)] + public int? Version { get; private set; } + /// /// Returns the string presentation of the object /// @@ -49,7 +70,10 @@ public override string ToString() var sb = new StringBuilder(); sb.Append("class SubscriptionComponentConfiguration {\n"); sb.Append(" Component: ").Append(Component).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" LinkedSpaceId: ").Append(LinkedSpaceId).Append("\n"); sb.Append(" Quantity: ").Append(Quantity).Append("\n"); + sb.Append(" Version: ").Append(Version).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -89,10 +113,25 @@ public bool Equals(SubscriptionComponentConfiguration input) (this.Component != null && this.Component.Equals(input.Component)) ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.LinkedSpaceId == input.LinkedSpaceId || + (this.LinkedSpaceId != null && + this.LinkedSpaceId.Equals(input.LinkedSpaceId)) + ) && ( this.Quantity == input.Quantity || (this.Quantity != null && this.Quantity.Equals(input.Quantity)) + ) && + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) ); } @@ -107,8 +146,14 @@ public override int GetHashCode() int hashCode = 41; if (this.Component != null) hashCode = hashCode * 59 + this.Component.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.LinkedSpaceId != null) + hashCode = hashCode * 59 + this.LinkedSpaceId.GetHashCode(); if (this.Quantity != null) hashCode = hashCode * 59 + this.Quantity.GetHashCode(); + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); return hashCode; } } diff --git a/src/Wallee/Model/WalletType.cs b/src/Wallee/Model/WalletType.cs index e4213e2..3d4425e 100644 --- a/src/Wallee/Model/WalletType.cs +++ b/src/Wallee/Model/WalletType.cs @@ -15,31 +15,123 @@ namespace Wallee.Model { /// - /// Defines WalletType + /// WalletType /// - - [JsonConverter(typeof(StringEnumConverter))] - - public enum WalletType + [DataContract] + public partial class WalletType : IEquatable { - /// - /// Enum APPLE_PAY for value: APPLE_PAY + /// Initializes a new instance of the class. /// - [EnumMember(Value = "APPLE_PAY")] - APPLE_PAY, - + [JsonConstructorAttribute] + public WalletType() + { + } + + /// + /// The localized description of the object. + /// + /// The localized description of the object. + [DataMember(Name="description", EmitDefaultValue=false)] + public Dictionary Description { get; private set; } + + /// + /// A unique identifier for the object. + /// + /// A unique identifier for the object. + [DataMember(Name="id", EmitDefaultValue=false)] + public long? Id { get; private set; } + + /// + /// The localized name of the object. + /// + /// The localized name of the object. + [DataMember(Name="name", EmitDefaultValue=false)] + public Dictionary Name { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class WalletType {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }); + } + /// - /// Enum CLICK_TO_PAY for value: CLICK_TO_PAY + /// Returns true if objects are equal /// - [EnumMember(Value = "CLICK_TO_PAY")] - CLICK_TO_PAY, - + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WalletType); + } + /// - /// Enum NONE for value: NONE + /// Returns true if WalletType instances are equal /// - [EnumMember(Value = "NONE")] - NONE + /// Instance of WalletType to be compared + /// Boolean + public bool Equals(WalletType input) + { + if (input == null) + return false; + + return + ( + this.Description == input.Description || + this.Description != null && + input.Description != null && + this.Description.SequenceEqual(input.Description) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + this.Name != null && + input.Name != null && + this.Name.SequenceEqual(input.Name) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + } } diff --git a/src/Wallee/Model/WebhookEncryptionPublicKey.cs b/src/Wallee/Model/WebhookEncryptionPublicKey.cs new file mode 100644 index 0000000..445e424 --- /dev/null +++ b/src/Wallee/Model/WebhookEncryptionPublicKey.cs @@ -0,0 +1,120 @@ +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using SwaggerDateConverter = Wallee.Client.SwaggerDateConverter; + +namespace Wallee.Model +{ + /// + /// The webhook encryption public key is used to verify the webhook content signature. + /// + [DataContract] + public partial class WebhookEncryptionPublicKey : IEquatable + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + public WebhookEncryptionPublicKey() + { + } + + /// + /// The ID of encryption key + /// + /// The ID of encryption key + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; private set; } + + /// + /// The BASE64 encoded public key + /// + /// The BASE64 encoded public key + [DataMember(Name="publicKey", EmitDefaultValue=false)] + public string PublicKey { get; private set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class WebhookEncryptionPublicKey {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" PublicKey: ").Append(PublicKey).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as WebhookEncryptionPublicKey); + } + + /// + /// Returns true if WebhookEncryptionPublicKey instances are equal + /// + /// Instance of WebhookEncryptionPublicKey to be compared + /// Boolean + public bool Equals(WebhookEncryptionPublicKey input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.PublicKey == input.PublicKey || + (this.PublicKey != null && + this.PublicKey.Equals(input.PublicKey)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.PublicKey != null) + hashCode = hashCode * 59 + this.PublicKey.GetHashCode(); + return hashCode; + } + } + + } + +} diff --git a/src/Wallee/Service/AccountService.cs b/src/Wallee/Service/AccountService.cs index e238dfa..da115d9 100644 --- a/src/Wallee/Service/AccountService.cs +++ b/src/Wallee/Service/AccountService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -35,6 +37,9 @@ public interface IAccountService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (EntityQueryFilter filter = null); + + + /// /// Create /// @@ -56,6 +61,9 @@ public interface IAccountService : IApiAccessor /// The account object with the properties which should be created. /// ApiResponse of Account ApiResponse CreateWithHttpInfo (AccountCreate entity); + + + /// /// Delete /// @@ -77,6 +85,9 @@ public interface IAccountService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? id); + + + /// /// Read /// @@ -98,6 +109,9 @@ public interface IAccountService : IApiAccessor /// The id of the account which should be returned. /// ApiResponse of Account ApiResponse ReadWithHttpInfo (long? id); + + + /// /// Search /// @@ -119,6 +133,9 @@ public interface IAccountService : IApiAccessor /// The query restricts the accounts which are returned by the search. /// ApiResponse of List<Account> ApiResponse> SearchWithHttpInfo (EntityQuery query); + + + /// /// Update /// @@ -140,6 +157,9 @@ public interface IAccountService : IApiAccessor /// The account object with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of Account ApiResponse UpdateWithHttpInfo (AccountUpdate entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/AnalyticsQueryService.cs b/src/Wallee/Service/AnalyticsQueryService.cs index 80fe811..41e4e98 100644 --- a/src/Wallee/Service/AnalyticsQueryService.cs +++ b/src/Wallee/Service/AnalyticsQueryService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -35,6 +37,9 @@ public interface IAnalyticsQueryService : IApiAccessor /// The ID of the query execution to cancel. /// ApiResponse of Object(void) ApiResponse CancelExecutionWithHttpInfo (long? id); + + + /// /// Fetch Result /// @@ -62,6 +67,9 @@ public interface IAnalyticsQueryService : IApiAccessor /// The next-token of the preceding batch to get the next result batch or null to get the first result batch. (optional) /// ApiResponse of AnalyticsQueryResultBatch ApiResponse FetchResultWithHttpInfo (long? id, int? timeout = null, int? maxRows = null, string nextToken = null); + + + /// /// Generate Download URL /// @@ -85,6 +93,9 @@ public interface IAnalyticsQueryService : IApiAccessor /// The maximal time in seconds to wait for the result if it is not yet available. Use 0 (the default) to return immediately without waiting. (optional) /// ApiResponse of string ApiResponse GenerateDownloadUrlWithHttpInfo (long? id, int? timeout = null); + + + /// /// Get Schemas /// @@ -104,6 +115,9 @@ public interface IAnalyticsQueryService : IApiAccessor /// Thrown when fails to make API call /// ApiResponse of List<AnalyticsSchemaTable> ApiResponse> SchemaWithHttpInfo (); + + + /// /// Execution Status /// @@ -125,6 +139,9 @@ public interface IAnalyticsQueryService : IApiAccessor /// The ID of the query execution for which to get the status. /// ApiResponse of AnalyticsQueryExecution ApiResponse StatusWithHttpInfo (long? id); + + + /// /// Submit Query /// @@ -146,6 +163,9 @@ public interface IAnalyticsQueryService : IApiAccessor /// The query to submit. /// ApiResponse of AnalyticsQueryExecution ApiResponse SubmitQueryWithHttpInfo (AnalyticsQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/ApplicationUserService.cs b/src/Wallee/Service/ApplicationUserService.cs index 044117e..474f16c 100644 --- a/src/Wallee/Service/ApplicationUserService.cs +++ b/src/Wallee/Service/ApplicationUserService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -35,6 +37,9 @@ public interface IApplicationUserService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (EntityQueryFilter filter = null); + + + /// /// Create /// @@ -56,6 +61,9 @@ public interface IApplicationUserService : IApiAccessor /// The user object with the properties which should be created. /// ApiResponse of ApplicationUserCreateWithMacKey ApiResponse CreateWithHttpInfo (ApplicationUserCreate entity); + + + /// /// Delete /// @@ -77,6 +85,9 @@ public interface IApplicationUserService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? id); + + + /// /// Read /// @@ -98,6 +109,9 @@ public interface IApplicationUserService : IApiAccessor /// The id of the application user which should be returned. /// ApiResponse of ApplicationUser ApiResponse ReadWithHttpInfo (long? id); + + + /// /// Search /// @@ -119,6 +133,9 @@ public interface IApplicationUserService : IApiAccessor /// The query restricts the application users which are returned by the search. /// ApiResponse of List<ApplicationUser> ApiResponse> SearchWithHttpInfo (EntityQuery query); + + + /// /// Update /// @@ -140,6 +157,9 @@ public interface IApplicationUserService : IApiAccessor /// The application user entity with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of ApplicationUser ApiResponse UpdateWithHttpInfo (ApplicationUserUpdate entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/BankAccountService.cs b/src/Wallee/Service/BankAccountService.cs index 5a115bd..2769525 100644 --- a/src/Wallee/Service/BankAccountService.cs +++ b/src/Wallee/Service/BankAccountService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IBankAccountService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IBankAccountService : IApiAccessor /// The ID of the bank account which should be returned. /// ApiResponse of BankAccount ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IBankAccountService : IApiAccessor /// The query restricts the bank accounts which are returned by the search. /// ApiResponse of List<BankAccount> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/BankTransactionService.cs b/src/Wallee/Service/BankTransactionService.cs index bccbce6..b5723e5 100644 --- a/src/Wallee/Service/BankTransactionService.cs +++ b/src/Wallee/Service/BankTransactionService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IBankTransactionService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IBankTransactionService : IApiAccessor /// The ID of the bank transaction which should be returned. /// ApiResponse of BankTransaction ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IBankTransactionService : IApiAccessor /// The query restricts the bank transactions which are returned by the search. /// ApiResponse of List<BankTransaction> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/CardProcessingService.cs b/src/Wallee/Service/CardProcessingService.cs index df45abf..0b3b6c8 100644 --- a/src/Wallee/Service/CardProcessingService.cs +++ b/src/Wallee/Service/CardProcessingService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -41,6 +43,9 @@ public interface ICardProcessingService : IApiAccessor /// The card details as JSON in plain which should be used to authorize the payment. /// ApiResponse of Transaction ApiResponse ProcessWithHttpInfo (long? spaceId, long? transactionId, long? paymentMethodConfigurationId, AuthenticatedCardDataCreate cardData); + + + /// /// Process With 3-D Secure /// @@ -68,6 +73,9 @@ public interface ICardProcessingService : IApiAccessor /// The card details as JSON in plain which should be used to authorize the payment. /// ApiResponse of string ApiResponse ProcessWith3DSecureWithHttpInfo (long? spaceId, long? transactionId, long? paymentMethodConfigurationId, TokenizedCardDataCreate cardData); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/ChargeAttemptService.cs b/src/Wallee/Service/ChargeAttemptService.cs index 1546c54..6fd470e 100644 --- a/src/Wallee/Service/ChargeAttemptService.cs +++ b/src/Wallee/Service/ChargeAttemptService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IChargeAttemptService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IChargeAttemptService : IApiAccessor /// The id of the charge attempt which should be returned. /// ApiResponse of ChargeAttempt ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IChargeAttemptService : IApiAccessor /// The query restricts the charge attempts which are returned by the search. /// ApiResponse of List<ChargeAttempt> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/ChargeBankTransactionService.cs b/src/Wallee/Service/ChargeBankTransactionService.cs index ce8ce86..bfec3ba 100644 --- a/src/Wallee/Service/ChargeBankTransactionService.cs +++ b/src/Wallee/Service/ChargeBankTransactionService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IChargeBankTransactionService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IChargeBankTransactionService : IApiAccessor /// The ID of the charge bank transaction which should be returned. /// ApiResponse of ChargeBankTransaction ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IChargeBankTransactionService : IApiAccessor /// The query restricts the charge bank transactions which are returned by the search. /// ApiResponse of List<ChargeBankTransaction> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/ChargeFlowLevelPaymentLinkService.cs b/src/Wallee/Service/ChargeFlowLevelPaymentLinkService.cs index 970eaa1..2232130 100644 --- a/src/Wallee/Service/ChargeFlowLevelPaymentLinkService.cs +++ b/src/Wallee/Service/ChargeFlowLevelPaymentLinkService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IChargeFlowLevelPaymentLinkService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IChargeFlowLevelPaymentLinkService : IApiAccessor /// The ID of the charge flow level payment link which should be returned. /// ApiResponse of ChargeFlowLevelPaymentLink ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IChargeFlowLevelPaymentLinkService : IApiAccessor /// The query restricts the charge flow level payment links which are returned by the search. /// ApiResponse of List<ChargeFlowLevelPaymentLink> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/ChargeFlowLevelService.cs b/src/Wallee/Service/ChargeFlowLevelService.cs index d528b89..1fc608f 100644 --- a/src/Wallee/Service/ChargeFlowLevelService.cs +++ b/src/Wallee/Service/ChargeFlowLevelService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IChargeFlowLevelService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IChargeFlowLevelService : IApiAccessor /// The id of the payment flow level which should be returned. /// ApiResponse of ChargeFlowLevel ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IChargeFlowLevelService : IApiAccessor /// The query restricts the payment flow levels which are returned by the search. /// ApiResponse of List<ChargeFlowLevel> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Send Payment Link /// @@ -106,6 +117,9 @@ public interface IChargeFlowLevelService : IApiAccessor /// The id of the charge flow level whose payment link should be sent. /// ApiResponse of ChargeFlowLevel ApiResponse SendMessageWithHttpInfo (long? spaceId, long? id); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/ChargeFlowService.cs b/src/Wallee/Service/ChargeFlowService.cs index fc0f79d..d4db1f3 100644 --- a/src/Wallee/Service/ChargeFlowService.cs +++ b/src/Wallee/Service/ChargeFlowService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IChargeFlowService : IApiAccessor /// The transaction id of the transaction which should be process asynchronously. /// ApiResponse of Transaction ApiResponse ApplyFlowWithHttpInfo (long? spaceId, long? id); + + + /// /// Cancel Charge Flow /// @@ -60,6 +65,9 @@ public interface IChargeFlowService : IApiAccessor /// The ID of the transaction for which the charge flow should be canceled. /// ApiResponse of Transaction ApiResponse CancelChargeFlowWithHttpInfo (long? spaceId, long? id); + + + /// /// Count /// @@ -83,6 +91,9 @@ public interface IChargeFlowService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Fetch Charge Flow Payment Page URL /// @@ -106,6 +117,9 @@ public interface IChargeFlowService : IApiAccessor /// The transaction id of the transaction for which the URL of the charge flow should be fetched. /// ApiResponse of string ApiResponse FetchChargeFlowPaymentPageUrlWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -129,6 +143,9 @@ public interface IChargeFlowService : IApiAccessor /// The id of the charge flow which should be returned. /// ApiResponse of ChargeFlow ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -152,6 +169,9 @@ public interface IChargeFlowService : IApiAccessor /// The query restricts the charge flows which are returned by the search. /// ApiResponse of List<ChargeFlow> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// updateRecipient /// @@ -179,6 +199,9 @@ public interface IChargeFlowService : IApiAccessor /// The recipient address that should be used to send the payment URL. /// ApiResponse of Object(void) ApiResponse UpdateRecipientWithHttpInfo (long? spaceId, long? transactionId, long? type, string recipient); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/ConditionTypeService.cs b/src/Wallee/Service/ConditionTypeService.cs index d9babb2..8296c8c 100644 --- a/src/Wallee/Service/ConditionTypeService.cs +++ b/src/Wallee/Service/ConditionTypeService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -33,6 +35,9 @@ public interface IConditionTypeService : IApiAccessor /// Thrown when fails to make API call /// ApiResponse of List<ConditionType> ApiResponse> AllWithHttpInfo (); + + + /// /// Read /// @@ -54,6 +59,9 @@ public interface IConditionTypeService : IApiAccessor /// The id of the condition type which should be returned. /// ApiResponse of ConditionType ApiResponse ReadWithHttpInfo (long? id); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/CountryService.cs b/src/Wallee/Service/CountryService.cs index 9c844c6..553d4c1 100644 --- a/src/Wallee/Service/CountryService.cs +++ b/src/Wallee/Service/CountryService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -33,6 +35,9 @@ public interface ICountryService : IApiAccessor /// Thrown when fails to make API call /// ApiResponse of List<RestCountry> ApiResponse> AllWithHttpInfo (); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/CountryStateService.cs b/src/Wallee/Service/CountryStateService.cs index a746395..fb512fd 100644 --- a/src/Wallee/Service/CountryStateService.cs +++ b/src/Wallee/Service/CountryStateService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -33,6 +35,9 @@ public interface ICountryStateService : IApiAccessor /// Thrown when fails to make API call /// ApiResponse of List<RestCountryState> ApiResponse> AllWithHttpInfo (); + + + /// /// Find by Country /// @@ -54,6 +59,9 @@ public interface ICountryStateService : IApiAccessor /// The country code in ISO code two letter format for which all states should be returned. /// ApiResponse of List<RestCountryState> ApiResponse> CountryWithHttpInfo (string code); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/CurrencyBankAccountService.cs b/src/Wallee/Service/CurrencyBankAccountService.cs index 459305c..1c4a76a 100644 --- a/src/Wallee/Service/CurrencyBankAccountService.cs +++ b/src/Wallee/Service/CurrencyBankAccountService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ICurrencyBankAccountService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface ICurrencyBankAccountService : IApiAccessor /// The ID of the currency bank account which should be returned. /// ApiResponse of CurrencyBankAccount ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface ICurrencyBankAccountService : IApiAccessor /// The query restricts the currency bank accounts which are returned by the search. /// ApiResponse of List<CurrencyBankAccount> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/CurrencyService.cs b/src/Wallee/Service/CurrencyService.cs index 0c3700b..5b25db8 100644 --- a/src/Wallee/Service/CurrencyService.cs +++ b/src/Wallee/Service/CurrencyService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -33,6 +35,9 @@ public interface ICurrencyService : IApiAccessor /// Thrown when fails to make API call /// ApiResponse of List<RestCurrency> ApiResponse> AllWithHttpInfo (); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/CustomerAddressService.cs b/src/Wallee/Service/CustomerAddressService.cs index 6827233..222a02e 100644 --- a/src/Wallee/Service/CustomerAddressService.cs +++ b/src/Wallee/Service/CustomerAddressService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ICustomerAddressService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ICustomerAddressService : IApiAccessor /// The customer object which should be created. /// ApiResponse of CustomerAddress ApiResponse CreateWithHttpInfo (long? spaceId, CustomerAddressCreate entity); + + + /// /// Delete /// @@ -83,6 +91,9 @@ public interface ICustomerAddressService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -106,6 +117,9 @@ public interface ICustomerAddressService : IApiAccessor /// The id of the customer which should be returned. /// ApiResponse of CustomerAddress ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -129,6 +143,9 @@ public interface ICustomerAddressService : IApiAccessor /// The query restricts the customers which are returned by the search. /// ApiResponse of List<CustomerAddress> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// selectDefaultAddress /// @@ -152,6 +169,9 @@ public interface ICustomerAddressService : IApiAccessor /// The id of the customer address to set as default. /// ApiResponse of Object(void) ApiResponse SelectDefaultAddressWithHttpInfo (long? spaceId, long? id); + + + /// /// Update /// @@ -175,6 +195,9 @@ public interface ICustomerAddressService : IApiAccessor /// The customer object with the properties which should be updated. /// ApiResponse of CustomerAddress ApiResponse UpdateWithHttpInfo (long? spaceId, CustomerAddressActive entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/CustomerCommentService.cs b/src/Wallee/Service/CustomerCommentService.cs index d7e3fde..ff936ee 100644 --- a/src/Wallee/Service/CustomerCommentService.cs +++ b/src/Wallee/Service/CustomerCommentService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ICustomerCommentService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ICustomerCommentService : IApiAccessor /// The customer object which should be created. /// ApiResponse of CustomerComment ApiResponse CreateWithHttpInfo (long? spaceId, CustomerCommentCreate entity); + + + /// /// Delete /// @@ -83,6 +91,9 @@ public interface ICustomerCommentService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? spaceId, long? id); + + + /// /// pinComment /// @@ -106,6 +117,9 @@ public interface ICustomerCommentService : IApiAccessor /// The id of the customer comment to pin to the top. /// ApiResponse of Object(void) ApiResponse PinCommentWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -129,6 +143,9 @@ public interface ICustomerCommentService : IApiAccessor /// The id of the customer which should be returned. /// ApiResponse of CustomerComment ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -152,6 +169,9 @@ public interface ICustomerCommentService : IApiAccessor /// The query restricts the customers which are returned by the search. /// ApiResponse of List<CustomerComment> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// unpinComment /// @@ -175,6 +195,9 @@ public interface ICustomerCommentService : IApiAccessor /// The id of the customer comment to unpin. /// ApiResponse of Object(void) ApiResponse UnpinCommentWithHttpInfo (long? spaceId, long? id); + + + /// /// Update /// @@ -198,6 +221,9 @@ public interface ICustomerCommentService : IApiAccessor /// The customer object with the properties which should be updated. /// ApiResponse of CustomerComment ApiResponse UpdateWithHttpInfo (long? spaceId, CustomerCommentActive entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/CustomerService.cs b/src/Wallee/Service/CustomerService.cs index 3cc2a06..190ee6e 100644 --- a/src/Wallee/Service/CustomerService.cs +++ b/src/Wallee/Service/CustomerService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ICustomerService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ICustomerService : IApiAccessor /// The customer object which should be created. /// ApiResponse of Customer ApiResponse CreateWithHttpInfo (long? spaceId, CustomerCreate entity); + + + /// /// Delete /// @@ -83,6 +91,9 @@ public interface ICustomerService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -106,6 +117,9 @@ public interface ICustomerService : IApiAccessor /// The id of the customer which should be returned. /// ApiResponse of Customer ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -129,6 +143,9 @@ public interface ICustomerService : IApiAccessor /// The query restricts the customers which are returned by the search. /// ApiResponse of List<Customer> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -152,6 +169,9 @@ public interface ICustomerService : IApiAccessor /// The customer object with the properties which should be updated. /// ApiResponse of Customer ApiResponse UpdateWithHttpInfo (long? spaceId, CustomerActive entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/DebtCollectionCaseService.cs b/src/Wallee/Service/DebtCollectionCaseService.cs index 7f0f026..1764f5e 100644 --- a/src/Wallee/Service/DebtCollectionCaseService.cs +++ b/src/Wallee/Service/DebtCollectionCaseService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -41,6 +43,9 @@ public interface IDebtCollectionCaseService : IApiAccessor /// The unique external id of this payment receipt. /// ApiResponse of DebtCollectionReceipt ApiResponse AddCollectedAmountWithHttpInfo (long? spaceId, long? id, decimal? collectedAmount, string externalId); + + + /// /// Attach Document /// @@ -68,6 +73,9 @@ public interface IDebtCollectionCaseService : IApiAccessor /// The BASE64 encoded contents of the document. /// ApiResponse of DebtCollectionCaseDocument ApiResponse AttachDocumentWithHttpInfo (long? spaceId, long? id, string fileName, string contentBase64); + + + /// /// Close /// @@ -91,6 +99,9 @@ public interface IDebtCollectionCaseService : IApiAccessor /// The id of the debt collection case which should be closed. /// ApiResponse of DebtCollectionCase ApiResponse CloseWithHttpInfo (long? spaceId, long? id); + + + /// /// Count /// @@ -114,6 +125,9 @@ public interface IDebtCollectionCaseService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -137,6 +151,9 @@ public interface IDebtCollectionCaseService : IApiAccessor /// The debt collection case object with the properties which should be created. /// ApiResponse of DebtCollectionCase ApiResponse CreateWithHttpInfo (long? spaceId, DebtCollectionCaseCreate entity); + + + /// /// Delete /// @@ -160,6 +177,9 @@ public interface IDebtCollectionCaseService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? spaceId, long? id); + + + /// /// Documents /// @@ -183,6 +203,9 @@ public interface IDebtCollectionCaseService : IApiAccessor /// The id of the debt collection case for which the attached documents are returned. /// ApiResponse of List<DebtCollectionCaseDocument> ApiResponse> DocumentsWithHttpInfo (long? spaceId, long? id); + + + /// /// Mark Case As Prepared /// @@ -206,6 +229,9 @@ public interface IDebtCollectionCaseService : IApiAccessor /// The id of the debt collection case which should be marked as prepared. /// ApiResponse of DebtCollectionCase ApiResponse MarkAsPreparedWithHttpInfo (long? spaceId, long? id); + + + /// /// Mark Case As Reviewed /// @@ -229,6 +255,9 @@ public interface IDebtCollectionCaseService : IApiAccessor /// The id of the debt collection case which should be reviewed. /// ApiResponse of DebtCollectionCase ApiResponse MarkAsReviewedWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -252,6 +281,9 @@ public interface IDebtCollectionCaseService : IApiAccessor /// The id of the debt collection case which should be returned. /// ApiResponse of DebtCollectionCase ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -275,6 +307,9 @@ public interface IDebtCollectionCaseService : IApiAccessor /// The query restricts the cases which are returned by the search. /// ApiResponse of List<DebtCollectionCase> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -298,6 +333,9 @@ public interface IDebtCollectionCaseService : IApiAccessor /// The object with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of DebtCollectionCase ApiResponse UpdateWithHttpInfo (long? spaceId, DebtCollectionCaseUpdate entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/DebtCollectorConfigurationService.cs b/src/Wallee/Service/DebtCollectorConfigurationService.cs index c8e70b7..3b2d703 100644 --- a/src/Wallee/Service/DebtCollectorConfigurationService.cs +++ b/src/Wallee/Service/DebtCollectorConfigurationService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IDebtCollectorConfigurationService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IDebtCollectorConfigurationService : IApiAccessor /// The id of the debt collector configuration which should be returned. /// ApiResponse of DebtCollectorConfiguration ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IDebtCollectorConfigurationService : IApiAccessor /// The query restricts the debt collector configuration which are returned by the search. /// ApiResponse of List<DebtCollectorConfiguration> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/DebtCollectorService.cs b/src/Wallee/Service/DebtCollectorService.cs index ed19c75..70d8e43 100644 --- a/src/Wallee/Service/DebtCollectorService.cs +++ b/src/Wallee/Service/DebtCollectorService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -33,6 +35,9 @@ public interface IDebtCollectorService : IApiAccessor /// Thrown when fails to make API call /// ApiResponse of List<DebtCollector> ApiResponse> AllWithHttpInfo (); + + + /// /// Read /// @@ -54,6 +59,9 @@ public interface IDebtCollectorService : IApiAccessor /// The id of the collector which should be returned. /// ApiResponse of DebtCollector ApiResponse ReadWithHttpInfo (long? id); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/DeliveryIndicationService.cs b/src/Wallee/Service/DeliveryIndicationService.cs index 81cda85..90404d9 100644 --- a/src/Wallee/Service/DeliveryIndicationService.cs +++ b/src/Wallee/Service/DeliveryIndicationService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IDeliveryIndicationService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// markAsNotSuitable /// @@ -60,6 +65,9 @@ public interface IDeliveryIndicationService : IApiAccessor /// The delivery indication id which should be marked as not suitable. /// ApiResponse of DeliveryIndication ApiResponse MarkAsNotSuitableWithHttpInfo (long? spaceId, long? deliveryIndicationId); + + + /// /// markAsSuitable /// @@ -83,6 +91,9 @@ public interface IDeliveryIndicationService : IApiAccessor /// The delivery indication id which should be marked as suitable. /// ApiResponse of DeliveryIndication ApiResponse MarkAsSuitableWithHttpInfo (long? spaceId, long? deliveryIndicationId); + + + /// /// Read /// @@ -106,6 +117,9 @@ public interface IDeliveryIndicationService : IApiAccessor /// The id of the delivery indication which should be returned. /// ApiResponse of DeliveryIndication ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -129,6 +143,9 @@ public interface IDeliveryIndicationService : IApiAccessor /// The query restricts the delivery indications which are returned by the search. /// ApiResponse of List<DeliveryIndication> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/DocumentTemplateService.cs b/src/Wallee/Service/DocumentTemplateService.cs index 74caaaa..2039398 100644 --- a/src/Wallee/Service/DocumentTemplateService.cs +++ b/src/Wallee/Service/DocumentTemplateService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IDocumentTemplateService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IDocumentTemplateService : IApiAccessor /// The id of the document template which should be returned. /// ApiResponse of DocumentTemplate ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IDocumentTemplateService : IApiAccessor /// The query restricts the document templates which are returned by the search. /// ApiResponse of List<DocumentTemplate> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/DocumentTemplateTypeService.cs b/src/Wallee/Service/DocumentTemplateTypeService.cs index 9b5074d..85e41dc 100644 --- a/src/Wallee/Service/DocumentTemplateTypeService.cs +++ b/src/Wallee/Service/DocumentTemplateTypeService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -33,6 +35,9 @@ public interface IDocumentTemplateTypeService : IApiAccessor /// Thrown when fails to make API call /// ApiResponse of List<DocumentTemplateType> ApiResponse> AllWithHttpInfo (); + + + /// /// Read /// @@ -54,6 +59,9 @@ public interface IDocumentTemplateTypeService : IApiAccessor /// The id of the document template type which should be returned. /// ApiResponse of DocumentTemplateType ApiResponse ReadWithHttpInfo (long? id); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/ExternalTransferBankTransactionService.cs b/src/Wallee/Service/ExternalTransferBankTransactionService.cs index f655ce5..1c982e3 100644 --- a/src/Wallee/Service/ExternalTransferBankTransactionService.cs +++ b/src/Wallee/Service/ExternalTransferBankTransactionService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IExternalTransferBankTransactionService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IExternalTransferBankTransactionService : IApiAccessor /// The ID of the external transfer bank transaction which should be returned. /// ApiResponse of ExternalTransferBankTransaction ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IExternalTransferBankTransactionService : IApiAccessor /// The query restricts the external transfer bank transactions which are returned by the search. /// ApiResponse of List<ExternalTransferBankTransaction> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/HumanUserService.cs b/src/Wallee/Service/HumanUserService.cs index 3d87aa6..b4715f8 100644 --- a/src/Wallee/Service/HumanUserService.cs +++ b/src/Wallee/Service/HumanUserService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -35,6 +37,9 @@ public interface IHumanUserService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (EntityQueryFilter filter = null); + + + /// /// Create /// @@ -56,6 +61,9 @@ public interface IHumanUserService : IApiAccessor /// The human user object with the properties which should be created. /// ApiResponse of HumanUser ApiResponse CreateWithHttpInfo (HumanUserCreate entity); + + + /// /// Delete /// @@ -77,6 +85,9 @@ public interface IHumanUserService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? id); + + + /// /// Export /// @@ -98,6 +109,9 @@ public interface IHumanUserService : IApiAccessor /// The request controls the entries which are exported. /// ApiResponse of byte[] ApiResponse ExportWithHttpInfo (EntityExportRequest request); + + + /// /// Read /// @@ -119,6 +133,9 @@ public interface IHumanUserService : IApiAccessor /// The id of the human user which should be returned. /// ApiResponse of HumanUser ApiResponse ReadWithHttpInfo (long? id); + + + /// /// Search /// @@ -140,6 +157,9 @@ public interface IHumanUserService : IApiAccessor /// The query restricts the human users which are returned by the search. /// ApiResponse of List<HumanUser> ApiResponse> SearchWithHttpInfo (EntityQuery query); + + + /// /// Update /// @@ -161,6 +181,9 @@ public interface IHumanUserService : IApiAccessor /// The object with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of HumanUser ApiResponse UpdateWithHttpInfo (HumanUserUpdate entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/InstallmentPaymentService.cs b/src/Wallee/Service/InstallmentPaymentService.cs index 58d79d7..9ffee4d 100644 --- a/src/Wallee/Service/InstallmentPaymentService.cs +++ b/src/Wallee/Service/InstallmentPaymentService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IInstallmentPaymentService : IApiAccessor /// The filter which restricts the installment payment which are used to calculate the count. /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter); + + + /// /// Create Installment Payment /// @@ -62,6 +67,9 @@ public interface IInstallmentPaymentService : IApiAccessor /// The installment plan configuration ID which should be applied on the transaction. /// ApiResponse of InstallmentPayment ApiResponse CreateInstallmentPaymentWithHttpInfo (long? spaceId, long? transactionId, long? installmentPlanConfiguration); + + + /// /// Read /// @@ -85,6 +93,9 @@ public interface IInstallmentPaymentService : IApiAccessor /// The id of the installment payment which should be returned. /// ApiResponse of InstallmentPayment ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -108,6 +119,9 @@ public interface IInstallmentPaymentService : IApiAccessor /// The query restricts the installment payments which are returned by the search. /// ApiResponse of List<InstallmentPayment> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/InstallmentPaymentSliceService.cs b/src/Wallee/Service/InstallmentPaymentSliceService.cs index 375a775..0914167 100644 --- a/src/Wallee/Service/InstallmentPaymentSliceService.cs +++ b/src/Wallee/Service/InstallmentPaymentSliceService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IInstallmentPaymentSliceService : IApiAccessor /// The filter which restricts the installment payment slices which are used to calculate the count. /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IInstallmentPaymentSliceService : IApiAccessor /// The id of the installment payment slice which should be returned. /// ApiResponse of InstallmentPaymentSlice ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IInstallmentPaymentSliceService : IApiAccessor /// The query restricts the installment payment slices which are returned by the search. /// ApiResponse of List<InstallmentPaymentSlice> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/InstallmentPlanCalculationService.cs b/src/Wallee/Service/InstallmentPlanCalculationService.cs index 17cb47e..d3d2e7b 100644 --- a/src/Wallee/Service/InstallmentPlanCalculationService.cs +++ b/src/Wallee/Service/InstallmentPlanCalculationService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IInstallmentPlanCalculationService : IApiAccessor /// The transaction for which the plans should be calculated for. /// ApiResponse of List<InstallmentCalculatedPlan> ApiResponse> CalculatePlansWithHttpInfo (long? spaceId, long? transactionId); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/InstallmentPlanConfigurationService.cs b/src/Wallee/Service/InstallmentPlanConfigurationService.cs index 5e0910c..84cf495 100644 --- a/src/Wallee/Service/InstallmentPlanConfigurationService.cs +++ b/src/Wallee/Service/InstallmentPlanConfigurationService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IInstallmentPlanConfigurationService : IApiAccessor /// The filter which restricts the installment plan configurations which are used to calculate the count. /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IInstallmentPlanConfigurationService : IApiAccessor /// The id of the installment plan configuration which should be returned. /// ApiResponse of InstallmentPlanConfiguration ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IInstallmentPlanConfigurationService : IApiAccessor /// The query restricts the installment plan configurations which are returned by the search. /// ApiResponse of List<InstallmentPlanConfiguration> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/InstallmentPlanSliceConfigurationService.cs b/src/Wallee/Service/InstallmentPlanSliceConfigurationService.cs index 302823f..6f9d83d 100644 --- a/src/Wallee/Service/InstallmentPlanSliceConfigurationService.cs +++ b/src/Wallee/Service/InstallmentPlanSliceConfigurationService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IInstallmentPlanSliceConfigurationService : IApiAccessor /// The filter which restricts the installment plan slice configurations which are used to calculate the count. /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IInstallmentPlanSliceConfigurationService : IApiAccessor /// The id of the installment plan slice configuration which should be returned. /// ApiResponse of InstallmentPlanSliceConfiguration ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IInstallmentPlanSliceConfigurationService : IApiAccessor /// The query restricts the installment plan slice configurations which are returned by the search. /// ApiResponse of List<InstallmentPlanSliceConfiguration> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/InternalTransferBankTransactionService.cs b/src/Wallee/Service/InternalTransferBankTransactionService.cs index 41a1d66..afe82c9 100644 --- a/src/Wallee/Service/InternalTransferBankTransactionService.cs +++ b/src/Wallee/Service/InternalTransferBankTransactionService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IInternalTransferBankTransactionService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IInternalTransferBankTransactionService : IApiAccessor /// The ID of the internal transfer bank transaction which should be returned. /// ApiResponse of InternalTransferBankTransaction ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IInternalTransferBankTransactionService : IApiAccessor /// The query restricts the internal transfer bank transactions which are returned by the search. /// ApiResponse of List<InternalTransferBankTransaction> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/InvoiceReconciliationRecordInvoiceLinkService.cs b/src/Wallee/Service/InvoiceReconciliationRecordInvoiceLinkService.cs index 7b7e92b..e7a0791 100644 --- a/src/Wallee/Service/InvoiceReconciliationRecordInvoiceLinkService.cs +++ b/src/Wallee/Service/InvoiceReconciliationRecordInvoiceLinkService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IInvoiceReconciliationRecordInvoiceLinkService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Link Invoice /// @@ -64,6 +69,9 @@ public interface IInvoiceReconciliationRecordInvoiceLinkService : IApiAccessor /// The amount of the invoice reconciliation record linked completion which should be changed. (optional) /// ApiResponse of InvoiceReconciliationRecordInvoiceLink ApiResponse LinkWithHttpInfo (long? spaceId, long? recordId, long? completionId, decimal? amount = null); + + + /// /// Read /// @@ -87,6 +95,9 @@ public interface IInvoiceReconciliationRecordInvoiceLinkService : IApiAccessor /// The ID of the invoice reconciliation record invoice link which should be returned. /// ApiResponse of InvoiceReconciliationRecordInvoiceLink ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -110,6 +121,9 @@ public interface IInvoiceReconciliationRecordInvoiceLinkService : IApiAccessor /// The query restricts the invoice reconciliation record invoice link which are returned by the search. /// ApiResponse of List<InvoiceReconciliationRecordInvoiceLink> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Unlink Invoice /// @@ -135,6 +149,9 @@ public interface IInvoiceReconciliationRecordInvoiceLinkService : IApiAccessor /// The ID of the completion which should be unlinked. /// ApiResponse of Object(void) ApiResponse UnlinkTransactionWithHttpInfo (long? spaceId, long? recordId, long? completionId); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/InvoiceReconciliationRecordService.cs b/src/Wallee/Service/InvoiceReconciliationRecordService.cs index 20d1451..e0990d1 100644 --- a/src/Wallee/Service/InvoiceReconciliationRecordService.cs +++ b/src/Wallee/Service/InvoiceReconciliationRecordService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IInvoiceReconciliationRecordService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Discard /// @@ -60,6 +65,9 @@ public interface IInvoiceReconciliationRecordService : IApiAccessor /// The ID of the invoice reconciliation record which should be discarded. /// ApiResponse of Object(void) ApiResponse DiscardWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -83,6 +91,9 @@ public interface IInvoiceReconciliationRecordService : IApiAccessor /// The ID of the invoice reconciliation record which should be returned. /// ApiResponse of InvoiceReconciliationRecord ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Resolve /// @@ -106,6 +117,9 @@ public interface IInvoiceReconciliationRecordService : IApiAccessor /// The ID of the invoice reconciliation record which should be resolved. /// ApiResponse of Object(void) ApiResponse ResolveWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -129,6 +143,9 @@ public interface IInvoiceReconciliationRecordService : IApiAccessor /// The query restricts the invoice reconciliation records which are returned by the search. /// ApiResponse of List<InvoiceReconciliationRecord> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Search for matchable invoices by query /// @@ -152,6 +169,9 @@ public interface IInvoiceReconciliationRecordService : IApiAccessor /// The query restricts the invoices which are returned by the search. /// ApiResponse of List<TransactionInvoice> ApiResponse> SearchForInvoicesByQueryWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/InvoiceReimbursementService.cs b/src/Wallee/Service/InvoiceReimbursementService.cs index 5928dd8..e5ecc88 100644 --- a/src/Wallee/Service/InvoiceReimbursementService.cs +++ b/src/Wallee/Service/InvoiceReimbursementService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IInvoiceReimbursementService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IInvoiceReimbursementService : IApiAccessor /// The ID of the invoice reimbursement which should be returned. /// ApiResponse of InvoiceReimbursement ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IInvoiceReimbursementService : IApiAccessor /// The query restricts the invoice reimbursements which are returned by the search. /// ApiResponse of List<InvoiceReimbursementWithRefundReference> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update payment connector configuration /// @@ -108,6 +119,9 @@ public interface IInvoiceReimbursementService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse UpdateConnectorWithHttpInfo (long? spaceId, long? id, long? paymentConnectorConfigurationId); + + + /// /// Update IBAN /// @@ -135,6 +149,9 @@ public interface IInvoiceReimbursementService : IApiAccessor /// (optional) /// ApiResponse of Object(void) ApiResponse UpdateIbanWithHttpInfo (long? spaceId, long? id, string recipientIban = null, string senderIban = null); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/LabelDescriptionGroupService.cs b/src/Wallee/Service/LabelDescriptionGroupService.cs index d98a9df..c91b53c 100644 --- a/src/Wallee/Service/LabelDescriptionGroupService.cs +++ b/src/Wallee/Service/LabelDescriptionGroupService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -33,6 +35,9 @@ public interface ILabelDescriptionGroupService : IApiAccessor /// Thrown when fails to make API call /// ApiResponse of List<LabelDescriptorGroup> ApiResponse> AllWithHttpInfo (); + + + /// /// Read /// @@ -54,6 +59,9 @@ public interface ILabelDescriptionGroupService : IApiAccessor /// The id of the label descriptor group which should be returned. /// ApiResponse of LabelDescriptorGroup ApiResponse ReadWithHttpInfo (long? id); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/LabelDescriptionService.cs b/src/Wallee/Service/LabelDescriptionService.cs index 0b68969..3db10f9 100644 --- a/src/Wallee/Service/LabelDescriptionService.cs +++ b/src/Wallee/Service/LabelDescriptionService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -33,6 +35,9 @@ public interface ILabelDescriptionService : IApiAccessor /// Thrown when fails to make API call /// ApiResponse of List<LabelDescriptor> ApiResponse> AllWithHttpInfo (); + + + /// /// Read /// @@ -54,6 +59,9 @@ public interface ILabelDescriptionService : IApiAccessor /// The id of the label descriptor which should be returned. /// ApiResponse of LabelDescriptor ApiResponse ReadWithHttpInfo (long? id); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/LanguageService.cs b/src/Wallee/Service/LanguageService.cs index 6dc4562..4b1cdd2 100644 --- a/src/Wallee/Service/LanguageService.cs +++ b/src/Wallee/Service/LanguageService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -33,6 +35,9 @@ public interface ILanguageService : IApiAccessor /// Thrown when fails to make API call /// ApiResponse of List<RestLanguage> ApiResponse> AllWithHttpInfo (); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/LegalOrganizationFormService.cs b/src/Wallee/Service/LegalOrganizationFormService.cs index 47ab353..cd2e7c6 100644 --- a/src/Wallee/Service/LegalOrganizationFormService.cs +++ b/src/Wallee/Service/LegalOrganizationFormService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -33,6 +35,9 @@ public interface ILegalOrganizationFormService : IApiAccessor /// Thrown when fails to make API call /// ApiResponse of List<LegalOrganizationForm> ApiResponse> AllWithHttpInfo (); + + + /// /// Find by Country /// @@ -54,6 +59,9 @@ public interface ILegalOrganizationFormService : IApiAccessor /// The country in ISO 3166-1 alpha-2 format, for which all legal organization forms should be returned. /// ApiResponse of List<LegalOrganizationForm> ApiResponse> CountryWithHttpInfo (string code); + + + /// /// Read /// @@ -75,6 +83,9 @@ public interface ILegalOrganizationFormService : IApiAccessor /// The id of the legal organization form which should be returned. /// ApiResponse of LegalOrganizationForm ApiResponse ReadWithHttpInfo (long? id); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/ManualTaskService.cs b/src/Wallee/Service/ManualTaskService.cs index 24b0a68..17a1aba 100644 --- a/src/Wallee/Service/ManualTaskService.cs +++ b/src/Wallee/Service/ManualTaskService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IManualTaskService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IManualTaskService : IApiAccessor /// The id of the manual task which should be returned. /// ApiResponse of ManualTask ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IManualTaskService : IApiAccessor /// The query restricts the manual tasks which are returned by the search. /// ApiResponse of List<ManualTask> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/MerticUsageService.cs b/src/Wallee/Service/MerticUsageService.cs index 55fd98f..16e9ed6 100644 --- a/src/Wallee/Service/MerticUsageService.cs +++ b/src/Wallee/Service/MerticUsageService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -39,6 +41,9 @@ public interface IMerticUsageService : IApiAccessor /// The end date to which the consumed units should be returned to. The end date is not included in the result. /// ApiResponse of List<MetricUsage> ApiResponse> CalculateWithHttpInfo (long? spaceId, DateTime? start, DateTime? end); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/PaymentConnectorConfigurationService.cs b/src/Wallee/Service/PaymentConnectorConfigurationService.cs index 2ae0241..04bfb0a 100644 --- a/src/Wallee/Service/PaymentConnectorConfigurationService.cs +++ b/src/Wallee/Service/PaymentConnectorConfigurationService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IPaymentConnectorConfigurationService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IPaymentConnectorConfigurationService : IApiAccessor /// The id of the payment connector configuration which should be returned. /// ApiResponse of PaymentConnectorConfiguration ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IPaymentConnectorConfigurationService : IApiAccessor /// The query restricts the payment connector configuration which are returned by the search. /// ApiResponse of List<PaymentConnectorConfiguration> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/PaymentConnectorService.cs b/src/Wallee/Service/PaymentConnectorService.cs index 0812f23..18a19bd 100644 --- a/src/Wallee/Service/PaymentConnectorService.cs +++ b/src/Wallee/Service/PaymentConnectorService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -33,6 +35,9 @@ public interface IPaymentConnectorService : IApiAccessor /// Thrown when fails to make API call /// ApiResponse of List<PaymentConnector> ApiResponse> AllWithHttpInfo (); + + + /// /// Read /// @@ -54,6 +59,9 @@ public interface IPaymentConnectorService : IApiAccessor /// The id of the connector which should be returned. /// ApiResponse of PaymentConnector ApiResponse ReadWithHttpInfo (long? id); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/PaymentLinkService.cs b/src/Wallee/Service/PaymentLinkService.cs index 776a98f..c239a4f 100644 --- a/src/Wallee/Service/PaymentLinkService.cs +++ b/src/Wallee/Service/PaymentLinkService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IPaymentLinkService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface IPaymentLinkService : IApiAccessor /// The payment link object with the properties which should be created. /// ApiResponse of PaymentLink ApiResponse CreateWithHttpInfo (long? spaceId, PaymentLinkCreate entity); + + + /// /// Delete /// @@ -83,6 +91,9 @@ public interface IPaymentLinkService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -106,6 +117,9 @@ public interface IPaymentLinkService : IApiAccessor /// The id of the payment links which should be returned. /// ApiResponse of PaymentLink ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -129,6 +143,9 @@ public interface IPaymentLinkService : IApiAccessor /// The query restricts the payment links which are returned by the search. /// ApiResponse of List<PaymentLink> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -152,6 +169,9 @@ public interface IPaymentLinkService : IApiAccessor /// The object with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of PaymentLink ApiResponse UpdateWithHttpInfo (long? spaceId, PaymentLinkUpdate entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/PaymentMethodBrandService.cs b/src/Wallee/Service/PaymentMethodBrandService.cs index 1e856d7..27c94ef 100644 --- a/src/Wallee/Service/PaymentMethodBrandService.cs +++ b/src/Wallee/Service/PaymentMethodBrandService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -33,6 +35,9 @@ public interface IPaymentMethodBrandService : IApiAccessor /// Thrown when fails to make API call /// ApiResponse of List<PaymentMethodBrand> ApiResponse> AllWithHttpInfo (); + + + /// /// Read /// @@ -54,6 +59,9 @@ public interface IPaymentMethodBrandService : IApiAccessor /// The id of the payment method brand which should be returned. /// ApiResponse of PaymentMethodBrand ApiResponse ReadWithHttpInfo (long? id); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/PaymentMethodConfigurationService.cs b/src/Wallee/Service/PaymentMethodConfigurationService.cs index 6efe74d..84d0e95 100644 --- a/src/Wallee/Service/PaymentMethodConfigurationService.cs +++ b/src/Wallee/Service/PaymentMethodConfigurationService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IPaymentMethodConfigurationService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IPaymentMethodConfigurationService : IApiAccessor /// The id of the payment method configuration which should be returned. /// ApiResponse of PaymentMethodConfiguration ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IPaymentMethodConfigurationService : IApiAccessor /// The query restricts the payment method configuration which are returned by the search. /// ApiResponse of List<PaymentMethodConfiguration> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/PaymentMethodService.cs b/src/Wallee/Service/PaymentMethodService.cs index 9ac66cf..ef9e676 100644 --- a/src/Wallee/Service/PaymentMethodService.cs +++ b/src/Wallee/Service/PaymentMethodService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -33,6 +35,9 @@ public interface IPaymentMethodService : IApiAccessor /// Thrown when fails to make API call /// ApiResponse of List<PaymentMethod> ApiResponse> AllWithHttpInfo (); + + + /// /// Read /// @@ -54,6 +59,9 @@ public interface IPaymentMethodService : IApiAccessor /// The id of the payment method which should be returned. /// ApiResponse of PaymentMethod ApiResponse ReadWithHttpInfo (long? id); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/PaymentProcessorConfigurationService.cs b/src/Wallee/Service/PaymentProcessorConfigurationService.cs index dd477aa..05c4b58 100644 --- a/src/Wallee/Service/PaymentProcessorConfigurationService.cs +++ b/src/Wallee/Service/PaymentProcessorConfigurationService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IPaymentProcessorConfigurationService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IPaymentProcessorConfigurationService : IApiAccessor /// The id of the payment processor configuration which should be returned. /// ApiResponse of PaymentProcessorConfiguration ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IPaymentProcessorConfigurationService : IApiAccessor /// The query restricts the payment processor configuration which are returned by the search. /// ApiResponse of List<PaymentProcessorConfiguration> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/PaymentProcessorService.cs b/src/Wallee/Service/PaymentProcessorService.cs index 000bcfd..eca8089 100644 --- a/src/Wallee/Service/PaymentProcessorService.cs +++ b/src/Wallee/Service/PaymentProcessorService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -33,6 +35,9 @@ public interface IPaymentProcessorService : IApiAccessor /// Thrown when fails to make API call /// ApiResponse of List<PaymentProcessor> ApiResponse> AllWithHttpInfo (); + + + /// /// Read /// @@ -54,6 +59,9 @@ public interface IPaymentProcessorService : IApiAccessor /// The id of the processor which should be returned. /// ApiResponse of PaymentProcessor ApiResponse ReadWithHttpInfo (long? id); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/PaymentTerminalService.cs b/src/Wallee/Service/PaymentTerminalService.cs index 5873702..4553440 100644 --- a/src/Wallee/Service/PaymentTerminalService.cs +++ b/src/Wallee/Service/PaymentTerminalService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IPaymentTerminalService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Link Device With Terminal /// @@ -62,6 +67,9 @@ public interface IPaymentTerminalService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse LinkWithHttpInfo (long? spaceId, long? terminalId, string serialNumber); + + + /// /// Read /// @@ -85,6 +93,9 @@ public interface IPaymentTerminalService : IApiAccessor /// The id of the payment terminal which should be returned. /// ApiResponse of PaymentTerminal ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -108,6 +119,9 @@ public interface IPaymentTerminalService : IApiAccessor /// The query restricts the payment terminals which are returned by the search. /// ApiResponse of List<PaymentTerminal> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Remotely Trigger Final Balance /// @@ -131,6 +145,9 @@ public interface IPaymentTerminalService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse TriggerFinalBalanceWithHttpInfo (long? spaceId, long? terminalId); + + + /// /// Remotely Trigger Final Balance By Identifier /// @@ -154,6 +171,9 @@ public interface IPaymentTerminalService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse TriggerFinalBalanceByIdentifierWithHttpInfo (long? spaceId, string terminalIdentifier); + + + /// /// Unlink Device With Terminal /// @@ -177,6 +197,9 @@ public interface IPaymentTerminalService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse UnlinkWithHttpInfo (long? spaceId, long? terminalId); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/PaymentTerminalTillService.cs b/src/Wallee/Service/PaymentTerminalTillService.cs index f7fbcd1..0fb7d53 100644 --- a/src/Wallee/Service/PaymentTerminalTillService.cs +++ b/src/Wallee/Service/PaymentTerminalTillService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -41,6 +43,9 @@ public interface IPaymentTerminalTillService : IApiAccessor /// The language in which the messages should be rendered in. (optional) /// ApiResponse of Transaction ApiResponse PerformTransactionWithHttpInfo (long? spaceId, long? transactionId, long? terminalId, string language = null); + + + /// /// Perform Payment Terminal Transaction (using TID) /// @@ -68,6 +73,9 @@ public interface IPaymentTerminalTillService : IApiAccessor /// The language in which the messages should be rendered in. (optional) /// ApiResponse of Transaction ApiResponse PerformTransactionByIdentifierWithHttpInfo (long? spaceId, long? transactionId, string terminalIdentifier, string language = null); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/PaymentTerminalTransactionSummaryService.cs b/src/Wallee/Service/PaymentTerminalTransactionSummaryService.cs index c68bdac..c28b08e 100644 --- a/src/Wallee/Service/PaymentTerminalTransactionSummaryService.cs +++ b/src/Wallee/Service/PaymentTerminalTransactionSummaryService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IPaymentTerminalTransactionSummaryService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Fetch Receipt /// @@ -60,6 +65,9 @@ public interface IPaymentTerminalTransactionSummaryService : IApiAccessor /// /// ApiResponse of RenderedTerminalTransactionSummary ApiResponse FetchReceiptWithHttpInfo (long? spaceId, PaymentTerminalTransactionSummaryFetchRequest request); + + + /// /// Read /// @@ -83,6 +91,9 @@ public interface IPaymentTerminalTransactionSummaryService : IApiAccessor /// The id of the transaction summary report which should be returned. /// ApiResponse of PaymentTerminalTransactionSummary ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -106,6 +117,9 @@ public interface IPaymentTerminalTransactionSummaryService : IApiAccessor /// The query restricts the transaction summary reports which are returned by the search. /// ApiResponse of List<PaymentTerminalTransactionSummary> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/PaymentWebAppService.cs b/src/Wallee/Service/PaymentWebAppService.cs index 4f91d87..f4cf4d1 100644 --- a/src/Wallee/Service/PaymentWebAppService.cs +++ b/src/Wallee/Service/PaymentWebAppService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IPaymentWebAppService : IApiAccessor /// The external ID identifies the processor. The external ID corresponds to the ID provided during inserting of the processor. /// ApiResponse of PaymentAppProcessor ApiResponse ActivateProcessorForProductionWithHttpInfo (long? spaceId, string externalId); + + + /// /// Delete Connector /// @@ -60,6 +65,9 @@ public interface IPaymentWebAppService : IApiAccessor /// The external ID identifies the connector. The external ID corresponds to the ID provided during inserting of the connector. /// ApiResponse of Object(void) ApiResponse DeleteConnectorWithHttpInfo (long? spaceId, string externalId); + + + /// /// Delete Processor /// @@ -83,6 +91,9 @@ public interface IPaymentWebAppService : IApiAccessor /// The external ID identifies the processor. The external ID corresponds to the ID provided during inserting of the processor. /// ApiResponse of Object(void) ApiResponse DeleteProcessorWithHttpInfo (long? spaceId, string externalId); + + + /// /// Insert or Update Connector /// @@ -106,6 +117,9 @@ public interface IPaymentWebAppService : IApiAccessor /// The connector object contains all the details required to create or update a web app connector. /// ApiResponse of PaymentAppConnector ApiResponse InsertOrUpdateConnectorWithHttpInfo (long? spaceId, PaymentAppConnectorCreationRequest request); + + + /// /// Insert or Update Processor /// @@ -129,6 +143,9 @@ public interface IPaymentWebAppService : IApiAccessor /// The processor object contains all the details required to create or update a web app processor. /// ApiResponse of PaymentAppProcessor ApiResponse InsertOrUpdateProcessorWithHttpInfo (long? spaceId, PaymentAppProcessorCreationRequest request); + + + /// /// Update Charge Attempt /// @@ -152,6 +169,9 @@ public interface IPaymentWebAppService : IApiAccessor /// The charge attempt update request allows to update the state of a charge attempt. /// ApiResponse of ChargeAttempt ApiResponse UpdateChargeAttemptWithHttpInfo (long? spaceId, PaymentAppChargeAttemptUpdateRequest request); + + + /// /// Update Completion /// @@ -175,6 +195,9 @@ public interface IPaymentWebAppService : IApiAccessor /// The completion update request allows to update the state of a completion. /// ApiResponse of TransactionCompletion ApiResponse UpdateCompletionWithHttpInfo (long? spaceId, PaymentAppCompletionUpdateRequest request); + + + /// /// Update Refund /// @@ -198,6 +221,9 @@ public interface IPaymentWebAppService : IApiAccessor /// The refund update request allows to update the state of a refund. /// ApiResponse of Refund ApiResponse UpdateRefundWithHttpInfo (long? spaceId, PaymentAppRefundUpdateRequest request); + + + /// /// Update Void /// @@ -221,6 +247,9 @@ public interface IPaymentWebAppService : IApiAccessor /// The void update request allows to update the state of a void. /// ApiResponse of TransactionVoid ApiResponse UpdateVoidWithHttpInfo (long? spaceId, PaymentAppVoidUpdateRequest request); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/PermissionService.cs b/src/Wallee/Service/PermissionService.cs index 2177f36..a27ea2b 100644 --- a/src/Wallee/Service/PermissionService.cs +++ b/src/Wallee/Service/PermissionService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -33,6 +35,9 @@ public interface IPermissionService : IApiAccessor /// Thrown when fails to make API call /// ApiResponse of List<Permission> ApiResponse> AllWithHttpInfo (); + + + /// /// Read /// @@ -54,6 +59,9 @@ public interface IPermissionService : IApiAccessor /// The id of the permission which should be returned. /// ApiResponse of Permission ApiResponse ReadWithHttpInfo (long? id); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/RefundBankTransactionService.cs b/src/Wallee/Service/RefundBankTransactionService.cs index 9f1748c..f6d2edb 100644 --- a/src/Wallee/Service/RefundBankTransactionService.cs +++ b/src/Wallee/Service/RefundBankTransactionService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IRefundBankTransactionService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IRefundBankTransactionService : IApiAccessor /// The ID of the refund bank transaction which should be returned. /// ApiResponse of RefundBankTransaction ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IRefundBankTransactionService : IApiAccessor /// The query restricts the refund bank transactions which are returned by the search. /// ApiResponse of List<RefundBankTransaction> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/RefundCommentService.cs b/src/Wallee/Service/RefundCommentService.cs index 395edf1..9af063a 100644 --- a/src/Wallee/Service/RefundCommentService.cs +++ b/src/Wallee/Service/RefundCommentService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IRefundCommentService : IApiAccessor /// /// ApiResponse of List<RefundComment> ApiResponse> AllWithHttpInfo (long? spaceId, long? refundId); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface IRefundCommentService : IApiAccessor /// /// ApiResponse of RefundComment ApiResponse CreateWithHttpInfo (long? spaceId, RefundCommentCreate entity); + + + /// /// Delete /// @@ -83,6 +91,9 @@ public interface IRefundCommentService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? spaceId, long? id); + + + /// /// Pin /// @@ -106,6 +117,9 @@ public interface IRefundCommentService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse PinWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -129,6 +143,9 @@ public interface IRefundCommentService : IApiAccessor /// /// ApiResponse of RefundComment ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Unpin /// @@ -152,6 +169,9 @@ public interface IRefundCommentService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse UnpinWithHttpInfo (long? spaceId, long? id); + + + /// /// Update /// @@ -175,6 +195,9 @@ public interface IRefundCommentService : IApiAccessor /// /// ApiResponse of RefundComment ApiResponse UpdateWithHttpInfo (long? spaceId, RefundCommentActive entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/RefundRecoveryBankTransactionService.cs b/src/Wallee/Service/RefundRecoveryBankTransactionService.cs index 4e82672..8ccd518 100644 --- a/src/Wallee/Service/RefundRecoveryBankTransactionService.cs +++ b/src/Wallee/Service/RefundRecoveryBankTransactionService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IRefundRecoveryBankTransactionService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IRefundRecoveryBankTransactionService : IApiAccessor /// The ID of the refund recovery bank transaction which should be returned. /// ApiResponse of RefundRecoveryBankTransaction ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IRefundRecoveryBankTransactionService : IApiAccessor /// The query restricts the refund recovery bank transactions which are returned by the search. /// ApiResponse of List<RefundRecoveryBankTransaction> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/RefundService.cs b/src/Wallee/Service/RefundService.cs index 486dc2f..85850a7 100644 --- a/src/Wallee/Service/RefundService.cs +++ b/src/Wallee/Service/RefundService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IRefundService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// fail /// @@ -60,6 +65,9 @@ public interface IRefundService : IApiAccessor /// The id of the refund which should be marked as failed. /// ApiResponse of Refund ApiResponse FailWithHttpInfo (long? spaceId, long? refundId); + + + /// /// getRefundDocument /// @@ -83,6 +91,9 @@ public interface IRefundService : IApiAccessor /// The id of the refund to get the document for. /// ApiResponse of RenderedDocument ApiResponse GetRefundDocumentWithHttpInfo (long? spaceId, long? id); + + + /// /// getRefundDocumentWithTargetMediaType /// @@ -108,6 +119,9 @@ public interface IRefundService : IApiAccessor /// The id of the target media type for which the refund should be generated for. /// ApiResponse of RenderedDocument ApiResponse GetRefundDocumentWithTargetMediaTypeWithHttpInfo (long? spaceId, long? id, long? targetMediaTypeId); + + + /// /// Read /// @@ -131,6 +145,9 @@ public interface IRefundService : IApiAccessor /// The id of the refund which should be returned. /// ApiResponse of Refund ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// create /// @@ -154,6 +171,9 @@ public interface IRefundService : IApiAccessor /// The refund object which should be created. /// ApiResponse of Refund ApiResponse RefundWithHttpInfo (long? spaceId, RefundCreate refund); + + + /// /// Search /// @@ -177,6 +197,9 @@ public interface IRefundService : IApiAccessor /// The query restricts the refunds which are returned by the search. /// ApiResponse of List<Refund> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// succeed /// @@ -200,6 +223,9 @@ public interface IRefundService : IApiAccessor /// The id of the refund which should be marked as successful. /// ApiResponse of Refund ApiResponse SucceedWithHttpInfo (long? spaceId, long? refundId); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/ShopifyRecurringOrderService.cs b/src/Wallee/Service/ShopifyRecurringOrderService.cs index 198702b..ac70e95 100644 --- a/src/Wallee/Service/ShopifyRecurringOrderService.cs +++ b/src/Wallee/Service/ShopifyRecurringOrderService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IShopifyRecurringOrderService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IShopifyRecurringOrderService : IApiAccessor /// The id of the Shopify recurring order which should be returned. /// ApiResponse of ShopifyRecurringOrder ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IShopifyRecurringOrderService : IApiAccessor /// The query restricts the Shopify recurring orders which are returned by the search. /// ApiResponse of List<ShopifyRecurringOrder> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -106,6 +117,9 @@ public interface IShopifyRecurringOrderService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse UpdateWithHttpInfo (long? spaceId, ShopifyRecurringOrderUpdateRequest updateRequest); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/ShopifySubscriberService.cs b/src/Wallee/Service/ShopifySubscriberService.cs index 8719ffe..08d2961 100644 --- a/src/Wallee/Service/ShopifySubscriberService.cs +++ b/src/Wallee/Service/ShopifySubscriberService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IShopifySubscriberService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IShopifySubscriberService : IApiAccessor /// The id of the Shopify subscriber which should be returned. /// ApiResponse of ShopifySubscriber ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IShopifySubscriberService : IApiAccessor /// The query restricts the Shopify subscribers which are returned by the search. /// ApiResponse of List<ShopifySubscriber> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -106,6 +117,9 @@ public interface IShopifySubscriberService : IApiAccessor /// The Shopify subscriber object with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of ShopifySubscriber ApiResponse UpdateWithHttpInfo (long? spaceId, ShopifySubscriberActive query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/ShopifySubscriptionProductService.cs b/src/Wallee/Service/ShopifySubscriptionProductService.cs index 4c6d012..a7f0d6d 100644 --- a/src/Wallee/Service/ShopifySubscriptionProductService.cs +++ b/src/Wallee/Service/ShopifySubscriptionProductService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IShopifySubscriptionProductService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface IShopifySubscriptionProductService : IApiAccessor /// The Shopify subscription product object with the properties which should be created. /// ApiResponse of ShopifySubscriptionProduct ApiResponse CreateWithHttpInfo (long? spaceId, ShopifySubscriptionProductCreate entity); + + + /// /// Read /// @@ -83,6 +91,9 @@ public interface IShopifySubscriptionProductService : IApiAccessor /// The id of the Shopify subscription product which should be returned. /// ApiResponse of ShopifySubscriptionProduct ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -106,6 +117,9 @@ public interface IShopifySubscriptionProductService : IApiAccessor /// The query restricts the Shopify subscription products which are returned by the search. /// ApiResponse of List<ShopifySubscriptionProduct> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -129,6 +143,9 @@ public interface IShopifySubscriptionProductService : IApiAccessor /// The Shopify subscription product object with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of ShopifySubscriptionProduct ApiResponse UpdateWithHttpInfo (long? spaceId, ShopifySubscriptionProductUpdate entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/ShopifySubscriptionService.cs b/src/Wallee/Service/ShopifySubscriptionService.cs index 1a5908c..04342b6 100644 --- a/src/Wallee/Service/ShopifySubscriptionService.cs +++ b/src/Wallee/Service/ShopifySubscriptionService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IShopifySubscriptionService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface IShopifySubscriptionService : IApiAccessor /// /// ApiResponse of ShopifySubscriptionVersion ApiResponse CreateWithHttpInfo (long? spaceId, ShopifySubscriptionCreationRequest creationRequest); + + + /// /// Read /// @@ -83,6 +91,9 @@ public interface IShopifySubscriptionService : IApiAccessor /// The id of the Shopify subscription which should be returned. /// ApiResponse of ShopifySubscription ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -106,6 +117,9 @@ public interface IShopifySubscriptionService : IApiAccessor /// The query restricts the Shopify subscriptions which are returned by the search. /// ApiResponse of List<ShopifySubscription> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Terminate /// @@ -131,6 +145,9 @@ public interface IShopifySubscriptionService : IApiAccessor /// The respect termination period controls whether the termination period configured on the product version should be respected or if the operation should take effect immediately. /// ApiResponse of Object(void) ApiResponse TerminateWithHttpInfo (long? spaceId, long? subscriptionId, bool? respectTerminationPeriod); + + + /// /// Update /// @@ -154,6 +171,9 @@ public interface IShopifySubscriptionService : IApiAccessor /// /// ApiResponse of ShopifySubscriptionVersion ApiResponse UpdateWithHttpInfo (long? spaceId, ShopifySubscriptionUpdateRequest subscription); + + + /// /// Update Addresses /// @@ -177,6 +197,9 @@ public interface IShopifySubscriptionService : IApiAccessor /// /// ApiResponse of ShopifySubscriptionVersion ApiResponse UpdateAddressesWithHttpInfo (long? spaceId, ShopifySubscriptionUpdateAddressesRequest updateRequest); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/ShopifySubscriptionSuspensionService.cs b/src/Wallee/Service/ShopifySubscriptionSuspensionService.cs index e33c722..b40bdb9 100644 --- a/src/Wallee/Service/ShopifySubscriptionSuspensionService.cs +++ b/src/Wallee/Service/ShopifySubscriptionSuspensionService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IShopifySubscriptionSuspensionService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Reactivate /// @@ -60,6 +65,9 @@ public interface IShopifySubscriptionSuspensionService : IApiAccessor /// The ID identifies the suspended Shopify subscription which should be reactivated. /// ApiResponse of Object(void) ApiResponse ReactivateWithHttpInfo (long? spaceId, long? subscriptionId); + + + /// /// Read /// @@ -83,6 +91,9 @@ public interface IShopifySubscriptionSuspensionService : IApiAccessor /// The id of the Shopify subscription suspension which should be returned. /// ApiResponse of ShopifySubscriptionSuspension ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -106,6 +117,9 @@ public interface IShopifySubscriptionSuspensionService : IApiAccessor /// The query restricts the Shopify subscription suspensions which are returned by the search. /// ApiResponse of List<ShopifySubscriptionSuspension> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Suspend /// @@ -129,6 +143,9 @@ public interface IShopifySubscriptionSuspensionService : IApiAccessor /// /// ApiResponse of ShopifySubscriptionSuspension ApiResponse SuspendWithHttpInfo (long? spaceId, ShopifySubscriptionSuspensionCreate suspension); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/ShopifySubscriptionVersionService.cs b/src/Wallee/Service/ShopifySubscriptionVersionService.cs index 76bac72..d11a1bd 100644 --- a/src/Wallee/Service/ShopifySubscriptionVersionService.cs +++ b/src/Wallee/Service/ShopifySubscriptionVersionService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IShopifySubscriptionVersionService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IShopifySubscriptionVersionService : IApiAccessor /// The id of the Shopify subscription version which should be returned. /// ApiResponse of ShopifySubscriptionVersion ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IShopifySubscriptionVersionService : IApiAccessor /// The query restricts the Shopify subscription versions which are returned by the search. /// ApiResponse of List<ShopifySubscriptionVersion> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/ShopifyTransactionService.cs b/src/Wallee/Service/ShopifyTransactionService.cs index cf92c4a..59a1a83 100644 --- a/src/Wallee/Service/ShopifyTransactionService.cs +++ b/src/Wallee/Service/ShopifyTransactionService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IShopifyTransactionService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface IShopifyTransactionService : IApiAccessor /// The id of the Shopify transaction which should be returned. /// ApiResponse of ShopifyTransaction ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface IShopifyTransactionService : IApiAccessor /// The query restricts the Shopify transactions which are returned by the search. /// ApiResponse of List<ShopifyTransaction> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SpaceService.cs b/src/Wallee/Service/SpaceService.cs index 8e144ff..41df3fe 100644 --- a/src/Wallee/Service/SpaceService.cs +++ b/src/Wallee/Service/SpaceService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -35,6 +37,9 @@ public interface ISpaceService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (EntityQueryFilter filter = null); + + + /// /// Create /// @@ -56,6 +61,9 @@ public interface ISpaceService : IApiAccessor /// The space object with the properties which should be created. /// ApiResponse of Space ApiResponse CreateWithHttpInfo (SpaceCreate entity); + + + /// /// Delete /// @@ -77,6 +85,9 @@ public interface ISpaceService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? id); + + + /// /// Read /// @@ -98,6 +109,9 @@ public interface ISpaceService : IApiAccessor /// The id of the space which should be returned. /// ApiResponse of Space ApiResponse ReadWithHttpInfo (long? id); + + + /// /// Search /// @@ -119,6 +133,9 @@ public interface ISpaceService : IApiAccessor /// The query restricts the spaces which are returned by the search. /// ApiResponse of List<Space> ApiResponse> SearchWithHttpInfo (EntityQuery query); + + + /// /// Update /// @@ -140,6 +157,9 @@ public interface ISpaceService : IApiAccessor /// The space object with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of Space ApiResponse UpdateWithHttpInfo (SpaceUpdate entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/StaticValueService.cs b/src/Wallee/Service/StaticValueService.cs index bb3f3e7..b894efc 100644 --- a/src/Wallee/Service/StaticValueService.cs +++ b/src/Wallee/Service/StaticValueService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -33,6 +35,9 @@ public interface IStaticValueService : IApiAccessor /// Thrown when fails to make API call /// ApiResponse of List<StaticValue> ApiResponse> AllWithHttpInfo (); + + + /// /// Read /// @@ -54,6 +59,9 @@ public interface IStaticValueService : IApiAccessor /// The id of the static value which should be returned. /// ApiResponse of StaticValue ApiResponse ReadWithHttpInfo (long? id); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SubscriberService.cs b/src/Wallee/Service/SubscriberService.cs index 917bb1c..509537f 100644 --- a/src/Wallee/Service/SubscriberService.cs +++ b/src/Wallee/Service/SubscriberService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ISubscriberService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ISubscriberService : IApiAccessor /// The customer object with the properties which should be created. /// ApiResponse of Subscriber ApiResponse CreateWithHttpInfo (long? spaceId, SubscriberCreate entity); + + + /// /// Delete /// @@ -83,6 +91,9 @@ public interface ISubscriberService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -106,6 +117,9 @@ public interface ISubscriberService : IApiAccessor /// The id of the customer which should be returned. /// ApiResponse of Subscriber ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -129,6 +143,9 @@ public interface ISubscriberService : IApiAccessor /// The query restricts the customer which are returned by the search. /// ApiResponse of List<Subscriber> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -152,6 +169,9 @@ public interface ISubscriberService : IApiAccessor /// The customer with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of Subscriber ApiResponse UpdateWithHttpInfo (long? spaceId, SubscriberUpdate entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SubscriptionAffiliateService.cs b/src/Wallee/Service/SubscriptionAffiliateService.cs index 3553be8..caf3a97 100644 --- a/src/Wallee/Service/SubscriptionAffiliateService.cs +++ b/src/Wallee/Service/SubscriptionAffiliateService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ISubscriptionAffiliateService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ISubscriptionAffiliateService : IApiAccessor /// The subscription affiliate object with the properties which should be created. /// ApiResponse of SubscriptionAffiliate ApiResponse CreateWithHttpInfo (long? spaceId, SubscriptionAffiliateCreate entity); + + + /// /// Delete /// @@ -83,6 +91,9 @@ public interface ISubscriptionAffiliateService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -106,6 +117,9 @@ public interface ISubscriptionAffiliateService : IApiAccessor /// The id of the subscription affiliate case which should be returned. /// ApiResponse of SubscriptionAffiliate ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -129,6 +143,9 @@ public interface ISubscriptionAffiliateService : IApiAccessor /// The query restricts the affiliates which are returned by the search. /// ApiResponse of List<SubscriptionAffiliate> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -152,6 +169,9 @@ public interface ISubscriptionAffiliateService : IApiAccessor /// The object with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of SubscriptionAffiliate ApiResponse UpdateWithHttpInfo (long? spaceId, SubscriptionAffiliateUpdate entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SubscriptionChargeService.cs b/src/Wallee/Service/SubscriptionChargeService.cs index 42b87a7..1bed287 100644 --- a/src/Wallee/Service/SubscriptionChargeService.cs +++ b/src/Wallee/Service/SubscriptionChargeService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ISubscriptionChargeService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ISubscriptionChargeService : IApiAccessor /// /// ApiResponse of SubscriptionCharge ApiResponse CreateWithHttpInfo (long? spaceId, SubscriptionChargeCreate charge); + + + /// /// discard /// @@ -83,6 +91,9 @@ public interface ISubscriptionChargeService : IApiAccessor /// /// ApiResponse of SubscriptionCharge ApiResponse DiscardWithHttpInfo (long? spaceId, long? chargeId); + + + /// /// Read /// @@ -106,6 +117,9 @@ public interface ISubscriptionChargeService : IApiAccessor /// The id of the subscription charge which should be returned. /// ApiResponse of SubscriptionCharge ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -129,6 +143,9 @@ public interface ISubscriptionChargeService : IApiAccessor /// The query restricts the subscription charges which are returned by the search. /// ApiResponse of List<SubscriptionCharge> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SubscriptionLedgerEntryService.cs b/src/Wallee/Service/SubscriptionLedgerEntryService.cs index 636ba95..4493476 100644 --- a/src/Wallee/Service/SubscriptionLedgerEntryService.cs +++ b/src/Wallee/Service/SubscriptionLedgerEntryService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ISubscriptionLedgerEntryService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ISubscriptionLedgerEntryService : IApiAccessor /// /// ApiResponse of SubscriptionLedgerEntry ApiResponse CreateWithHttpInfo (long? spaceId, SubscriptionLedgerEntryCreate entry); + + + /// /// Read /// @@ -83,6 +91,9 @@ public interface ISubscriptionLedgerEntryService : IApiAccessor /// The id of the subscription charge which should be returned. /// ApiResponse of SubscriptionLedgerEntry ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -106,6 +117,9 @@ public interface ISubscriptionLedgerEntryService : IApiAccessor /// The query restricts the subscription charges which are returned by the search. /// ApiResponse of List<SubscriptionLedgerEntry> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SubscriptionMetricService.cs b/src/Wallee/Service/SubscriptionMetricService.cs index 8b28c36..8d16ed1 100644 --- a/src/Wallee/Service/SubscriptionMetricService.cs +++ b/src/Wallee/Service/SubscriptionMetricService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ISubscriptionMetricService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ISubscriptionMetricService : IApiAccessor /// The metric object with the properties which should be created. /// ApiResponse of SubscriptionMetric ApiResponse CreateWithHttpInfo (long? spaceId, SubscriptionMetricCreate entity); + + + /// /// Delete /// @@ -83,6 +91,9 @@ public interface ISubscriptionMetricService : IApiAccessor /// The id of the metric which should be deleted. /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -106,6 +117,9 @@ public interface ISubscriptionMetricService : IApiAccessor /// The id of the metric which should be returned. /// ApiResponse of SubscriptionMetric ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -129,6 +143,9 @@ public interface ISubscriptionMetricService : IApiAccessor /// The query restricts the metric which are returned by the search. /// ApiResponse of List<SubscriptionMetric> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -152,6 +169,9 @@ public interface ISubscriptionMetricService : IApiAccessor /// The products metric with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of SubscriptionMetric ApiResponse UpdateWithHttpInfo (long? spaceId, SubscriptionMetricActive entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SubscriptionMetricUsageService.cs b/src/Wallee/Service/SubscriptionMetricUsageService.cs index 8b6a39e..d85c471 100644 --- a/src/Wallee/Service/SubscriptionMetricUsageService.cs +++ b/src/Wallee/Service/SubscriptionMetricUsageService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ISubscriptionMetricUsageService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ISubscriptionMetricUsageService : IApiAccessor /// The usage report which should be created. /// ApiResponse of SubscriptionMetricUsageReport ApiResponse CreateWithHttpInfo (long? spaceId, SubscriptionMetricUsageReportCreate usageReport); + + + /// /// Read /// @@ -83,6 +91,9 @@ public interface ISubscriptionMetricUsageService : IApiAccessor /// The id of the usage report which should be returned. /// ApiResponse of SubscriptionMetricUsageReport ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -106,6 +117,9 @@ public interface ISubscriptionMetricUsageService : IApiAccessor /// The query restricts the usage reports which are returned by the search. /// ApiResponse of List<SubscriptionMetricUsageReport> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SubscriptionPeriodBillService.cs b/src/Wallee/Service/SubscriptionPeriodBillService.cs index c99b589..c509eb4 100644 --- a/src/Wallee/Service/SubscriptionPeriodBillService.cs +++ b/src/Wallee/Service/SubscriptionPeriodBillService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ISubscriptionPeriodBillService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface ISubscriptionPeriodBillService : IApiAccessor /// The id of the subscription period bill which should be returned. /// ApiResponse of SubscriptionPeriodBill ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface ISubscriptionPeriodBillService : IApiAccessor /// The query restricts the subscription period bills which are returned by the search. /// ApiResponse of List<SubscriptionPeriodBill> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SubscriptionProductComponentGroupService.cs b/src/Wallee/Service/SubscriptionProductComponentGroupService.cs index 6723240..0feec18 100644 --- a/src/Wallee/Service/SubscriptionProductComponentGroupService.cs +++ b/src/Wallee/Service/SubscriptionProductComponentGroupService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ISubscriptionProductComponentGroupService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ISubscriptionProductComponentGroupService : IApiAccessor /// The product component group object with the properties which should be created. /// ApiResponse of SubscriptionProductComponentGroup ApiResponse CreateWithHttpInfo (long? spaceId, SubscriptionProductComponentGroupUpdate entity); + + + /// /// Delete /// @@ -83,6 +91,9 @@ public interface ISubscriptionProductComponentGroupService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -106,6 +117,9 @@ public interface ISubscriptionProductComponentGroupService : IApiAccessor /// The id of the product component group which should be returned. /// ApiResponse of SubscriptionProductComponentGroup ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -129,6 +143,9 @@ public interface ISubscriptionProductComponentGroupService : IApiAccessor /// The query restricts the product component groups which are returned by the search. /// ApiResponse of List<SubscriptionProductComponentGroup> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -152,6 +169,9 @@ public interface ISubscriptionProductComponentGroupService : IApiAccessor /// The product component group object with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of SubscriptionProductComponentGroup ApiResponse UpdateWithHttpInfo (long? spaceId, SubscriptionProductComponentGroupUpdate entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SubscriptionProductComponentService.cs b/src/Wallee/Service/SubscriptionProductComponentService.cs index ed9c0bc..844dcc2 100644 --- a/src/Wallee/Service/SubscriptionProductComponentService.cs +++ b/src/Wallee/Service/SubscriptionProductComponentService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ISubscriptionProductComponentService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ISubscriptionProductComponentService : IApiAccessor /// The product component object with the properties which should be created. /// ApiResponse of SubscriptionProductComponent ApiResponse CreateWithHttpInfo (long? spaceId, SubscriptionProductComponentUpdate entity); + + + /// /// Delete /// @@ -83,6 +91,9 @@ public interface ISubscriptionProductComponentService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -106,6 +117,9 @@ public interface ISubscriptionProductComponentService : IApiAccessor /// The id of the product component which should be returned. /// ApiResponse of SubscriptionProductComponent ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -129,6 +143,9 @@ public interface ISubscriptionProductComponentService : IApiAccessor /// The query restricts the product component which are returned by the search. /// ApiResponse of List<SubscriptionProductComponent> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -152,6 +169,9 @@ public interface ISubscriptionProductComponentService : IApiAccessor /// The product component object with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of SubscriptionProductComponent ApiResponse UpdateWithHttpInfo (long? spaceId, SubscriptionProductComponentUpdate entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SubscriptionProductFeeTierService.cs b/src/Wallee/Service/SubscriptionProductFeeTierService.cs index 8923a28..863ace3 100644 --- a/src/Wallee/Service/SubscriptionProductFeeTierService.cs +++ b/src/Wallee/Service/SubscriptionProductFeeTierService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ISubscriptionProductFeeTierService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ISubscriptionProductFeeTierService : IApiAccessor /// The metered fee tier object with the properties which should be created. /// ApiResponse of ProductMeteredTierFee ApiResponse CreateWithHttpInfo (long? spaceId, ProductMeteredTierFeeUpdate entity); + + + /// /// Delete /// @@ -83,6 +91,9 @@ public interface ISubscriptionProductFeeTierService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -106,6 +117,9 @@ public interface ISubscriptionProductFeeTierService : IApiAccessor /// The id of the metered fee tier which should be returned. /// ApiResponse of ProductMeteredTierFee ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -129,6 +143,9 @@ public interface ISubscriptionProductFeeTierService : IApiAccessor /// The query restricts the metered fee tiers which are returned by the search. /// ApiResponse of List<ProductMeteredTierFee> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -152,6 +169,9 @@ public interface ISubscriptionProductFeeTierService : IApiAccessor /// The metered fee tier object with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of ProductMeteredTierFee ApiResponse UpdateWithHttpInfo (long? spaceId, ProductMeteredTierFeeUpdate entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SubscriptionProductMeteredFeeService.cs b/src/Wallee/Service/SubscriptionProductMeteredFeeService.cs index ac0cd41..15a4e3b 100644 --- a/src/Wallee/Service/SubscriptionProductMeteredFeeService.cs +++ b/src/Wallee/Service/SubscriptionProductMeteredFeeService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ISubscriptionProductMeteredFeeService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ISubscriptionProductMeteredFeeService : IApiAccessor /// The metered fee object with the properties which should be created. /// ApiResponse of ProductMeteredFee ApiResponse CreateWithHttpInfo (long? spaceId, ProductMeteredFeeUpdate entity); + + + /// /// Delete /// @@ -83,6 +91,9 @@ public interface ISubscriptionProductMeteredFeeService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -106,6 +117,9 @@ public interface ISubscriptionProductMeteredFeeService : IApiAccessor /// The id of the metered fee which should be returned. /// ApiResponse of ProductMeteredFee ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -129,6 +143,9 @@ public interface ISubscriptionProductMeteredFeeService : IApiAccessor /// The query restricts the metered fees which are returned by the search. /// ApiResponse of List<ProductMeteredFee> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -152,6 +169,9 @@ public interface ISubscriptionProductMeteredFeeService : IApiAccessor /// The metered fee object with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of ProductMeteredFee ApiResponse UpdateWithHttpInfo (long? spaceId, ProductMeteredFeeUpdate entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SubscriptionProductPeriodFeeService.cs b/src/Wallee/Service/SubscriptionProductPeriodFeeService.cs index f418af3..9931e1b 100644 --- a/src/Wallee/Service/SubscriptionProductPeriodFeeService.cs +++ b/src/Wallee/Service/SubscriptionProductPeriodFeeService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ISubscriptionProductPeriodFeeService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ISubscriptionProductPeriodFeeService : IApiAccessor /// The period fee object with the properties which should be created. /// ApiResponse of ProductPeriodFee ApiResponse CreateWithHttpInfo (long? spaceId, ProductPeriodFeeUpdate entity); + + + /// /// Delete /// @@ -83,6 +91,9 @@ public interface ISubscriptionProductPeriodFeeService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -106,6 +117,9 @@ public interface ISubscriptionProductPeriodFeeService : IApiAccessor /// The id of the period fee which should be returned. /// ApiResponse of ProductPeriodFee ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -129,6 +143,9 @@ public interface ISubscriptionProductPeriodFeeService : IApiAccessor /// The query restricts the period fees which are returned by the search. /// ApiResponse of List<ProductPeriodFee> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -152,6 +169,9 @@ public interface ISubscriptionProductPeriodFeeService : IApiAccessor /// The period fee object with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of ProductPeriodFee ApiResponse UpdateWithHttpInfo (long? spaceId, ProductPeriodFeeUpdate entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SubscriptionProductRetirementService.cs b/src/Wallee/Service/SubscriptionProductRetirementService.cs index 2d930d0..ce7ed39 100644 --- a/src/Wallee/Service/SubscriptionProductRetirementService.cs +++ b/src/Wallee/Service/SubscriptionProductRetirementService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ISubscriptionProductRetirementService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ISubscriptionProductRetirementService : IApiAccessor /// /// ApiResponse of SubscriptionProductRetirement ApiResponse CreateWithHttpInfo (long? spaceId, SubscriptionProductRetirementCreate retirement); + + + /// /// Read /// @@ -83,6 +91,9 @@ public interface ISubscriptionProductRetirementService : IApiAccessor /// The id of the retirement which should be returned. /// ApiResponse of SubscriptionProductRetirement ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -106,6 +117,9 @@ public interface ISubscriptionProductRetirementService : IApiAccessor /// The query restricts the product retirements which are returned by the search. /// ApiResponse of List<SubscriptionProductRetirement> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SubscriptionProductService.cs b/src/Wallee/Service/SubscriptionProductService.cs index 56acd1a..6c00c59 100644 --- a/src/Wallee/Service/SubscriptionProductService.cs +++ b/src/Wallee/Service/SubscriptionProductService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ISubscriptionProductService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ISubscriptionProductService : IApiAccessor /// The product object with the properties which should be created. /// ApiResponse of SubscriptionProduct ApiResponse CreateWithHttpInfo (long? spaceId, SubscriptionProductCreate entity); + + + /// /// Read /// @@ -83,6 +91,9 @@ public interface ISubscriptionProductService : IApiAccessor /// The id of the product which should be returned. /// ApiResponse of SubscriptionProduct ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -106,6 +117,9 @@ public interface ISubscriptionProductService : IApiAccessor /// The query restricts the products which are returned by the search. /// ApiResponse of List<SubscriptionProduct> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -129,6 +143,9 @@ public interface ISubscriptionProductService : IApiAccessor /// The products object with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of SubscriptionProduct ApiResponse UpdateWithHttpInfo (long? spaceId, SubscriptionProductActive entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SubscriptionProductSetupFeeService.cs b/src/Wallee/Service/SubscriptionProductSetupFeeService.cs index 99169d9..a6c7aa7 100644 --- a/src/Wallee/Service/SubscriptionProductSetupFeeService.cs +++ b/src/Wallee/Service/SubscriptionProductSetupFeeService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ISubscriptionProductSetupFeeService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ISubscriptionProductSetupFeeService : IApiAccessor /// The setup fee object with the properties which should be created. /// ApiResponse of ProductSetupFee ApiResponse CreateWithHttpInfo (long? spaceId, ProductSetupFeeUpdate entity); + + + /// /// Delete /// @@ -83,6 +91,9 @@ public interface ISubscriptionProductSetupFeeService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -106,6 +117,9 @@ public interface ISubscriptionProductSetupFeeService : IApiAccessor /// The id of the setup fee which should be returned. /// ApiResponse of ProductSetupFee ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -129,6 +143,9 @@ public interface ISubscriptionProductSetupFeeService : IApiAccessor /// The query restricts the setup fees which are returned by the search. /// ApiResponse of List<ProductSetupFee> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -152,6 +169,9 @@ public interface ISubscriptionProductSetupFeeService : IApiAccessor /// The setup fee object with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of ProductSetupFee ApiResponse UpdateWithHttpInfo (long? spaceId, ProductSetupFeeUpdate entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SubscriptionProductVersionRetirementService.cs b/src/Wallee/Service/SubscriptionProductVersionRetirementService.cs index 1070424..702ad87 100644 --- a/src/Wallee/Service/SubscriptionProductVersionRetirementService.cs +++ b/src/Wallee/Service/SubscriptionProductVersionRetirementService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ISubscriptionProductVersionRetirementService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ISubscriptionProductVersionRetirementService : IApiAccessor /// /// ApiResponse of SubscriptionProductVersionRetirement ApiResponse CreateWithHttpInfo (long? spaceId, SubscriptionProductVersionRetirementCreate retirement); + + + /// /// Read /// @@ -83,6 +91,9 @@ public interface ISubscriptionProductVersionRetirementService : IApiAccessor /// The id of the retirement which should be returned. /// ApiResponse of SubscriptionProductVersionRetirement ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -106,6 +117,9 @@ public interface ISubscriptionProductVersionRetirementService : IApiAccessor /// The query restricts the product version retirements which are returned by the search. /// ApiResponse of List<SubscriptionProductVersionRetirement> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SubscriptionProductVersionService.cs b/src/Wallee/Service/SubscriptionProductVersionService.cs index 74e214b..0a5b582 100644 --- a/src/Wallee/Service/SubscriptionProductVersionService.cs +++ b/src/Wallee/Service/SubscriptionProductVersionService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ISubscriptionProductVersionService : IApiAccessor /// The product version id identifies the product version which should be activated. /// ApiResponse of SubscriptionProductVersion ApiResponse ActivateWithHttpInfo (long? spaceId, long? productVersionId); + + + /// /// Count /// @@ -60,6 +65,9 @@ public interface ISubscriptionProductVersionService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -83,6 +91,9 @@ public interface ISubscriptionProductVersionService : IApiAccessor /// The product version object with the properties which should be created. /// ApiResponse of SubscriptionProductVersion ApiResponse CreateWithHttpInfo (long? spaceId, SubscriptionProductVersionPending entity); + + + /// /// Read /// @@ -106,6 +117,9 @@ public interface ISubscriptionProductVersionService : IApiAccessor /// The id of the product version which should be returned. /// ApiResponse of SubscriptionProductVersion ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -129,6 +143,9 @@ public interface ISubscriptionProductVersionService : IApiAccessor /// The query restricts the product versions which are returned by the search. /// ApiResponse of List<SubscriptionProductVersion> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -152,6 +169,9 @@ public interface ISubscriptionProductVersionService : IApiAccessor /// The product version object with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of SubscriptionProductVersion ApiResponse UpdateWithHttpInfo (long? spaceId, SubscriptionProductVersionPending entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SubscriptionService.cs b/src/Wallee/Service/SubscriptionService.cs index 95275f6..ac965a2 100644 --- a/src/Wallee/Service/SubscriptionService.cs +++ b/src/Wallee/Service/SubscriptionService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ISubscriptionService : IApiAccessor /// /// ApiResponse of SubscriptionVersion ApiResponse ApplyChangesWithHttpInfo (long? spaceId, SubscriptionChangeRequest request); + + + /// /// Count /// @@ -60,6 +65,9 @@ public interface ISubscriptionService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -83,6 +91,9 @@ public interface ISubscriptionService : IApiAccessor /// /// ApiResponse of SubscriptionVersion ApiResponse CreateWithHttpInfo (long? spaceId, SubscriptionCreateRequest createRequest); + + + /// /// initialize /// @@ -106,6 +117,9 @@ public interface ISubscriptionService : IApiAccessor /// The provided subscription id will be used to lookup the subscription which should be initialized. /// ApiResponse of SubscriptionCharge ApiResponse InitializeWithHttpInfo (long? spaceId, long? subscriptionId); + + + /// /// initializeSubscriberPresent /// @@ -133,6 +147,9 @@ public interface ISubscriptionService : IApiAccessor /// The subscriber will be redirected to the fail URL when the transaction fails. (optional) /// ApiResponse of SubscriptionCharge ApiResponse InitializeSubscriberPresentWithHttpInfo (long? spaceId, long? subscriptionId, string successUrl = null, string failedUrl = null); + + + /// /// Read /// @@ -156,6 +173,9 @@ public interface ISubscriptionService : IApiAccessor /// The id of the subscription which should be returned. /// ApiResponse of Subscription ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -179,6 +199,9 @@ public interface ISubscriptionService : IApiAccessor /// The query restricts the subscriptions which are returned by the search. /// ApiResponse of List<Subscription> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Search Subscription Invoices /// @@ -204,6 +227,9 @@ public interface ISubscriptionService : IApiAccessor /// The query restricts the invoices which are returned by the search. /// ApiResponse of List<TransactionInvoice> ApiResponse> SearchSubscriptionInvoicesWithHttpInfo (long? spaceId, long? subscriptionId, EntityQuery query); + + + /// /// terminate /// @@ -229,6 +255,9 @@ public interface ISubscriptionService : IApiAccessor /// The respect termination period controls whether the termination period configured on the product version should be respected or if the operation should take effect immediately. /// ApiResponse of Object(void) ApiResponse TerminateWithHttpInfo (long? spaceId, long? subscriptionId, bool? respectTerminationPeriod); + + + /// /// update /// @@ -254,6 +283,9 @@ public interface ISubscriptionService : IApiAccessor /// /// ApiResponse of Subscription ApiResponse UpdateWithHttpInfo (long? spaceId, long? subscriptionId, SubscriptionUpdateRequest request); + + + /// /// update product version /// @@ -279,6 +311,9 @@ public interface ISubscriptionService : IApiAccessor /// The subscription version may be retired. The respect termination period controls whether the termination period configured on the product version should be respected or if the operation should take effect immediately. /// ApiResponse of SubscriptionVersion ApiResponse UpdateProductVersionWithHttpInfo (long? spaceId, long? subscriptionId, bool? respectTerminationPeriod); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SubscriptionSuspensionService.cs b/src/Wallee/Service/SubscriptionSuspensionService.cs index a9319e8..1067a29 100644 --- a/src/Wallee/Service/SubscriptionSuspensionService.cs +++ b/src/Wallee/Service/SubscriptionSuspensionService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ISubscriptionSuspensionService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ISubscriptionSuspensionService : IApiAccessor /// /// ApiResponse of SubscriptionSuspension ApiResponse CreateWithHttpInfo (long? spaceId, SubscriptionSuspensionCreate suspension); + + + /// /// Read /// @@ -83,6 +91,9 @@ public interface ISubscriptionSuspensionService : IApiAccessor /// The id of the suspension which should be returned. /// ApiResponse of SubscriptionSuspension ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -106,6 +117,9 @@ public interface ISubscriptionSuspensionService : IApiAccessor /// The query restricts the subscription suspensions which are returned by the search. /// ApiResponse of List<SubscriptionSuspension> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// terminate /// @@ -129,6 +143,9 @@ public interface ISubscriptionSuspensionService : IApiAccessor /// /// ApiResponse of SubscriptionSuspension ApiResponse TerminateWithHttpInfo (long? spaceId, long? suspensionId); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/SubscriptionVersionService.cs b/src/Wallee/Service/SubscriptionVersionService.cs index 8e02966..8e01663 100644 --- a/src/Wallee/Service/SubscriptionVersionService.cs +++ b/src/Wallee/Service/SubscriptionVersionService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ISubscriptionVersionService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface ISubscriptionVersionService : IApiAccessor /// The id of the subscription which should be returned. /// ApiResponse of SubscriptionVersion ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface ISubscriptionVersionService : IApiAccessor /// The query restricts the subscriptions which are returned by the search. /// ApiResponse of List<SubscriptionVersion> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/TokenService.cs b/src/Wallee/Service/TokenService.cs index 8058f6b..e81490d 100644 --- a/src/Wallee/Service/TokenService.cs +++ b/src/Wallee/Service/TokenService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ITokenService : IApiAccessor /// The id of the transaction for which we want to check if the token can be created or not. /// ApiResponse of bool? ApiResponse CheckTokenCreationPossibleWithHttpInfo (long? spaceId, long? transactionId); + + + /// /// Count /// @@ -60,6 +65,9 @@ public interface ITokenService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -83,6 +91,35 @@ public interface ITokenService : IApiAccessor /// The token object with the properties which should be created. /// ApiResponse of Token ApiResponse CreateWithHttpInfo (long? spaceId, TokenCreate entity); + + + + /// + /// Create Token + /// + /// + /// This operation creates a token for the given transaction. + /// + /// Thrown when fails to make API call + /// + /// The id of the transaction for which we want to create the token. + /// Token + Token CreateToken (long? spaceId, long? transactionId); + + /// + /// Create Token + /// + /// + /// This operation creates a token for the given transaction. + /// + /// Thrown when fails to make API call + /// + /// The id of the transaction for which we want to create the token. + /// ApiResponse of Token + ApiResponse CreateTokenWithHttpInfo (long? spaceId, long? transactionId); + + + /// /// Create Token Based On Transaction /// @@ -106,6 +143,9 @@ public interface ITokenService : IApiAccessor /// The id of the transaction for which we want to create the token. /// ApiResponse of TokenVersion ApiResponse CreateTokenBasedOnTransactionWithHttpInfo (long? spaceId, long? transactionId); + + + /// /// Create Transaction for Token Update /// @@ -129,6 +169,9 @@ public interface ITokenService : IApiAccessor /// The id of the token which should be updated. /// ApiResponse of Transaction ApiResponse CreateTransactionForTokenUpdateWithHttpInfo (long? spaceId, long? tokenId); + + + /// /// Delete /// @@ -152,6 +195,9 @@ public interface ITokenService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? spaceId, long? id); + + + /// /// Process Transaction /// @@ -175,6 +221,9 @@ public interface ITokenService : IApiAccessor /// The id of the transaction for which we want to check if the token can be created or not. /// ApiResponse of Charge ApiResponse ProcessTransactionWithHttpInfo (long? spaceId, long? transactionId); + + + /// /// Read /// @@ -198,6 +247,9 @@ public interface ITokenService : IApiAccessor /// The id of the token which should be returned. /// ApiResponse of Token ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -221,6 +273,9 @@ public interface ITokenService : IApiAccessor /// The query restricts the tokens which are returned by the search. /// ApiResponse of List<Token> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -244,6 +299,9 @@ public interface ITokenService : IApiAccessor /// The object with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of Token ApiResponse UpdateWithHttpInfo (long? spaceId, TokenUpdate entity); + + + #endregion Synchronous Operations } @@ -520,6 +578,74 @@ public ApiResponse< Token > CreateWithHttpInfo (long? spaceId, TokenCreate entit (Token) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Token))); } /// + /// Create Token This operation creates a token for the given transaction. + /// + /// Thrown when fails to make API call + /// + /// The id of the transaction for which we want to create the token. + /// Token + public Token CreateToken (long? spaceId, long? transactionId) + { + ApiResponse localVarResponse = CreateTokenWithHttpInfo(spaceId, transactionId); + return localVarResponse.Data; + } + + /// + /// Create Token This operation creates a token for the given transaction. + + /// + /// Thrown when fails to make API call + /// + /// The id of the transaction for which we want to create the token. + /// ApiResponse of Token + public ApiResponse< Token > CreateTokenWithHttpInfo (long? spaceId, long? transactionId) + { + // verify the required parameter 'spaceId' is set + if (spaceId == null) + throw new ApiException(400, "Missing required parameter 'spaceId' when calling TokenService->CreateToken"); + // verify the required parameter 'transactionId' is set + if (transactionId == null) + throw new ApiException(400, "Missing required parameter 'transactionId' when calling TokenService->CreateToken"); + + var localVarPath = "/token/create-token"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content type + String[] localVarHttpContentTypes = new String[] { + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + 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 + + + int requestTimeout = this.Configuration.Timeout * 1000; + + // make the HTTP request + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Post, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType, requestTimeout); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("CreateToken", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + 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. /// /// Thrown when fails to make API call diff --git a/src/Wallee/Service/TokenVersionService.cs b/src/Wallee/Service/TokenVersionService.cs index 7239328..a1480f7 100644 --- a/src/Wallee/Service/TokenVersionService.cs +++ b/src/Wallee/Service/TokenVersionService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ITokenVersionService : IApiAccessor /// The id of a token for which you want to look up the current active token version. /// ApiResponse of TokenVersion ApiResponse ActiveVersionWithHttpInfo (long? spaceId, long? id); + + + /// /// Count /// @@ -60,6 +65,9 @@ public interface ITokenVersionService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -83,6 +91,9 @@ public interface ITokenVersionService : IApiAccessor /// The id of the token version which should be returned. /// ApiResponse of TokenVersion ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -106,6 +117,9 @@ public interface ITokenVersionService : IApiAccessor /// The query restricts the token versions which are returned by the search. /// ApiResponse of List<TokenVersion> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/TransactionCommentService.cs b/src/Wallee/Service/TransactionCommentService.cs index e69ae78..99b1194 100644 --- a/src/Wallee/Service/TransactionCommentService.cs +++ b/src/Wallee/Service/TransactionCommentService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ITransactionCommentService : IApiAccessor /// /// ApiResponse of List<TransactionComment> ApiResponse> AllWithHttpInfo (long? spaceId, long? transactionId); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ITransactionCommentService : IApiAccessor /// /// ApiResponse of TransactionComment ApiResponse CreateWithHttpInfo (long? spaceId, TransactionCommentCreate entity); + + + /// /// Delete /// @@ -83,6 +91,9 @@ public interface ITransactionCommentService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? spaceId, long? id); + + + /// /// Pin /// @@ -106,6 +117,9 @@ public interface ITransactionCommentService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse PinWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -129,6 +143,9 @@ public interface ITransactionCommentService : IApiAccessor /// /// ApiResponse of TransactionComment ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Unpin /// @@ -152,6 +169,9 @@ public interface ITransactionCommentService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse UnpinWithHttpInfo (long? spaceId, long? id); + + + /// /// Update /// @@ -175,6 +195,9 @@ public interface ITransactionCommentService : IApiAccessor /// /// ApiResponse of TransactionComment ApiResponse UpdateWithHttpInfo (long? spaceId, TransactionCommentActive entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/TransactionCompletionService.cs b/src/Wallee/Service/TransactionCompletionService.cs index c90d4d1..1a547dc 100644 --- a/src/Wallee/Service/TransactionCompletionService.cs +++ b/src/Wallee/Service/TransactionCompletionService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ITransactionCompletionService : IApiAccessor /// The id of the transaction which should be completed. /// ApiResponse of TransactionCompletion ApiResponse CompleteOfflineWithHttpInfo (long? spaceId, long? id); + + + /// /// completeOnline /// @@ -60,6 +65,9 @@ public interface ITransactionCompletionService : IApiAccessor /// The id of the transaction which should be completed. /// ApiResponse of TransactionCompletion ApiResponse CompleteOnlineWithHttpInfo (long? spaceId, long? id); + + + /// /// completePartiallyOffline /// @@ -83,6 +91,9 @@ public interface ITransactionCompletionService : IApiAccessor /// /// ApiResponse of TransactionCompletion ApiResponse CompletePartiallyOfflineWithHttpInfo (long? spaceId, TransactionCompletionRequest completion); + + + /// /// completePartiallyOnline /// @@ -106,6 +117,9 @@ public interface ITransactionCompletionService : IApiAccessor /// /// ApiResponse of TransactionCompletion ApiResponse CompletePartiallyOnlineWithHttpInfo (long? spaceId, TransactionCompletionRequest completion); + + + /// /// Count /// @@ -129,6 +143,9 @@ public interface ITransactionCompletionService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -152,6 +169,9 @@ public interface ITransactionCompletionService : IApiAccessor /// The id of the transaction completions which should be returned. /// ApiResponse of TransactionCompletion ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -175,6 +195,9 @@ public interface ITransactionCompletionService : IApiAccessor /// The query restricts the transaction completions which are returned by the search. /// ApiResponse of List<TransactionCompletion> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/TransactionIframeService.cs b/src/Wallee/Service/TransactionIframeService.cs index f94c9c5..fa21da8 100644 --- a/src/Wallee/Service/TransactionIframeService.cs +++ b/src/Wallee/Service/TransactionIframeService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ITransactionIframeService : IApiAccessor /// The id of the transaction which should be returned. /// ApiResponse of string ApiResponse JavascriptUrlWithHttpInfo (long? spaceId, long? id); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/TransactionInvoiceCommentService.cs b/src/Wallee/Service/TransactionInvoiceCommentService.cs index 2d170e7..db7eeb9 100644 --- a/src/Wallee/Service/TransactionInvoiceCommentService.cs +++ b/src/Wallee/Service/TransactionInvoiceCommentService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ITransactionInvoiceCommentService : IApiAccessor /// /// ApiResponse of List<TransactionInvoiceComment> ApiResponse> AllWithHttpInfo (long? spaceId, long? invoiceId); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface ITransactionInvoiceCommentService : IApiAccessor /// /// ApiResponse of TransactionInvoiceComment ApiResponse CreateWithHttpInfo (long? spaceId, TransactionInvoiceCommentCreate entity); + + + /// /// Delete /// @@ -83,6 +91,9 @@ public interface ITransactionInvoiceCommentService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? spaceId, long? id); + + + /// /// Pin /// @@ -106,6 +117,9 @@ public interface ITransactionInvoiceCommentService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse PinWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -129,6 +143,9 @@ public interface ITransactionInvoiceCommentService : IApiAccessor /// /// ApiResponse of TransactionInvoiceComment ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Unpin /// @@ -152,6 +169,9 @@ public interface ITransactionInvoiceCommentService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse UnpinWithHttpInfo (long? spaceId, long? id); + + + /// /// Update /// @@ -175,6 +195,9 @@ public interface ITransactionInvoiceCommentService : IApiAccessor /// /// ApiResponse of TransactionInvoiceComment ApiResponse UpdateWithHttpInfo (long? spaceId, TransactionInvoiceCommentActive entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/TransactionInvoiceService.cs b/src/Wallee/Service/TransactionInvoiceService.cs index 146e0a9..522c240 100644 --- a/src/Wallee/Service/TransactionInvoiceService.cs +++ b/src/Wallee/Service/TransactionInvoiceService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ITransactionInvoiceService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// getInvoiceDocument /// @@ -60,6 +65,9 @@ public interface ITransactionInvoiceService : IApiAccessor /// The id of the transaction invoice to get the document for. /// ApiResponse of RenderedDocument ApiResponse GetInvoiceDocumentWithHttpInfo (long? spaceId, long? id); + + + /// /// getInvoiceDocumentWithTargetMediaType /// @@ -85,6 +93,9 @@ public interface ITransactionInvoiceService : IApiAccessor /// The id of the target media type for which the invoice should be generated for. /// ApiResponse of RenderedDocument ApiResponse GetInvoiceDocumentWithTargetMediaTypeWithHttpInfo (long? spaceId, long? id, long? targetMediaTypeId); + + + /// /// isReplacementPossible /// @@ -108,6 +119,9 @@ public interface ITransactionInvoiceService : IApiAccessor /// The invoice which should be checked if a replacement is possible. /// ApiResponse of bool? ApiResponse IsReplacementPossibleWithHttpInfo (long? spaceId, long? id); + + + /// /// Mark as Derecognized /// @@ -131,6 +145,9 @@ public interface ITransactionInvoiceService : IApiAccessor /// The id of the transaction invoice which should be marked as derecognized. /// ApiResponse of TransactionInvoice ApiResponse MarkAsDerecognizedWithHttpInfo (long? spaceId, long? id); + + + /// /// Mark as Paid /// @@ -154,6 +171,9 @@ public interface ITransactionInvoiceService : IApiAccessor /// The id of the transaction invoice which should be marked as paid. /// ApiResponse of TransactionInvoice ApiResponse MarkAsPaidWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -177,6 +197,9 @@ public interface ITransactionInvoiceService : IApiAccessor /// The id of the transaction invoices which should be returned. /// ApiResponse of TransactionInvoice ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// replace /// @@ -202,6 +225,9 @@ public interface ITransactionInvoiceService : IApiAccessor /// /// ApiResponse of TransactionInvoice ApiResponse ReplaceWithHttpInfo (long? spaceId, long? id, TransactionInvoiceReplacement replacement); + + + /// /// Search /// @@ -225,6 +251,9 @@ public interface ITransactionInvoiceService : IApiAccessor /// The query restricts the transaction invoices which are returned by the search. /// ApiResponse of List<TransactionInvoice> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/TransactionLightboxService.cs b/src/Wallee/Service/TransactionLightboxService.cs index 428d76f..de9988d 100644 --- a/src/Wallee/Service/TransactionLightboxService.cs +++ b/src/Wallee/Service/TransactionLightboxService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ITransactionLightboxService : IApiAccessor /// The id of the transaction which should be returned. /// ApiResponse of string ApiResponse JavascriptUrlWithHttpInfo (long? spaceId, long? id); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/TransactionLineItemVersionService.cs b/src/Wallee/Service/TransactionLineItemVersionService.cs index bb20780..25b613d 100644 --- a/src/Wallee/Service/TransactionLineItemVersionService.cs +++ b/src/Wallee/Service/TransactionLineItemVersionService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ITransactionLineItemVersionService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// create /// @@ -60,6 +65,9 @@ public interface ITransactionLineItemVersionService : IApiAccessor /// The line item version object which should be created. /// ApiResponse of TransactionLineItemVersion ApiResponse CreateWithHttpInfo (long? spaceId, TransactionLineItemVersionCreate lineItemVersion); + + + /// /// Read /// @@ -83,6 +91,9 @@ public interface ITransactionLineItemVersionService : IApiAccessor /// The ID of the line item version which should be returned. /// ApiResponse of TransactionLineItemVersion ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -106,6 +117,9 @@ public interface ITransactionLineItemVersionService : IApiAccessor /// The query restricts line item versions which are returned by the search. /// ApiResponse of List<TransactionLineItemVersion> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/TransactionMobileSdkService.cs b/src/Wallee/Service/TransactionMobileSdkService.cs index b1981b7..780d1cb 100644 --- a/src/Wallee/Service/TransactionMobileSdkService.cs +++ b/src/Wallee/Service/TransactionMobileSdkService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -35,6 +37,9 @@ public interface ITransactionMobileSdkService : IApiAccessor /// The credentials identifies the transaction and contains the security details which grants the access this operation. /// ApiResponse of string ApiResponse PaymentFormUrlWithHttpInfo (string credentials); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/TransactionPaymentPageService.cs b/src/Wallee/Service/TransactionPaymentPageService.cs index 41b9389..328d033 100644 --- a/src/Wallee/Service/TransactionPaymentPageService.cs +++ b/src/Wallee/Service/TransactionPaymentPageService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ITransactionPaymentPageService : IApiAccessor /// The id of the transaction which should be returned. /// ApiResponse of string ApiResponse PaymentPageUrlWithHttpInfo (long? spaceId, long? id); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/TransactionService.cs b/src/Wallee/Service/TransactionService.cs index 15881a5..d192ea3 100644 --- a/src/Wallee/Service/TransactionService.cs +++ b/src/Wallee/Service/TransactionService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ITransactionService : IApiAccessor /// The transaction JSON object to update and confirm. /// ApiResponse of Transaction ApiResponse ConfirmWithHttpInfo (long? spaceId, TransactionPending transactionModel); + + + /// /// Count /// @@ -60,6 +65,9 @@ public interface ITransactionService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -83,6 +91,9 @@ public interface ITransactionService : IApiAccessor /// The transaction object which should be created. /// ApiResponse of Transaction ApiResponse CreateWithHttpInfo (long? spaceId, TransactionCreate transaction); + + + /// /// Create Transaction Credentials /// @@ -106,6 +117,9 @@ public interface ITransactionService : IApiAccessor /// The id of the transaction which should be returned. /// ApiResponse of string ApiResponse CreateTransactionCredentialsWithHttpInfo (long? spaceId, long? id); + + + /// /// Delete One-Click Token with Credentials /// @@ -129,6 +143,9 @@ public interface ITransactionService : IApiAccessor /// The token ID will be used to find the token which should be removed. /// ApiResponse of Object(void) ApiResponse DeleteOneClickTokenWithCredentialsWithHttpInfo (string credentials, long? tokenId); + + + /// /// Export /// @@ -152,6 +169,9 @@ public interface ITransactionService : IApiAccessor /// The request controls the entries which are exported. /// ApiResponse of byte[] ApiResponse ExportWithHttpInfo (long? spaceId, EntityExportRequest request); + + + /// /// Fetch One Click Tokens with Credentials /// @@ -173,6 +193,9 @@ public interface ITransactionService : IApiAccessor /// The credentials identifies the transaction and contains the security details which grants the access this operation. /// ApiResponse of List<TokenVersion> ApiResponse> FetchOneClickTokensWithCredentialsWithHttpInfo (string credentials); + + + /// /// Fetch Possible Payment Methods /// @@ -198,6 +221,9 @@ public interface ITransactionService : IApiAccessor /// The integration mode defines the type of integration that is applied on the transaction. /// ApiResponse of List<PaymentMethodConfiguration> ApiResponse> FetchPaymentMethodsWithHttpInfo (long? spaceId, long? id, string integrationMode); + + + /// /// Fetch Possible Payment Methods with Credentials /// @@ -221,6 +247,9 @@ public interface ITransactionService : IApiAccessor /// The integration mode defines the type of integration that is applied on the transaction. /// ApiResponse of List<PaymentMethodConfiguration> ApiResponse> FetchPaymentMethodsWithCredentialsWithHttpInfo (string credentials, string integrationMode); + + + /// /// getInvoiceDocument /// @@ -244,6 +273,9 @@ public interface ITransactionService : IApiAccessor /// The id of the transaction to get the invoice document for. /// ApiResponse of RenderedDocument ApiResponse GetInvoiceDocumentWithHttpInfo (long? spaceId, long? id); + + + /// /// getLatestSuccessfulTransactionLineItemVersion /// @@ -267,6 +299,9 @@ public interface ITransactionService : IApiAccessor /// The id of the transaction to get the latest line item version for. /// ApiResponse of TransactionLineItemVersion ApiResponse GetLatestTransactionLineItemVersionWithHttpInfo (long? spaceId, long? id); + + + /// /// getPackingSlip /// @@ -290,6 +325,9 @@ public interface ITransactionService : IApiAccessor /// The id of the transaction to get the packing slip for. /// ApiResponse of RenderedDocument ApiResponse GetPackingSlipWithHttpInfo (long? spaceId, long? id); + + + /// /// Process One-Click Token with Credentials /// @@ -313,6 +351,9 @@ public interface ITransactionService : IApiAccessor /// The token ID is used to load the corresponding token and to process the transaction with it. /// ApiResponse of string ApiResponse ProcessOneClickTokenAndRedirectWithCredentialsWithHttpInfo (string credentials, long? tokenId); + + + /// /// Process Without User Interaction /// @@ -336,6 +377,9 @@ public interface ITransactionService : IApiAccessor /// The id of the transaction which should be processed. /// ApiResponse of Transaction ApiResponse ProcessWithoutUserInteractionWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -359,6 +403,9 @@ public interface ITransactionService : IApiAccessor /// The id of the transaction which should be returned. /// ApiResponse of Transaction ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Read With Credentials /// @@ -380,6 +427,9 @@ public interface ITransactionService : IApiAccessor /// The credentials identifies the transaction and contains the security details which grants the access this operation. /// ApiResponse of Transaction ApiResponse ReadWithCredentialsWithHttpInfo (string credentials); + + + /// /// Search /// @@ -403,6 +453,9 @@ public interface ITransactionService : IApiAccessor /// The query restricts the transactions which are returned by the search. /// ApiResponse of List<Transaction> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -426,6 +479,9 @@ public interface ITransactionService : IApiAccessor /// The transaction object with the properties which should be updated. /// ApiResponse of Transaction ApiResponse UpdateWithHttpInfo (long? spaceId, TransactionPending entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/TransactionTerminalService.cs b/src/Wallee/Service/TransactionTerminalService.cs index 87f2703..e170467 100644 --- a/src/Wallee/Service/TransactionTerminalService.cs +++ b/src/Wallee/Service/TransactionTerminalService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ITransactionTerminalService : IApiAccessor /// /// ApiResponse of List<RenderedTerminalReceipt> ApiResponse> FetchReceiptsWithHttpInfo (long? spaceId, TerminalReceiptFetchRequest request); + + + /// /// Create Till Connection Credentials /// @@ -64,6 +69,9 @@ public interface ITransactionTerminalService : IApiAccessor /// The language in which the messages should be rendered in. (optional) /// ApiResponse of string ApiResponse TillConnectionCredentialsWithHttpInfo (long? spaceId, long? transactionId, long? terminalId, string language = null); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/TransactionVoidService.cs b/src/Wallee/Service/TransactionVoidService.cs index 8ed2865..e386d45 100644 --- a/src/Wallee/Service/TransactionVoidService.cs +++ b/src/Wallee/Service/TransactionVoidService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface ITransactionVoidService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Read /// @@ -60,6 +65,9 @@ public interface ITransactionVoidService : IApiAccessor /// The id of the transaction voids which should be returned. /// ApiResponse of TransactionVoid ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -83,6 +91,9 @@ public interface ITransactionVoidService : IApiAccessor /// The query restricts the transaction voids which are returned by the search. /// ApiResponse of List<TransactionVoid> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// voidOffline /// @@ -106,6 +117,9 @@ public interface ITransactionVoidService : IApiAccessor /// The id of the transaction which should be voided. /// ApiResponse of TransactionVoid ApiResponse VoidOfflineWithHttpInfo (long? spaceId, long? id); + + + /// /// voidOnline /// @@ -129,6 +143,9 @@ public interface ITransactionVoidService : IApiAccessor /// The id of the transaction which should be voided. /// ApiResponse of TransactionVoid ApiResponse VoidOnlineWithHttpInfo (long? spaceId, long? id); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/UserAccountRoleService.cs b/src/Wallee/Service/UserAccountRoleService.cs index 941b247..1904d73 100644 --- a/src/Wallee/Service/UserAccountRoleService.cs +++ b/src/Wallee/Service/UserAccountRoleService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -41,6 +43,9 @@ public interface IUserAccountRoleService : IApiAccessor /// Whether the role applies only on subaccount. (optional) /// ApiResponse of UserAccountRole ApiResponse AddRoleWithHttpInfo (long? userId, long? accountId, long? roleId, bool? appliesOnSubaccount = null); + + + /// /// List Roles /// @@ -64,6 +69,9 @@ public interface IUserAccountRoleService : IApiAccessor /// The account to which the role is mapped. /// ApiResponse of List<UserAccountRole> ApiResponse> ListWithHttpInfo (long? userId, long? accountId); + + + /// /// Remove Role /// @@ -85,6 +93,9 @@ public interface IUserAccountRoleService : IApiAccessor /// The id of user account role which should be removed /// ApiResponse of Object(void) ApiResponse RemoveRoleWithHttpInfo (long? id); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/UserSpaceRoleService.cs b/src/Wallee/Service/UserSpaceRoleService.cs index 8a11805..a284a0d 100644 --- a/src/Wallee/Service/UserSpaceRoleService.cs +++ b/src/Wallee/Service/UserSpaceRoleService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -39,6 +41,9 @@ public interface IUserSpaceRoleService : IApiAccessor /// The role which is mapped to the user and space. /// ApiResponse of UserSpaceRole ApiResponse AddRoleWithHttpInfo (long? userId, long? spaceId, long? roleId); + + + /// /// List Roles /// @@ -62,6 +67,9 @@ public interface IUserSpaceRoleService : IApiAccessor /// The space to which the role is mapped. /// ApiResponse of List<UserSpaceRole> ApiResponse> ListWithHttpInfo (long? userId, long? spaceId); + + + /// /// Remove Role /// @@ -83,6 +91,9 @@ public interface IUserSpaceRoleService : IApiAccessor /// The id of user space role which should be removed /// ApiResponse of Object(void) ApiResponse RemoveRoleWithHttpInfo (long? id); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/WebAppService.cs b/src/Wallee/Service/WebAppService.cs index ba24b62..398e685 100644 --- a/src/Wallee/Service/WebAppService.cs +++ b/src/Wallee/Service/WebAppService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -35,6 +37,9 @@ public interface IWebAppService : IApiAccessor /// This parameter identifies the space which should be checked if the web app is installed. /// ApiResponse of bool? ApiResponse CheckInstallationWithHttpInfo (long? spaceId); + + + /// /// Confirm /// @@ -56,6 +61,9 @@ public interface IWebAppService : IApiAccessor /// /// ApiResponse of WebAppConfirmationResponse ApiResponse ConfirmWithHttpInfo (WebAppConfirmationRequest request); + + + /// /// Uninstall /// @@ -77,6 +85,9 @@ public interface IWebAppService : IApiAccessor /// This parameter identifies the space within which the web app should be uninstalled. /// ApiResponse of Object(void) ApiResponse UninstallWithHttpInfo (long? spaceId); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/WebhookEncryptionService.cs b/src/Wallee/Service/WebhookEncryptionService.cs new file mode 100644 index 0000000..cd48b11 --- /dev/null +++ b/src/Wallee/Service/WebhookEncryptionService.cs @@ -0,0 +1,201 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Text.RegularExpressions; +using RestSharp; +using Wallee.Client; +using Wallee.Model; +using Wallee.Util; + +namespace Wallee.Service +{ + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IWebhookEncryptionService : IApiAccessor + { + #region Synchronous Operations + /// + /// Read + /// + /// + /// Reads the entity with the given 'id' and returns it. + /// + /// Thrown when fails to make API call + /// The ID of the key version. + /// WebhookEncryptionPublicKey + WebhookEncryptionPublicKey Read (string id); + + /// + /// Read + /// + /// + /// Reads the entity with the given 'id' and returns it. + /// + /// Thrown when fails to make API call + /// The ID of the key version. + /// ApiResponse of WebhookEncryptionPublicKey + ApiResponse ReadWithHttpInfo (string id); + + /// + /// Verify content of a webhook. + /// + /// Thrown when when private key can not be found + /// The content of the X-Signature header. + /// The content body. + /// true if the content body conforms with the signature header + bool IsContentValid(string signatureHeader, string content); + + + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class WebhookEncryptionService : IWebhookEncryptionService + { + private Wallee.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public WebhookEncryptionService(Wallee.Client.Configuration configuration = null) + { + if(configuration == null){ + throw new ArgumentException("Parameter cannot be null", "configuration"); + } + this.Configuration = configuration; + + ExceptionFactory = Wallee.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.ApiClient.RestClient.Options.BaseUrl.ToString(); + } + + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public Wallee.Client.Configuration Configuration {get; set;} + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public Wallee.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Read Reads the entity with the given 'id' and returns it. + /// + /// Thrown when fails to make API call + /// The ID of the key version. + /// WebhookEncryptionPublicKey + public WebhookEncryptionPublicKey Read (string id) + { + ApiResponse localVarResponse = ReadWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Read Reads the entity with the given 'id' and returns it. + + /// + /// Thrown when fails to make API call + /// The ID of the key version. + /// ApiResponse of WebhookEncryptionPublicKey + public ApiResponse< WebhookEncryptionPublicKey > ReadWithHttpInfo (string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new ApiException(400, "Missing required parameter 'id' when calling WebhookEncryptionService->Read"); + + var localVarPath = "/webhook-encryption/read"; + var localVarPathParams = new Dictionary(); + var localVarQueryParams = new List>(); + var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); + var localVarFormParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + Object localVarPostBody = null; + + // to determine the Content type + String[] localVarHttpContentTypes = new String[] { + "*/*" + }; + String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); + + if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter + + + int requestTimeout = this.Configuration.Timeout * 1000; + + // make the HTTP request + RestResponse localVarResponse = (RestResponse) this.Configuration.ApiClient.CallApi(localVarPath, + Method.Get, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, + localVarPathParams, localVarHttpContentType, requestTimeout); + + int localVarStatusCode = (int) localVarResponse.StatusCode; + + if (ExceptionFactory != null) + { + Exception exception = ExceptionFactory("Read", localVarResponse); + if (exception != null) throw exception; + } + + return new ApiResponse(localVarStatusCode, + localVarResponse.Headers + .GroupBy(x => x.Name, x => x.Value.ToString()) + .ToDictionary(x => x.Key, x => String.Join(", ", x)), + (WebhookEncryptionPublicKey) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(WebhookEncryptionPublicKey))); + } + /// + /// Verify content of a webhook. + /// + /// Thrown when when private key can not be found + /// The content of the X-Signature header. + /// The content body. + /// true if the content body conforms with the signature header + public bool IsContentValid(string signatureHeader, string content) + { + string regex = "^algorithm=([a-zA-Z0-9]+),\\skeyId=([a-z0-9\\-]+),\\s{1}signature=([a-zA-Z0-9+\\/=]+)$"; + Regex pattern = new Regex(regex); + Match matcher = pattern.Match(signatureHeader); + if (matcher.Success) + { + string signatureAlgorithm = matcher.Groups[1].Value; + string publicKeyId = matcher.Groups[2].Value; + string contentSignature = matcher.Groups[3].Value; + + WebhookEncryptionPublicKey publicKey = Read(publicKeyId); + if (publicKey == null) + { + throw new ApiException(404, "WebhookEncryptionKey not found"); + } + + return EncryptionUtil.IsContentValid(content, contentSignature, publicKey, signatureAlgorithm); + } + throw new ArgumentException("Invalid signature header. Expected format: 'algorithm=, keyId=, signature='", "signatureHeader"); + } + } +} diff --git a/src/Wallee/Service/WebhookListenerService.cs b/src/Wallee/Service/WebhookListenerService.cs index a147fb9..7d07bb7 100644 --- a/src/Wallee/Service/WebhookListenerService.cs +++ b/src/Wallee/Service/WebhookListenerService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IWebhookListenerService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface IWebhookListenerService : IApiAccessor /// The webhook listener object with the properties which should be created. /// ApiResponse of WebhookListener ApiResponse CreateWithHttpInfo (long? spaceId, WebhookListenerCreate entity); + + + /// /// Delete /// @@ -83,6 +91,9 @@ public interface IWebhookListenerService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -106,6 +117,9 @@ public interface IWebhookListenerService : IApiAccessor /// The id of the webhook listener which should be returned. /// ApiResponse of WebhookListener ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -129,6 +143,9 @@ public interface IWebhookListenerService : IApiAccessor /// The query restricts the webhook listeners which are returned by the search. /// ApiResponse of List<WebhookListener> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -152,6 +169,9 @@ public interface IWebhookListenerService : IApiAccessor /// The webhook listener object with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of WebhookListener ApiResponse UpdateWithHttpInfo (long? spaceId, WebhookListenerUpdate entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Service/WebhookUrlService.cs b/src/Wallee/Service/WebhookUrlService.cs index 9b4b7db..5df5e77 100644 --- a/src/Wallee/Service/WebhookUrlService.cs +++ b/src/Wallee/Service/WebhookUrlService.cs @@ -2,9 +2,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using System.Text.RegularExpressions; using RestSharp; using Wallee.Client; using Wallee.Model; +using Wallee.Util; namespace Wallee.Service { @@ -37,6 +39,9 @@ public interface IWebhookUrlService : IApiAccessor /// The filter which restricts the entities which are used to calculate the count. (optional) /// ApiResponse of long? ApiResponse CountWithHttpInfo (long? spaceId, EntityQueryFilter filter = null); + + + /// /// Create /// @@ -60,6 +65,9 @@ public interface IWebhookUrlService : IApiAccessor /// The webhook url object with the properties which should be created. /// ApiResponse of WebhookUrl ApiResponse CreateWithHttpInfo (long? spaceId, WebhookUrlCreate entity); + + + /// /// Delete /// @@ -83,6 +91,9 @@ public interface IWebhookUrlService : IApiAccessor /// /// ApiResponse of Object(void) ApiResponse DeleteWithHttpInfo (long? spaceId, long? id); + + + /// /// Read /// @@ -106,6 +117,9 @@ public interface IWebhookUrlService : IApiAccessor /// The id of the webhook url which should be returned. /// ApiResponse of WebhookUrl ApiResponse ReadWithHttpInfo (long? spaceId, long? id); + + + /// /// Search /// @@ -129,6 +143,9 @@ public interface IWebhookUrlService : IApiAccessor /// The query restricts the webhook urls which are returned by the search. /// ApiResponse of List<WebhookUrl> ApiResponse> SearchWithHttpInfo (long? spaceId, EntityQuery query); + + + /// /// Update /// @@ -152,6 +169,9 @@ public interface IWebhookUrlService : IApiAccessor /// The webhook url object with all the properties which should be updated. The id and the version are required properties. /// ApiResponse of WebhookUrl ApiResponse UpdateWithHttpInfo (long? spaceId, WebhookUrlUpdate entity); + + + #endregion Synchronous Operations } diff --git a/src/Wallee/Util/EncryptionUtil.cs b/src/Wallee/Util/EncryptionUtil.cs new file mode 100644 index 0000000..3d7e993 --- /dev/null +++ b/src/Wallee/Util/EncryptionUtil.cs @@ -0,0 +1,68 @@ +using System; +using System.IO; +using System.Text; +using Org.BouncyCastle.Crypto; +using Org.BouncyCastle.Crypto.Parameters; +using Org.BouncyCastle.Security; +using Wallee.Model; + +namespace Wallee.Util +{ + /// + /// Helper utility for dealing with encryption + /// + public static class EncryptionUtil + { + /// + /// IsContentValid Validate the content using the signature and public key. + /// + /// Thrown when fails to make API call + /// Content to verify. + /// Base64 encoded signature of the content. + /// The public key (WebhookEncryptionPublicKey) + /// Algorithm of a signature + /// true if content is confirmed by the signature + public static bool IsContentValid(string content, string contentSignature, WebhookEncryptionPublicKey publicKey, + string signatureAlgorithm) + { + bool result; + switch (signatureAlgorithm) + { + case "SHA256withECDSA": + result = VerifySignatureWithECDSA(content, contentSignature, publicKey.PublicKey); + break; + default: + throw new NotSupportedException("Unknown signature algorithm: " + signatureAlgorithm); + } + + return result; + } + + private static bool VerifySignatureWithECDSA(string content, string contentSignature, string publicKey) + { + ECPublicKeyParameters publicKeyParameters = ImportEcdsaPublicKeyParameters(publicKey); + ISigner signer = SignerUtilities.GetSigner("SHA-256withECDSA"); + signer.Init(false, publicKeyParameters); + signer.BlockUpdate(Encoding.UTF8.GetBytes(content), 0, content.Length); + return signer.VerifySignature(GetSignatureBytes(contentSignature)); + } + + private static ECPublicKeyParameters ImportEcdsaPublicKeyParameters(string base64EncodedPublicKey) + { + byte[] publicKeyBytes = Convert.FromBase64String(base64EncodedPublicKey); + return (ECPublicKeyParameters)PublicKeyFactory.CreateKey(publicKeyBytes); + } + + private static byte[] GetSignatureBytes(string contentSignature) + { + try + { + return Convert.FromBase64String(contentSignature); + } + catch (FormatException e) + { + throw new InvalidDataException("Content signature is not a valid BASE-64 string", e); + } + } + } +} diff --git a/src/Wallee/Wallee.csproj b/src/Wallee/Wallee.csproj index 5cdb6df..4d8047e 100644 --- a/src/Wallee/Wallee.csproj +++ b/src/Wallee/Wallee.csproj @@ -20,12 +20,12 @@ Wallee https://www.apache.org/licenses/LICENSE-2.0.txt https://github.com/wallee-payment/csharp-sdk - 7.0.1 - 7.0.1 + 7.0.2 + 7.0.2 Wallee;payment;sdk;Payment Integration Library customweb - 7.0.1 + 7.0.2 git https://github.com/wallee-payment/csharp-sdk.git Wallee @@ -38,6 +38,7 @@ +