From 34460a9889500d689d118ec879ab867a73cd9355 Mon Sep 17 00:00:00 2001 From: Adyen Automation Date: Mon, 21 Oct 2024 07:35:05 +0000 Subject: [PATCH] false[adyen-sdk-automation] automated change --- Adyen/Model/BalancePlatform/AccountHolder.cs | 2 +- .../BalancePlatform/AccountHolderInfo.cs | 2 +- .../AccountHolderUpdateRequest.cs | 2 +- .../BalancePlatform/BankAccountDetails.cs | 21 +- .../CreateSweepConfigurationV2.cs | 60 ++++-- .../BalancePlatform/PaymentInstrument.cs | 2 +- .../PlatformPaymentConfiguration.cs | 6 +- .../BalancePlatform/RegisterSCARequest.cs | 21 +- .../BalancePlatform/SweepConfigurationV2.cs | 60 ++++-- .../Model/BalancePlatform/TransactionRule.cs | 10 +- .../BalancePlatform/TransactionRuleInfo.cs | 10 +- .../UpdatePaymentInstrument.cs | 2 +- .../UpdateSweepConfigurationV2.cs | 60 ++++-- .../BalancePlatform/VerificationDeadline.cs | 64 +++--- .../BalancePlatform/VerificationError.cs | 64 +++--- .../VerificationErrorRecursive.cs | 64 +++--- Adyen/Model/Checkout/AccountInfo.cs | 6 +- Adyen/Model/Checkout/AchDetails.cs | 2 +- .../Model/Checkout/AdditionalData3DSecure.cs | 4 +- Adyen/Model/Checkout/AfterpayDetails.cs | 2 +- Adyen/Model/Checkout/AncvDetails.cs | 2 +- Adyen/Model/Checkout/ApplePayDetails.cs | 2 +- Adyen/Model/Checkout/ApplePayDonations.cs | 2 +- .../Model/Checkout/BacsDirectDebitDetails.cs | 2 +- Adyen/Model/Checkout/BalanceCheckRequest.cs | 2 +- Adyen/Model/Checkout/BlikDetails.cs | 2 +- Adyen/Model/Checkout/CardDetails.cs | 4 +- Adyen/Model/Checkout/CardDonations.cs | 4 +- Adyen/Model/Checkout/CashAppDetails.cs | 2 +- .../Checkout/CreateCheckoutSessionRequest.cs | 2 +- .../Checkout/CreateCheckoutSessionResponse.cs | 2 +- .../Model/Checkout/DonationPaymentRequest.cs | 4 +- Adyen/Model/Checkout/EftDetails.cs | 2 +- .../GenericIssuerPaymentMethodDetails.cs | 2 +- Adyen/Model/Checkout/GiropayDetails.cs | 2 +- Adyen/Model/Checkout/GooglePayDetails.cs | 2 +- Adyen/Model/Checkout/GooglePayDonations.cs | 2 +- Adyen/Model/Checkout/IdealDetails.cs | 2 +- Adyen/Model/Checkout/IdealDonations.cs | 2 +- Adyen/Model/Checkout/InputDetail.cs | 2 +- Adyen/Model/Checkout/KlarnaDetails.cs | 2 +- Adyen/Model/Checkout/MerchantRiskIndicator.cs | 2 +- Adyen/Model/Checkout/OpenInvoiceDetails.cs | 2 +- Adyen/Model/Checkout/PayPalDetails.cs | 2 +- Adyen/Model/Checkout/PayToDetails.cs | 2 +- Adyen/Model/Checkout/PayUUpiDetails.cs | 2 +- Adyen/Model/Checkout/PayWithGoogleDetails.cs | 2 +- .../Model/Checkout/PayWithGoogleDonations.cs | 2 +- Adyen/Model/Checkout/PaymentDetailsRequest.cs | 2 +- Adyen/Model/Checkout/PaymentMethod.cs | 2 +- Adyen/Model/Checkout/PaymentRequest.cs | 6 +- Adyen/Model/Checkout/PaymentSetupRequest.cs | 4 +- Adyen/Model/Checkout/PaymentSetupResponse.cs | 2 +- Adyen/Model/Checkout/RatepayDetails.cs | 2 +- Adyen/Model/Checkout/RecurringDetail.cs | 2 +- Adyen/Model/Checkout/SamsungPayDetails.cs | 2 +- .../Model/Checkout/SepaDirectDebitDetails.cs | 2 +- .../Checkout/StoredPaymentMethodDetails.cs | 2 +- Adyen/Model/Checkout/ThreeDS2RequestData.cs | 4 +- Adyen/Model/Checkout/ThreeDS2RequestFields.cs | 4 +- Adyen/Model/Checkout/UpiCollectDetails.cs | 2 +- Adyen/Model/Checkout/UpiIntentDetails.cs | 2 +- Adyen/Model/Checkout/VippsDetails.cs | 2 +- Adyen/Model/Checkout/ZipDetails.cs | 2 +- .../ConfigurationWebhooks/AccountHolder.cs | 2 +- .../BankAccountDetails.cs | 21 +- .../PaymentInstrument.cs | 2 +- .../PlatformPaymentConfiguration.cs | 6 +- .../SweepConfigurationV2.cs | 60 ++++-- .../VerificationDeadline.cs | 64 +++--- .../VerificationError.cs | 64 +++--- .../VerificationErrorRecursive.cs | 64 +++--- .../AcceptTermsOfServiceResponse.cs | 26 +-- .../Model/LegalEntityManagement/Attachment.cs | 4 +- .../LegalEntityManagement/BankAccountInfo.cs | 2 +- .../LegalEntityManagement/BusinessLine.cs | 2 +- .../LegalEntityManagement/BusinessLineInfo.cs | 2 +- .../CalculateTermsOfServiceStatusResponse.cs | 16 +- Adyen/Model/LegalEntityManagement/Document.cs | 6 +- .../GetTermsOfServiceDocumentRequest.cs | 26 +-- .../GetTermsOfServiceDocumentResponse.cs | 26 +-- .../IdentificationData.cs | 2 +- .../LegalEntityManagement/LegalEntity.cs | 2 +- .../OnboardingLinkSettings.cs | 17 +- .../LegalEntityManagement/SourceOfFunds.cs | 2 +- .../TermsOfServiceAcceptanceInfo.cs | 26 +-- Adyen/Model/Management/AndroidApp.cs | 2 +- Adyen/Model/Management/Currency.cs | 17 +- Adyen/Model/Management/ModelConfiguration.cs | 29 ++- Adyen/Model/Management/Nexo.cs | 2 +- Adyen/Model/Management/SplitConfiguration.cs | 18 -- Adyen/Model/Management/Surcharge.cs | 6 +- Adyen/Model/Payment/AccountInfo.cs | 6 +- Adyen/Model/Payment/MerchantRiskIndicator.cs | 2 +- Adyen/Model/Payment/ModificationResult.cs | 8 +- Adyen/Model/Payment/ThreeDS2RequestData.cs | 4 +- .../ReportWebhooks/ReportNotificationData.cs | 6 +- .../DirectDebitInformation.cs | 186 ++++++++++++++++++ Adyen/Model/TransferWebhooks/Modification.cs | 34 ++-- Adyen/Model/TransferWebhooks/TransferData.cs | 132 +++++++++---- Adyen/Model/TransferWebhooks/TransferEvent.cs | 94 ++++++--- .../Model/TransferWebhooks/TransferReview.cs | 182 +++++++++++++++++ .../Transfers/ApproveTransfersRequest.cs | 130 ++++++++++++ .../Model/Transfers/CancelTransfersRequest.cs | 130 ++++++++++++ .../Model/Transfers/DirectDebitInformation.cs | 186 ++++++++++++++++++ Adyen/Model/Transfers/Modification.cs | 34 ++-- Adyen/Model/Transfers/Transfer.cs | 132 +++++++++---- Adyen/Model/Transfers/TransferData.cs | 132 +++++++++---- Adyen/Model/Transfers/TransferEvent.cs | 94 ++++++--- Adyen/Model/Transfers/TransferInfo.cs | 20 +- .../Model/Transfers/TransferRequestReview.cs | 140 +++++++++++++ Adyen/Model/Transfers/TransferReview.cs | 182 +++++++++++++++++ .../Checkout/ClassicCheckoutSDKService.cs | 16 +- Adyen/Service/Checkout/UtilityService.cs | 8 +- Adyen/Service/PaymentService.cs | 8 +- Adyen/Service/Transfers/TransfersService.cs | 54 +++++ 116 files changed, 2322 insertions(+), 682 deletions(-) create mode 100644 Adyen/Model/TransferWebhooks/DirectDebitInformation.cs create mode 100644 Adyen/Model/TransferWebhooks/TransferReview.cs create mode 100644 Adyen/Model/Transfers/ApproveTransfersRequest.cs create mode 100644 Adyen/Model/Transfers/CancelTransfersRequest.cs create mode 100644 Adyen/Model/Transfers/DirectDebitInformation.cs create mode 100644 Adyen/Model/Transfers/TransferRequestReview.cs create mode 100644 Adyen/Model/Transfers/TransferReview.cs diff --git a/Adyen/Model/BalancePlatform/AccountHolder.cs b/Adyen/Model/BalancePlatform/AccountHolder.cs index 004481e90..de391f354 100644 --- a/Adyen/Model/BalancePlatform/AccountHolder.cs +++ b/Adyen/Model/BalancePlatform/AccountHolder.cs @@ -116,7 +116,7 @@ protected AccountHolder() { } /// Gets or Sets ContactDetails /// [DataMember(Name = "contactDetails", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("")] public ContactDetails ContactDetails { get; set; } /// diff --git a/Adyen/Model/BalancePlatform/AccountHolderInfo.cs b/Adyen/Model/BalancePlatform/AccountHolderInfo.cs index 389893684..67f3aea7e 100644 --- a/Adyen/Model/BalancePlatform/AccountHolderInfo.cs +++ b/Adyen/Model/BalancePlatform/AccountHolderInfo.cs @@ -78,7 +78,7 @@ protected AccountHolderInfo() { } /// Gets or Sets ContactDetails /// [DataMember(Name = "contactDetails", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("")] public ContactDetails ContactDetails { get; set; } /// diff --git a/Adyen/Model/BalancePlatform/AccountHolderUpdateRequest.cs b/Adyen/Model/BalancePlatform/AccountHolderUpdateRequest.cs index 21ac1461b..47e575373 100644 --- a/Adyen/Model/BalancePlatform/AccountHolderUpdateRequest.cs +++ b/Adyen/Model/BalancePlatform/AccountHolderUpdateRequest.cs @@ -109,7 +109,7 @@ public enum StatusEnum /// Gets or Sets ContactDetails /// [DataMember(Name = "contactDetails", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("")] public ContactDetails ContactDetails { get; set; } /// diff --git a/Adyen/Model/BalancePlatform/BankAccountDetails.cs b/Adyen/Model/BalancePlatform/BankAccountDetails.cs index 32d17d10c..e5b496a19 100644 --- a/Adyen/Model/BalancePlatform/BankAccountDetails.cs +++ b/Adyen/Model/BalancePlatform/BankAccountDetails.cs @@ -42,17 +42,19 @@ protected BankAccountDetails() { } /// /// The bank account number, without separators or whitespace.. /// The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. (default to "checking"). + /// The bank account branch number, without separators or whitespace. /// Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. (default to "physical"). /// The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard.. /// The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.. /// The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace.. /// **iban** or **usLocal** or **ukLocal** (required) (default to "iban"). - public BankAccountDetails(string accountNumber = default(string), string accountType = "checking", string formFactor = "physical", string iban = default(string), string routingNumber = default(string), string sortCode = default(string), string type = "iban") + public BankAccountDetails(string accountNumber = default(string), string accountType = "checking", string branchNumber = default(string), string formFactor = "physical", string iban = default(string), string routingNumber = default(string), string sortCode = default(string), string type = "iban") { this.Type = type; this.AccountNumber = accountNumber; // use default value if no "accountType" provided this.AccountType = accountType ?? "checking"; + this.BranchNumber = branchNumber; // use default value if no "formFactor" provided this.FormFactor = formFactor ?? "physical"; this.Iban = iban; @@ -74,6 +76,13 @@ protected BankAccountDetails() { } [DataMember(Name = "accountType", EmitDefaultValue = false)] public string AccountType { get; set; } + /// + /// The bank account branch number, without separators or whitespace + /// + /// The bank account branch number, without separators or whitespace + [DataMember(Name = "branchNumber", EmitDefaultValue = false)] + public string BranchNumber { get; set; } + /// /// Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. /// @@ -119,6 +128,7 @@ public override string ToString() sb.Append("class BankAccountDetails {\n"); sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n"); sb.Append(" AccountType: ").Append(AccountType).Append("\n"); + sb.Append(" BranchNumber: ").Append(BranchNumber).Append("\n"); sb.Append(" FormFactor: ").Append(FormFactor).Append("\n"); sb.Append(" Iban: ").Append(Iban).Append("\n"); sb.Append(" RoutingNumber: ").Append(RoutingNumber).Append("\n"); @@ -169,6 +179,11 @@ public bool Equals(BankAccountDetails input) (this.AccountType != null && this.AccountType.Equals(input.AccountType)) ) && + ( + this.BranchNumber == input.BranchNumber || + (this.BranchNumber != null && + this.BranchNumber.Equals(input.BranchNumber)) + ) && ( this.FormFactor == input.FormFactor || (this.FormFactor != null && @@ -213,6 +228,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.AccountType.GetHashCode(); } + if (this.BranchNumber != null) + { + hashCode = (hashCode * 59) + this.BranchNumber.GetHashCode(); + } if (this.FormFactor != null) { hashCode = (hashCode * 59) + this.FormFactor.GetHashCode(); diff --git a/Adyen/Model/BalancePlatform/CreateSweepConfigurationV2.cs b/Adyen/Model/BalancePlatform/CreateSweepConfigurationV2.cs index b0b4d68f2..c676798c8 100644 --- a/Adyen/Model/BalancePlatform/CreateSweepConfigurationV2.cs +++ b/Adyen/Model/BalancePlatform/CreateSweepConfigurationV2.cs @@ -125,113 +125,137 @@ public enum PrioritiesEnum [JsonConverter(typeof(StringEnumConverter))] public enum ReasonEnum { + /// + /// Enum AccountHierarchyNotActive for value: accountHierarchyNotActive + /// + [EnumMember(Value = "accountHierarchyNotActive")] + AccountHierarchyNotActive = 1, + /// /// Enum AmountLimitExceeded for value: amountLimitExceeded /// [EnumMember(Value = "amountLimitExceeded")] - AmountLimitExceeded = 1, + AmountLimitExceeded = 2, /// /// Enum Approved for value: approved /// [EnumMember(Value = "approved")] - Approved = 2, + Approved = 3, /// /// Enum BalanceAccountTemporarilyBlockedByTransactionRule for value: balanceAccountTemporarilyBlockedByTransactionRule /// [EnumMember(Value = "balanceAccountTemporarilyBlockedByTransactionRule")] - BalanceAccountTemporarilyBlockedByTransactionRule = 3, + BalanceAccountTemporarilyBlockedByTransactionRule = 4, /// /// Enum CounterpartyAccountBlocked for value: counterpartyAccountBlocked /// [EnumMember(Value = "counterpartyAccountBlocked")] - CounterpartyAccountBlocked = 4, + CounterpartyAccountBlocked = 5, /// /// Enum CounterpartyAccountClosed for value: counterpartyAccountClosed /// [EnumMember(Value = "counterpartyAccountClosed")] - CounterpartyAccountClosed = 5, + CounterpartyAccountClosed = 6, /// /// Enum CounterpartyAccountNotFound for value: counterpartyAccountNotFound /// [EnumMember(Value = "counterpartyAccountNotFound")] - CounterpartyAccountNotFound = 6, + CounterpartyAccountNotFound = 7, /// /// Enum CounterpartyAddressRequired for value: counterpartyAddressRequired /// [EnumMember(Value = "counterpartyAddressRequired")] - CounterpartyAddressRequired = 7, + CounterpartyAddressRequired = 8, /// /// Enum CounterpartyBankTimedOut for value: counterpartyBankTimedOut /// [EnumMember(Value = "counterpartyBankTimedOut")] - CounterpartyBankTimedOut = 8, + CounterpartyBankTimedOut = 9, /// /// Enum CounterpartyBankUnavailable for value: counterpartyBankUnavailable /// [EnumMember(Value = "counterpartyBankUnavailable")] - CounterpartyBankUnavailable = 9, + CounterpartyBankUnavailable = 10, /// /// Enum Declined for value: declined /// [EnumMember(Value = "declined")] - Declined = 10, + Declined = 11, /// /// Enum DeclinedByTransactionRule for value: declinedByTransactionRule /// [EnumMember(Value = "declinedByTransactionRule")] - DeclinedByTransactionRule = 11, + DeclinedByTransactionRule = 12, + + /// + /// Enum DirectDebitNotSupported for value: directDebitNotSupported + /// + [EnumMember(Value = "directDebitNotSupported")] + DirectDebitNotSupported = 13, /// /// Enum Error for value: error /// [EnumMember(Value = "error")] - Error = 12, + Error = 14, /// /// Enum NotEnoughBalance for value: notEnoughBalance /// [EnumMember(Value = "notEnoughBalance")] - NotEnoughBalance = 13, + NotEnoughBalance = 15, /// /// Enum PendingApproval for value: pendingApproval /// [EnumMember(Value = "pendingApproval")] - PendingApproval = 14, + PendingApproval = 16, + + /// + /// Enum PendingExecution for value: pendingExecution + /// + [EnumMember(Value = "pendingExecution")] + PendingExecution = 17, /// /// Enum RefusedByCounterpartyBank for value: refusedByCounterpartyBank /// [EnumMember(Value = "refusedByCounterpartyBank")] - RefusedByCounterpartyBank = 15, + RefusedByCounterpartyBank = 18, /// /// Enum RouteNotFound for value: routeNotFound /// [EnumMember(Value = "routeNotFound")] - RouteNotFound = 16, + RouteNotFound = 19, /// /// Enum ScaFailed for value: scaFailed /// [EnumMember(Value = "scaFailed")] - ScaFailed = 17, + ScaFailed = 20, + + /// + /// Enum TransferInstrumentDoesNotExist for value: transferInstrumentDoesNotExist + /// + [EnumMember(Value = "transferInstrumentDoesNotExist")] + TransferInstrumentDoesNotExist = 21, /// /// Enum Unknown for value: unknown /// [EnumMember(Value = "unknown")] - Unknown = 18 + Unknown = 22 } diff --git a/Adyen/Model/BalancePlatform/PaymentInstrument.cs b/Adyen/Model/BalancePlatform/PaymentInstrument.cs index 4752e8997..b83d90a4d 100644 --- a/Adyen/Model/BalancePlatform/PaymentInstrument.cs +++ b/Adyen/Model/BalancePlatform/PaymentInstrument.cs @@ -213,7 +213,7 @@ protected PaymentInstrument() { } /// /// Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. [DataMember(Name = "additionalBankAccountIdentifications", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Configuration API v2. Please use `bankAccount` object instead")] public List AdditionalBankAccountIdentifications { get; set; } /// diff --git a/Adyen/Model/BalancePlatform/PlatformPaymentConfiguration.cs b/Adyen/Model/BalancePlatform/PlatformPaymentConfiguration.cs index a54ab958e..24c603ca0 100644 --- a/Adyen/Model/BalancePlatform/PlatformPaymentConfiguration.cs +++ b/Adyen/Model/BalancePlatform/PlatformPaymentConfiguration.cs @@ -36,7 +36,7 @@ public partial class PlatformPaymentConfiguration : IEquatable class. /// /// Specifies at what time a [sales day](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#sales-day) ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**.. - /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**.. + /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **1** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**.. public PlatformPaymentConfiguration(string salesDayClosingTime = default(string), int? settlementDelayDays = default(int?)) { this.SalesDayClosingTime = salesDayClosingTime; @@ -51,9 +51,9 @@ public partial class PlatformPaymentConfiguration : IEquatable - /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**. + /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **1** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**. /// - /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**. + /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **1** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**. [DataMember(Name = "settlementDelayDays", EmitDefaultValue = false)] public int? SettlementDelayDays { get; set; } diff --git a/Adyen/Model/BalancePlatform/RegisterSCARequest.cs b/Adyen/Model/BalancePlatform/RegisterSCARequest.cs index d78c915c5..1875dea62 100644 --- a/Adyen/Model/BalancePlatform/RegisterSCARequest.cs +++ b/Adyen/Model/BalancePlatform/RegisterSCARequest.cs @@ -40,14 +40,23 @@ protected RegisterSCARequest() { } /// /// Initializes a new instance of the class. /// + /// The name of the SCA device that you are registering. You can use it to help your users identify the device. If you do not specify a `name`, Adyen automatically generates one.. /// The unique identifier of the payment instrument for which you are registering the SCA device. (required). /// strongCustomerAuthentication (required). - public RegisterSCARequest(string paymentInstrumentId = default(string), DelegatedAuthenticationData strongCustomerAuthentication = default(DelegatedAuthenticationData)) + public RegisterSCARequest(string name = default(string), string paymentInstrumentId = default(string), DelegatedAuthenticationData strongCustomerAuthentication = default(DelegatedAuthenticationData)) { this.PaymentInstrumentId = paymentInstrumentId; this.StrongCustomerAuthentication = strongCustomerAuthentication; + this.Name = name; } + /// + /// The name of the SCA device that you are registering. You can use it to help your users identify the device. If you do not specify a `name`, Adyen automatically generates one. + /// + /// The name of the SCA device that you are registering. You can use it to help your users identify the device. If you do not specify a `name`, Adyen automatically generates one. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + /// /// The unique identifier of the payment instrument for which you are registering the SCA device. /// @@ -69,6 +78,7 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class RegisterSCARequest {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" PaymentInstrumentId: ").Append(PaymentInstrumentId).Append("\n"); sb.Append(" StrongCustomerAuthentication: ").Append(StrongCustomerAuthentication).Append("\n"); sb.Append("}\n"); @@ -106,6 +116,11 @@ public bool Equals(RegisterSCARequest input) return false; } return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && ( this.PaymentInstrumentId == input.PaymentInstrumentId || (this.PaymentInstrumentId != null && @@ -127,6 +142,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.PaymentInstrumentId != null) { hashCode = (hashCode * 59) + this.PaymentInstrumentId.GetHashCode(); diff --git a/Adyen/Model/BalancePlatform/SweepConfigurationV2.cs b/Adyen/Model/BalancePlatform/SweepConfigurationV2.cs index 22b3dbbd5..31ce54e93 100644 --- a/Adyen/Model/BalancePlatform/SweepConfigurationV2.cs +++ b/Adyen/Model/BalancePlatform/SweepConfigurationV2.cs @@ -125,113 +125,137 @@ public enum PrioritiesEnum [JsonConverter(typeof(StringEnumConverter))] public enum ReasonEnum { + /// + /// Enum AccountHierarchyNotActive for value: accountHierarchyNotActive + /// + [EnumMember(Value = "accountHierarchyNotActive")] + AccountHierarchyNotActive = 1, + /// /// Enum AmountLimitExceeded for value: amountLimitExceeded /// [EnumMember(Value = "amountLimitExceeded")] - AmountLimitExceeded = 1, + AmountLimitExceeded = 2, /// /// Enum Approved for value: approved /// [EnumMember(Value = "approved")] - Approved = 2, + Approved = 3, /// /// Enum BalanceAccountTemporarilyBlockedByTransactionRule for value: balanceAccountTemporarilyBlockedByTransactionRule /// [EnumMember(Value = "balanceAccountTemporarilyBlockedByTransactionRule")] - BalanceAccountTemporarilyBlockedByTransactionRule = 3, + BalanceAccountTemporarilyBlockedByTransactionRule = 4, /// /// Enum CounterpartyAccountBlocked for value: counterpartyAccountBlocked /// [EnumMember(Value = "counterpartyAccountBlocked")] - CounterpartyAccountBlocked = 4, + CounterpartyAccountBlocked = 5, /// /// Enum CounterpartyAccountClosed for value: counterpartyAccountClosed /// [EnumMember(Value = "counterpartyAccountClosed")] - CounterpartyAccountClosed = 5, + CounterpartyAccountClosed = 6, /// /// Enum CounterpartyAccountNotFound for value: counterpartyAccountNotFound /// [EnumMember(Value = "counterpartyAccountNotFound")] - CounterpartyAccountNotFound = 6, + CounterpartyAccountNotFound = 7, /// /// Enum CounterpartyAddressRequired for value: counterpartyAddressRequired /// [EnumMember(Value = "counterpartyAddressRequired")] - CounterpartyAddressRequired = 7, + CounterpartyAddressRequired = 8, /// /// Enum CounterpartyBankTimedOut for value: counterpartyBankTimedOut /// [EnumMember(Value = "counterpartyBankTimedOut")] - CounterpartyBankTimedOut = 8, + CounterpartyBankTimedOut = 9, /// /// Enum CounterpartyBankUnavailable for value: counterpartyBankUnavailable /// [EnumMember(Value = "counterpartyBankUnavailable")] - CounterpartyBankUnavailable = 9, + CounterpartyBankUnavailable = 10, /// /// Enum Declined for value: declined /// [EnumMember(Value = "declined")] - Declined = 10, + Declined = 11, /// /// Enum DeclinedByTransactionRule for value: declinedByTransactionRule /// [EnumMember(Value = "declinedByTransactionRule")] - DeclinedByTransactionRule = 11, + DeclinedByTransactionRule = 12, + + /// + /// Enum DirectDebitNotSupported for value: directDebitNotSupported + /// + [EnumMember(Value = "directDebitNotSupported")] + DirectDebitNotSupported = 13, /// /// Enum Error for value: error /// [EnumMember(Value = "error")] - Error = 12, + Error = 14, /// /// Enum NotEnoughBalance for value: notEnoughBalance /// [EnumMember(Value = "notEnoughBalance")] - NotEnoughBalance = 13, + NotEnoughBalance = 15, /// /// Enum PendingApproval for value: pendingApproval /// [EnumMember(Value = "pendingApproval")] - PendingApproval = 14, + PendingApproval = 16, + + /// + /// Enum PendingExecution for value: pendingExecution + /// + [EnumMember(Value = "pendingExecution")] + PendingExecution = 17, /// /// Enum RefusedByCounterpartyBank for value: refusedByCounterpartyBank /// [EnumMember(Value = "refusedByCounterpartyBank")] - RefusedByCounterpartyBank = 15, + RefusedByCounterpartyBank = 18, /// /// Enum RouteNotFound for value: routeNotFound /// [EnumMember(Value = "routeNotFound")] - RouteNotFound = 16, + RouteNotFound = 19, /// /// Enum ScaFailed for value: scaFailed /// [EnumMember(Value = "scaFailed")] - ScaFailed = 17, + ScaFailed = 20, + + /// + /// Enum TransferInstrumentDoesNotExist for value: transferInstrumentDoesNotExist + /// + [EnumMember(Value = "transferInstrumentDoesNotExist")] + TransferInstrumentDoesNotExist = 21, /// /// Enum Unknown for value: unknown /// [EnumMember(Value = "unknown")] - Unknown = 18 + Unknown = 22 } diff --git a/Adyen/Model/BalancePlatform/TransactionRule.cs b/Adyen/Model/BalancePlatform/TransactionRule.cs index 23c7df5b5..4b50a500d 100644 --- a/Adyen/Model/BalancePlatform/TransactionRule.cs +++ b/Adyen/Model/BalancePlatform/TransactionRule.cs @@ -33,9 +33,9 @@ namespace Adyen.Model.BalancePlatform public partial class TransactionRule : IEquatable, IValidatableObject { /// - /// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. If not provided, by default, this is set to **hardBlock**. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. + /// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, declines the Transaction. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. /// - /// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. If not provided, by default, this is set to **hardBlock**. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. + /// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, declines the Transaction. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. [JsonConverter(typeof(StringEnumConverter))] public enum OutcomeTypeEnum { @@ -67,9 +67,9 @@ public enum OutcomeTypeEnum /// - /// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. If not provided, by default, this is set to **hardBlock**. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. + /// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, declines the Transaction. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. /// - /// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. If not provided, by default, this is set to **hardBlock**. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. + /// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, declines the Transaction. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. [DataMember(Name = "outcomeType", EmitDefaultValue = false)] public OutcomeTypeEnum? OutcomeType { get; set; } /// @@ -194,7 +194,7 @@ protected TransactionRule() { } /// entityKey (required). /// The unique identifier of the transaction rule.. /// interval (required). - /// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. If not provided, by default, this is set to **hardBlock**. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined.. + /// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, declines the Transaction. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**.. /// Your reference for the transaction rule. (required). /// Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**.. /// ruleRestrictions (required). diff --git a/Adyen/Model/BalancePlatform/TransactionRuleInfo.cs b/Adyen/Model/BalancePlatform/TransactionRuleInfo.cs index cee0a1cea..c4224afb6 100644 --- a/Adyen/Model/BalancePlatform/TransactionRuleInfo.cs +++ b/Adyen/Model/BalancePlatform/TransactionRuleInfo.cs @@ -33,9 +33,9 @@ namespace Adyen.Model.BalancePlatform public partial class TransactionRuleInfo : IEquatable, IValidatableObject { /// - /// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. If not provided, by default, this is set to **hardBlock**. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. + /// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, declines the Transaction. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. /// - /// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. If not provided, by default, this is set to **hardBlock**. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. + /// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, declines the Transaction. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. [JsonConverter(typeof(StringEnumConverter))] public enum OutcomeTypeEnum { @@ -67,9 +67,9 @@ public enum OutcomeTypeEnum /// - /// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. If not provided, by default, this is set to **hardBlock**. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. + /// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, declines the Transaction. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. /// - /// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. If not provided, by default, this is set to **hardBlock**. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. + /// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, declines the Transaction. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**. [DataMember(Name = "outcomeType", EmitDefaultValue = false)] public OutcomeTypeEnum? OutcomeType { get; set; } /// @@ -193,7 +193,7 @@ protected TransactionRuleInfo() { } /// The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**.. /// entityKey (required). /// interval (required). - /// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. If not provided, by default, this is set to **hardBlock**. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined.. + /// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, declines the Transaction. Default value: **hardBlock**. > **scoreBased** is not allowed when `requestType` is **bankTransfer**.. /// Your reference for the transaction rule. (required). /// Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**.. /// ruleRestrictions (required). diff --git a/Adyen/Model/BalancePlatform/UpdatePaymentInstrument.cs b/Adyen/Model/BalancePlatform/UpdatePaymentInstrument.cs index 480c82a76..cacbf4c41 100644 --- a/Adyen/Model/BalancePlatform/UpdatePaymentInstrument.cs +++ b/Adyen/Model/BalancePlatform/UpdatePaymentInstrument.cs @@ -213,7 +213,7 @@ protected UpdatePaymentInstrument() { } /// /// Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. [DataMember(Name = "additionalBankAccountIdentifications", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Configuration API v2. Please use `bankAccount` object instead")] public List AdditionalBankAccountIdentifications { get; set; } /// diff --git a/Adyen/Model/BalancePlatform/UpdateSweepConfigurationV2.cs b/Adyen/Model/BalancePlatform/UpdateSweepConfigurationV2.cs index 0d320b69f..ebc639e93 100644 --- a/Adyen/Model/BalancePlatform/UpdateSweepConfigurationV2.cs +++ b/Adyen/Model/BalancePlatform/UpdateSweepConfigurationV2.cs @@ -125,113 +125,137 @@ public enum PrioritiesEnum [JsonConverter(typeof(StringEnumConverter))] public enum ReasonEnum { + /// + /// Enum AccountHierarchyNotActive for value: accountHierarchyNotActive + /// + [EnumMember(Value = "accountHierarchyNotActive")] + AccountHierarchyNotActive = 1, + /// /// Enum AmountLimitExceeded for value: amountLimitExceeded /// [EnumMember(Value = "amountLimitExceeded")] - AmountLimitExceeded = 1, + AmountLimitExceeded = 2, /// /// Enum Approved for value: approved /// [EnumMember(Value = "approved")] - Approved = 2, + Approved = 3, /// /// Enum BalanceAccountTemporarilyBlockedByTransactionRule for value: balanceAccountTemporarilyBlockedByTransactionRule /// [EnumMember(Value = "balanceAccountTemporarilyBlockedByTransactionRule")] - BalanceAccountTemporarilyBlockedByTransactionRule = 3, + BalanceAccountTemporarilyBlockedByTransactionRule = 4, /// /// Enum CounterpartyAccountBlocked for value: counterpartyAccountBlocked /// [EnumMember(Value = "counterpartyAccountBlocked")] - CounterpartyAccountBlocked = 4, + CounterpartyAccountBlocked = 5, /// /// Enum CounterpartyAccountClosed for value: counterpartyAccountClosed /// [EnumMember(Value = "counterpartyAccountClosed")] - CounterpartyAccountClosed = 5, + CounterpartyAccountClosed = 6, /// /// Enum CounterpartyAccountNotFound for value: counterpartyAccountNotFound /// [EnumMember(Value = "counterpartyAccountNotFound")] - CounterpartyAccountNotFound = 6, + CounterpartyAccountNotFound = 7, /// /// Enum CounterpartyAddressRequired for value: counterpartyAddressRequired /// [EnumMember(Value = "counterpartyAddressRequired")] - CounterpartyAddressRequired = 7, + CounterpartyAddressRequired = 8, /// /// Enum CounterpartyBankTimedOut for value: counterpartyBankTimedOut /// [EnumMember(Value = "counterpartyBankTimedOut")] - CounterpartyBankTimedOut = 8, + CounterpartyBankTimedOut = 9, /// /// Enum CounterpartyBankUnavailable for value: counterpartyBankUnavailable /// [EnumMember(Value = "counterpartyBankUnavailable")] - CounterpartyBankUnavailable = 9, + CounterpartyBankUnavailable = 10, /// /// Enum Declined for value: declined /// [EnumMember(Value = "declined")] - Declined = 10, + Declined = 11, /// /// Enum DeclinedByTransactionRule for value: declinedByTransactionRule /// [EnumMember(Value = "declinedByTransactionRule")] - DeclinedByTransactionRule = 11, + DeclinedByTransactionRule = 12, + + /// + /// Enum DirectDebitNotSupported for value: directDebitNotSupported + /// + [EnumMember(Value = "directDebitNotSupported")] + DirectDebitNotSupported = 13, /// /// Enum Error for value: error /// [EnumMember(Value = "error")] - Error = 12, + Error = 14, /// /// Enum NotEnoughBalance for value: notEnoughBalance /// [EnumMember(Value = "notEnoughBalance")] - NotEnoughBalance = 13, + NotEnoughBalance = 15, /// /// Enum PendingApproval for value: pendingApproval /// [EnumMember(Value = "pendingApproval")] - PendingApproval = 14, + PendingApproval = 16, + + /// + /// Enum PendingExecution for value: pendingExecution + /// + [EnumMember(Value = "pendingExecution")] + PendingExecution = 17, /// /// Enum RefusedByCounterpartyBank for value: refusedByCounterpartyBank /// [EnumMember(Value = "refusedByCounterpartyBank")] - RefusedByCounterpartyBank = 15, + RefusedByCounterpartyBank = 18, /// /// Enum RouteNotFound for value: routeNotFound /// [EnumMember(Value = "routeNotFound")] - RouteNotFound = 16, + RouteNotFound = 19, /// /// Enum ScaFailed for value: scaFailed /// [EnumMember(Value = "scaFailed")] - ScaFailed = 17, + ScaFailed = 20, + + /// + /// Enum TransferInstrumentDoesNotExist for value: transferInstrumentDoesNotExist + /// + [EnumMember(Value = "transferInstrumentDoesNotExist")] + TransferInstrumentDoesNotExist = 21, /// /// Enum Unknown for value: unknown /// [EnumMember(Value = "unknown")] - Unknown = 18 + Unknown = 22 } diff --git a/Adyen/Model/BalancePlatform/VerificationDeadline.cs b/Adyen/Model/BalancePlatform/VerificationDeadline.cs index 754619309..6760c9552 100644 --- a/Adyen/Model/BalancePlatform/VerificationDeadline.cs +++ b/Adyen/Model/BalancePlatform/VerificationDeadline.cs @@ -164,179 +164,185 @@ public enum CapabilitiesEnum [EnumMember(Value = "issueCardConsumer")] IssueCardConsumer = 21, + /// + /// Enum IssueCreditLimit for value: issueCreditLimit + /// + [EnumMember(Value = "issueCreditLimit")] + IssueCreditLimit = 22, + /// /// Enum LocalAcceptance for value: localAcceptance /// [EnumMember(Value = "localAcceptance")] - LocalAcceptance = 22, + LocalAcceptance = 23, /// /// Enum Payout for value: payout /// [EnumMember(Value = "payout")] - Payout = 23, + Payout = 24, /// /// Enum PayoutToTransferInstrument for value: payoutToTransferInstrument /// [EnumMember(Value = "payoutToTransferInstrument")] - PayoutToTransferInstrument = 24, + PayoutToTransferInstrument = 25, /// /// Enum Processing for value: processing /// [EnumMember(Value = "processing")] - Processing = 25, + Processing = 26, /// /// Enum ReceiveFromBalanceAccount for value: receiveFromBalanceAccount /// [EnumMember(Value = "receiveFromBalanceAccount")] - ReceiveFromBalanceAccount = 26, + ReceiveFromBalanceAccount = 27, /// /// Enum ReceiveFromPlatformPayments for value: receiveFromPlatformPayments /// [EnumMember(Value = "receiveFromPlatformPayments")] - ReceiveFromPlatformPayments = 27, + ReceiveFromPlatformPayments = 28, /// /// Enum ReceiveFromThirdParty for value: receiveFromThirdParty /// [EnumMember(Value = "receiveFromThirdParty")] - ReceiveFromThirdParty = 28, + ReceiveFromThirdParty = 29, /// /// Enum ReceiveFromTransferInstrument for value: receiveFromTransferInstrument /// [EnumMember(Value = "receiveFromTransferInstrument")] - ReceiveFromTransferInstrument = 29, + ReceiveFromTransferInstrument = 30, /// /// Enum ReceiveGrants for value: receiveGrants /// [EnumMember(Value = "receiveGrants")] - ReceiveGrants = 30, + ReceiveGrants = 31, /// /// Enum ReceivePayments for value: receivePayments /// [EnumMember(Value = "receivePayments")] - ReceivePayments = 31, + ReceivePayments = 32, /// /// Enum SendToBalanceAccount for value: sendToBalanceAccount /// [EnumMember(Value = "sendToBalanceAccount")] - SendToBalanceAccount = 32, + SendToBalanceAccount = 33, /// /// Enum SendToThirdParty for value: sendToThirdParty /// [EnumMember(Value = "sendToThirdParty")] - SendToThirdParty = 33, + SendToThirdParty = 34, /// /// Enum SendToTransferInstrument for value: sendToTransferInstrument /// [EnumMember(Value = "sendToTransferInstrument")] - SendToTransferInstrument = 34, + SendToTransferInstrument = 35, /// /// Enum ThirdPartyFunding for value: thirdPartyFunding /// [EnumMember(Value = "thirdPartyFunding")] - ThirdPartyFunding = 35, + ThirdPartyFunding = 36, /// /// Enum UseCard for value: useCard /// [EnumMember(Value = "useCard")] - UseCard = 36, + UseCard = 37, /// /// Enum UseCardCommercial for value: useCardCommercial /// [EnumMember(Value = "useCardCommercial")] - UseCardCommercial = 37, + UseCardCommercial = 38, /// /// Enum UseCardConsumer for value: useCardConsumer /// [EnumMember(Value = "useCardConsumer")] - UseCardConsumer = 38, + UseCardConsumer = 39, /// /// Enum UseCardInRestrictedCountries for value: useCardInRestrictedCountries /// [EnumMember(Value = "useCardInRestrictedCountries")] - UseCardInRestrictedCountries = 39, + UseCardInRestrictedCountries = 40, /// /// Enum UseCardInRestrictedCountriesCommercial for value: useCardInRestrictedCountriesCommercial /// [EnumMember(Value = "useCardInRestrictedCountriesCommercial")] - UseCardInRestrictedCountriesCommercial = 40, + UseCardInRestrictedCountriesCommercial = 41, /// /// Enum UseCardInRestrictedCountriesConsumer for value: useCardInRestrictedCountriesConsumer /// [EnumMember(Value = "useCardInRestrictedCountriesConsumer")] - UseCardInRestrictedCountriesConsumer = 41, + UseCardInRestrictedCountriesConsumer = 42, /// /// Enum UseCardInRestrictedIndustries for value: useCardInRestrictedIndustries /// [EnumMember(Value = "useCardInRestrictedIndustries")] - UseCardInRestrictedIndustries = 42, + UseCardInRestrictedIndustries = 43, /// /// Enum UseCardInRestrictedIndustriesCommercial for value: useCardInRestrictedIndustriesCommercial /// [EnumMember(Value = "useCardInRestrictedIndustriesCommercial")] - UseCardInRestrictedIndustriesCommercial = 43, + UseCardInRestrictedIndustriesCommercial = 44, /// /// Enum UseCardInRestrictedIndustriesConsumer for value: useCardInRestrictedIndustriesConsumer /// [EnumMember(Value = "useCardInRestrictedIndustriesConsumer")] - UseCardInRestrictedIndustriesConsumer = 44, + UseCardInRestrictedIndustriesConsumer = 45, /// /// Enum WithdrawFromAtm for value: withdrawFromAtm /// [EnumMember(Value = "withdrawFromAtm")] - WithdrawFromAtm = 45, + WithdrawFromAtm = 46, /// /// Enum WithdrawFromAtmCommercial for value: withdrawFromAtmCommercial /// [EnumMember(Value = "withdrawFromAtmCommercial")] - WithdrawFromAtmCommercial = 46, + WithdrawFromAtmCommercial = 47, /// /// Enum WithdrawFromAtmConsumer for value: withdrawFromAtmConsumer /// [EnumMember(Value = "withdrawFromAtmConsumer")] - WithdrawFromAtmConsumer = 47, + WithdrawFromAtmConsumer = 48, /// /// Enum WithdrawFromAtmInRestrictedCountries for value: withdrawFromAtmInRestrictedCountries /// [EnumMember(Value = "withdrawFromAtmInRestrictedCountries")] - WithdrawFromAtmInRestrictedCountries = 48, + WithdrawFromAtmInRestrictedCountries = 49, /// /// Enum WithdrawFromAtmInRestrictedCountriesCommercial for value: withdrawFromAtmInRestrictedCountriesCommercial /// [EnumMember(Value = "withdrawFromAtmInRestrictedCountriesCommercial")] - WithdrawFromAtmInRestrictedCountriesCommercial = 49, + WithdrawFromAtmInRestrictedCountriesCommercial = 50, /// /// Enum WithdrawFromAtmInRestrictedCountriesConsumer for value: withdrawFromAtmInRestrictedCountriesConsumer /// [EnumMember(Value = "withdrawFromAtmInRestrictedCountriesConsumer")] - WithdrawFromAtmInRestrictedCountriesConsumer = 50 + WithdrawFromAtmInRestrictedCountriesConsumer = 51 } diff --git a/Adyen/Model/BalancePlatform/VerificationError.cs b/Adyen/Model/BalancePlatform/VerificationError.cs index 2ef849ee9..4fa0edd10 100644 --- a/Adyen/Model/BalancePlatform/VerificationError.cs +++ b/Adyen/Model/BalancePlatform/VerificationError.cs @@ -164,179 +164,185 @@ public enum CapabilitiesEnum [EnumMember(Value = "issueCardConsumer")] IssueCardConsumer = 21, + /// + /// Enum IssueCreditLimit for value: issueCreditLimit + /// + [EnumMember(Value = "issueCreditLimit")] + IssueCreditLimit = 22, + /// /// Enum LocalAcceptance for value: localAcceptance /// [EnumMember(Value = "localAcceptance")] - LocalAcceptance = 22, + LocalAcceptance = 23, /// /// Enum Payout for value: payout /// [EnumMember(Value = "payout")] - Payout = 23, + Payout = 24, /// /// Enum PayoutToTransferInstrument for value: payoutToTransferInstrument /// [EnumMember(Value = "payoutToTransferInstrument")] - PayoutToTransferInstrument = 24, + PayoutToTransferInstrument = 25, /// /// Enum Processing for value: processing /// [EnumMember(Value = "processing")] - Processing = 25, + Processing = 26, /// /// Enum ReceiveFromBalanceAccount for value: receiveFromBalanceAccount /// [EnumMember(Value = "receiveFromBalanceAccount")] - ReceiveFromBalanceAccount = 26, + ReceiveFromBalanceAccount = 27, /// /// Enum ReceiveFromPlatformPayments for value: receiveFromPlatformPayments /// [EnumMember(Value = "receiveFromPlatformPayments")] - ReceiveFromPlatformPayments = 27, + ReceiveFromPlatformPayments = 28, /// /// Enum ReceiveFromThirdParty for value: receiveFromThirdParty /// [EnumMember(Value = "receiveFromThirdParty")] - ReceiveFromThirdParty = 28, + ReceiveFromThirdParty = 29, /// /// Enum ReceiveFromTransferInstrument for value: receiveFromTransferInstrument /// [EnumMember(Value = "receiveFromTransferInstrument")] - ReceiveFromTransferInstrument = 29, + ReceiveFromTransferInstrument = 30, /// /// Enum ReceiveGrants for value: receiveGrants /// [EnumMember(Value = "receiveGrants")] - ReceiveGrants = 30, + ReceiveGrants = 31, /// /// Enum ReceivePayments for value: receivePayments /// [EnumMember(Value = "receivePayments")] - ReceivePayments = 31, + ReceivePayments = 32, /// /// Enum SendToBalanceAccount for value: sendToBalanceAccount /// [EnumMember(Value = "sendToBalanceAccount")] - SendToBalanceAccount = 32, + SendToBalanceAccount = 33, /// /// Enum SendToThirdParty for value: sendToThirdParty /// [EnumMember(Value = "sendToThirdParty")] - SendToThirdParty = 33, + SendToThirdParty = 34, /// /// Enum SendToTransferInstrument for value: sendToTransferInstrument /// [EnumMember(Value = "sendToTransferInstrument")] - SendToTransferInstrument = 34, + SendToTransferInstrument = 35, /// /// Enum ThirdPartyFunding for value: thirdPartyFunding /// [EnumMember(Value = "thirdPartyFunding")] - ThirdPartyFunding = 35, + ThirdPartyFunding = 36, /// /// Enum UseCard for value: useCard /// [EnumMember(Value = "useCard")] - UseCard = 36, + UseCard = 37, /// /// Enum UseCardCommercial for value: useCardCommercial /// [EnumMember(Value = "useCardCommercial")] - UseCardCommercial = 37, + UseCardCommercial = 38, /// /// Enum UseCardConsumer for value: useCardConsumer /// [EnumMember(Value = "useCardConsumer")] - UseCardConsumer = 38, + UseCardConsumer = 39, /// /// Enum UseCardInRestrictedCountries for value: useCardInRestrictedCountries /// [EnumMember(Value = "useCardInRestrictedCountries")] - UseCardInRestrictedCountries = 39, + UseCardInRestrictedCountries = 40, /// /// Enum UseCardInRestrictedCountriesCommercial for value: useCardInRestrictedCountriesCommercial /// [EnumMember(Value = "useCardInRestrictedCountriesCommercial")] - UseCardInRestrictedCountriesCommercial = 40, + UseCardInRestrictedCountriesCommercial = 41, /// /// Enum UseCardInRestrictedCountriesConsumer for value: useCardInRestrictedCountriesConsumer /// [EnumMember(Value = "useCardInRestrictedCountriesConsumer")] - UseCardInRestrictedCountriesConsumer = 41, + UseCardInRestrictedCountriesConsumer = 42, /// /// Enum UseCardInRestrictedIndustries for value: useCardInRestrictedIndustries /// [EnumMember(Value = "useCardInRestrictedIndustries")] - UseCardInRestrictedIndustries = 42, + UseCardInRestrictedIndustries = 43, /// /// Enum UseCardInRestrictedIndustriesCommercial for value: useCardInRestrictedIndustriesCommercial /// [EnumMember(Value = "useCardInRestrictedIndustriesCommercial")] - UseCardInRestrictedIndustriesCommercial = 43, + UseCardInRestrictedIndustriesCommercial = 44, /// /// Enum UseCardInRestrictedIndustriesConsumer for value: useCardInRestrictedIndustriesConsumer /// [EnumMember(Value = "useCardInRestrictedIndustriesConsumer")] - UseCardInRestrictedIndustriesConsumer = 44, + UseCardInRestrictedIndustriesConsumer = 45, /// /// Enum WithdrawFromAtm for value: withdrawFromAtm /// [EnumMember(Value = "withdrawFromAtm")] - WithdrawFromAtm = 45, + WithdrawFromAtm = 46, /// /// Enum WithdrawFromAtmCommercial for value: withdrawFromAtmCommercial /// [EnumMember(Value = "withdrawFromAtmCommercial")] - WithdrawFromAtmCommercial = 46, + WithdrawFromAtmCommercial = 47, /// /// Enum WithdrawFromAtmConsumer for value: withdrawFromAtmConsumer /// [EnumMember(Value = "withdrawFromAtmConsumer")] - WithdrawFromAtmConsumer = 47, + WithdrawFromAtmConsumer = 48, /// /// Enum WithdrawFromAtmInRestrictedCountries for value: withdrawFromAtmInRestrictedCountries /// [EnumMember(Value = "withdrawFromAtmInRestrictedCountries")] - WithdrawFromAtmInRestrictedCountries = 48, + WithdrawFromAtmInRestrictedCountries = 49, /// /// Enum WithdrawFromAtmInRestrictedCountriesCommercial for value: withdrawFromAtmInRestrictedCountriesCommercial /// [EnumMember(Value = "withdrawFromAtmInRestrictedCountriesCommercial")] - WithdrawFromAtmInRestrictedCountriesCommercial = 49, + WithdrawFromAtmInRestrictedCountriesCommercial = 50, /// /// Enum WithdrawFromAtmInRestrictedCountriesConsumer for value: withdrawFromAtmInRestrictedCountriesConsumer /// [EnumMember(Value = "withdrawFromAtmInRestrictedCountriesConsumer")] - WithdrawFromAtmInRestrictedCountriesConsumer = 50 + WithdrawFromAtmInRestrictedCountriesConsumer = 51 } diff --git a/Adyen/Model/BalancePlatform/VerificationErrorRecursive.cs b/Adyen/Model/BalancePlatform/VerificationErrorRecursive.cs index 4c5afa063..8c5bff47c 100644 --- a/Adyen/Model/BalancePlatform/VerificationErrorRecursive.cs +++ b/Adyen/Model/BalancePlatform/VerificationErrorRecursive.cs @@ -164,179 +164,185 @@ public enum CapabilitiesEnum [EnumMember(Value = "issueCardConsumer")] IssueCardConsumer = 21, + /// + /// Enum IssueCreditLimit for value: issueCreditLimit + /// + [EnumMember(Value = "issueCreditLimit")] + IssueCreditLimit = 22, + /// /// Enum LocalAcceptance for value: localAcceptance /// [EnumMember(Value = "localAcceptance")] - LocalAcceptance = 22, + LocalAcceptance = 23, /// /// Enum Payout for value: payout /// [EnumMember(Value = "payout")] - Payout = 23, + Payout = 24, /// /// Enum PayoutToTransferInstrument for value: payoutToTransferInstrument /// [EnumMember(Value = "payoutToTransferInstrument")] - PayoutToTransferInstrument = 24, + PayoutToTransferInstrument = 25, /// /// Enum Processing for value: processing /// [EnumMember(Value = "processing")] - Processing = 25, + Processing = 26, /// /// Enum ReceiveFromBalanceAccount for value: receiveFromBalanceAccount /// [EnumMember(Value = "receiveFromBalanceAccount")] - ReceiveFromBalanceAccount = 26, + ReceiveFromBalanceAccount = 27, /// /// Enum ReceiveFromPlatformPayments for value: receiveFromPlatformPayments /// [EnumMember(Value = "receiveFromPlatformPayments")] - ReceiveFromPlatformPayments = 27, + ReceiveFromPlatformPayments = 28, /// /// Enum ReceiveFromThirdParty for value: receiveFromThirdParty /// [EnumMember(Value = "receiveFromThirdParty")] - ReceiveFromThirdParty = 28, + ReceiveFromThirdParty = 29, /// /// Enum ReceiveFromTransferInstrument for value: receiveFromTransferInstrument /// [EnumMember(Value = "receiveFromTransferInstrument")] - ReceiveFromTransferInstrument = 29, + ReceiveFromTransferInstrument = 30, /// /// Enum ReceiveGrants for value: receiveGrants /// [EnumMember(Value = "receiveGrants")] - ReceiveGrants = 30, + ReceiveGrants = 31, /// /// Enum ReceivePayments for value: receivePayments /// [EnumMember(Value = "receivePayments")] - ReceivePayments = 31, + ReceivePayments = 32, /// /// Enum SendToBalanceAccount for value: sendToBalanceAccount /// [EnumMember(Value = "sendToBalanceAccount")] - SendToBalanceAccount = 32, + SendToBalanceAccount = 33, /// /// Enum SendToThirdParty for value: sendToThirdParty /// [EnumMember(Value = "sendToThirdParty")] - SendToThirdParty = 33, + SendToThirdParty = 34, /// /// Enum SendToTransferInstrument for value: sendToTransferInstrument /// [EnumMember(Value = "sendToTransferInstrument")] - SendToTransferInstrument = 34, + SendToTransferInstrument = 35, /// /// Enum ThirdPartyFunding for value: thirdPartyFunding /// [EnumMember(Value = "thirdPartyFunding")] - ThirdPartyFunding = 35, + ThirdPartyFunding = 36, /// /// Enum UseCard for value: useCard /// [EnumMember(Value = "useCard")] - UseCard = 36, + UseCard = 37, /// /// Enum UseCardCommercial for value: useCardCommercial /// [EnumMember(Value = "useCardCommercial")] - UseCardCommercial = 37, + UseCardCommercial = 38, /// /// Enum UseCardConsumer for value: useCardConsumer /// [EnumMember(Value = "useCardConsumer")] - UseCardConsumer = 38, + UseCardConsumer = 39, /// /// Enum UseCardInRestrictedCountries for value: useCardInRestrictedCountries /// [EnumMember(Value = "useCardInRestrictedCountries")] - UseCardInRestrictedCountries = 39, + UseCardInRestrictedCountries = 40, /// /// Enum UseCardInRestrictedCountriesCommercial for value: useCardInRestrictedCountriesCommercial /// [EnumMember(Value = "useCardInRestrictedCountriesCommercial")] - UseCardInRestrictedCountriesCommercial = 40, + UseCardInRestrictedCountriesCommercial = 41, /// /// Enum UseCardInRestrictedCountriesConsumer for value: useCardInRestrictedCountriesConsumer /// [EnumMember(Value = "useCardInRestrictedCountriesConsumer")] - UseCardInRestrictedCountriesConsumer = 41, + UseCardInRestrictedCountriesConsumer = 42, /// /// Enum UseCardInRestrictedIndustries for value: useCardInRestrictedIndustries /// [EnumMember(Value = "useCardInRestrictedIndustries")] - UseCardInRestrictedIndustries = 42, + UseCardInRestrictedIndustries = 43, /// /// Enum UseCardInRestrictedIndustriesCommercial for value: useCardInRestrictedIndustriesCommercial /// [EnumMember(Value = "useCardInRestrictedIndustriesCommercial")] - UseCardInRestrictedIndustriesCommercial = 43, + UseCardInRestrictedIndustriesCommercial = 44, /// /// Enum UseCardInRestrictedIndustriesConsumer for value: useCardInRestrictedIndustriesConsumer /// [EnumMember(Value = "useCardInRestrictedIndustriesConsumer")] - UseCardInRestrictedIndustriesConsumer = 44, + UseCardInRestrictedIndustriesConsumer = 45, /// /// Enum WithdrawFromAtm for value: withdrawFromAtm /// [EnumMember(Value = "withdrawFromAtm")] - WithdrawFromAtm = 45, + WithdrawFromAtm = 46, /// /// Enum WithdrawFromAtmCommercial for value: withdrawFromAtmCommercial /// [EnumMember(Value = "withdrawFromAtmCommercial")] - WithdrawFromAtmCommercial = 46, + WithdrawFromAtmCommercial = 47, /// /// Enum WithdrawFromAtmConsumer for value: withdrawFromAtmConsumer /// [EnumMember(Value = "withdrawFromAtmConsumer")] - WithdrawFromAtmConsumer = 47, + WithdrawFromAtmConsumer = 48, /// /// Enum WithdrawFromAtmInRestrictedCountries for value: withdrawFromAtmInRestrictedCountries /// [EnumMember(Value = "withdrawFromAtmInRestrictedCountries")] - WithdrawFromAtmInRestrictedCountries = 48, + WithdrawFromAtmInRestrictedCountries = 49, /// /// Enum WithdrawFromAtmInRestrictedCountriesCommercial for value: withdrawFromAtmInRestrictedCountriesCommercial /// [EnumMember(Value = "withdrawFromAtmInRestrictedCountriesCommercial")] - WithdrawFromAtmInRestrictedCountriesCommercial = 49, + WithdrawFromAtmInRestrictedCountriesCommercial = 50, /// /// Enum WithdrawFromAtmInRestrictedCountriesConsumer for value: withdrawFromAtmInRestrictedCountriesConsumer /// [EnumMember(Value = "withdrawFromAtmInRestrictedCountriesConsumer")] - WithdrawFromAtmInRestrictedCountriesConsumer = 50 + WithdrawFromAtmInRestrictedCountriesConsumer = 51 } diff --git a/Adyen/Model/Checkout/AccountInfo.cs b/Adyen/Model/Checkout/AccountInfo.cs index 54a751187..0b3dbec79 100644 --- a/Adyen/Model/Checkout/AccountInfo.cs +++ b/Adyen/Model/Checkout/AccountInfo.cs @@ -362,7 +362,7 @@ public enum PaymentAccountIndicatorEnum /// /// Shopper's home phone number (including the country code). [DataMember(Name = "homePhone", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v68. Use `ThreeDS2RequestData.homePhone` instead.")] public string HomePhone { get; set; } /// @@ -370,7 +370,7 @@ public enum PaymentAccountIndicatorEnum /// /// Shopper's mobile phone number (including the country code). [DataMember(Name = "mobilePhone", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v68. Use `ThreeDS2RequestData.mobilePhone` instead.")] public string MobilePhone { get; set; } /// @@ -420,7 +420,7 @@ public enum PaymentAccountIndicatorEnum /// /// Shopper's work phone number (including the country code). [DataMember(Name = "workPhone", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v68. Use `ThreeDS2RequestData.workPhone` instead.")] public string WorkPhone { get; set; } /// diff --git a/Adyen/Model/Checkout/AchDetails.cs b/Adyen/Model/Checkout/AchDetails.cs index b02e9a220..f49f62ca6 100644 --- a/Adyen/Model/Checkout/AchDetails.cs +++ b/Adyen/Model/Checkout/AchDetails.cs @@ -194,7 +194,7 @@ public enum TypeEnum /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/AdditionalData3DSecure.cs b/Adyen/Model/Checkout/AdditionalData3DSecure.cs index f1faeaf8a..4c89e1cef 100644 --- a/Adyen/Model/Checkout/AdditionalData3DSecure.cs +++ b/Adyen/Model/Checkout/AdditionalData3DSecure.cs @@ -102,7 +102,7 @@ public enum ChallengeWindowSizeEnum /// /// Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration. [DataMember(Name = "allow3DS2", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v69. Use `authenticationData.threeDSRequestData.nativeThreeDS` instead.")] public string Allow3DS2 { get; set; } /// @@ -110,7 +110,7 @@ public enum ChallengeWindowSizeEnum /// /// Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. [DataMember(Name = "executeThreeD", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v69. Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead")] public string ExecuteThreeD { get; set; } /// diff --git a/Adyen/Model/Checkout/AfterpayDetails.cs b/Adyen/Model/Checkout/AfterpayDetails.cs index 27c9f3eb2..ba49680ac 100644 --- a/Adyen/Model/Checkout/AfterpayDetails.cs +++ b/Adyen/Model/Checkout/AfterpayDetails.cs @@ -131,7 +131,7 @@ protected AfterpayDetails() { } /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/AncvDetails.cs b/Adyen/Model/Checkout/AncvDetails.cs index a76033b4c..d2b7365a6 100644 --- a/Adyen/Model/Checkout/AncvDetails.cs +++ b/Adyen/Model/Checkout/AncvDetails.cs @@ -90,7 +90,7 @@ public enum TypeEnum /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/ApplePayDetails.cs b/Adyen/Model/Checkout/ApplePayDetails.cs index a12b79baf..03f028850 100644 --- a/Adyen/Model/Checkout/ApplePayDetails.cs +++ b/Adyen/Model/Checkout/ApplePayDetails.cs @@ -125,7 +125,7 @@ protected ApplePayDetails() { } /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/ApplePayDonations.cs b/Adyen/Model/Checkout/ApplePayDonations.cs index 5ba542981..ca15916c5 100644 --- a/Adyen/Model/Checkout/ApplePayDonations.cs +++ b/Adyen/Model/Checkout/ApplePayDonations.cs @@ -125,7 +125,7 @@ protected ApplePayDonations() { } /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/BacsDirectDebitDetails.cs b/Adyen/Model/Checkout/BacsDirectDebitDetails.cs index e02285d27..e5db52c40 100644 --- a/Adyen/Model/Checkout/BacsDirectDebitDetails.cs +++ b/Adyen/Model/Checkout/BacsDirectDebitDetails.cs @@ -110,7 +110,7 @@ public enum TypeEnum /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/BalanceCheckRequest.cs b/Adyen/Model/Checkout/BalanceCheckRequest.cs index 0f4f088c4..8bd8d49ed 100644 --- a/Adyen/Model/Checkout/BalanceCheckRequest.cs +++ b/Adyen/Model/Checkout/BalanceCheckRequest.cs @@ -472,7 +472,7 @@ protected BalanceCheckRequest() { } /// /// If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. [DataMember(Name = "threeDSAuthenticationOnly", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v69. Use `authenticationData.authenticationOnly` instead.")] public bool? ThreeDSAuthenticationOnly { get; set; } /// diff --git a/Adyen/Model/Checkout/BlikDetails.cs b/Adyen/Model/Checkout/BlikDetails.cs index 24f1a66ae..0a5cd33cf 100644 --- a/Adyen/Model/Checkout/BlikDetails.cs +++ b/Adyen/Model/Checkout/BlikDetails.cs @@ -90,7 +90,7 @@ public enum TypeEnum /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/CardDetails.cs b/Adyen/Model/Checkout/CardDetails.cs index 751db840a..831e05aee 100644 --- a/Adyen/Model/Checkout/CardDetails.cs +++ b/Adyen/Model/Checkout/CardDetails.cs @@ -177,7 +177,7 @@ public enum TypeEnum /// Gets or Sets CupsecureplusSmscode /// [DataMember(Name = "cupsecureplus.smscode", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("")] public string CupsecureplusSmscode { get; set; } /// @@ -255,7 +255,7 @@ public enum TypeEnum /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/CardDonations.cs b/Adyen/Model/Checkout/CardDonations.cs index 384926b5f..26ed07bf3 100644 --- a/Adyen/Model/Checkout/CardDonations.cs +++ b/Adyen/Model/Checkout/CardDonations.cs @@ -177,7 +177,7 @@ public enum TypeEnum /// Gets or Sets CupsecureplusSmscode /// [DataMember(Name = "cupsecureplus.smscode", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("")] public string CupsecureplusSmscode { get; set; } /// @@ -255,7 +255,7 @@ public enum TypeEnum /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/CashAppDetails.cs b/Adyen/Model/Checkout/CashAppDetails.cs index 410f97ff5..b001e3386 100644 --- a/Adyen/Model/Checkout/CashAppDetails.cs +++ b/Adyen/Model/Checkout/CashAppDetails.cs @@ -121,7 +121,7 @@ public enum TypeEnum /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/CreateCheckoutSessionRequest.cs b/Adyen/Model/Checkout/CreateCheckoutSessionRequest.cs index 6f81c8106..921c3b2f1 100644 --- a/Adyen/Model/Checkout/CreateCheckoutSessionRequest.cs +++ b/Adyen/Model/Checkout/CreateCheckoutSessionRequest.cs @@ -731,7 +731,7 @@ protected CreateCheckoutSessionRequest() { } /// /// If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. [DataMember(Name = "threeDSAuthenticationOnly", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v69. Use `authenticationData.authenticationOnly` instead.")] public bool? ThreeDSAuthenticationOnly { get; set; } /// diff --git a/Adyen/Model/Checkout/CreateCheckoutSessionResponse.cs b/Adyen/Model/Checkout/CreateCheckoutSessionResponse.cs index 957855202..1404c88a0 100644 --- a/Adyen/Model/Checkout/CreateCheckoutSessionResponse.cs +++ b/Adyen/Model/Checkout/CreateCheckoutSessionResponse.cs @@ -748,7 +748,7 @@ protected CreateCheckoutSessionResponse() { } /// /// If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. [DataMember(Name = "threeDSAuthenticationOnly", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v69. Use `authenticationData.authenticationOnly` instead.")] public bool? ThreeDSAuthenticationOnly { get; set; } /// diff --git a/Adyen/Model/Checkout/DonationPaymentRequest.cs b/Adyen/Model/Checkout/DonationPaymentRequest.cs index a4d05e7a0..bec73d6fa 100644 --- a/Adyen/Model/Checkout/DonationPaymentRequest.cs +++ b/Adyen/Model/Checkout/DonationPaymentRequest.cs @@ -291,7 +291,7 @@ protected DonationPaymentRequest() { } /// /// Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. [DataMember(Name = "conversionId", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v68. Use `checkoutAttemptId` instead")] public string ConversionId { get; set; } /// @@ -496,7 +496,7 @@ protected DonationPaymentRequest() { } /// /// If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. [DataMember(Name = "threeDSAuthenticationOnly", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v69. Use `authenticationData.authenticationOnly` instead.")] public bool? ThreeDSAuthenticationOnly { get; set; } /// diff --git a/Adyen/Model/Checkout/EftDetails.cs b/Adyen/Model/Checkout/EftDetails.cs index 705c04a4e..326b7600f 100644 --- a/Adyen/Model/Checkout/EftDetails.cs +++ b/Adyen/Model/Checkout/EftDetails.cs @@ -117,7 +117,7 @@ public enum TypeEnum /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/GenericIssuerPaymentMethodDetails.cs b/Adyen/Model/Checkout/GenericIssuerPaymentMethodDetails.cs index 61a0d91bd..1723bfce3 100644 --- a/Adyen/Model/Checkout/GenericIssuerPaymentMethodDetails.cs +++ b/Adyen/Model/Checkout/GenericIssuerPaymentMethodDetails.cs @@ -113,7 +113,7 @@ protected GenericIssuerPaymentMethodDetails() { } /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/GiropayDetails.cs b/Adyen/Model/Checkout/GiropayDetails.cs index 5bafef873..08f4a6371 100644 --- a/Adyen/Model/Checkout/GiropayDetails.cs +++ b/Adyen/Model/Checkout/GiropayDetails.cs @@ -81,7 +81,7 @@ public enum TypeEnum /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/GooglePayDetails.cs b/Adyen/Model/Checkout/GooglePayDetails.cs index 0060da307..ece11396a 100644 --- a/Adyen/Model/Checkout/GooglePayDetails.cs +++ b/Adyen/Model/Checkout/GooglePayDetails.cs @@ -136,7 +136,7 @@ protected GooglePayDetails() { } /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/GooglePayDonations.cs b/Adyen/Model/Checkout/GooglePayDonations.cs index 31efd3f70..610475245 100644 --- a/Adyen/Model/Checkout/GooglePayDonations.cs +++ b/Adyen/Model/Checkout/GooglePayDonations.cs @@ -136,7 +136,7 @@ protected GooglePayDonations() { } /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/IdealDetails.cs b/Adyen/Model/Checkout/IdealDetails.cs index 760020dc8..5468a7ffd 100644 --- a/Adyen/Model/Checkout/IdealDetails.cs +++ b/Adyen/Model/Checkout/IdealDetails.cs @@ -90,7 +90,7 @@ public enum TypeEnum /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/IdealDonations.cs b/Adyen/Model/Checkout/IdealDonations.cs index 9a1347b38..421a40fa4 100644 --- a/Adyen/Model/Checkout/IdealDonations.cs +++ b/Adyen/Model/Checkout/IdealDonations.cs @@ -90,7 +90,7 @@ public enum TypeEnum /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/InputDetail.cs b/Adyen/Model/Checkout/InputDetail.cs index 76e3bee2e..5d3c25f0a 100644 --- a/Adyen/Model/Checkout/InputDetail.cs +++ b/Adyen/Model/Checkout/InputDetail.cs @@ -76,7 +76,7 @@ public partial class InputDetail : IEquatable, IValidatableObject /// /// Input details can also be provided recursively (deprecated). [DataMember(Name = "inputDetails", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("")] public List InputDetails { get; set; } /// diff --git a/Adyen/Model/Checkout/KlarnaDetails.cs b/Adyen/Model/Checkout/KlarnaDetails.cs index 0c9d72e57..49d130722 100644 --- a/Adyen/Model/Checkout/KlarnaDetails.cs +++ b/Adyen/Model/Checkout/KlarnaDetails.cs @@ -151,7 +151,7 @@ protected KlarnaDetails() { } /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/MerchantRiskIndicator.cs b/Adyen/Model/Checkout/MerchantRiskIndicator.cs index 53e0af054..0c4728a09 100644 --- a/Adyen/Model/Checkout/MerchantRiskIndicator.cs +++ b/Adyen/Model/Checkout/MerchantRiskIndicator.cs @@ -177,7 +177,7 @@ public enum DeliveryTimeframeEnum /// /// The delivery email address (for digital goods). [DataMember(Name = "deliveryEmail", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v68. Use `deliveryEmailAddress` instead.")] public string DeliveryEmail { get; set; } /// diff --git a/Adyen/Model/Checkout/OpenInvoiceDetails.cs b/Adyen/Model/Checkout/OpenInvoiceDetails.cs index 5e8a50f94..18a35115f 100644 --- a/Adyen/Model/Checkout/OpenInvoiceDetails.cs +++ b/Adyen/Model/Checkout/OpenInvoiceDetails.cs @@ -120,7 +120,7 @@ public enum TypeEnum /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/PayPalDetails.cs b/Adyen/Model/Checkout/PayPalDetails.cs index 5b6f587af..3faf34a69 100644 --- a/Adyen/Model/Checkout/PayPalDetails.cs +++ b/Adyen/Model/Checkout/PayPalDetails.cs @@ -158,7 +158,7 @@ protected PayPalDetails() { } /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/PayToDetails.cs b/Adyen/Model/Checkout/PayToDetails.cs index 079048da5..718ee3940 100644 --- a/Adyen/Model/Checkout/PayToDetails.cs +++ b/Adyen/Model/Checkout/PayToDetails.cs @@ -83,7 +83,7 @@ public enum TypeEnum /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/PayUUpiDetails.cs b/Adyen/Model/Checkout/PayUUpiDetails.cs index d4178136e..e61d26df4 100644 --- a/Adyen/Model/Checkout/PayUUpiDetails.cs +++ b/Adyen/Model/Checkout/PayUUpiDetails.cs @@ -90,7 +90,7 @@ protected PayUUpiDetails() { } /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/PayWithGoogleDetails.cs b/Adyen/Model/Checkout/PayWithGoogleDetails.cs index 4823e92e8..39b4bfc98 100644 --- a/Adyen/Model/Checkout/PayWithGoogleDetails.cs +++ b/Adyen/Model/Checkout/PayWithGoogleDetails.cs @@ -127,7 +127,7 @@ protected PayWithGoogleDetails() { } /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/PayWithGoogleDonations.cs b/Adyen/Model/Checkout/PayWithGoogleDonations.cs index 017c88aa5..3062f2d61 100644 --- a/Adyen/Model/Checkout/PayWithGoogleDonations.cs +++ b/Adyen/Model/Checkout/PayWithGoogleDonations.cs @@ -127,7 +127,7 @@ protected PayWithGoogleDonations() { } /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/PaymentDetailsRequest.cs b/Adyen/Model/Checkout/PaymentDetailsRequest.cs index a78ece1a8..0761390a4 100644 --- a/Adyen/Model/Checkout/PaymentDetailsRequest.cs +++ b/Adyen/Model/Checkout/PaymentDetailsRequest.cs @@ -76,7 +76,7 @@ protected PaymentDetailsRequest() { } /// /// Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously. [DataMember(Name = "threeDSAuthenticationOnly", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v69. Use `authenticationData.authenticationOnly` instead.")] public bool? ThreeDSAuthenticationOnly { get; set; } /// diff --git a/Adyen/Model/Checkout/PaymentMethod.cs b/Adyen/Model/Checkout/PaymentMethod.cs index 4238320e4..2e34268ad 100644 --- a/Adyen/Model/Checkout/PaymentMethod.cs +++ b/Adyen/Model/Checkout/PaymentMethod.cs @@ -126,7 +126,7 @@ public enum FundingSourceEnum /// /// All input details to be provided to complete the payment with this payment method. [DataMember(Name = "inputDetails", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("")] public List InputDetails { get; set; } /// diff --git a/Adyen/Model/Checkout/PaymentRequest.cs b/Adyen/Model/Checkout/PaymentRequest.cs index 2cfc9762d..32a2e77cb 100644 --- a/Adyen/Model/Checkout/PaymentRequest.cs +++ b/Adyen/Model/Checkout/PaymentRequest.cs @@ -424,7 +424,7 @@ protected PaymentRequest() { } /// /// Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. [DataMember(Name = "conversionId", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v68. Use `checkoutAttemptId` instead")] public string ConversionId { get; set; } /// @@ -465,7 +465,7 @@ protected PaymentRequest() { } /// /// The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 [DataMember(Name = "deliveryDate", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v70. Use `deliverAt` instead.")] public DateTime DeliveryDate { get; set; } /// @@ -762,7 +762,7 @@ protected PaymentRequest() { } /// /// If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. [DataMember(Name = "threeDSAuthenticationOnly", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v69. Use `authenticationData.authenticationOnly` instead.")] public bool? ThreeDSAuthenticationOnly { get; set; } /// diff --git a/Adyen/Model/Checkout/PaymentSetupRequest.cs b/Adyen/Model/Checkout/PaymentSetupRequest.cs index 3073a0781..b69f5ec79 100644 --- a/Adyen/Model/Checkout/PaymentSetupRequest.cs +++ b/Adyen/Model/Checkout/PaymentSetupRequest.cs @@ -336,7 +336,7 @@ protected PaymentSetupRequest() { } /// /// Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. [DataMember(Name = "conversionId", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v68. Use `checkoutAttemptId` instead")] public string ConversionId { get; set; } /// @@ -610,7 +610,7 @@ protected PaymentSetupRequest() { } /// /// If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. [DataMember(Name = "threeDSAuthenticationOnly", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v69. Use `authenticationData.authenticationOnly` instead.")] public bool? ThreeDSAuthenticationOnly { get; set; } /// diff --git a/Adyen/Model/Checkout/PaymentSetupResponse.cs b/Adyen/Model/Checkout/PaymentSetupResponse.cs index d4ee44732..2dbf34e10 100644 --- a/Adyen/Model/Checkout/PaymentSetupResponse.cs +++ b/Adyen/Model/Checkout/PaymentSetupResponse.cs @@ -55,7 +55,7 @@ public partial class PaymentSetupResponse : IEquatable, IV /// /// The detailed list of stored payment details required to generate payment forms. Will be empty if oneClick is set to false in the request. [DataMember(Name = "recurringDetails", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("")] public List RecurringDetails { get; set; } /// diff --git a/Adyen/Model/Checkout/RatepayDetails.cs b/Adyen/Model/Checkout/RatepayDetails.cs index 90eca67ff..a91182132 100644 --- a/Adyen/Model/Checkout/RatepayDetails.cs +++ b/Adyen/Model/Checkout/RatepayDetails.cs @@ -119,7 +119,7 @@ protected RatepayDetails() { } /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/RecurringDetail.cs b/Adyen/Model/Checkout/RecurringDetail.cs index ce84832f5..55a08a629 100644 --- a/Adyen/Model/Checkout/RecurringDetail.cs +++ b/Adyen/Model/Checkout/RecurringDetail.cs @@ -130,7 +130,7 @@ public enum FundingSourceEnum /// /// All input details to be provided to complete the payment with this payment method. [DataMember(Name = "inputDetails", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("")] public List InputDetails { get; set; } /// diff --git a/Adyen/Model/Checkout/SamsungPayDetails.cs b/Adyen/Model/Checkout/SamsungPayDetails.cs index 947f90d23..06b92a3df 100644 --- a/Adyen/Model/Checkout/SamsungPayDetails.cs +++ b/Adyen/Model/Checkout/SamsungPayDetails.cs @@ -118,7 +118,7 @@ protected SamsungPayDetails() { } /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/SepaDirectDebitDetails.cs b/Adyen/Model/Checkout/SepaDirectDebitDetails.cs index 7b234b850..ccb9c3096 100644 --- a/Adyen/Model/Checkout/SepaDirectDebitDetails.cs +++ b/Adyen/Model/Checkout/SepaDirectDebitDetails.cs @@ -112,7 +112,7 @@ protected SepaDirectDebitDetails() { } /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/StoredPaymentMethodDetails.cs b/Adyen/Model/Checkout/StoredPaymentMethodDetails.cs index 2427f1fe0..ef30ca854 100644 --- a/Adyen/Model/Checkout/StoredPaymentMethodDetails.cs +++ b/Adyen/Model/Checkout/StoredPaymentMethodDetails.cs @@ -183,7 +183,7 @@ public enum TypeEnum /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/ThreeDS2RequestData.cs b/Adyen/Model/Checkout/ThreeDS2RequestData.cs index 4d437fbac..e277b3180 100644 --- a/Adyen/Model/Checkout/ThreeDS2RequestData.cs +++ b/Adyen/Model/Checkout/ThreeDS2RequestData.cs @@ -133,7 +133,7 @@ public enum ChallengeIndicatorEnum /// /// Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` [DataMember(Name = "challengeIndicator", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v68. Use `threeDSRequestorChallengeInd` instead.")] public ChallengeIndicatorEnum? ChallengeIndicator { get; set; } /// /// Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only @@ -394,7 +394,7 @@ protected ThreeDS2RequestData() { } /// /// If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. [DataMember(Name = "authenticationOnly", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v50. Use `threeDSAuthenticationOnly` instead.")] public bool? AuthenticationOnly { get; set; } /// diff --git a/Adyen/Model/Checkout/ThreeDS2RequestFields.cs b/Adyen/Model/Checkout/ThreeDS2RequestFields.cs index 898210df6..c2fce35b6 100644 --- a/Adyen/Model/Checkout/ThreeDS2RequestFields.cs +++ b/Adyen/Model/Checkout/ThreeDS2RequestFields.cs @@ -133,7 +133,7 @@ public enum ChallengeIndicatorEnum /// /// Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` [DataMember(Name = "challengeIndicator", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v68. Use `threeDSRequestorChallengeInd` instead.")] public ChallengeIndicatorEnum? ChallengeIndicator { get; set; } /// /// Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only @@ -383,7 +383,7 @@ public enum TransactionTypeEnum /// /// If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. [DataMember(Name = "authenticationOnly", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v50. Use `threeDSAuthenticationOnly` instead.")] public bool? AuthenticationOnly { get; set; } /// diff --git a/Adyen/Model/Checkout/UpiCollectDetails.cs b/Adyen/Model/Checkout/UpiCollectDetails.cs index 063f5af47..e8839f31a 100644 --- a/Adyen/Model/Checkout/UpiCollectDetails.cs +++ b/Adyen/Model/Checkout/UpiCollectDetails.cs @@ -99,7 +99,7 @@ protected UpiCollectDetails() { } /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/UpiIntentDetails.cs b/Adyen/Model/Checkout/UpiIntentDetails.cs index fb6000f9d..d8c015a59 100644 --- a/Adyen/Model/Checkout/UpiIntentDetails.cs +++ b/Adyen/Model/Checkout/UpiIntentDetails.cs @@ -97,7 +97,7 @@ protected UpiIntentDetails() { } /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/VippsDetails.cs b/Adyen/Model/Checkout/VippsDetails.cs index 94eaf6e07..f3d88f6ba 100644 --- a/Adyen/Model/Checkout/VippsDetails.cs +++ b/Adyen/Model/Checkout/VippsDetails.cs @@ -88,7 +88,7 @@ protected VippsDetails() { } /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/Checkout/ZipDetails.cs b/Adyen/Model/Checkout/ZipDetails.cs index feb361658..d4c340e79 100644 --- a/Adyen/Model/Checkout/ZipDetails.cs +++ b/Adyen/Model/Checkout/ZipDetails.cs @@ -96,7 +96,7 @@ public enum TypeEnum /// /// This is the `recurringDetailReference` returned in the response when you created the token. [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v49. Use `storedPaymentMethodId` instead.")] public string RecurringDetailReference { get; set; } /// diff --git a/Adyen/Model/ConfigurationWebhooks/AccountHolder.cs b/Adyen/Model/ConfigurationWebhooks/AccountHolder.cs index cf1c70d19..39f7f94da 100644 --- a/Adyen/Model/ConfigurationWebhooks/AccountHolder.cs +++ b/Adyen/Model/ConfigurationWebhooks/AccountHolder.cs @@ -122,7 +122,7 @@ protected AccountHolder() { } /// Gets or Sets ContactDetails /// [DataMember(Name = "contactDetails", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("")] public ContactDetails ContactDetails { get; set; } /// diff --git a/Adyen/Model/ConfigurationWebhooks/BankAccountDetails.cs b/Adyen/Model/ConfigurationWebhooks/BankAccountDetails.cs index c4beddb67..2a9c44409 100644 --- a/Adyen/Model/ConfigurationWebhooks/BankAccountDetails.cs +++ b/Adyen/Model/ConfigurationWebhooks/BankAccountDetails.cs @@ -42,17 +42,19 @@ protected BankAccountDetails() { } /// /// The bank account number, without separators or whitespace.. /// The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. (default to "checking"). + /// The bank account branch number, without separators or whitespace. /// Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. (default to "physical"). /// The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard.. /// The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.. /// The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace.. /// **iban** or **usLocal** or **ukLocal** (required) (default to "iban"). - public BankAccountDetails(string accountNumber = default(string), string accountType = "checking", string formFactor = "physical", string iban = default(string), string routingNumber = default(string), string sortCode = default(string), string type = "iban") + public BankAccountDetails(string accountNumber = default(string), string accountType = "checking", string branchNumber = default(string), string formFactor = "physical", string iban = default(string), string routingNumber = default(string), string sortCode = default(string), string type = "iban") { this.Type = type; this.AccountNumber = accountNumber; // use default value if no "accountType" provided this.AccountType = accountType ?? "checking"; + this.BranchNumber = branchNumber; // use default value if no "formFactor" provided this.FormFactor = formFactor ?? "physical"; this.Iban = iban; @@ -74,6 +76,13 @@ protected BankAccountDetails() { } [DataMember(Name = "accountType", EmitDefaultValue = false)] public string AccountType { get; set; } + /// + /// The bank account branch number, without separators or whitespace + /// + /// The bank account branch number, without separators or whitespace + [DataMember(Name = "branchNumber", EmitDefaultValue = false)] + public string BranchNumber { get; set; } + /// /// Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. /// @@ -119,6 +128,7 @@ public override string ToString() sb.Append("class BankAccountDetails {\n"); sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n"); sb.Append(" AccountType: ").Append(AccountType).Append("\n"); + sb.Append(" BranchNumber: ").Append(BranchNumber).Append("\n"); sb.Append(" FormFactor: ").Append(FormFactor).Append("\n"); sb.Append(" Iban: ").Append(Iban).Append("\n"); sb.Append(" RoutingNumber: ").Append(RoutingNumber).Append("\n"); @@ -169,6 +179,11 @@ public bool Equals(BankAccountDetails input) (this.AccountType != null && this.AccountType.Equals(input.AccountType)) ) && + ( + this.BranchNumber == input.BranchNumber || + (this.BranchNumber != null && + this.BranchNumber.Equals(input.BranchNumber)) + ) && ( this.FormFactor == input.FormFactor || (this.FormFactor != null && @@ -213,6 +228,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.AccountType.GetHashCode(); } + if (this.BranchNumber != null) + { + hashCode = (hashCode * 59) + this.BranchNumber.GetHashCode(); + } if (this.FormFactor != null) { hashCode = (hashCode * 59) + this.FormFactor.GetHashCode(); diff --git a/Adyen/Model/ConfigurationWebhooks/PaymentInstrument.cs b/Adyen/Model/ConfigurationWebhooks/PaymentInstrument.cs index 78da768cd..d38be0c7f 100644 --- a/Adyen/Model/ConfigurationWebhooks/PaymentInstrument.cs +++ b/Adyen/Model/ConfigurationWebhooks/PaymentInstrument.cs @@ -213,7 +213,7 @@ protected PaymentInstrument() { } /// /// Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. [DataMember(Name = "additionalBankAccountIdentifications", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Configuration webhooks v2. Please use `bankAccount` object instead")] public List AdditionalBankAccountIdentifications { get; set; } /// diff --git a/Adyen/Model/ConfigurationWebhooks/PlatformPaymentConfiguration.cs b/Adyen/Model/ConfigurationWebhooks/PlatformPaymentConfiguration.cs index f88c954f7..d94593789 100644 --- a/Adyen/Model/ConfigurationWebhooks/PlatformPaymentConfiguration.cs +++ b/Adyen/Model/ConfigurationWebhooks/PlatformPaymentConfiguration.cs @@ -36,7 +36,7 @@ public partial class PlatformPaymentConfiguration : IEquatable class. /// /// Specifies at what time a [sales day](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#sales-day) ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**.. - /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**.. + /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **1** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**.. public PlatformPaymentConfiguration(string salesDayClosingTime = default(string), int? settlementDelayDays = default(int?)) { this.SalesDayClosingTime = salesDayClosingTime; @@ -51,9 +51,9 @@ public partial class PlatformPaymentConfiguration : IEquatable - /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**. + /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **1** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**. /// - /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**. + /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **1** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**. [DataMember(Name = "settlementDelayDays", EmitDefaultValue = false)] public int? SettlementDelayDays { get; set; } diff --git a/Adyen/Model/ConfigurationWebhooks/SweepConfigurationV2.cs b/Adyen/Model/ConfigurationWebhooks/SweepConfigurationV2.cs index cb49caebf..0538f66b8 100644 --- a/Adyen/Model/ConfigurationWebhooks/SweepConfigurationV2.cs +++ b/Adyen/Model/ConfigurationWebhooks/SweepConfigurationV2.cs @@ -125,113 +125,137 @@ public enum PrioritiesEnum [JsonConverter(typeof(StringEnumConverter))] public enum ReasonEnum { + /// + /// Enum AccountHierarchyNotActive for value: accountHierarchyNotActive + /// + [EnumMember(Value = "accountHierarchyNotActive")] + AccountHierarchyNotActive = 1, + /// /// Enum AmountLimitExceeded for value: amountLimitExceeded /// [EnumMember(Value = "amountLimitExceeded")] - AmountLimitExceeded = 1, + AmountLimitExceeded = 2, /// /// Enum Approved for value: approved /// [EnumMember(Value = "approved")] - Approved = 2, + Approved = 3, /// /// Enum BalanceAccountTemporarilyBlockedByTransactionRule for value: balanceAccountTemporarilyBlockedByTransactionRule /// [EnumMember(Value = "balanceAccountTemporarilyBlockedByTransactionRule")] - BalanceAccountTemporarilyBlockedByTransactionRule = 3, + BalanceAccountTemporarilyBlockedByTransactionRule = 4, /// /// Enum CounterpartyAccountBlocked for value: counterpartyAccountBlocked /// [EnumMember(Value = "counterpartyAccountBlocked")] - CounterpartyAccountBlocked = 4, + CounterpartyAccountBlocked = 5, /// /// Enum CounterpartyAccountClosed for value: counterpartyAccountClosed /// [EnumMember(Value = "counterpartyAccountClosed")] - CounterpartyAccountClosed = 5, + CounterpartyAccountClosed = 6, /// /// Enum CounterpartyAccountNotFound for value: counterpartyAccountNotFound /// [EnumMember(Value = "counterpartyAccountNotFound")] - CounterpartyAccountNotFound = 6, + CounterpartyAccountNotFound = 7, /// /// Enum CounterpartyAddressRequired for value: counterpartyAddressRequired /// [EnumMember(Value = "counterpartyAddressRequired")] - CounterpartyAddressRequired = 7, + CounterpartyAddressRequired = 8, /// /// Enum CounterpartyBankTimedOut for value: counterpartyBankTimedOut /// [EnumMember(Value = "counterpartyBankTimedOut")] - CounterpartyBankTimedOut = 8, + CounterpartyBankTimedOut = 9, /// /// Enum CounterpartyBankUnavailable for value: counterpartyBankUnavailable /// [EnumMember(Value = "counterpartyBankUnavailable")] - CounterpartyBankUnavailable = 9, + CounterpartyBankUnavailable = 10, /// /// Enum Declined for value: declined /// [EnumMember(Value = "declined")] - Declined = 10, + Declined = 11, /// /// Enum DeclinedByTransactionRule for value: declinedByTransactionRule /// [EnumMember(Value = "declinedByTransactionRule")] - DeclinedByTransactionRule = 11, + DeclinedByTransactionRule = 12, + + /// + /// Enum DirectDebitNotSupported for value: directDebitNotSupported + /// + [EnumMember(Value = "directDebitNotSupported")] + DirectDebitNotSupported = 13, /// /// Enum Error for value: error /// [EnumMember(Value = "error")] - Error = 12, + Error = 14, /// /// Enum NotEnoughBalance for value: notEnoughBalance /// [EnumMember(Value = "notEnoughBalance")] - NotEnoughBalance = 13, + NotEnoughBalance = 15, /// /// Enum PendingApproval for value: pendingApproval /// [EnumMember(Value = "pendingApproval")] - PendingApproval = 14, + PendingApproval = 16, + + /// + /// Enum PendingExecution for value: pendingExecution + /// + [EnumMember(Value = "pendingExecution")] + PendingExecution = 17, /// /// Enum RefusedByCounterpartyBank for value: refusedByCounterpartyBank /// [EnumMember(Value = "refusedByCounterpartyBank")] - RefusedByCounterpartyBank = 15, + RefusedByCounterpartyBank = 18, /// /// Enum RouteNotFound for value: routeNotFound /// [EnumMember(Value = "routeNotFound")] - RouteNotFound = 16, + RouteNotFound = 19, /// /// Enum ScaFailed for value: scaFailed /// [EnumMember(Value = "scaFailed")] - ScaFailed = 17, + ScaFailed = 20, + + /// + /// Enum TransferInstrumentDoesNotExist for value: transferInstrumentDoesNotExist + /// + [EnumMember(Value = "transferInstrumentDoesNotExist")] + TransferInstrumentDoesNotExist = 21, /// /// Enum Unknown for value: unknown /// [EnumMember(Value = "unknown")] - Unknown = 18 + Unknown = 22 } diff --git a/Adyen/Model/ConfigurationWebhooks/VerificationDeadline.cs b/Adyen/Model/ConfigurationWebhooks/VerificationDeadline.cs index f0c958aa8..2780dac31 100644 --- a/Adyen/Model/ConfigurationWebhooks/VerificationDeadline.cs +++ b/Adyen/Model/ConfigurationWebhooks/VerificationDeadline.cs @@ -164,179 +164,185 @@ public enum CapabilitiesEnum [EnumMember(Value = "issueCardConsumer")] IssueCardConsumer = 21, + /// + /// Enum IssueCreditLimit for value: issueCreditLimit + /// + [EnumMember(Value = "issueCreditLimit")] + IssueCreditLimit = 22, + /// /// Enum LocalAcceptance for value: localAcceptance /// [EnumMember(Value = "localAcceptance")] - LocalAcceptance = 22, + LocalAcceptance = 23, /// /// Enum Payout for value: payout /// [EnumMember(Value = "payout")] - Payout = 23, + Payout = 24, /// /// Enum PayoutToTransferInstrument for value: payoutToTransferInstrument /// [EnumMember(Value = "payoutToTransferInstrument")] - PayoutToTransferInstrument = 24, + PayoutToTransferInstrument = 25, /// /// Enum Processing for value: processing /// [EnumMember(Value = "processing")] - Processing = 25, + Processing = 26, /// /// Enum ReceiveFromBalanceAccount for value: receiveFromBalanceAccount /// [EnumMember(Value = "receiveFromBalanceAccount")] - ReceiveFromBalanceAccount = 26, + ReceiveFromBalanceAccount = 27, /// /// Enum ReceiveFromPlatformPayments for value: receiveFromPlatformPayments /// [EnumMember(Value = "receiveFromPlatformPayments")] - ReceiveFromPlatformPayments = 27, + ReceiveFromPlatformPayments = 28, /// /// Enum ReceiveFromThirdParty for value: receiveFromThirdParty /// [EnumMember(Value = "receiveFromThirdParty")] - ReceiveFromThirdParty = 28, + ReceiveFromThirdParty = 29, /// /// Enum ReceiveFromTransferInstrument for value: receiveFromTransferInstrument /// [EnumMember(Value = "receiveFromTransferInstrument")] - ReceiveFromTransferInstrument = 29, + ReceiveFromTransferInstrument = 30, /// /// Enum ReceiveGrants for value: receiveGrants /// [EnumMember(Value = "receiveGrants")] - ReceiveGrants = 30, + ReceiveGrants = 31, /// /// Enum ReceivePayments for value: receivePayments /// [EnumMember(Value = "receivePayments")] - ReceivePayments = 31, + ReceivePayments = 32, /// /// Enum SendToBalanceAccount for value: sendToBalanceAccount /// [EnumMember(Value = "sendToBalanceAccount")] - SendToBalanceAccount = 32, + SendToBalanceAccount = 33, /// /// Enum SendToThirdParty for value: sendToThirdParty /// [EnumMember(Value = "sendToThirdParty")] - SendToThirdParty = 33, + SendToThirdParty = 34, /// /// Enum SendToTransferInstrument for value: sendToTransferInstrument /// [EnumMember(Value = "sendToTransferInstrument")] - SendToTransferInstrument = 34, + SendToTransferInstrument = 35, /// /// Enum ThirdPartyFunding for value: thirdPartyFunding /// [EnumMember(Value = "thirdPartyFunding")] - ThirdPartyFunding = 35, + ThirdPartyFunding = 36, /// /// Enum UseCard for value: useCard /// [EnumMember(Value = "useCard")] - UseCard = 36, + UseCard = 37, /// /// Enum UseCardCommercial for value: useCardCommercial /// [EnumMember(Value = "useCardCommercial")] - UseCardCommercial = 37, + UseCardCommercial = 38, /// /// Enum UseCardConsumer for value: useCardConsumer /// [EnumMember(Value = "useCardConsumer")] - UseCardConsumer = 38, + UseCardConsumer = 39, /// /// Enum UseCardInRestrictedCountries for value: useCardInRestrictedCountries /// [EnumMember(Value = "useCardInRestrictedCountries")] - UseCardInRestrictedCountries = 39, + UseCardInRestrictedCountries = 40, /// /// Enum UseCardInRestrictedCountriesCommercial for value: useCardInRestrictedCountriesCommercial /// [EnumMember(Value = "useCardInRestrictedCountriesCommercial")] - UseCardInRestrictedCountriesCommercial = 40, + UseCardInRestrictedCountriesCommercial = 41, /// /// Enum UseCardInRestrictedCountriesConsumer for value: useCardInRestrictedCountriesConsumer /// [EnumMember(Value = "useCardInRestrictedCountriesConsumer")] - UseCardInRestrictedCountriesConsumer = 41, + UseCardInRestrictedCountriesConsumer = 42, /// /// Enum UseCardInRestrictedIndustries for value: useCardInRestrictedIndustries /// [EnumMember(Value = "useCardInRestrictedIndustries")] - UseCardInRestrictedIndustries = 42, + UseCardInRestrictedIndustries = 43, /// /// Enum UseCardInRestrictedIndustriesCommercial for value: useCardInRestrictedIndustriesCommercial /// [EnumMember(Value = "useCardInRestrictedIndustriesCommercial")] - UseCardInRestrictedIndustriesCommercial = 43, + UseCardInRestrictedIndustriesCommercial = 44, /// /// Enum UseCardInRestrictedIndustriesConsumer for value: useCardInRestrictedIndustriesConsumer /// [EnumMember(Value = "useCardInRestrictedIndustriesConsumer")] - UseCardInRestrictedIndustriesConsumer = 44, + UseCardInRestrictedIndustriesConsumer = 45, /// /// Enum WithdrawFromAtm for value: withdrawFromAtm /// [EnumMember(Value = "withdrawFromAtm")] - WithdrawFromAtm = 45, + WithdrawFromAtm = 46, /// /// Enum WithdrawFromAtmCommercial for value: withdrawFromAtmCommercial /// [EnumMember(Value = "withdrawFromAtmCommercial")] - WithdrawFromAtmCommercial = 46, + WithdrawFromAtmCommercial = 47, /// /// Enum WithdrawFromAtmConsumer for value: withdrawFromAtmConsumer /// [EnumMember(Value = "withdrawFromAtmConsumer")] - WithdrawFromAtmConsumer = 47, + WithdrawFromAtmConsumer = 48, /// /// Enum WithdrawFromAtmInRestrictedCountries for value: withdrawFromAtmInRestrictedCountries /// [EnumMember(Value = "withdrawFromAtmInRestrictedCountries")] - WithdrawFromAtmInRestrictedCountries = 48, + WithdrawFromAtmInRestrictedCountries = 49, /// /// Enum WithdrawFromAtmInRestrictedCountriesCommercial for value: withdrawFromAtmInRestrictedCountriesCommercial /// [EnumMember(Value = "withdrawFromAtmInRestrictedCountriesCommercial")] - WithdrawFromAtmInRestrictedCountriesCommercial = 49, + WithdrawFromAtmInRestrictedCountriesCommercial = 50, /// /// Enum WithdrawFromAtmInRestrictedCountriesConsumer for value: withdrawFromAtmInRestrictedCountriesConsumer /// [EnumMember(Value = "withdrawFromAtmInRestrictedCountriesConsumer")] - WithdrawFromAtmInRestrictedCountriesConsumer = 50 + WithdrawFromAtmInRestrictedCountriesConsumer = 51 } diff --git a/Adyen/Model/ConfigurationWebhooks/VerificationError.cs b/Adyen/Model/ConfigurationWebhooks/VerificationError.cs index 6793abac4..1a869ea1b 100644 --- a/Adyen/Model/ConfigurationWebhooks/VerificationError.cs +++ b/Adyen/Model/ConfigurationWebhooks/VerificationError.cs @@ -164,179 +164,185 @@ public enum CapabilitiesEnum [EnumMember(Value = "issueCardConsumer")] IssueCardConsumer = 21, + /// + /// Enum IssueCreditLimit for value: issueCreditLimit + /// + [EnumMember(Value = "issueCreditLimit")] + IssueCreditLimit = 22, + /// /// Enum LocalAcceptance for value: localAcceptance /// [EnumMember(Value = "localAcceptance")] - LocalAcceptance = 22, + LocalAcceptance = 23, /// /// Enum Payout for value: payout /// [EnumMember(Value = "payout")] - Payout = 23, + Payout = 24, /// /// Enum PayoutToTransferInstrument for value: payoutToTransferInstrument /// [EnumMember(Value = "payoutToTransferInstrument")] - PayoutToTransferInstrument = 24, + PayoutToTransferInstrument = 25, /// /// Enum Processing for value: processing /// [EnumMember(Value = "processing")] - Processing = 25, + Processing = 26, /// /// Enum ReceiveFromBalanceAccount for value: receiveFromBalanceAccount /// [EnumMember(Value = "receiveFromBalanceAccount")] - ReceiveFromBalanceAccount = 26, + ReceiveFromBalanceAccount = 27, /// /// Enum ReceiveFromPlatformPayments for value: receiveFromPlatformPayments /// [EnumMember(Value = "receiveFromPlatformPayments")] - ReceiveFromPlatformPayments = 27, + ReceiveFromPlatformPayments = 28, /// /// Enum ReceiveFromThirdParty for value: receiveFromThirdParty /// [EnumMember(Value = "receiveFromThirdParty")] - ReceiveFromThirdParty = 28, + ReceiveFromThirdParty = 29, /// /// Enum ReceiveFromTransferInstrument for value: receiveFromTransferInstrument /// [EnumMember(Value = "receiveFromTransferInstrument")] - ReceiveFromTransferInstrument = 29, + ReceiveFromTransferInstrument = 30, /// /// Enum ReceiveGrants for value: receiveGrants /// [EnumMember(Value = "receiveGrants")] - ReceiveGrants = 30, + ReceiveGrants = 31, /// /// Enum ReceivePayments for value: receivePayments /// [EnumMember(Value = "receivePayments")] - ReceivePayments = 31, + ReceivePayments = 32, /// /// Enum SendToBalanceAccount for value: sendToBalanceAccount /// [EnumMember(Value = "sendToBalanceAccount")] - SendToBalanceAccount = 32, + SendToBalanceAccount = 33, /// /// Enum SendToThirdParty for value: sendToThirdParty /// [EnumMember(Value = "sendToThirdParty")] - SendToThirdParty = 33, + SendToThirdParty = 34, /// /// Enum SendToTransferInstrument for value: sendToTransferInstrument /// [EnumMember(Value = "sendToTransferInstrument")] - SendToTransferInstrument = 34, + SendToTransferInstrument = 35, /// /// Enum ThirdPartyFunding for value: thirdPartyFunding /// [EnumMember(Value = "thirdPartyFunding")] - ThirdPartyFunding = 35, + ThirdPartyFunding = 36, /// /// Enum UseCard for value: useCard /// [EnumMember(Value = "useCard")] - UseCard = 36, + UseCard = 37, /// /// Enum UseCardCommercial for value: useCardCommercial /// [EnumMember(Value = "useCardCommercial")] - UseCardCommercial = 37, + UseCardCommercial = 38, /// /// Enum UseCardConsumer for value: useCardConsumer /// [EnumMember(Value = "useCardConsumer")] - UseCardConsumer = 38, + UseCardConsumer = 39, /// /// Enum UseCardInRestrictedCountries for value: useCardInRestrictedCountries /// [EnumMember(Value = "useCardInRestrictedCountries")] - UseCardInRestrictedCountries = 39, + UseCardInRestrictedCountries = 40, /// /// Enum UseCardInRestrictedCountriesCommercial for value: useCardInRestrictedCountriesCommercial /// [EnumMember(Value = "useCardInRestrictedCountriesCommercial")] - UseCardInRestrictedCountriesCommercial = 40, + UseCardInRestrictedCountriesCommercial = 41, /// /// Enum UseCardInRestrictedCountriesConsumer for value: useCardInRestrictedCountriesConsumer /// [EnumMember(Value = "useCardInRestrictedCountriesConsumer")] - UseCardInRestrictedCountriesConsumer = 41, + UseCardInRestrictedCountriesConsumer = 42, /// /// Enum UseCardInRestrictedIndustries for value: useCardInRestrictedIndustries /// [EnumMember(Value = "useCardInRestrictedIndustries")] - UseCardInRestrictedIndustries = 42, + UseCardInRestrictedIndustries = 43, /// /// Enum UseCardInRestrictedIndustriesCommercial for value: useCardInRestrictedIndustriesCommercial /// [EnumMember(Value = "useCardInRestrictedIndustriesCommercial")] - UseCardInRestrictedIndustriesCommercial = 43, + UseCardInRestrictedIndustriesCommercial = 44, /// /// Enum UseCardInRestrictedIndustriesConsumer for value: useCardInRestrictedIndustriesConsumer /// [EnumMember(Value = "useCardInRestrictedIndustriesConsumer")] - UseCardInRestrictedIndustriesConsumer = 44, + UseCardInRestrictedIndustriesConsumer = 45, /// /// Enum WithdrawFromAtm for value: withdrawFromAtm /// [EnumMember(Value = "withdrawFromAtm")] - WithdrawFromAtm = 45, + WithdrawFromAtm = 46, /// /// Enum WithdrawFromAtmCommercial for value: withdrawFromAtmCommercial /// [EnumMember(Value = "withdrawFromAtmCommercial")] - WithdrawFromAtmCommercial = 46, + WithdrawFromAtmCommercial = 47, /// /// Enum WithdrawFromAtmConsumer for value: withdrawFromAtmConsumer /// [EnumMember(Value = "withdrawFromAtmConsumer")] - WithdrawFromAtmConsumer = 47, + WithdrawFromAtmConsumer = 48, /// /// Enum WithdrawFromAtmInRestrictedCountries for value: withdrawFromAtmInRestrictedCountries /// [EnumMember(Value = "withdrawFromAtmInRestrictedCountries")] - WithdrawFromAtmInRestrictedCountries = 48, + WithdrawFromAtmInRestrictedCountries = 49, /// /// Enum WithdrawFromAtmInRestrictedCountriesCommercial for value: withdrawFromAtmInRestrictedCountriesCommercial /// [EnumMember(Value = "withdrawFromAtmInRestrictedCountriesCommercial")] - WithdrawFromAtmInRestrictedCountriesCommercial = 49, + WithdrawFromAtmInRestrictedCountriesCommercial = 50, /// /// Enum WithdrawFromAtmInRestrictedCountriesConsumer for value: withdrawFromAtmInRestrictedCountriesConsumer /// [EnumMember(Value = "withdrawFromAtmInRestrictedCountriesConsumer")] - WithdrawFromAtmInRestrictedCountriesConsumer = 50 + WithdrawFromAtmInRestrictedCountriesConsumer = 51 } diff --git a/Adyen/Model/ConfigurationWebhooks/VerificationErrorRecursive.cs b/Adyen/Model/ConfigurationWebhooks/VerificationErrorRecursive.cs index 773470ab0..939e857f1 100644 --- a/Adyen/Model/ConfigurationWebhooks/VerificationErrorRecursive.cs +++ b/Adyen/Model/ConfigurationWebhooks/VerificationErrorRecursive.cs @@ -164,179 +164,185 @@ public enum CapabilitiesEnum [EnumMember(Value = "issueCardConsumer")] IssueCardConsumer = 21, + /// + /// Enum IssueCreditLimit for value: issueCreditLimit + /// + [EnumMember(Value = "issueCreditLimit")] + IssueCreditLimit = 22, + /// /// Enum LocalAcceptance for value: localAcceptance /// [EnumMember(Value = "localAcceptance")] - LocalAcceptance = 22, + LocalAcceptance = 23, /// /// Enum Payout for value: payout /// [EnumMember(Value = "payout")] - Payout = 23, + Payout = 24, /// /// Enum PayoutToTransferInstrument for value: payoutToTransferInstrument /// [EnumMember(Value = "payoutToTransferInstrument")] - PayoutToTransferInstrument = 24, + PayoutToTransferInstrument = 25, /// /// Enum Processing for value: processing /// [EnumMember(Value = "processing")] - Processing = 25, + Processing = 26, /// /// Enum ReceiveFromBalanceAccount for value: receiveFromBalanceAccount /// [EnumMember(Value = "receiveFromBalanceAccount")] - ReceiveFromBalanceAccount = 26, + ReceiveFromBalanceAccount = 27, /// /// Enum ReceiveFromPlatformPayments for value: receiveFromPlatformPayments /// [EnumMember(Value = "receiveFromPlatformPayments")] - ReceiveFromPlatformPayments = 27, + ReceiveFromPlatformPayments = 28, /// /// Enum ReceiveFromThirdParty for value: receiveFromThirdParty /// [EnumMember(Value = "receiveFromThirdParty")] - ReceiveFromThirdParty = 28, + ReceiveFromThirdParty = 29, /// /// Enum ReceiveFromTransferInstrument for value: receiveFromTransferInstrument /// [EnumMember(Value = "receiveFromTransferInstrument")] - ReceiveFromTransferInstrument = 29, + ReceiveFromTransferInstrument = 30, /// /// Enum ReceiveGrants for value: receiveGrants /// [EnumMember(Value = "receiveGrants")] - ReceiveGrants = 30, + ReceiveGrants = 31, /// /// Enum ReceivePayments for value: receivePayments /// [EnumMember(Value = "receivePayments")] - ReceivePayments = 31, + ReceivePayments = 32, /// /// Enum SendToBalanceAccount for value: sendToBalanceAccount /// [EnumMember(Value = "sendToBalanceAccount")] - SendToBalanceAccount = 32, + SendToBalanceAccount = 33, /// /// Enum SendToThirdParty for value: sendToThirdParty /// [EnumMember(Value = "sendToThirdParty")] - SendToThirdParty = 33, + SendToThirdParty = 34, /// /// Enum SendToTransferInstrument for value: sendToTransferInstrument /// [EnumMember(Value = "sendToTransferInstrument")] - SendToTransferInstrument = 34, + SendToTransferInstrument = 35, /// /// Enum ThirdPartyFunding for value: thirdPartyFunding /// [EnumMember(Value = "thirdPartyFunding")] - ThirdPartyFunding = 35, + ThirdPartyFunding = 36, /// /// Enum UseCard for value: useCard /// [EnumMember(Value = "useCard")] - UseCard = 36, + UseCard = 37, /// /// Enum UseCardCommercial for value: useCardCommercial /// [EnumMember(Value = "useCardCommercial")] - UseCardCommercial = 37, + UseCardCommercial = 38, /// /// Enum UseCardConsumer for value: useCardConsumer /// [EnumMember(Value = "useCardConsumer")] - UseCardConsumer = 38, + UseCardConsumer = 39, /// /// Enum UseCardInRestrictedCountries for value: useCardInRestrictedCountries /// [EnumMember(Value = "useCardInRestrictedCountries")] - UseCardInRestrictedCountries = 39, + UseCardInRestrictedCountries = 40, /// /// Enum UseCardInRestrictedCountriesCommercial for value: useCardInRestrictedCountriesCommercial /// [EnumMember(Value = "useCardInRestrictedCountriesCommercial")] - UseCardInRestrictedCountriesCommercial = 40, + UseCardInRestrictedCountriesCommercial = 41, /// /// Enum UseCardInRestrictedCountriesConsumer for value: useCardInRestrictedCountriesConsumer /// [EnumMember(Value = "useCardInRestrictedCountriesConsumer")] - UseCardInRestrictedCountriesConsumer = 41, + UseCardInRestrictedCountriesConsumer = 42, /// /// Enum UseCardInRestrictedIndustries for value: useCardInRestrictedIndustries /// [EnumMember(Value = "useCardInRestrictedIndustries")] - UseCardInRestrictedIndustries = 42, + UseCardInRestrictedIndustries = 43, /// /// Enum UseCardInRestrictedIndustriesCommercial for value: useCardInRestrictedIndustriesCommercial /// [EnumMember(Value = "useCardInRestrictedIndustriesCommercial")] - UseCardInRestrictedIndustriesCommercial = 43, + UseCardInRestrictedIndustriesCommercial = 44, /// /// Enum UseCardInRestrictedIndustriesConsumer for value: useCardInRestrictedIndustriesConsumer /// [EnumMember(Value = "useCardInRestrictedIndustriesConsumer")] - UseCardInRestrictedIndustriesConsumer = 44, + UseCardInRestrictedIndustriesConsumer = 45, /// /// Enum WithdrawFromAtm for value: withdrawFromAtm /// [EnumMember(Value = "withdrawFromAtm")] - WithdrawFromAtm = 45, + WithdrawFromAtm = 46, /// /// Enum WithdrawFromAtmCommercial for value: withdrawFromAtmCommercial /// [EnumMember(Value = "withdrawFromAtmCommercial")] - WithdrawFromAtmCommercial = 46, + WithdrawFromAtmCommercial = 47, /// /// Enum WithdrawFromAtmConsumer for value: withdrawFromAtmConsumer /// [EnumMember(Value = "withdrawFromAtmConsumer")] - WithdrawFromAtmConsumer = 47, + WithdrawFromAtmConsumer = 48, /// /// Enum WithdrawFromAtmInRestrictedCountries for value: withdrawFromAtmInRestrictedCountries /// [EnumMember(Value = "withdrawFromAtmInRestrictedCountries")] - WithdrawFromAtmInRestrictedCountries = 48, + WithdrawFromAtmInRestrictedCountries = 49, /// /// Enum WithdrawFromAtmInRestrictedCountriesCommercial for value: withdrawFromAtmInRestrictedCountriesCommercial /// [EnumMember(Value = "withdrawFromAtmInRestrictedCountriesCommercial")] - WithdrawFromAtmInRestrictedCountriesCommercial = 49, + WithdrawFromAtmInRestrictedCountriesCommercial = 50, /// /// Enum WithdrawFromAtmInRestrictedCountriesConsumer for value: withdrawFromAtmInRestrictedCountriesConsumer /// [EnumMember(Value = "withdrawFromAtmInRestrictedCountriesConsumer")] - WithdrawFromAtmInRestrictedCountriesConsumer = 50 + WithdrawFromAtmInRestrictedCountriesConsumer = 51 } diff --git a/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceResponse.cs b/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceResponse.cs index 43914f22e..19f8c9e5e 100644 --- a/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceResponse.cs +++ b/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceResponse.cs @@ -33,9 +33,9 @@ namespace Adyen.Model.LegalEntityManagement public partial class AcceptTermsOfServiceResponse : IEquatable, IValidatableObject { /// - /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** /// - /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** [JsonConverter(typeof(StringEnumConverter))] public enum TypeEnum { @@ -57,49 +57,43 @@ public enum TypeEnum [EnumMember(Value = "adyenCard")] AdyenCard = 3, - /// - /// Enum AdyenChargeCard for value: adyenChargeCard - /// - [EnumMember(Value = "adyenChargeCard")] - AdyenChargeCard = 4, - /// /// Enum AdyenForPlatformsAdvanced for value: adyenForPlatformsAdvanced /// [EnumMember(Value = "adyenForPlatformsAdvanced")] - AdyenForPlatformsAdvanced = 5, + AdyenForPlatformsAdvanced = 4, /// /// Enum AdyenForPlatformsManage for value: adyenForPlatformsManage /// [EnumMember(Value = "adyenForPlatformsManage")] - AdyenForPlatformsManage = 6, + AdyenForPlatformsManage = 5, /// /// Enum AdyenFranchisee for value: adyenFranchisee /// [EnumMember(Value = "adyenFranchisee")] - AdyenFranchisee = 7, + AdyenFranchisee = 6, /// /// Enum AdyenIssuing for value: adyenIssuing /// [EnumMember(Value = "adyenIssuing")] - AdyenIssuing = 8, + AdyenIssuing = 7, /// /// Enum AdyenPccr for value: adyenPccr /// [EnumMember(Value = "adyenPccr")] - AdyenPccr = 9 + AdyenPccr = 8 } /// - /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** /// - /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** [DataMember(Name = "type", EmitDefaultValue = false)] public TypeEnum? Type { get; set; } /// @@ -110,7 +104,7 @@ public enum TypeEnum /// The IP address of the user that accepted the Terms of Service.. /// The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English.. /// The unique identifier of the Terms of Service document.. - /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** . + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** . public AcceptTermsOfServiceResponse(string acceptedBy = default(string), string id = default(string), string ipAddress = default(string), string language = default(string), string termsOfServiceDocumentId = default(string), TypeEnum? type = default(TypeEnum?)) { this.AcceptedBy = acceptedBy; diff --git a/Adyen/Model/LegalEntityManagement/Attachment.cs b/Adyen/Model/LegalEntityManagement/Attachment.cs index c4a3bfab6..71cb137a8 100644 --- a/Adyen/Model/LegalEntityManagement/Attachment.cs +++ b/Adyen/Model/LegalEntityManagement/Attachment.cs @@ -66,7 +66,7 @@ protected Attachment() { } /// /// The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**. [DataMember(Name = "contentType", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Legal Entity Management API v1.")] public string ContentType { get; set; } /// @@ -74,7 +74,7 @@ protected Attachment() { } /// /// The name of the file including the file extension. [DataMember(Name = "filename", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Legal Entity Management API v1.")] public string Filename { get; set; } /// diff --git a/Adyen/Model/LegalEntityManagement/BankAccountInfo.cs b/Adyen/Model/LegalEntityManagement/BankAccountInfo.cs index f847450d4..b12c4be2a 100644 --- a/Adyen/Model/LegalEntityManagement/BankAccountInfo.cs +++ b/Adyen/Model/LegalEntityManagement/BankAccountInfo.cs @@ -58,7 +58,7 @@ public partial class BankAccountInfo : IEquatable, IValidatable /// /// The type of bank account. [DataMember(Name = "accountType", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Legal Entity Management API v2.")] public string AccountType { get; set; } /// diff --git a/Adyen/Model/LegalEntityManagement/BusinessLine.cs b/Adyen/Model/LegalEntityManagement/BusinessLine.cs index ea7b70f97..d56f8af5d 100644 --- a/Adyen/Model/LegalEntityManagement/BusinessLine.cs +++ b/Adyen/Model/LegalEntityManagement/BusinessLine.cs @@ -65,7 +65,7 @@ public enum CapabilityEnum /// /// The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** [DataMember(Name = "capability", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Legal Entity Management API v3. Use `service` instead.")] public CapabilityEnum? Capability { get; set; } /// /// The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** diff --git a/Adyen/Model/LegalEntityManagement/BusinessLineInfo.cs b/Adyen/Model/LegalEntityManagement/BusinessLineInfo.cs index 0737f773a..13731799b 100644 --- a/Adyen/Model/LegalEntityManagement/BusinessLineInfo.cs +++ b/Adyen/Model/LegalEntityManagement/BusinessLineInfo.cs @@ -65,7 +65,7 @@ public enum CapabilityEnum /// /// The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** [DataMember(Name = "capability", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Legal Entity Management API v3. Use `service` instead.")] public CapabilityEnum? Capability { get; set; } /// /// The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** diff --git a/Adyen/Model/LegalEntityManagement/CalculateTermsOfServiceStatusResponse.cs b/Adyen/Model/LegalEntityManagement/CalculateTermsOfServiceStatusResponse.cs index 4cffb8946..fa7ec7c06 100644 --- a/Adyen/Model/LegalEntityManagement/CalculateTermsOfServiceStatusResponse.cs +++ b/Adyen/Model/LegalEntityManagement/CalculateTermsOfServiceStatusResponse.cs @@ -56,41 +56,35 @@ public enum TermsOfServiceTypesEnum [EnumMember(Value = "adyenCard")] AdyenCard = 3, - /// - /// Enum AdyenChargeCard for value: adyenChargeCard - /// - [EnumMember(Value = "adyenChargeCard")] - AdyenChargeCard = 4, - /// /// Enum AdyenForPlatformsAdvanced for value: adyenForPlatformsAdvanced /// [EnumMember(Value = "adyenForPlatformsAdvanced")] - AdyenForPlatformsAdvanced = 5, + AdyenForPlatformsAdvanced = 4, /// /// Enum AdyenForPlatformsManage for value: adyenForPlatformsManage /// [EnumMember(Value = "adyenForPlatformsManage")] - AdyenForPlatformsManage = 6, + AdyenForPlatformsManage = 5, /// /// Enum AdyenFranchisee for value: adyenFranchisee /// [EnumMember(Value = "adyenFranchisee")] - AdyenFranchisee = 7, + AdyenFranchisee = 6, /// /// Enum AdyenIssuing for value: adyenIssuing /// [EnumMember(Value = "adyenIssuing")] - AdyenIssuing = 8, + AdyenIssuing = 7, /// /// Enum AdyenPccr for value: adyenPccr /// [EnumMember(Value = "adyenPccr")] - AdyenPccr = 9 + AdyenPccr = 8 } diff --git a/Adyen/Model/LegalEntityManagement/Document.cs b/Adyen/Model/LegalEntityManagement/Document.cs index 0a14d3276..b73cb57f2 100644 --- a/Adyen/Model/LegalEntityManagement/Document.cs +++ b/Adyen/Model/LegalEntityManagement/Document.cs @@ -226,7 +226,7 @@ protected Document() { } /// /// The expiry date of the document, in YYYY-MM-DD format. [DataMember(Name = "expiryDate", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Legal Entity Management API v1.")] public string ExpiryDate { get; set; } /// @@ -248,7 +248,7 @@ protected Document() { } /// /// The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. [DataMember(Name = "issuerCountry", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Legal Entity Management API v1.")] public string IssuerCountry { get; set; } /// @@ -256,7 +256,7 @@ protected Document() { } /// /// The state or province where the document was issued (AU only). [DataMember(Name = "issuerState", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Legal Entity Management API v1.")] public string IssuerState { get; set; } /// diff --git a/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentRequest.cs b/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentRequest.cs index ea43ec103..5e5bcb2a6 100644 --- a/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentRequest.cs +++ b/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentRequest.cs @@ -33,9 +33,9 @@ namespace Adyen.Model.LegalEntityManagement public partial class GetTermsOfServiceDocumentRequest : IEquatable, IValidatableObject { /// - /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** /// - /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** [JsonConverter(typeof(StringEnumConverter))] public enum TypeEnum { @@ -57,49 +57,43 @@ public enum TypeEnum [EnumMember(Value = "adyenCard")] AdyenCard = 3, - /// - /// Enum AdyenChargeCard for value: adyenChargeCard - /// - [EnumMember(Value = "adyenChargeCard")] - AdyenChargeCard = 4, - /// /// Enum AdyenForPlatformsAdvanced for value: adyenForPlatformsAdvanced /// [EnumMember(Value = "adyenForPlatformsAdvanced")] - AdyenForPlatformsAdvanced = 5, + AdyenForPlatformsAdvanced = 4, /// /// Enum AdyenForPlatformsManage for value: adyenForPlatformsManage /// [EnumMember(Value = "adyenForPlatformsManage")] - AdyenForPlatformsManage = 6, + AdyenForPlatformsManage = 5, /// /// Enum AdyenFranchisee for value: adyenFranchisee /// [EnumMember(Value = "adyenFranchisee")] - AdyenFranchisee = 7, + AdyenFranchisee = 6, /// /// Enum AdyenIssuing for value: adyenIssuing /// [EnumMember(Value = "adyenIssuing")] - AdyenIssuing = 8, + AdyenIssuing = 7, /// /// Enum AdyenPccr for value: adyenPccr /// [EnumMember(Value = "adyenPccr")] - AdyenPccr = 9 + AdyenPccr = 8 } /// - /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** /// - /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** [DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)] public TypeEnum Type { get; set; } /// @@ -112,7 +106,7 @@ protected GetTermsOfServiceDocumentRequest() { } /// /// The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. (required). /// The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**.. - /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** (required). + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** (required). public GetTermsOfServiceDocumentRequest(string language = default(string), string termsOfServiceDocumentFormat = default(string), TypeEnum type = default(TypeEnum)) { this.Language = language; diff --git a/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentResponse.cs b/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentResponse.cs index 356ad6924..aa7f9d7aa 100644 --- a/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentResponse.cs +++ b/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentResponse.cs @@ -33,9 +33,9 @@ namespace Adyen.Model.LegalEntityManagement public partial class GetTermsOfServiceDocumentResponse : IEquatable, IValidatableObject { /// - /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** /// - /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** [JsonConverter(typeof(StringEnumConverter))] public enum TypeEnum { @@ -57,49 +57,43 @@ public enum TypeEnum [EnumMember(Value = "adyenCard")] AdyenCard = 3, - /// - /// Enum AdyenChargeCard for value: adyenChargeCard - /// - [EnumMember(Value = "adyenChargeCard")] - AdyenChargeCard = 4, - /// /// Enum AdyenForPlatformsAdvanced for value: adyenForPlatformsAdvanced /// [EnumMember(Value = "adyenForPlatformsAdvanced")] - AdyenForPlatformsAdvanced = 5, + AdyenForPlatformsAdvanced = 4, /// /// Enum AdyenForPlatformsManage for value: adyenForPlatformsManage /// [EnumMember(Value = "adyenForPlatformsManage")] - AdyenForPlatformsManage = 6, + AdyenForPlatformsManage = 5, /// /// Enum AdyenFranchisee for value: adyenFranchisee /// [EnumMember(Value = "adyenFranchisee")] - AdyenFranchisee = 7, + AdyenFranchisee = 6, /// /// Enum AdyenIssuing for value: adyenIssuing /// [EnumMember(Value = "adyenIssuing")] - AdyenIssuing = 8, + AdyenIssuing = 7, /// /// Enum AdyenPccr for value: adyenPccr /// [EnumMember(Value = "adyenPccr")] - AdyenPccr = 9 + AdyenPccr = 8 } /// - /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** /// - /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** [DataMember(Name = "type", EmitDefaultValue = false)] public TypeEnum? Type { get; set; } /// @@ -110,7 +104,7 @@ public enum TypeEnum /// The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English.. /// The format of the Terms of Service document.. /// The unique identifier of the Terms of Service document.. - /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** . + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** . public GetTermsOfServiceDocumentResponse(byte[] document = default(byte[]), string id = default(string), string language = default(string), string termsOfServiceDocumentFormat = default(string), string termsOfServiceDocumentId = default(string), TypeEnum? type = default(TypeEnum?)) { this.Document = document; diff --git a/Adyen/Model/LegalEntityManagement/IdentificationData.cs b/Adyen/Model/LegalEntityManagement/IdentificationData.cs index 99155e004..bb66881f0 100644 --- a/Adyen/Model/LegalEntityManagement/IdentificationData.cs +++ b/Adyen/Model/LegalEntityManagement/IdentificationData.cs @@ -117,7 +117,7 @@ protected IdentificationData() { } /// /// The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. [DataMember(Name = "issuerCountry", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Legal Entity Management API v1.")] public string IssuerCountry { get; set; } /// diff --git a/Adyen/Model/LegalEntityManagement/LegalEntity.cs b/Adyen/Model/LegalEntityManagement/LegalEntity.cs index 3ece2bf91..438e7f9b0 100644 --- a/Adyen/Model/LegalEntityManagement/LegalEntity.cs +++ b/Adyen/Model/LegalEntityManagement/LegalEntity.cs @@ -131,7 +131,7 @@ protected LegalEntity() { } /// /// List of documents uploaded for the legal entity. [DataMember(Name = "documents", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Legal Entity Management API v1. Use the `documentDetails` array instead.")] public List Documents { get; set; } /// diff --git a/Adyen/Model/LegalEntityManagement/OnboardingLinkSettings.cs b/Adyen/Model/LegalEntityManagement/OnboardingLinkSettings.cs index 0a156f08e..995edf311 100644 --- a/Adyen/Model/LegalEntityManagement/OnboardingLinkSettings.cs +++ b/Adyen/Model/LegalEntityManagement/OnboardingLinkSettings.cs @@ -37,7 +37,6 @@ public partial class OnboardingLinkSettings : IEquatable /// /// The list of countries the user can choose from in hosted onboarding when `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is empty by default, allowing all [countries and regions supported by hosted onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding).. /// Default value: **false** Indicates if the user can select the format for their payout account (if applicable).. - /// Default value: **true** Indicates if the user may press a hidden key combination to open the HO debugging UI.. /// Default value: **false** Indicates if the user can select a payout account in a different EU/EEA location (including Switzerland and the UK) than the location of their legal entity.. /// Default value: **true** Indicates if the user can change their legal entity type.. /// Default value: **true** Indicates if the user can change the country of their legal entity's address, for example the registered address of an organization.. @@ -51,11 +50,10 @@ public partial class OnboardingLinkSettings : IEquatable /// Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **pos** sales channel type.. /// Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **posMoto** sales channel type.. /// The maximum number of transfer instruments the user can create.. - public OnboardingLinkSettings(List acceptedCountries = default(List), bool? allowBankAccountFormatSelection = default(bool?), bool? allowDebugUi = default(bool?), bool? allowIntraRegionCrossBorderPayout = default(bool?), bool? changeLegalEntityType = default(bool?), bool? editPrefilledCountry = default(bool?), bool? hideOnboardingIntroductionIndividual = default(bool?), bool? hideOnboardingIntroductionOrganization = default(bool?), bool? hideOnboardingIntroductionSoleProprietor = default(bool?), bool? hideOnboardingIntroductionTrust = default(bool?), bool? instantBankVerification = default(bool?), bool? requirePciSignEcomMoto = default(bool?), bool? requirePciSignEcommerce = default(bool?), bool? requirePciSignPos = default(bool?), bool? requirePciSignPosMoto = default(bool?), int? transferInstrumentLimit = default(int?)) + public OnboardingLinkSettings(List acceptedCountries = default(List), bool? allowBankAccountFormatSelection = default(bool?), bool? allowIntraRegionCrossBorderPayout = default(bool?), bool? changeLegalEntityType = default(bool?), bool? editPrefilledCountry = default(bool?), bool? hideOnboardingIntroductionIndividual = default(bool?), bool? hideOnboardingIntroductionOrganization = default(bool?), bool? hideOnboardingIntroductionSoleProprietor = default(bool?), bool? hideOnboardingIntroductionTrust = default(bool?), bool? instantBankVerification = default(bool?), bool? requirePciSignEcomMoto = default(bool?), bool? requirePciSignEcommerce = default(bool?), bool? requirePciSignPos = default(bool?), bool? requirePciSignPosMoto = default(bool?), int? transferInstrumentLimit = default(int?)) { this.AcceptedCountries = acceptedCountries; this.AllowBankAccountFormatSelection = allowBankAccountFormatSelection; - this.AllowDebugUi = allowDebugUi; this.AllowIntraRegionCrossBorderPayout = allowIntraRegionCrossBorderPayout; this.ChangeLegalEntityType = changeLegalEntityType; this.EditPrefilledCountry = editPrefilledCountry; @@ -85,13 +83,6 @@ public partial class OnboardingLinkSettings : IEquatable [DataMember(Name = "allowBankAccountFormatSelection", EmitDefaultValue = false)] public bool? AllowBankAccountFormatSelection { get; set; } - /// - /// Default value: **true** Indicates if the user may press a hidden key combination to open the HO debugging UI. - /// - /// Default value: **true** Indicates if the user may press a hidden key combination to open the HO debugging UI. - [DataMember(Name = "allowDebugUi", EmitDefaultValue = false)] - public bool? AllowDebugUi { get; set; } - /// /// Default value: **false** Indicates if the user can select a payout account in a different EU/EEA location (including Switzerland and the UK) than the location of their legal entity. /// @@ -193,7 +184,6 @@ public override string ToString() sb.Append("class OnboardingLinkSettings {\n"); sb.Append(" AcceptedCountries: ").Append(AcceptedCountries).Append("\n"); sb.Append(" AllowBankAccountFormatSelection: ").Append(AllowBankAccountFormatSelection).Append("\n"); - sb.Append(" AllowDebugUi: ").Append(AllowDebugUi).Append("\n"); sb.Append(" AllowIntraRegionCrossBorderPayout: ").Append(AllowIntraRegionCrossBorderPayout).Append("\n"); sb.Append(" ChangeLegalEntityType: ").Append(ChangeLegalEntityType).Append("\n"); sb.Append(" EditPrefilledCountry: ").Append(EditPrefilledCountry).Append("\n"); @@ -252,10 +242,6 @@ public bool Equals(OnboardingLinkSettings input) this.AllowBankAccountFormatSelection == input.AllowBankAccountFormatSelection || this.AllowBankAccountFormatSelection.Equals(input.AllowBankAccountFormatSelection) ) && - ( - this.AllowDebugUi == input.AllowDebugUi || - this.AllowDebugUi.Equals(input.AllowDebugUi) - ) && ( this.AllowIntraRegionCrossBorderPayout == input.AllowIntraRegionCrossBorderPayout || this.AllowIntraRegionCrossBorderPayout.Equals(input.AllowIntraRegionCrossBorderPayout) @@ -324,7 +310,6 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.AcceptedCountries.GetHashCode(); } hashCode = (hashCode * 59) + this.AllowBankAccountFormatSelection.GetHashCode(); - hashCode = (hashCode * 59) + this.AllowDebugUi.GetHashCode(); hashCode = (hashCode * 59) + this.AllowIntraRegionCrossBorderPayout.GetHashCode(); hashCode = (hashCode * 59) + this.ChangeLegalEntityType.GetHashCode(); hashCode = (hashCode * 59) + this.EditPrefilledCountry.GetHashCode(); diff --git a/Adyen/Model/LegalEntityManagement/SourceOfFunds.cs b/Adyen/Model/LegalEntityManagement/SourceOfFunds.cs index fecaad0a3..5820c30a1 100644 --- a/Adyen/Model/LegalEntityManagement/SourceOfFunds.cs +++ b/Adyen/Model/LegalEntityManagement/SourceOfFunds.cs @@ -74,7 +74,7 @@ public enum TypeEnum /// /// The unique identifier of the business line that will be the source of funds.This must be a business line for a **receivePayments** or **receiveFromPlatformPayments** capability. [DataMember(Name = "acquiringBusinessLineId", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Legal Entity Management API v3. This field will be removed in v4.")] public string AcquiringBusinessLineId { get; set; } /// diff --git a/Adyen/Model/LegalEntityManagement/TermsOfServiceAcceptanceInfo.cs b/Adyen/Model/LegalEntityManagement/TermsOfServiceAcceptanceInfo.cs index 31ce5de46..9211731e6 100644 --- a/Adyen/Model/LegalEntityManagement/TermsOfServiceAcceptanceInfo.cs +++ b/Adyen/Model/LegalEntityManagement/TermsOfServiceAcceptanceInfo.cs @@ -33,9 +33,9 @@ namespace Adyen.Model.LegalEntityManagement public partial class TermsOfServiceAcceptanceInfo : IEquatable, IValidatableObject { /// - /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** /// - /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** [JsonConverter(typeof(StringEnumConverter))] public enum TypeEnum { @@ -57,49 +57,43 @@ public enum TypeEnum [EnumMember(Value = "adyenCard")] AdyenCard = 3, - /// - /// Enum AdyenChargeCard for value: adyenChargeCard - /// - [EnumMember(Value = "adyenChargeCard")] - AdyenChargeCard = 4, - /// /// Enum AdyenForPlatformsAdvanced for value: adyenForPlatformsAdvanced /// [EnumMember(Value = "adyenForPlatformsAdvanced")] - AdyenForPlatformsAdvanced = 5, + AdyenForPlatformsAdvanced = 4, /// /// Enum AdyenForPlatformsManage for value: adyenForPlatformsManage /// [EnumMember(Value = "adyenForPlatformsManage")] - AdyenForPlatformsManage = 6, + AdyenForPlatformsManage = 5, /// /// Enum AdyenFranchisee for value: adyenFranchisee /// [EnumMember(Value = "adyenFranchisee")] - AdyenFranchisee = 7, + AdyenFranchisee = 6, /// /// Enum AdyenIssuing for value: adyenIssuing /// [EnumMember(Value = "adyenIssuing")] - AdyenIssuing = 8, + AdyenIssuing = 7, /// /// Enum AdyenPccr for value: adyenPccr /// [EnumMember(Value = "adyenPccr")] - AdyenPccr = 9 + AdyenPccr = 8 } /// - /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** /// - /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** [DataMember(Name = "type", EmitDefaultValue = false)] public TypeEnum? Type { get; set; } /// @@ -109,7 +103,7 @@ public enum TypeEnum /// The unique identifier of the legal entity for which the Terms of Service are accepted.. /// The date when the Terms of Service were accepted.. /// An Adyen-generated reference for the accepted Terms of Service.. - /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** . + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** . public TermsOfServiceAcceptanceInfo(string acceptedBy = default(string), string acceptedFor = default(string), DateTime createdAt = default(DateTime), string id = default(string), TypeEnum? type = default(TypeEnum?)) { this.AcceptedBy = acceptedBy; diff --git a/Adyen/Model/Management/AndroidApp.cs b/Adyen/Model/Management/AndroidApp.cs index d87808fe0..dad8aeed4 100644 --- a/Adyen/Model/Management/AndroidApp.cs +++ b/Adyen/Model/Management/AndroidApp.cs @@ -74,7 +74,7 @@ protected AndroidApp() { } /// /// The error code of the Android app with the `status` of either **error** or **invalid**. [DataMember(Name = "errorCode", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Management API v3. Use `errors` instead.")] public string ErrorCode { get; set; } /// diff --git a/Adyen/Model/Management/Currency.cs b/Adyen/Model/Management/Currency.cs index e78497765..356e728b5 100644 --- a/Adyen/Model/Management/Currency.cs +++ b/Adyen/Model/Management/Currency.cs @@ -42,11 +42,13 @@ protected Currency() { } /// /// Surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).. /// Three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. (required). + /// The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).. /// Surcharge percentage per transaction. The maximum number of decimal places is two. For example, **1%** or **2.27%**.. - public Currency(int? amount = default(int?), string currencyCode = default(string), double? percentage = default(double?)) + public Currency(int? amount = default(int?), string currencyCode = default(string), int? maxAmount = default(int?), double? percentage = default(double?)) { this.CurrencyCode = currencyCode; this.Amount = amount; + this.MaxAmount = maxAmount; this.Percentage = percentage; } @@ -64,6 +66,13 @@ protected Currency() { } [DataMember(Name = "currencyCode", IsRequired = false, EmitDefaultValue = false)] public string CurrencyCode { get; set; } + /// + /// The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + /// + /// The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + [DataMember(Name = "maxAmount", EmitDefaultValue = false)] + public int? MaxAmount { get; set; } + /// /// Surcharge percentage per transaction. The maximum number of decimal places is two. For example, **1%** or **2.27%**. /// @@ -81,6 +90,7 @@ public override string ToString() sb.Append("class Currency {\n"); sb.Append(" Amount: ").Append(Amount).Append("\n"); sb.Append(" CurrencyCode: ").Append(CurrencyCode).Append("\n"); + sb.Append(" MaxAmount: ").Append(MaxAmount).Append("\n"); sb.Append(" Percentage: ").Append(Percentage).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -126,6 +136,10 @@ public bool Equals(Currency input) (this.CurrencyCode != null && this.CurrencyCode.Equals(input.CurrencyCode)) ) && + ( + this.MaxAmount == input.MaxAmount || + this.MaxAmount.Equals(input.MaxAmount) + ) && ( this.Percentage == input.Percentage || this.Percentage.Equals(input.Percentage) @@ -146,6 +160,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.CurrencyCode.GetHashCode(); } + hashCode = (hashCode * 59) + this.MaxAmount.GetHashCode(); hashCode = (hashCode * 59) + this.Percentage.GetHashCode(); return hashCode; } diff --git a/Adyen/Model/Management/ModelConfiguration.cs b/Adyen/Model/Management/ModelConfiguration.cs index e01e723b1..03c8922ca 100644 --- a/Adyen/Model/Management/ModelConfiguration.cs +++ b/Adyen/Model/Management/ModelConfiguration.cs @@ -41,13 +41,15 @@ protected ModelConfiguration() { } /// Initializes a new instance of the class. /// /// Payment method, like **eftpos_australia** or **mc**. See the [possible values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). (required). - /// Countries, to filter different surcharge amounts for domestic or international cards.. - /// Currency, and surcharge percentage or amount. (required). + /// Set to **true** to apply surcharges only to commercial/business cards.. + /// The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region.. + /// Currency and percentage or amount of the surcharge. (required). /// Funding source. Possible values: * **Credit** * **Debit**. - public ModelConfiguration(string brand = default(string), List country = default(List), List currencies = default(List), List sources = default(List)) + public ModelConfiguration(string brand = default(string), bool? commercial = default(bool?), List country = default(List), List currencies = default(List), List sources = default(List)) { this.Brand = brand; this.Currencies = currencies; + this.Commercial = commercial; this.Country = country; this.Sources = sources; } @@ -60,16 +62,23 @@ protected ModelConfiguration() { } public string Brand { get; set; } /// - /// Countries, to filter different surcharge amounts for domestic or international cards. + /// Set to **true** to apply surcharges only to commercial/business cards. /// - /// Countries, to filter different surcharge amounts for domestic or international cards. + /// Set to **true** to apply surcharges only to commercial/business cards. + [DataMember(Name = "commercial", EmitDefaultValue = false)] + public bool? Commercial { get; set; } + + /// + /// The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region. + /// + /// The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region. [DataMember(Name = "country", EmitDefaultValue = false)] public List Country { get; set; } /// - /// Currency, and surcharge percentage or amount. + /// Currency and percentage or amount of the surcharge. /// - /// Currency, and surcharge percentage or amount. + /// Currency and percentage or amount of the surcharge. [DataMember(Name = "currencies", IsRequired = false, EmitDefaultValue = false)] public List Currencies { get; set; } @@ -89,6 +98,7 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class ModelConfiguration {\n"); sb.Append(" Brand: ").Append(Brand).Append("\n"); + sb.Append(" Commercial: ").Append(Commercial).Append("\n"); sb.Append(" Country: ").Append(Country).Append("\n"); sb.Append(" Currencies: ").Append(Currencies).Append("\n"); sb.Append(" Sources: ").Append(Sources).Append("\n"); @@ -132,6 +142,10 @@ public bool Equals(ModelConfiguration input) (this.Brand != null && this.Brand.Equals(input.Brand)) ) && + ( + this.Commercial == input.Commercial || + this.Commercial.Equals(input.Commercial) + ) && ( this.Country == input.Country || this.Country != null && @@ -165,6 +179,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Brand.GetHashCode(); } + hashCode = (hashCode * 59) + this.Commercial.GetHashCode(); if (this.Country != null) { hashCode = (hashCode * 59) + this.Country.GetHashCode(); diff --git a/Adyen/Model/Management/Nexo.cs b/Adyen/Model/Management/Nexo.cs index 2bd4f2568..324ea6022 100644 --- a/Adyen/Model/Management/Nexo.cs +++ b/Adyen/Model/Management/Nexo.cs @@ -72,7 +72,7 @@ public partial class Nexo : IEquatable, IValidatableObject /// /// One or more URLs to send event messages to when using Terminal API. [DataMember(Name = "nexoEventUrls", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Management API v1. Use `eventUrls` instead.")] public List NexoEventUrls { get; set; } /// diff --git a/Adyen/Model/Management/SplitConfiguration.cs b/Adyen/Model/Management/SplitConfiguration.cs index 3729e281c..ab02dc89d 100644 --- a/Adyen/Model/Management/SplitConfiguration.cs +++ b/Adyen/Model/Management/SplitConfiguration.cs @@ -69,13 +69,6 @@ protected SplitConfiguration() { } [DataMember(Name = "splitConfigurationId", EmitDefaultValue = false)] public string SplitConfigurationId { get; private set; } - /// - /// List of stores to which the split configuration applies. - /// - /// List of stores to which the split configuration applies. - [DataMember(Name = "stores", EmitDefaultValue = false)] - public List Stores { get; private set; } - /// /// Returns the string presentation of the object /// @@ -87,7 +80,6 @@ public override string ToString() sb.Append(" Description: ").Append(Description).Append("\n"); sb.Append(" Rules: ").Append(Rules).Append("\n"); sb.Append(" SplitConfigurationId: ").Append(SplitConfigurationId).Append("\n"); - sb.Append(" Stores: ").Append(Stores).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -138,12 +130,6 @@ public bool Equals(SplitConfiguration input) this.SplitConfigurationId == input.SplitConfigurationId || (this.SplitConfigurationId != null && this.SplitConfigurationId.Equals(input.SplitConfigurationId)) - ) && - ( - this.Stores == input.Stores || - this.Stores != null && - input.Stores != null && - this.Stores.SequenceEqual(input.Stores) ); } @@ -168,10 +154,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.SplitConfigurationId.GetHashCode(); } - if (this.Stores != null) - { - hashCode = (hashCode * 59) + this.Stores.GetHashCode(); - } return hashCode; } } diff --git a/Adyen/Model/Management/Surcharge.cs b/Adyen/Model/Management/Surcharge.cs index 13d4f1135..635ec4867 100644 --- a/Adyen/Model/Management/Surcharge.cs +++ b/Adyen/Model/Management/Surcharge.cs @@ -36,7 +36,7 @@ public partial class Surcharge : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// Show the surcharge details on the terminal, so the shopper can confirm.. - /// Surcharge fees or percentages for specific payment methods, funding sources (credit or debit), and currencies.. + /// Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies.. public Surcharge(bool? askConfirmation = default(bool?), List configurations = default(List)) { this.AskConfirmation = askConfirmation; @@ -51,9 +51,9 @@ public partial class Surcharge : IEquatable, IValidatableObject public bool? AskConfirmation { get; set; } /// - /// Surcharge fees or percentages for specific payment methods, funding sources (credit or debit), and currencies. + /// Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies. /// - /// Surcharge fees or percentages for specific payment methods, funding sources (credit or debit), and currencies. + /// Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies. [DataMember(Name = "configurations", EmitDefaultValue = false)] public List Configurations { get; set; } diff --git a/Adyen/Model/Payment/AccountInfo.cs b/Adyen/Model/Payment/AccountInfo.cs index 74baac9cb..fea998f3b 100644 --- a/Adyen/Model/Payment/AccountInfo.cs +++ b/Adyen/Model/Payment/AccountInfo.cs @@ -362,7 +362,7 @@ public enum PaymentAccountIndicatorEnum /// /// Shopper's home phone number (including the country code). [DataMember(Name = "homePhone", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Payment API v68. Use `ThreeDS2RequestData.homePhone` instead.")] public string HomePhone { get; set; } /// @@ -370,7 +370,7 @@ public enum PaymentAccountIndicatorEnum /// /// Shopper's mobile phone number (including the country code). [DataMember(Name = "mobilePhone", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Payment API v68. Use `ThreeDS2RequestData.mobilePhone` instead.")] public string MobilePhone { get; set; } /// @@ -420,7 +420,7 @@ public enum PaymentAccountIndicatorEnum /// /// Shopper's work phone number (including the country code). [DataMember(Name = "workPhone", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Payment API v68. Use `ThreeDS2RequestData.workPhone` instead.")] public string WorkPhone { get; set; } /// diff --git a/Adyen/Model/Payment/MerchantRiskIndicator.cs b/Adyen/Model/Payment/MerchantRiskIndicator.cs index 64f3c3989..fac5a5506 100644 --- a/Adyen/Model/Payment/MerchantRiskIndicator.cs +++ b/Adyen/Model/Payment/MerchantRiskIndicator.cs @@ -177,7 +177,7 @@ public enum DeliveryTimeframeEnum /// /// The delivery email address (for digital goods). [DataMember(Name = "deliveryEmail", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Payment API v68. Use `deliveryEmailAddress` instead.")] public string DeliveryEmail { get; set; } /// diff --git a/Adyen/Model/Payment/ModificationResult.cs b/Adyen/Model/Payment/ModificationResult.cs index 269815ef0..14dea92e4 100644 --- a/Adyen/Model/Payment/ModificationResult.cs +++ b/Adyen/Model/Payment/ModificationResult.cs @@ -85,7 +85,13 @@ public enum ResponseEnum /// Enum VoidPendingRefundReceived for value: [voidPendingRefund-received] /// [EnumMember(Value = "[voidPendingRefund-received]")] - VoidPendingRefundReceived = 8 + VoidPendingRefundReceived = 8, + + /// + /// Enum Authorised for value: Authorised + /// + [EnumMember(Value = "Authorised")] + Authorised = 9 } diff --git a/Adyen/Model/Payment/ThreeDS2RequestData.cs b/Adyen/Model/Payment/ThreeDS2RequestData.cs index 08b877930..c94b0c55a 100644 --- a/Adyen/Model/Payment/ThreeDS2RequestData.cs +++ b/Adyen/Model/Payment/ThreeDS2RequestData.cs @@ -133,7 +133,7 @@ public enum ChallengeIndicatorEnum /// /// Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` [DataMember(Name = "challengeIndicator", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Payment API v68. Use `threeDSRequestorChallengeInd` instead.")] public ChallengeIndicatorEnum? ChallengeIndicator { get; set; } /// /// Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only @@ -394,7 +394,7 @@ protected ThreeDS2RequestData() { } /// /// If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. [DataMember(Name = "authenticationOnly", EmitDefaultValue = false)] - [Obsolete] + [Obsolete("Deprecated since Adyen Payment API v50. Use `threeDSAuthenticationOnly` instead.")] public bool? AuthenticationOnly { get; set; } /// diff --git a/Adyen/Model/ReportWebhooks/ReportNotificationData.cs b/Adyen/Model/ReportWebhooks/ReportNotificationData.cs index 02e545f29..cec8e01f8 100644 --- a/Adyen/Model/ReportWebhooks/ReportNotificationData.cs +++ b/Adyen/Model/ReportWebhooks/ReportNotificationData.cs @@ -46,7 +46,7 @@ protected ReportNotificationData() { } /// The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.. /// The URL at which you can download the report. To download, you must authenticate your GET request with your [API credentials](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/overview). (required). /// The filename of the report. (required). - /// Type of report. (required). + /// The type of report. Possible values: - `balanceplatform_accounting_interactive_report` - `balanceplatform_accounting_report` - `balanceplatform_balance_report` - `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` - `balanceplatform_payout_report` - `balanceplatform_statement_report` (required). public ReportNotificationData(ResourceReference accountHolder = default(ResourceReference), ResourceReference balanceAccount = default(ResourceReference), string balancePlatform = default(string), DateTime creationDate = default(DateTime), string downloadUrl = default(string), string fileName = default(string), string reportType = default(string)) { this.DownloadUrl = downloadUrl; @@ -99,9 +99,9 @@ protected ReportNotificationData() { } public string FileName { get; set; } /// - /// Type of report. + /// The type of report. Possible values: - `balanceplatform_accounting_interactive_report` - `balanceplatform_accounting_report` - `balanceplatform_balance_report` - `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` - `balanceplatform_payout_report` - `balanceplatform_statement_report` /// - /// Type of report. + /// The type of report. Possible values: - `balanceplatform_accounting_interactive_report` - `balanceplatform_accounting_report` - `balanceplatform_balance_report` - `balanceplatform_fee_report` - `balanceplatform_payment_instrument_report` - `balanceplatform_payout_report` - `balanceplatform_statement_report` [DataMember(Name = "reportType", IsRequired = false, EmitDefaultValue = false)] public string ReportType { get; set; } diff --git a/Adyen/Model/TransferWebhooks/DirectDebitInformation.cs b/Adyen/Model/TransferWebhooks/DirectDebitInformation.cs new file mode 100644 index 000000000..aec40a19b --- /dev/null +++ b/Adyen/Model/TransferWebhooks/DirectDebitInformation.cs @@ -0,0 +1,186 @@ +/* +* Transfer webhooks +* +* +* The version of the OpenAPI document: 4 +* +* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +* https://openapi-generator.tech +* Do not edit the class manually. +*/ + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter; + +namespace Adyen.Model.TransferWebhooks +{ + /// + /// DirectDebitInformation + /// + [DataContract(Name = "DirectDebitInformation")] + public partial class DirectDebitInformation : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format.. + /// The date when the funds are deducted from your user's balance account.. + /// Your unique identifier for the direct debit mandate.. + /// Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**.. + public DirectDebitInformation(DateTime dateOfSignature = default(DateTime), DateTime dueDate = default(DateTime), string mandateId = default(string), string sequenceType = default(string)) + { + this.DateOfSignature = dateOfSignature; + this.DueDate = dueDate; + this.MandateId = mandateId; + this.SequenceType = sequenceType; + } + + /// + /// The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + /// + /// The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + [DataMember(Name = "dateOfSignature", EmitDefaultValue = false)] + public DateTime DateOfSignature { get; set; } + + /// + /// The date when the funds are deducted from your user's balance account. + /// + /// The date when the funds are deducted from your user's balance account. + [DataMember(Name = "dueDate", EmitDefaultValue = false)] + public DateTime DueDate { get; set; } + + /// + /// Your unique identifier for the direct debit mandate. + /// + /// Your unique identifier for the direct debit mandate. + [DataMember(Name = "mandateId", EmitDefaultValue = false)] + public string MandateId { get; set; } + + /// + /// Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. + /// + /// Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. + [DataMember(Name = "sequenceType", EmitDefaultValue = false)] + public string SequenceType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class DirectDebitInformation {\n"); + sb.Append(" DateOfSignature: ").Append(DateOfSignature).Append("\n"); + sb.Append(" DueDate: ").Append(DueDate).Append("\n"); + sb.Append(" MandateId: ").Append(MandateId).Append("\n"); + sb.Append(" SequenceType: ").Append(SequenceType).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DirectDebitInformation); + } + + /// + /// Returns true if DirectDebitInformation instances are equal + /// + /// Instance of DirectDebitInformation to be compared + /// Boolean + public bool Equals(DirectDebitInformation input) + { + if (input == null) + { + return false; + } + return + ( + this.DateOfSignature == input.DateOfSignature || + (this.DateOfSignature != null && + this.DateOfSignature.Equals(input.DateOfSignature)) + ) && + ( + this.DueDate == input.DueDate || + (this.DueDate != null && + this.DueDate.Equals(input.DueDate)) + ) && + ( + this.MandateId == input.MandateId || + (this.MandateId != null && + this.MandateId.Equals(input.MandateId)) + ) && + ( + this.SequenceType == input.SequenceType || + (this.SequenceType != null && + this.SequenceType.Equals(input.SequenceType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DateOfSignature != null) + { + hashCode = (hashCode * 59) + this.DateOfSignature.GetHashCode(); + } + if (this.DueDate != null) + { + hashCode = (hashCode * 59) + this.DueDate.GetHashCode(); + } + if (this.MandateId != null) + { + hashCode = (hashCode * 59) + this.MandateId.GetHashCode(); + } + if (this.SequenceType != null) + { + hashCode = (hashCode * 59) + this.SequenceType.GetHashCode(); + } + return hashCode; + } + } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Adyen/Model/TransferWebhooks/Modification.cs b/Adyen/Model/TransferWebhooks/Modification.cs index 6d67934da..8ea0f0c10 100644 --- a/Adyen/Model/TransferWebhooks/Modification.cs +++ b/Adyen/Model/TransferWebhooks/Modification.cs @@ -351,89 +351,95 @@ public enum StatusEnum [EnumMember(Value = "pendingApproval")] PendingApproval = 52, + /// + /// Enum PendingExecution for value: pendingExecution + /// + [EnumMember(Value = "pendingExecution")] + PendingExecution = 53, + /// /// Enum Received for value: received /// [EnumMember(Value = "received")] - Received = 53, + Received = 54, /// /// Enum RefundPending for value: refundPending /// [EnumMember(Value = "refundPending")] - RefundPending = 54, + RefundPending = 55, /// /// Enum RefundReversalPending for value: refundReversalPending /// [EnumMember(Value = "refundReversalPending")] - RefundReversalPending = 55, + RefundReversalPending = 56, /// /// Enum RefundReversed for value: refundReversed /// [EnumMember(Value = "refundReversed")] - RefundReversed = 56, + RefundReversed = 57, /// /// Enum Refunded for value: refunded /// [EnumMember(Value = "refunded")] - Refunded = 57, + Refunded = 58, /// /// Enum RefundedExternally for value: refundedExternally /// [EnumMember(Value = "refundedExternally")] - RefundedExternally = 58, + RefundedExternally = 59, /// /// Enum Refused for value: refused /// [EnumMember(Value = "refused")] - Refused = 59, + Refused = 60, /// /// Enum Rejected for value: rejected /// [EnumMember(Value = "rejected")] - Rejected = 60, + Rejected = 61, /// /// Enum ReserveAdjustment for value: reserveAdjustment /// [EnumMember(Value = "reserveAdjustment")] - ReserveAdjustment = 61, + ReserveAdjustment = 62, /// /// Enum ReserveAdjustmentPending for value: reserveAdjustmentPending /// [EnumMember(Value = "reserveAdjustmentPending")] - ReserveAdjustmentPending = 62, + ReserveAdjustmentPending = 63, /// /// Enum Returned for value: returned /// [EnumMember(Value = "returned")] - Returned = 63, + Returned = 64, /// /// Enum SecondChargeback for value: secondChargeback /// [EnumMember(Value = "secondChargeback")] - SecondChargeback = 64, + SecondChargeback = 65, /// /// Enum SecondChargebackPending for value: secondChargebackPending /// [EnumMember(Value = "secondChargebackPending")] - SecondChargebackPending = 65, + SecondChargebackPending = 66, /// /// Enum Undefined for value: undefined /// [EnumMember(Value = "undefined")] - Undefined = 66 + Undefined = 67 } diff --git a/Adyen/Model/TransferWebhooks/TransferData.cs b/Adyen/Model/TransferWebhooks/TransferData.cs index 8b3812a32..8c0b9c790 100644 --- a/Adyen/Model/TransferWebhooks/TransferData.cs +++ b/Adyen/Model/TransferWebhooks/TransferData.cs @@ -113,113 +113,137 @@ public enum DirectionEnum [JsonConverter(typeof(StringEnumConverter))] public enum ReasonEnum { + /// + /// Enum AccountHierarchyNotActive for value: accountHierarchyNotActive + /// + [EnumMember(Value = "accountHierarchyNotActive")] + AccountHierarchyNotActive = 1, + /// /// Enum AmountLimitExceeded for value: amountLimitExceeded /// [EnumMember(Value = "amountLimitExceeded")] - AmountLimitExceeded = 1, + AmountLimitExceeded = 2, /// /// Enum Approved for value: approved /// [EnumMember(Value = "approved")] - Approved = 2, + Approved = 3, /// /// Enum BalanceAccountTemporarilyBlockedByTransactionRule for value: balanceAccountTemporarilyBlockedByTransactionRule /// [EnumMember(Value = "balanceAccountTemporarilyBlockedByTransactionRule")] - BalanceAccountTemporarilyBlockedByTransactionRule = 3, + BalanceAccountTemporarilyBlockedByTransactionRule = 4, /// /// Enum CounterpartyAccountBlocked for value: counterpartyAccountBlocked /// [EnumMember(Value = "counterpartyAccountBlocked")] - CounterpartyAccountBlocked = 4, + CounterpartyAccountBlocked = 5, /// /// Enum CounterpartyAccountClosed for value: counterpartyAccountClosed /// [EnumMember(Value = "counterpartyAccountClosed")] - CounterpartyAccountClosed = 5, + CounterpartyAccountClosed = 6, /// /// Enum CounterpartyAccountNotFound for value: counterpartyAccountNotFound /// [EnumMember(Value = "counterpartyAccountNotFound")] - CounterpartyAccountNotFound = 6, + CounterpartyAccountNotFound = 7, /// /// Enum CounterpartyAddressRequired for value: counterpartyAddressRequired /// [EnumMember(Value = "counterpartyAddressRequired")] - CounterpartyAddressRequired = 7, + CounterpartyAddressRequired = 8, /// /// Enum CounterpartyBankTimedOut for value: counterpartyBankTimedOut /// [EnumMember(Value = "counterpartyBankTimedOut")] - CounterpartyBankTimedOut = 8, + CounterpartyBankTimedOut = 9, /// /// Enum CounterpartyBankUnavailable for value: counterpartyBankUnavailable /// [EnumMember(Value = "counterpartyBankUnavailable")] - CounterpartyBankUnavailable = 9, + CounterpartyBankUnavailable = 10, /// /// Enum Declined for value: declined /// [EnumMember(Value = "declined")] - Declined = 10, + Declined = 11, /// /// Enum DeclinedByTransactionRule for value: declinedByTransactionRule /// [EnumMember(Value = "declinedByTransactionRule")] - DeclinedByTransactionRule = 11, + DeclinedByTransactionRule = 12, + + /// + /// Enum DirectDebitNotSupported for value: directDebitNotSupported + /// + [EnumMember(Value = "directDebitNotSupported")] + DirectDebitNotSupported = 13, /// /// Enum Error for value: error /// [EnumMember(Value = "error")] - Error = 12, + Error = 14, /// /// Enum NotEnoughBalance for value: notEnoughBalance /// [EnumMember(Value = "notEnoughBalance")] - NotEnoughBalance = 13, + NotEnoughBalance = 15, /// /// Enum PendingApproval for value: pendingApproval /// [EnumMember(Value = "pendingApproval")] - PendingApproval = 14, + PendingApproval = 16, + + /// + /// Enum PendingExecution for value: pendingExecution + /// + [EnumMember(Value = "pendingExecution")] + PendingExecution = 17, /// /// Enum RefusedByCounterpartyBank for value: refusedByCounterpartyBank /// [EnumMember(Value = "refusedByCounterpartyBank")] - RefusedByCounterpartyBank = 15, + RefusedByCounterpartyBank = 18, /// /// Enum RouteNotFound for value: routeNotFound /// [EnumMember(Value = "routeNotFound")] - RouteNotFound = 16, + RouteNotFound = 19, /// /// Enum ScaFailed for value: scaFailed /// [EnumMember(Value = "scaFailed")] - ScaFailed = 17, + ScaFailed = 20, + + /// + /// Enum TransferInstrumentDoesNotExist for value: transferInstrumentDoesNotExist + /// + [EnumMember(Value = "transferInstrumentDoesNotExist")] + TransferInstrumentDoesNotExist = 21, /// /// Enum Unknown for value: unknown /// [EnumMember(Value = "unknown")] - Unknown = 18 + Unknown = 22 } @@ -549,89 +573,95 @@ public enum StatusEnum [EnumMember(Value = "pendingApproval")] PendingApproval = 52, + /// + /// Enum PendingExecution for value: pendingExecution + /// + [EnumMember(Value = "pendingExecution")] + PendingExecution = 53, + /// /// Enum Received for value: received /// [EnumMember(Value = "received")] - Received = 53, + Received = 54, /// /// Enum RefundPending for value: refundPending /// [EnumMember(Value = "refundPending")] - RefundPending = 54, + RefundPending = 55, /// /// Enum RefundReversalPending for value: refundReversalPending /// [EnumMember(Value = "refundReversalPending")] - RefundReversalPending = 55, + RefundReversalPending = 56, /// /// Enum RefundReversed for value: refundReversed /// [EnumMember(Value = "refundReversed")] - RefundReversed = 56, + RefundReversed = 57, /// /// Enum Refunded for value: refunded /// [EnumMember(Value = "refunded")] - Refunded = 57, + Refunded = 58, /// /// Enum RefundedExternally for value: refundedExternally /// [EnumMember(Value = "refundedExternally")] - RefundedExternally = 58, + RefundedExternally = 59, /// /// Enum Refused for value: refused /// [EnumMember(Value = "refused")] - Refused = 59, + Refused = 60, /// /// Enum Rejected for value: rejected /// [EnumMember(Value = "rejected")] - Rejected = 60, + Rejected = 61, /// /// Enum ReserveAdjustment for value: reserveAdjustment /// [EnumMember(Value = "reserveAdjustment")] - ReserveAdjustment = 61, + ReserveAdjustment = 62, /// /// Enum ReserveAdjustmentPending for value: reserveAdjustmentPending /// [EnumMember(Value = "reserveAdjustmentPending")] - ReserveAdjustmentPending = 62, + ReserveAdjustmentPending = 63, /// /// Enum Returned for value: returned /// [EnumMember(Value = "returned")] - Returned = 63, + Returned = 64, /// /// Enum SecondChargeback for value: secondChargeback /// [EnumMember(Value = "secondChargeback")] - SecondChargeback = 64, + SecondChargeback = 65, /// /// Enum SecondChargebackPending for value: secondChargebackPending /// [EnumMember(Value = "secondChargebackPending")] - SecondChargebackPending = 65, + SecondChargebackPending = 66, /// /// Enum Undefined for value: undefined /// [EnumMember(Value = "undefined")] - Undefined = 66 + Undefined = 67 } @@ -904,6 +934,7 @@ protected TransferData() { } /// counterparty. /// The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.. /// Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?**. + /// directDebitInformation. /// The direction of the transfer. Possible values: **incoming**, **outgoing**.. /// The list of events leading up to the current status of the transfer.. /// The ID of the resource.. @@ -911,12 +942,13 @@ protected TransferData() { } /// Additional information about the status of the transfer.. /// Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference.. /// A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others.. + /// review. /// The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order.. /// The result of the transfer. For example, **authorised**, **refused**, or **error**. (required). /// tracking. /// transactionRulesResult. /// The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**.. - public TransferData(ResourceReference accountHolder = default(ResourceReference), Amount amount = default(Amount), ResourceReference balanceAccount = default(ResourceReference), string balancePlatform = default(string), List balances = default(List), CategoryEnum category = default(CategoryEnum), TransferDataCategoryData categoryData = default(TransferDataCategoryData), TransferNotificationCounterParty counterparty = default(TransferNotificationCounterParty), DateTime creationDate = default(DateTime), string description = default(string), DirectionEnum? direction = default(DirectionEnum?), List events = default(List), string id = default(string), PaymentInstrument paymentInstrument = default(PaymentInstrument), ReasonEnum? reason = default(ReasonEnum?), string reference = default(string), string referenceForBeneficiary = default(string), int? sequenceNumber = default(int?), StatusEnum status = default(StatusEnum), TransferDataTracking tracking = default(TransferDataTracking), TransactionRulesResult transactionRulesResult = default(TransactionRulesResult), TypeEnum? type = default(TypeEnum?)) + public TransferData(ResourceReference accountHolder = default(ResourceReference), Amount amount = default(Amount), ResourceReference balanceAccount = default(ResourceReference), string balancePlatform = default(string), List balances = default(List), CategoryEnum category = default(CategoryEnum), TransferDataCategoryData categoryData = default(TransferDataCategoryData), TransferNotificationCounterParty counterparty = default(TransferNotificationCounterParty), DateTime creationDate = default(DateTime), string description = default(string), DirectDebitInformation directDebitInformation = default(DirectDebitInformation), DirectionEnum? direction = default(DirectionEnum?), List events = default(List), string id = default(string), PaymentInstrument paymentInstrument = default(PaymentInstrument), ReasonEnum? reason = default(ReasonEnum?), string reference = default(string), string referenceForBeneficiary = default(string), TransferReview review = default(TransferReview), int? sequenceNumber = default(int?), StatusEnum status = default(StatusEnum), TransferDataTracking tracking = default(TransferDataTracking), TransactionRulesResult transactionRulesResult = default(TransactionRulesResult), TypeEnum? type = default(TypeEnum?)) { this.Amount = amount; this.Category = category; @@ -929,6 +961,7 @@ protected TransferData() { } this.Counterparty = counterparty; this.CreationDate = creationDate; this.Description = description; + this.DirectDebitInformation = directDebitInformation; this.Direction = direction; this.Events = events; this.Id = id; @@ -936,6 +969,7 @@ protected TransferData() { } this.Reason = reason; this.Reference = reference; this.ReferenceForBeneficiary = referenceForBeneficiary; + this.Review = review; this.SequenceNumber = sequenceNumber; this.Tracking = tracking; this.TransactionRulesResult = transactionRulesResult; @@ -1000,6 +1034,12 @@ protected TransferData() { } [DataMember(Name = "description", EmitDefaultValue = false)] public string Description { get; set; } + /// + /// Gets or Sets DirectDebitInformation + /// + [DataMember(Name = "directDebitInformation", EmitDefaultValue = false)] + public DirectDebitInformation DirectDebitInformation { get; set; } + /// /// The list of events leading up to the current status of the transfer. /// @@ -1034,6 +1074,12 @@ protected TransferData() { } [DataMember(Name = "referenceForBeneficiary", EmitDefaultValue = false)] public string ReferenceForBeneficiary { get; set; } + /// + /// Gets or Sets Review + /// + [DataMember(Name = "review", EmitDefaultValue = false)] + public TransferReview Review { get; set; } + /// /// The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. /// @@ -1071,6 +1117,7 @@ public override string ToString() sb.Append(" Counterparty: ").Append(Counterparty).Append("\n"); sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" DirectDebitInformation: ").Append(DirectDebitInformation).Append("\n"); sb.Append(" Direction: ").Append(Direction).Append("\n"); sb.Append(" Events: ").Append(Events).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); @@ -1078,6 +1125,7 @@ public override string ToString() sb.Append(" Reason: ").Append(Reason).Append("\n"); sb.Append(" Reference: ").Append(Reference).Append("\n"); sb.Append(" ReferenceForBeneficiary: ").Append(ReferenceForBeneficiary).Append("\n"); + sb.Append(" Review: ").Append(Review).Append("\n"); sb.Append(" SequenceNumber: ").Append(SequenceNumber).Append("\n"); sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" Tracking: ").Append(Tracking).Append("\n"); @@ -1168,6 +1216,11 @@ public bool Equals(TransferData input) (this.Description != null && this.Description.Equals(input.Description)) ) && + ( + this.DirectDebitInformation == input.DirectDebitInformation || + (this.DirectDebitInformation != null && + this.DirectDebitInformation.Equals(input.DirectDebitInformation)) + ) && ( this.Direction == input.Direction || this.Direction.Equals(input.Direction) @@ -1202,6 +1255,11 @@ public bool Equals(TransferData input) (this.ReferenceForBeneficiary != null && this.ReferenceForBeneficiary.Equals(input.ReferenceForBeneficiary)) ) && + ( + this.Review == input.Review || + (this.Review != null && + this.Review.Equals(input.Review)) + ) && ( this.SequenceNumber == input.SequenceNumber || this.SequenceNumber.Equals(input.SequenceNumber) @@ -1272,6 +1330,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Description.GetHashCode(); } + if (this.DirectDebitInformation != null) + { + hashCode = (hashCode * 59) + this.DirectDebitInformation.GetHashCode(); + } hashCode = (hashCode * 59) + this.Direction.GetHashCode(); if (this.Events != null) { @@ -1294,6 +1356,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ReferenceForBeneficiary.GetHashCode(); } + if (this.Review != null) + { + hashCode = (hashCode * 59) + this.Review.GetHashCode(); + } hashCode = (hashCode * 59) + this.SequenceNumber.GetHashCode(); hashCode = (hashCode * 59) + this.Status.GetHashCode(); if (this.Tracking != null) diff --git a/Adyen/Model/TransferWebhooks/TransferEvent.cs b/Adyen/Model/TransferWebhooks/TransferEvent.cs index fb0cca4c0..8317fc2f7 100644 --- a/Adyen/Model/TransferWebhooks/TransferEvent.cs +++ b/Adyen/Model/TransferWebhooks/TransferEvent.cs @@ -39,113 +39,137 @@ public partial class TransferEvent : IEquatable, IValidatableObje [JsonConverter(typeof(StringEnumConverter))] public enum ReasonEnum { + /// + /// Enum AccountHierarchyNotActive for value: accountHierarchyNotActive + /// + [EnumMember(Value = "accountHierarchyNotActive")] + AccountHierarchyNotActive = 1, + /// /// Enum AmountLimitExceeded for value: amountLimitExceeded /// [EnumMember(Value = "amountLimitExceeded")] - AmountLimitExceeded = 1, + AmountLimitExceeded = 2, /// /// Enum Approved for value: approved /// [EnumMember(Value = "approved")] - Approved = 2, + Approved = 3, /// /// Enum BalanceAccountTemporarilyBlockedByTransactionRule for value: balanceAccountTemporarilyBlockedByTransactionRule /// [EnumMember(Value = "balanceAccountTemporarilyBlockedByTransactionRule")] - BalanceAccountTemporarilyBlockedByTransactionRule = 3, + BalanceAccountTemporarilyBlockedByTransactionRule = 4, /// /// Enum CounterpartyAccountBlocked for value: counterpartyAccountBlocked /// [EnumMember(Value = "counterpartyAccountBlocked")] - CounterpartyAccountBlocked = 4, + CounterpartyAccountBlocked = 5, /// /// Enum CounterpartyAccountClosed for value: counterpartyAccountClosed /// [EnumMember(Value = "counterpartyAccountClosed")] - CounterpartyAccountClosed = 5, + CounterpartyAccountClosed = 6, /// /// Enum CounterpartyAccountNotFound for value: counterpartyAccountNotFound /// [EnumMember(Value = "counterpartyAccountNotFound")] - CounterpartyAccountNotFound = 6, + CounterpartyAccountNotFound = 7, /// /// Enum CounterpartyAddressRequired for value: counterpartyAddressRequired /// [EnumMember(Value = "counterpartyAddressRequired")] - CounterpartyAddressRequired = 7, + CounterpartyAddressRequired = 8, /// /// Enum CounterpartyBankTimedOut for value: counterpartyBankTimedOut /// [EnumMember(Value = "counterpartyBankTimedOut")] - CounterpartyBankTimedOut = 8, + CounterpartyBankTimedOut = 9, /// /// Enum CounterpartyBankUnavailable for value: counterpartyBankUnavailable /// [EnumMember(Value = "counterpartyBankUnavailable")] - CounterpartyBankUnavailable = 9, + CounterpartyBankUnavailable = 10, /// /// Enum Declined for value: declined /// [EnumMember(Value = "declined")] - Declined = 10, + Declined = 11, /// /// Enum DeclinedByTransactionRule for value: declinedByTransactionRule /// [EnumMember(Value = "declinedByTransactionRule")] - DeclinedByTransactionRule = 11, + DeclinedByTransactionRule = 12, + + /// + /// Enum DirectDebitNotSupported for value: directDebitNotSupported + /// + [EnumMember(Value = "directDebitNotSupported")] + DirectDebitNotSupported = 13, /// /// Enum Error for value: error /// [EnumMember(Value = "error")] - Error = 12, + Error = 14, /// /// Enum NotEnoughBalance for value: notEnoughBalance /// [EnumMember(Value = "notEnoughBalance")] - NotEnoughBalance = 13, + NotEnoughBalance = 15, /// /// Enum PendingApproval for value: pendingApproval /// [EnumMember(Value = "pendingApproval")] - PendingApproval = 14, + PendingApproval = 16, + + /// + /// Enum PendingExecution for value: pendingExecution + /// + [EnumMember(Value = "pendingExecution")] + PendingExecution = 17, /// /// Enum RefusedByCounterpartyBank for value: refusedByCounterpartyBank /// [EnumMember(Value = "refusedByCounterpartyBank")] - RefusedByCounterpartyBank = 15, + RefusedByCounterpartyBank = 18, /// /// Enum RouteNotFound for value: routeNotFound /// [EnumMember(Value = "routeNotFound")] - RouteNotFound = 16, + RouteNotFound = 19, /// /// Enum ScaFailed for value: scaFailed /// [EnumMember(Value = "scaFailed")] - ScaFailed = 17, + ScaFailed = 20, + + /// + /// Enum TransferInstrumentDoesNotExist for value: transferInstrumentDoesNotExist + /// + [EnumMember(Value = "transferInstrumentDoesNotExist")] + TransferInstrumentDoesNotExist = 21, /// /// Enum Unknown for value: unknown /// [EnumMember(Value = "unknown")] - Unknown = 18 + Unknown = 22 } @@ -475,89 +499,95 @@ public enum StatusEnum [EnumMember(Value = "pendingApproval")] PendingApproval = 52, + /// + /// Enum PendingExecution for value: pendingExecution + /// + [EnumMember(Value = "pendingExecution")] + PendingExecution = 53, + /// /// Enum Received for value: received /// [EnumMember(Value = "received")] - Received = 53, + Received = 54, /// /// Enum RefundPending for value: refundPending /// [EnumMember(Value = "refundPending")] - RefundPending = 54, + RefundPending = 55, /// /// Enum RefundReversalPending for value: refundReversalPending /// [EnumMember(Value = "refundReversalPending")] - RefundReversalPending = 55, + RefundReversalPending = 56, /// /// Enum RefundReversed for value: refundReversed /// [EnumMember(Value = "refundReversed")] - RefundReversed = 56, + RefundReversed = 57, /// /// Enum Refunded for value: refunded /// [EnumMember(Value = "refunded")] - Refunded = 57, + Refunded = 58, /// /// Enum RefundedExternally for value: refundedExternally /// [EnumMember(Value = "refundedExternally")] - RefundedExternally = 58, + RefundedExternally = 59, /// /// Enum Refused for value: refused /// [EnumMember(Value = "refused")] - Refused = 59, + Refused = 60, /// /// Enum Rejected for value: rejected /// [EnumMember(Value = "rejected")] - Rejected = 60, + Rejected = 61, /// /// Enum ReserveAdjustment for value: reserveAdjustment /// [EnumMember(Value = "reserveAdjustment")] - ReserveAdjustment = 61, + ReserveAdjustment = 62, /// /// Enum ReserveAdjustmentPending for value: reserveAdjustmentPending /// [EnumMember(Value = "reserveAdjustmentPending")] - ReserveAdjustmentPending = 62, + ReserveAdjustmentPending = 63, /// /// Enum Returned for value: returned /// [EnumMember(Value = "returned")] - Returned = 63, + Returned = 64, /// /// Enum SecondChargeback for value: secondChargeback /// [EnumMember(Value = "secondChargeback")] - SecondChargeback = 64, + SecondChargeback = 65, /// /// Enum SecondChargebackPending for value: secondChargebackPending /// [EnumMember(Value = "secondChargebackPending")] - SecondChargebackPending = 65, + SecondChargebackPending = 66, /// /// Enum Undefined for value: undefined /// [EnumMember(Value = "undefined")] - Undefined = 66 + Undefined = 67 } diff --git a/Adyen/Model/TransferWebhooks/TransferReview.cs b/Adyen/Model/TransferWebhooks/TransferReview.cs new file mode 100644 index 000000000..22bf53418 --- /dev/null +++ b/Adyen/Model/TransferWebhooks/TransferReview.cs @@ -0,0 +1,182 @@ +/* +* Transfer webhooks +* +* +* The version of the OpenAPI document: 4 +* +* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +* https://openapi-generator.tech +* Do not edit the class manually. +*/ + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter; + +namespace Adyen.Model.TransferWebhooks +{ + /// + /// TransferReview + /// + [DataContract(Name = "TransferReview")] + public partial class TransferReview : IEquatable, IValidatableObject + { + /// + /// Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **completed**, **notApplicable**. + /// + /// Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **completed**, **notApplicable**. + [JsonConverter(typeof(StringEnumConverter))] + public enum ScaOnApprovalEnum + { + /// + /// Enum Completed for value: completed + /// + [EnumMember(Value = "completed")] + Completed = 1, + + /// + /// Enum NotApplicable for value: notApplicable + /// + [EnumMember(Value = "notApplicable")] + NotApplicable = 2, + + /// + /// Enum Required for value: required + /// + [EnumMember(Value = "required")] + Required = 3 + + } + + + /// + /// Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **completed**, **notApplicable**. + /// + /// Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **completed**, **notApplicable**. + [DataMember(Name = "scaOnApproval", EmitDefaultValue = false)] + public ScaOnApprovalEnum? ScaOnApproval { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Shows the number of approvals completed for the transfer.. + /// Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer.. + /// Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **completed**, **notApplicable**.. + public TransferReview(int? numberOfApprovalsCompleted = default(int?), int? numberOfApprovalsRequired = default(int?), ScaOnApprovalEnum? scaOnApproval = default(ScaOnApprovalEnum?)) + { + this.NumberOfApprovalsCompleted = numberOfApprovalsCompleted; + this.NumberOfApprovalsRequired = numberOfApprovalsRequired; + this.ScaOnApproval = scaOnApproval; + } + + /// + /// Shows the number of approvals completed for the transfer. + /// + /// Shows the number of approvals completed for the transfer. + [DataMember(Name = "numberOfApprovalsCompleted", EmitDefaultValue = false)] + public int? NumberOfApprovalsCompleted { get; set; } + + /// + /// Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + /// + /// Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + [DataMember(Name = "numberOfApprovalsRequired", EmitDefaultValue = false)] + public int? NumberOfApprovalsRequired { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TransferReview {\n"); + sb.Append(" NumberOfApprovalsCompleted: ").Append(NumberOfApprovalsCompleted).Append("\n"); + sb.Append(" NumberOfApprovalsRequired: ").Append(NumberOfApprovalsRequired).Append("\n"); + sb.Append(" ScaOnApproval: ").Append(ScaOnApproval).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TransferReview); + } + + /// + /// Returns true if TransferReview instances are equal + /// + /// Instance of TransferReview to be compared + /// Boolean + public bool Equals(TransferReview input) + { + if (input == null) + { + return false; + } + return + ( + this.NumberOfApprovalsCompleted == input.NumberOfApprovalsCompleted || + this.NumberOfApprovalsCompleted.Equals(input.NumberOfApprovalsCompleted) + ) && + ( + this.NumberOfApprovalsRequired == input.NumberOfApprovalsRequired || + this.NumberOfApprovalsRequired.Equals(input.NumberOfApprovalsRequired) + ) && + ( + this.ScaOnApproval == input.ScaOnApproval || + this.ScaOnApproval.Equals(input.ScaOnApproval) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.NumberOfApprovalsCompleted.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfApprovalsRequired.GetHashCode(); + hashCode = (hashCode * 59) + this.ScaOnApproval.GetHashCode(); + return hashCode; + } + } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Adyen/Model/Transfers/ApproveTransfersRequest.cs b/Adyen/Model/Transfers/ApproveTransfersRequest.cs new file mode 100644 index 000000000..c3633ccdf --- /dev/null +++ b/Adyen/Model/Transfers/ApproveTransfersRequest.cs @@ -0,0 +1,130 @@ +/* +* Transfers API +* +* +* The version of the OpenAPI document: 4 +* +* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +* https://openapi-generator.tech +* Do not edit the class manually. +*/ + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter; + +namespace Adyen.Model.Transfers +{ + /// + /// ApproveTransfersRequest + /// + [DataContract(Name = "ApproveTransfersRequest")] + public partial class ApproveTransfersRequest : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Contains the unique identifiers of the transfers that you want to approve.. + public ApproveTransfersRequest(List transferIds = default(List)) + { + this.TransferIds = transferIds; + } + + /// + /// Contains the unique identifiers of the transfers that you want to approve. + /// + /// Contains the unique identifiers of the transfers that you want to approve. + [DataMember(Name = "transferIds", EmitDefaultValue = false)] + public List TransferIds { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ApproveTransfersRequest {\n"); + sb.Append(" TransferIds: ").Append(TransferIds).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ApproveTransfersRequest); + } + + /// + /// Returns true if ApproveTransfersRequest instances are equal + /// + /// Instance of ApproveTransfersRequest to be compared + /// Boolean + public bool Equals(ApproveTransfersRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.TransferIds == input.TransferIds || + this.TransferIds != null && + input.TransferIds != null && + this.TransferIds.SequenceEqual(input.TransferIds) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TransferIds != null) + { + hashCode = (hashCode * 59) + this.TransferIds.GetHashCode(); + } + return hashCode; + } + } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Adyen/Model/Transfers/CancelTransfersRequest.cs b/Adyen/Model/Transfers/CancelTransfersRequest.cs new file mode 100644 index 000000000..cae57f40b --- /dev/null +++ b/Adyen/Model/Transfers/CancelTransfersRequest.cs @@ -0,0 +1,130 @@ +/* +* Transfers API +* +* +* The version of the OpenAPI document: 4 +* +* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +* https://openapi-generator.tech +* Do not edit the class manually. +*/ + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter; + +namespace Adyen.Model.Transfers +{ + /// + /// CancelTransfersRequest + /// + [DataContract(Name = "CancelTransfersRequest")] + public partial class CancelTransfersRequest : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Contains the unique identifiers of the transfers that you want to cancel.. + public CancelTransfersRequest(List transferIds = default(List)) + { + this.TransferIds = transferIds; + } + + /// + /// Contains the unique identifiers of the transfers that you want to cancel. + /// + /// Contains the unique identifiers of the transfers that you want to cancel. + [DataMember(Name = "transferIds", EmitDefaultValue = false)] + public List TransferIds { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CancelTransfersRequest {\n"); + sb.Append(" TransferIds: ").Append(TransferIds).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CancelTransfersRequest); + } + + /// + /// Returns true if CancelTransfersRequest instances are equal + /// + /// Instance of CancelTransfersRequest to be compared + /// Boolean + public bool Equals(CancelTransfersRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.TransferIds == input.TransferIds || + this.TransferIds != null && + input.TransferIds != null && + this.TransferIds.SequenceEqual(input.TransferIds) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TransferIds != null) + { + hashCode = (hashCode * 59) + this.TransferIds.GetHashCode(); + } + return hashCode; + } + } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Adyen/Model/Transfers/DirectDebitInformation.cs b/Adyen/Model/Transfers/DirectDebitInformation.cs new file mode 100644 index 000000000..a7d798f11 --- /dev/null +++ b/Adyen/Model/Transfers/DirectDebitInformation.cs @@ -0,0 +1,186 @@ +/* +* Transfers API +* +* +* The version of the OpenAPI document: 4 +* +* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +* https://openapi-generator.tech +* Do not edit the class manually. +*/ + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter; + +namespace Adyen.Model.Transfers +{ + /// + /// DirectDebitInformation + /// + [DataContract(Name = "DirectDebitInformation")] + public partial class DirectDebitInformation : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format.. + /// The date when the funds are deducted from your user's balance account.. + /// Your unique identifier for the direct debit mandate.. + /// Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**.. + public DirectDebitInformation(DateTime dateOfSignature = default(DateTime), DateTime dueDate = default(DateTime), string mandateId = default(string), string sequenceType = default(string)) + { + this.DateOfSignature = dateOfSignature; + this.DueDate = dueDate; + this.MandateId = mandateId; + this.SequenceType = sequenceType; + } + + /// + /// The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + /// + /// The date when the direct debit mandate was accepted by your user, in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. + [DataMember(Name = "dateOfSignature", EmitDefaultValue = false)] + public DateTime DateOfSignature { get; set; } + + /// + /// The date when the funds are deducted from your user's balance account. + /// + /// The date when the funds are deducted from your user's balance account. + [DataMember(Name = "dueDate", EmitDefaultValue = false)] + public DateTime DueDate { get; set; } + + /// + /// Your unique identifier for the direct debit mandate. + /// + /// Your unique identifier for the direct debit mandate. + [DataMember(Name = "mandateId", EmitDefaultValue = false)] + public string MandateId { get; set; } + + /// + /// Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. + /// + /// Identifies the direct debit transfer's type. Possible values: **OneOff**, **First**, **Recurring**, **Final**. + [DataMember(Name = "sequenceType", EmitDefaultValue = false)] + public string SequenceType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class DirectDebitInformation {\n"); + sb.Append(" DateOfSignature: ").Append(DateOfSignature).Append("\n"); + sb.Append(" DueDate: ").Append(DueDate).Append("\n"); + sb.Append(" MandateId: ").Append(MandateId).Append("\n"); + sb.Append(" SequenceType: ").Append(SequenceType).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DirectDebitInformation); + } + + /// + /// Returns true if DirectDebitInformation instances are equal + /// + /// Instance of DirectDebitInformation to be compared + /// Boolean + public bool Equals(DirectDebitInformation input) + { + if (input == null) + { + return false; + } + return + ( + this.DateOfSignature == input.DateOfSignature || + (this.DateOfSignature != null && + this.DateOfSignature.Equals(input.DateOfSignature)) + ) && + ( + this.DueDate == input.DueDate || + (this.DueDate != null && + this.DueDate.Equals(input.DueDate)) + ) && + ( + this.MandateId == input.MandateId || + (this.MandateId != null && + this.MandateId.Equals(input.MandateId)) + ) && + ( + this.SequenceType == input.SequenceType || + (this.SequenceType != null && + this.SequenceType.Equals(input.SequenceType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DateOfSignature != null) + { + hashCode = (hashCode * 59) + this.DateOfSignature.GetHashCode(); + } + if (this.DueDate != null) + { + hashCode = (hashCode * 59) + this.DueDate.GetHashCode(); + } + if (this.MandateId != null) + { + hashCode = (hashCode * 59) + this.MandateId.GetHashCode(); + } + if (this.SequenceType != null) + { + hashCode = (hashCode * 59) + this.SequenceType.GetHashCode(); + } + return hashCode; + } + } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Adyen/Model/Transfers/Modification.cs b/Adyen/Model/Transfers/Modification.cs index 7fcf49fb8..58a214391 100644 --- a/Adyen/Model/Transfers/Modification.cs +++ b/Adyen/Model/Transfers/Modification.cs @@ -351,89 +351,95 @@ public enum StatusEnum [EnumMember(Value = "pendingApproval")] PendingApproval = 52, + /// + /// Enum PendingExecution for value: pendingExecution + /// + [EnumMember(Value = "pendingExecution")] + PendingExecution = 53, + /// /// Enum Received for value: received /// [EnumMember(Value = "received")] - Received = 53, + Received = 54, /// /// Enum RefundPending for value: refundPending /// [EnumMember(Value = "refundPending")] - RefundPending = 54, + RefundPending = 55, /// /// Enum RefundReversalPending for value: refundReversalPending /// [EnumMember(Value = "refundReversalPending")] - RefundReversalPending = 55, + RefundReversalPending = 56, /// /// Enum RefundReversed for value: refundReversed /// [EnumMember(Value = "refundReversed")] - RefundReversed = 56, + RefundReversed = 57, /// /// Enum Refunded for value: refunded /// [EnumMember(Value = "refunded")] - Refunded = 57, + Refunded = 58, /// /// Enum RefundedExternally for value: refundedExternally /// [EnumMember(Value = "refundedExternally")] - RefundedExternally = 58, + RefundedExternally = 59, /// /// Enum Refused for value: refused /// [EnumMember(Value = "refused")] - Refused = 59, + Refused = 60, /// /// Enum Rejected for value: rejected /// [EnumMember(Value = "rejected")] - Rejected = 60, + Rejected = 61, /// /// Enum ReserveAdjustment for value: reserveAdjustment /// [EnumMember(Value = "reserveAdjustment")] - ReserveAdjustment = 61, + ReserveAdjustment = 62, /// /// Enum ReserveAdjustmentPending for value: reserveAdjustmentPending /// [EnumMember(Value = "reserveAdjustmentPending")] - ReserveAdjustmentPending = 62, + ReserveAdjustmentPending = 63, /// /// Enum Returned for value: returned /// [EnumMember(Value = "returned")] - Returned = 63, + Returned = 64, /// /// Enum SecondChargeback for value: secondChargeback /// [EnumMember(Value = "secondChargeback")] - SecondChargeback = 64, + SecondChargeback = 65, /// /// Enum SecondChargebackPending for value: secondChargebackPending /// [EnumMember(Value = "secondChargebackPending")] - SecondChargebackPending = 65, + SecondChargebackPending = 66, /// /// Enum Undefined for value: undefined /// [EnumMember(Value = "undefined")] - Undefined = 66 + Undefined = 67 } diff --git a/Adyen/Model/Transfers/Transfer.cs b/Adyen/Model/Transfers/Transfer.cs index f471a115f..958660e97 100644 --- a/Adyen/Model/Transfers/Transfer.cs +++ b/Adyen/Model/Transfers/Transfer.cs @@ -113,113 +113,137 @@ public enum DirectionEnum [JsonConverter(typeof(StringEnumConverter))] public enum ReasonEnum { + /// + /// Enum AccountHierarchyNotActive for value: accountHierarchyNotActive + /// + [EnumMember(Value = "accountHierarchyNotActive")] + AccountHierarchyNotActive = 1, + /// /// Enum AmountLimitExceeded for value: amountLimitExceeded /// [EnumMember(Value = "amountLimitExceeded")] - AmountLimitExceeded = 1, + AmountLimitExceeded = 2, /// /// Enum Approved for value: approved /// [EnumMember(Value = "approved")] - Approved = 2, + Approved = 3, /// /// Enum BalanceAccountTemporarilyBlockedByTransactionRule for value: balanceAccountTemporarilyBlockedByTransactionRule /// [EnumMember(Value = "balanceAccountTemporarilyBlockedByTransactionRule")] - BalanceAccountTemporarilyBlockedByTransactionRule = 3, + BalanceAccountTemporarilyBlockedByTransactionRule = 4, /// /// Enum CounterpartyAccountBlocked for value: counterpartyAccountBlocked /// [EnumMember(Value = "counterpartyAccountBlocked")] - CounterpartyAccountBlocked = 4, + CounterpartyAccountBlocked = 5, /// /// Enum CounterpartyAccountClosed for value: counterpartyAccountClosed /// [EnumMember(Value = "counterpartyAccountClosed")] - CounterpartyAccountClosed = 5, + CounterpartyAccountClosed = 6, /// /// Enum CounterpartyAccountNotFound for value: counterpartyAccountNotFound /// [EnumMember(Value = "counterpartyAccountNotFound")] - CounterpartyAccountNotFound = 6, + CounterpartyAccountNotFound = 7, /// /// Enum CounterpartyAddressRequired for value: counterpartyAddressRequired /// [EnumMember(Value = "counterpartyAddressRequired")] - CounterpartyAddressRequired = 7, + CounterpartyAddressRequired = 8, /// /// Enum CounterpartyBankTimedOut for value: counterpartyBankTimedOut /// [EnumMember(Value = "counterpartyBankTimedOut")] - CounterpartyBankTimedOut = 8, + CounterpartyBankTimedOut = 9, /// /// Enum CounterpartyBankUnavailable for value: counterpartyBankUnavailable /// [EnumMember(Value = "counterpartyBankUnavailable")] - CounterpartyBankUnavailable = 9, + CounterpartyBankUnavailable = 10, /// /// Enum Declined for value: declined /// [EnumMember(Value = "declined")] - Declined = 10, + Declined = 11, /// /// Enum DeclinedByTransactionRule for value: declinedByTransactionRule /// [EnumMember(Value = "declinedByTransactionRule")] - DeclinedByTransactionRule = 11, + DeclinedByTransactionRule = 12, + + /// + /// Enum DirectDebitNotSupported for value: directDebitNotSupported + /// + [EnumMember(Value = "directDebitNotSupported")] + DirectDebitNotSupported = 13, /// /// Enum Error for value: error /// [EnumMember(Value = "error")] - Error = 12, + Error = 14, /// /// Enum NotEnoughBalance for value: notEnoughBalance /// [EnumMember(Value = "notEnoughBalance")] - NotEnoughBalance = 13, + NotEnoughBalance = 15, /// /// Enum PendingApproval for value: pendingApproval /// [EnumMember(Value = "pendingApproval")] - PendingApproval = 14, + PendingApproval = 16, + + /// + /// Enum PendingExecution for value: pendingExecution + /// + [EnumMember(Value = "pendingExecution")] + PendingExecution = 17, /// /// Enum RefusedByCounterpartyBank for value: refusedByCounterpartyBank /// [EnumMember(Value = "refusedByCounterpartyBank")] - RefusedByCounterpartyBank = 15, + RefusedByCounterpartyBank = 18, /// /// Enum RouteNotFound for value: routeNotFound /// [EnumMember(Value = "routeNotFound")] - RouteNotFound = 16, + RouteNotFound = 19, /// /// Enum ScaFailed for value: scaFailed /// [EnumMember(Value = "scaFailed")] - ScaFailed = 17, + ScaFailed = 20, + + /// + /// Enum TransferInstrumentDoesNotExist for value: transferInstrumentDoesNotExist + /// + [EnumMember(Value = "transferInstrumentDoesNotExist")] + TransferInstrumentDoesNotExist = 21, /// /// Enum Unknown for value: unknown /// [EnumMember(Value = "unknown")] - Unknown = 18 + Unknown = 22 } @@ -549,89 +573,95 @@ public enum StatusEnum [EnumMember(Value = "pendingApproval")] PendingApproval = 52, + /// + /// Enum PendingExecution for value: pendingExecution + /// + [EnumMember(Value = "pendingExecution")] + PendingExecution = 53, + /// /// Enum Received for value: received /// [EnumMember(Value = "received")] - Received = 53, + Received = 54, /// /// Enum RefundPending for value: refundPending /// [EnumMember(Value = "refundPending")] - RefundPending = 54, + RefundPending = 55, /// /// Enum RefundReversalPending for value: refundReversalPending /// [EnumMember(Value = "refundReversalPending")] - RefundReversalPending = 55, + RefundReversalPending = 56, /// /// Enum RefundReversed for value: refundReversed /// [EnumMember(Value = "refundReversed")] - RefundReversed = 56, + RefundReversed = 57, /// /// Enum Refunded for value: refunded /// [EnumMember(Value = "refunded")] - Refunded = 57, + Refunded = 58, /// /// Enum RefundedExternally for value: refundedExternally /// [EnumMember(Value = "refundedExternally")] - RefundedExternally = 58, + RefundedExternally = 59, /// /// Enum Refused for value: refused /// [EnumMember(Value = "refused")] - Refused = 59, + Refused = 60, /// /// Enum Rejected for value: rejected /// [EnumMember(Value = "rejected")] - Rejected = 60, + Rejected = 61, /// /// Enum ReserveAdjustment for value: reserveAdjustment /// [EnumMember(Value = "reserveAdjustment")] - ReserveAdjustment = 61, + ReserveAdjustment = 62, /// /// Enum ReserveAdjustmentPending for value: reserveAdjustmentPending /// [EnumMember(Value = "reserveAdjustmentPending")] - ReserveAdjustmentPending = 62, + ReserveAdjustmentPending = 63, /// /// Enum Returned for value: returned /// [EnumMember(Value = "returned")] - Returned = 63, + Returned = 64, /// /// Enum SecondChargeback for value: secondChargeback /// [EnumMember(Value = "secondChargeback")] - SecondChargeback = 64, + SecondChargeback = 65, /// /// Enum SecondChargebackPending for value: secondChargebackPending /// [EnumMember(Value = "secondChargebackPending")] - SecondChargebackPending = 65, + SecondChargebackPending = 66, /// /// Enum Undefined for value: undefined /// [EnumMember(Value = "undefined")] - Undefined = 66 + Undefined = 67 } @@ -902,15 +932,17 @@ protected Transfer() { } /// counterparty (required). /// The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.. /// Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?**. + /// directDebitInformation. /// The direction of the transfer. Possible values: **incoming**, **outgoing**.. /// The ID of the resource.. /// paymentInstrument. /// Additional information about the status of the transfer.. /// Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference.. /// A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others.. + /// review. /// The result of the transfer. For example, **authorised**, **refused**, or **error**. (required). /// The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**.. - public Transfer(ResourceReference accountHolder = default(ResourceReference), Amount amount = default(Amount), ResourceReference balanceAccount = default(ResourceReference), CategoryEnum category = default(CategoryEnum), TransferCategoryData categoryData = default(TransferCategoryData), CounterpartyV3 counterparty = default(CounterpartyV3), DateTime creationDate = default(DateTime), string description = default(string), DirectionEnum? direction = default(DirectionEnum?), string id = default(string), PaymentInstrument paymentInstrument = default(PaymentInstrument), ReasonEnum? reason = default(ReasonEnum?), string reference = default(string), string referenceForBeneficiary = default(string), StatusEnum status = default(StatusEnum), TypeEnum? type = default(TypeEnum?)) + public Transfer(ResourceReference accountHolder = default(ResourceReference), Amount amount = default(Amount), ResourceReference balanceAccount = default(ResourceReference), CategoryEnum category = default(CategoryEnum), TransferCategoryData categoryData = default(TransferCategoryData), CounterpartyV3 counterparty = default(CounterpartyV3), DateTime creationDate = default(DateTime), string description = default(string), DirectDebitInformation directDebitInformation = default(DirectDebitInformation), DirectionEnum? direction = default(DirectionEnum?), string id = default(string), PaymentInstrument paymentInstrument = default(PaymentInstrument), ReasonEnum? reason = default(ReasonEnum?), string reference = default(string), string referenceForBeneficiary = default(string), TransferReview review = default(TransferReview), StatusEnum status = default(StatusEnum), TypeEnum? type = default(TypeEnum?)) { this.Amount = amount; this.Category = category; @@ -921,12 +953,14 @@ protected Transfer() { } this.CategoryData = categoryData; this.CreationDate = creationDate; this.Description = description; + this.DirectDebitInformation = directDebitInformation; this.Direction = direction; this.Id = id; this.PaymentInstrument = paymentInstrument; this.Reason = reason; this.Reference = reference; this.ReferenceForBeneficiary = referenceForBeneficiary; + this.Review = review; this.Type = type; } @@ -974,6 +1008,12 @@ protected Transfer() { } [DataMember(Name = "description", EmitDefaultValue = false)] public string Description { get; set; } + /// + /// Gets or Sets DirectDebitInformation + /// + [DataMember(Name = "directDebitInformation", EmitDefaultValue = false)] + public DirectDebitInformation DirectDebitInformation { get; set; } + /// /// The ID of the resource. /// @@ -1001,6 +1041,12 @@ protected Transfer() { } [DataMember(Name = "referenceForBeneficiary", EmitDefaultValue = false)] public string ReferenceForBeneficiary { get; set; } + /// + /// Gets or Sets Review + /// + [DataMember(Name = "review", EmitDefaultValue = false)] + public TransferReview Review { get; set; } + /// /// Returns the string presentation of the object /// @@ -1017,12 +1063,14 @@ public override string ToString() sb.Append(" Counterparty: ").Append(Counterparty).Append("\n"); sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" DirectDebitInformation: ").Append(DirectDebitInformation).Append("\n"); sb.Append(" Direction: ").Append(Direction).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" PaymentInstrument: ").Append(PaymentInstrument).Append("\n"); sb.Append(" Reason: ").Append(Reason).Append("\n"); sb.Append(" Reference: ").Append(Reference).Append("\n"); sb.Append(" ReferenceForBeneficiary: ").Append(ReferenceForBeneficiary).Append("\n"); + sb.Append(" Review: ").Append(Review).Append("\n"); sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append("}\n"); @@ -1099,6 +1147,11 @@ public bool Equals(Transfer input) (this.Description != null && this.Description.Equals(input.Description)) ) && + ( + this.DirectDebitInformation == input.DirectDebitInformation || + (this.DirectDebitInformation != null && + this.DirectDebitInformation.Equals(input.DirectDebitInformation)) + ) && ( this.Direction == input.Direction || this.Direction.Equals(input.Direction) @@ -1127,6 +1180,11 @@ public bool Equals(Transfer input) (this.ReferenceForBeneficiary != null && this.ReferenceForBeneficiary.Equals(input.ReferenceForBeneficiary)) ) && + ( + this.Review == input.Review || + (this.Review != null && + this.Review.Equals(input.Review)) + ) && ( this.Status == input.Status || this.Status.Equals(input.Status) @@ -1175,6 +1233,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Description.GetHashCode(); } + if (this.DirectDebitInformation != null) + { + hashCode = (hashCode * 59) + this.DirectDebitInformation.GetHashCode(); + } hashCode = (hashCode * 59) + this.Direction.GetHashCode(); if (this.Id != null) { @@ -1193,6 +1255,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ReferenceForBeneficiary.GetHashCode(); } + if (this.Review != null) + { + hashCode = (hashCode * 59) + this.Review.GetHashCode(); + } hashCode = (hashCode * 59) + this.Status.GetHashCode(); hashCode = (hashCode * 59) + this.Type.GetHashCode(); return hashCode; diff --git a/Adyen/Model/Transfers/TransferData.cs b/Adyen/Model/Transfers/TransferData.cs index 0aacc9757..879ade000 100644 --- a/Adyen/Model/Transfers/TransferData.cs +++ b/Adyen/Model/Transfers/TransferData.cs @@ -113,113 +113,137 @@ public enum DirectionEnum [JsonConverter(typeof(StringEnumConverter))] public enum ReasonEnum { + /// + /// Enum AccountHierarchyNotActive for value: accountHierarchyNotActive + /// + [EnumMember(Value = "accountHierarchyNotActive")] + AccountHierarchyNotActive = 1, + /// /// Enum AmountLimitExceeded for value: amountLimitExceeded /// [EnumMember(Value = "amountLimitExceeded")] - AmountLimitExceeded = 1, + AmountLimitExceeded = 2, /// /// Enum Approved for value: approved /// [EnumMember(Value = "approved")] - Approved = 2, + Approved = 3, /// /// Enum BalanceAccountTemporarilyBlockedByTransactionRule for value: balanceAccountTemporarilyBlockedByTransactionRule /// [EnumMember(Value = "balanceAccountTemporarilyBlockedByTransactionRule")] - BalanceAccountTemporarilyBlockedByTransactionRule = 3, + BalanceAccountTemporarilyBlockedByTransactionRule = 4, /// /// Enum CounterpartyAccountBlocked for value: counterpartyAccountBlocked /// [EnumMember(Value = "counterpartyAccountBlocked")] - CounterpartyAccountBlocked = 4, + CounterpartyAccountBlocked = 5, /// /// Enum CounterpartyAccountClosed for value: counterpartyAccountClosed /// [EnumMember(Value = "counterpartyAccountClosed")] - CounterpartyAccountClosed = 5, + CounterpartyAccountClosed = 6, /// /// Enum CounterpartyAccountNotFound for value: counterpartyAccountNotFound /// [EnumMember(Value = "counterpartyAccountNotFound")] - CounterpartyAccountNotFound = 6, + CounterpartyAccountNotFound = 7, /// /// Enum CounterpartyAddressRequired for value: counterpartyAddressRequired /// [EnumMember(Value = "counterpartyAddressRequired")] - CounterpartyAddressRequired = 7, + CounterpartyAddressRequired = 8, /// /// Enum CounterpartyBankTimedOut for value: counterpartyBankTimedOut /// [EnumMember(Value = "counterpartyBankTimedOut")] - CounterpartyBankTimedOut = 8, + CounterpartyBankTimedOut = 9, /// /// Enum CounterpartyBankUnavailable for value: counterpartyBankUnavailable /// [EnumMember(Value = "counterpartyBankUnavailable")] - CounterpartyBankUnavailable = 9, + CounterpartyBankUnavailable = 10, /// /// Enum Declined for value: declined /// [EnumMember(Value = "declined")] - Declined = 10, + Declined = 11, /// /// Enum DeclinedByTransactionRule for value: declinedByTransactionRule /// [EnumMember(Value = "declinedByTransactionRule")] - DeclinedByTransactionRule = 11, + DeclinedByTransactionRule = 12, + + /// + /// Enum DirectDebitNotSupported for value: directDebitNotSupported + /// + [EnumMember(Value = "directDebitNotSupported")] + DirectDebitNotSupported = 13, /// /// Enum Error for value: error /// [EnumMember(Value = "error")] - Error = 12, + Error = 14, /// /// Enum NotEnoughBalance for value: notEnoughBalance /// [EnumMember(Value = "notEnoughBalance")] - NotEnoughBalance = 13, + NotEnoughBalance = 15, /// /// Enum PendingApproval for value: pendingApproval /// [EnumMember(Value = "pendingApproval")] - PendingApproval = 14, + PendingApproval = 16, + + /// + /// Enum PendingExecution for value: pendingExecution + /// + [EnumMember(Value = "pendingExecution")] + PendingExecution = 17, /// /// Enum RefusedByCounterpartyBank for value: refusedByCounterpartyBank /// [EnumMember(Value = "refusedByCounterpartyBank")] - RefusedByCounterpartyBank = 15, + RefusedByCounterpartyBank = 18, /// /// Enum RouteNotFound for value: routeNotFound /// [EnumMember(Value = "routeNotFound")] - RouteNotFound = 16, + RouteNotFound = 19, /// /// Enum ScaFailed for value: scaFailed /// [EnumMember(Value = "scaFailed")] - ScaFailed = 17, + ScaFailed = 20, + + /// + /// Enum TransferInstrumentDoesNotExist for value: transferInstrumentDoesNotExist + /// + [EnumMember(Value = "transferInstrumentDoesNotExist")] + TransferInstrumentDoesNotExist = 21, /// /// Enum Unknown for value: unknown /// [EnumMember(Value = "unknown")] - Unknown = 18 + Unknown = 22 } @@ -549,89 +573,95 @@ public enum StatusEnum [EnumMember(Value = "pendingApproval")] PendingApproval = 52, + /// + /// Enum PendingExecution for value: pendingExecution + /// + [EnumMember(Value = "pendingExecution")] + PendingExecution = 53, + /// /// Enum Received for value: received /// [EnumMember(Value = "received")] - Received = 53, + Received = 54, /// /// Enum RefundPending for value: refundPending /// [EnumMember(Value = "refundPending")] - RefundPending = 54, + RefundPending = 55, /// /// Enum RefundReversalPending for value: refundReversalPending /// [EnumMember(Value = "refundReversalPending")] - RefundReversalPending = 55, + RefundReversalPending = 56, /// /// Enum RefundReversed for value: refundReversed /// [EnumMember(Value = "refundReversed")] - RefundReversed = 56, + RefundReversed = 57, /// /// Enum Refunded for value: refunded /// [EnumMember(Value = "refunded")] - Refunded = 57, + Refunded = 58, /// /// Enum RefundedExternally for value: refundedExternally /// [EnumMember(Value = "refundedExternally")] - RefundedExternally = 58, + RefundedExternally = 59, /// /// Enum Refused for value: refused /// [EnumMember(Value = "refused")] - Refused = 59, + Refused = 60, /// /// Enum Rejected for value: rejected /// [EnumMember(Value = "rejected")] - Rejected = 60, + Rejected = 61, /// /// Enum ReserveAdjustment for value: reserveAdjustment /// [EnumMember(Value = "reserveAdjustment")] - ReserveAdjustment = 61, + ReserveAdjustment = 62, /// /// Enum ReserveAdjustmentPending for value: reserveAdjustmentPending /// [EnumMember(Value = "reserveAdjustmentPending")] - ReserveAdjustmentPending = 62, + ReserveAdjustmentPending = 63, /// /// Enum Returned for value: returned /// [EnumMember(Value = "returned")] - Returned = 63, + Returned = 64, /// /// Enum SecondChargeback for value: secondChargeback /// [EnumMember(Value = "secondChargeback")] - SecondChargeback = 64, + SecondChargeback = 65, /// /// Enum SecondChargebackPending for value: secondChargebackPending /// [EnumMember(Value = "secondChargebackPending")] - SecondChargebackPending = 65, + SecondChargebackPending = 66, /// /// Enum Undefined for value: undefined /// [EnumMember(Value = "undefined")] - Undefined = 66 + Undefined = 67 } @@ -904,6 +934,7 @@ protected TransferData() { } /// counterparty. /// The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.. /// Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?**. + /// directDebitInformation. /// The direction of the transfer. Possible values: **incoming**, **outgoing**.. /// The list of events leading up to the current status of the transfer.. /// The ID of the resource.. @@ -911,12 +942,13 @@ protected TransferData() { } /// Additional information about the status of the transfer.. /// Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference.. /// A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others.. + /// review. /// The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order.. /// The result of the transfer. For example, **authorised**, **refused**, or **error**. (required). /// tracking. /// transactionRulesResult. /// The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**.. - public TransferData(ResourceReference accountHolder = default(ResourceReference), Amount amount = default(Amount), ResourceReference balanceAccount = default(ResourceReference), string balancePlatform = default(string), List balances = default(List), CategoryEnum category = default(CategoryEnum), TransferCategoryData categoryData = default(TransferCategoryData), TransferNotificationCounterParty counterparty = default(TransferNotificationCounterParty), DateTime creationDate = default(DateTime), string description = default(string), DirectionEnum? direction = default(DirectionEnum?), List events = default(List), string id = default(string), PaymentInstrument paymentInstrument = default(PaymentInstrument), ReasonEnum? reason = default(ReasonEnum?), string reference = default(string), string referenceForBeneficiary = default(string), int? sequenceNumber = default(int?), StatusEnum status = default(StatusEnum), TransferDataTracking tracking = default(TransferDataTracking), TransactionRulesResult transactionRulesResult = default(TransactionRulesResult), TypeEnum? type = default(TypeEnum?)) + public TransferData(ResourceReference accountHolder = default(ResourceReference), Amount amount = default(Amount), ResourceReference balanceAccount = default(ResourceReference), string balancePlatform = default(string), List balances = default(List), CategoryEnum category = default(CategoryEnum), TransferCategoryData categoryData = default(TransferCategoryData), TransferNotificationCounterParty counterparty = default(TransferNotificationCounterParty), DateTime creationDate = default(DateTime), string description = default(string), DirectDebitInformation directDebitInformation = default(DirectDebitInformation), DirectionEnum? direction = default(DirectionEnum?), List events = default(List), string id = default(string), PaymentInstrument paymentInstrument = default(PaymentInstrument), ReasonEnum? reason = default(ReasonEnum?), string reference = default(string), string referenceForBeneficiary = default(string), TransferReview review = default(TransferReview), int? sequenceNumber = default(int?), StatusEnum status = default(StatusEnum), TransferDataTracking tracking = default(TransferDataTracking), TransactionRulesResult transactionRulesResult = default(TransactionRulesResult), TypeEnum? type = default(TypeEnum?)) { this.Amount = amount; this.Category = category; @@ -929,6 +961,7 @@ protected TransferData() { } this.Counterparty = counterparty; this.CreationDate = creationDate; this.Description = description; + this.DirectDebitInformation = directDebitInformation; this.Direction = direction; this.Events = events; this.Id = id; @@ -936,6 +969,7 @@ protected TransferData() { } this.Reason = reason; this.Reference = reference; this.ReferenceForBeneficiary = referenceForBeneficiary; + this.Review = review; this.SequenceNumber = sequenceNumber; this.Tracking = tracking; this.TransactionRulesResult = transactionRulesResult; @@ -1000,6 +1034,12 @@ protected TransferData() { } [DataMember(Name = "description", EmitDefaultValue = false)] public string Description { get; set; } + /// + /// Gets or Sets DirectDebitInformation + /// + [DataMember(Name = "directDebitInformation", EmitDefaultValue = false)] + public DirectDebitInformation DirectDebitInformation { get; set; } + /// /// The list of events leading up to the current status of the transfer. /// @@ -1034,6 +1074,12 @@ protected TransferData() { } [DataMember(Name = "referenceForBeneficiary", EmitDefaultValue = false)] public string ReferenceForBeneficiary { get; set; } + /// + /// Gets or Sets Review + /// + [DataMember(Name = "review", EmitDefaultValue = false)] + public TransferReview Review { get; set; } + /// /// The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. /// @@ -1071,6 +1117,7 @@ public override string ToString() sb.Append(" Counterparty: ").Append(Counterparty).Append("\n"); sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" DirectDebitInformation: ").Append(DirectDebitInformation).Append("\n"); sb.Append(" Direction: ").Append(Direction).Append("\n"); sb.Append(" Events: ").Append(Events).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); @@ -1078,6 +1125,7 @@ public override string ToString() sb.Append(" Reason: ").Append(Reason).Append("\n"); sb.Append(" Reference: ").Append(Reference).Append("\n"); sb.Append(" ReferenceForBeneficiary: ").Append(ReferenceForBeneficiary).Append("\n"); + sb.Append(" Review: ").Append(Review).Append("\n"); sb.Append(" SequenceNumber: ").Append(SequenceNumber).Append("\n"); sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" Tracking: ").Append(Tracking).Append("\n"); @@ -1168,6 +1216,11 @@ public bool Equals(TransferData input) (this.Description != null && this.Description.Equals(input.Description)) ) && + ( + this.DirectDebitInformation == input.DirectDebitInformation || + (this.DirectDebitInformation != null && + this.DirectDebitInformation.Equals(input.DirectDebitInformation)) + ) && ( this.Direction == input.Direction || this.Direction.Equals(input.Direction) @@ -1202,6 +1255,11 @@ public bool Equals(TransferData input) (this.ReferenceForBeneficiary != null && this.ReferenceForBeneficiary.Equals(input.ReferenceForBeneficiary)) ) && + ( + this.Review == input.Review || + (this.Review != null && + this.Review.Equals(input.Review)) + ) && ( this.SequenceNumber == input.SequenceNumber || this.SequenceNumber.Equals(input.SequenceNumber) @@ -1272,6 +1330,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Description.GetHashCode(); } + if (this.DirectDebitInformation != null) + { + hashCode = (hashCode * 59) + this.DirectDebitInformation.GetHashCode(); + } hashCode = (hashCode * 59) + this.Direction.GetHashCode(); if (this.Events != null) { @@ -1294,6 +1356,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ReferenceForBeneficiary.GetHashCode(); } + if (this.Review != null) + { + hashCode = (hashCode * 59) + this.Review.GetHashCode(); + } hashCode = (hashCode * 59) + this.SequenceNumber.GetHashCode(); hashCode = (hashCode * 59) + this.Status.GetHashCode(); if (this.Tracking != null) diff --git a/Adyen/Model/Transfers/TransferEvent.cs b/Adyen/Model/Transfers/TransferEvent.cs index ef3bef4ba..813ec7217 100644 --- a/Adyen/Model/Transfers/TransferEvent.cs +++ b/Adyen/Model/Transfers/TransferEvent.cs @@ -39,113 +39,137 @@ public partial class TransferEvent : IEquatable, IValidatableObje [JsonConverter(typeof(StringEnumConverter))] public enum ReasonEnum { + /// + /// Enum AccountHierarchyNotActive for value: accountHierarchyNotActive + /// + [EnumMember(Value = "accountHierarchyNotActive")] + AccountHierarchyNotActive = 1, + /// /// Enum AmountLimitExceeded for value: amountLimitExceeded /// [EnumMember(Value = "amountLimitExceeded")] - AmountLimitExceeded = 1, + AmountLimitExceeded = 2, /// /// Enum Approved for value: approved /// [EnumMember(Value = "approved")] - Approved = 2, + Approved = 3, /// /// Enum BalanceAccountTemporarilyBlockedByTransactionRule for value: balanceAccountTemporarilyBlockedByTransactionRule /// [EnumMember(Value = "balanceAccountTemporarilyBlockedByTransactionRule")] - BalanceAccountTemporarilyBlockedByTransactionRule = 3, + BalanceAccountTemporarilyBlockedByTransactionRule = 4, /// /// Enum CounterpartyAccountBlocked for value: counterpartyAccountBlocked /// [EnumMember(Value = "counterpartyAccountBlocked")] - CounterpartyAccountBlocked = 4, + CounterpartyAccountBlocked = 5, /// /// Enum CounterpartyAccountClosed for value: counterpartyAccountClosed /// [EnumMember(Value = "counterpartyAccountClosed")] - CounterpartyAccountClosed = 5, + CounterpartyAccountClosed = 6, /// /// Enum CounterpartyAccountNotFound for value: counterpartyAccountNotFound /// [EnumMember(Value = "counterpartyAccountNotFound")] - CounterpartyAccountNotFound = 6, + CounterpartyAccountNotFound = 7, /// /// Enum CounterpartyAddressRequired for value: counterpartyAddressRequired /// [EnumMember(Value = "counterpartyAddressRequired")] - CounterpartyAddressRequired = 7, + CounterpartyAddressRequired = 8, /// /// Enum CounterpartyBankTimedOut for value: counterpartyBankTimedOut /// [EnumMember(Value = "counterpartyBankTimedOut")] - CounterpartyBankTimedOut = 8, + CounterpartyBankTimedOut = 9, /// /// Enum CounterpartyBankUnavailable for value: counterpartyBankUnavailable /// [EnumMember(Value = "counterpartyBankUnavailable")] - CounterpartyBankUnavailable = 9, + CounterpartyBankUnavailable = 10, /// /// Enum Declined for value: declined /// [EnumMember(Value = "declined")] - Declined = 10, + Declined = 11, /// /// Enum DeclinedByTransactionRule for value: declinedByTransactionRule /// [EnumMember(Value = "declinedByTransactionRule")] - DeclinedByTransactionRule = 11, + DeclinedByTransactionRule = 12, + + /// + /// Enum DirectDebitNotSupported for value: directDebitNotSupported + /// + [EnumMember(Value = "directDebitNotSupported")] + DirectDebitNotSupported = 13, /// /// Enum Error for value: error /// [EnumMember(Value = "error")] - Error = 12, + Error = 14, /// /// Enum NotEnoughBalance for value: notEnoughBalance /// [EnumMember(Value = "notEnoughBalance")] - NotEnoughBalance = 13, + NotEnoughBalance = 15, /// /// Enum PendingApproval for value: pendingApproval /// [EnumMember(Value = "pendingApproval")] - PendingApproval = 14, + PendingApproval = 16, + + /// + /// Enum PendingExecution for value: pendingExecution + /// + [EnumMember(Value = "pendingExecution")] + PendingExecution = 17, /// /// Enum RefusedByCounterpartyBank for value: refusedByCounterpartyBank /// [EnumMember(Value = "refusedByCounterpartyBank")] - RefusedByCounterpartyBank = 15, + RefusedByCounterpartyBank = 18, /// /// Enum RouteNotFound for value: routeNotFound /// [EnumMember(Value = "routeNotFound")] - RouteNotFound = 16, + RouteNotFound = 19, /// /// Enum ScaFailed for value: scaFailed /// [EnumMember(Value = "scaFailed")] - ScaFailed = 17, + ScaFailed = 20, + + /// + /// Enum TransferInstrumentDoesNotExist for value: transferInstrumentDoesNotExist + /// + [EnumMember(Value = "transferInstrumentDoesNotExist")] + TransferInstrumentDoesNotExist = 21, /// /// Enum Unknown for value: unknown /// [EnumMember(Value = "unknown")] - Unknown = 18 + Unknown = 22 } @@ -475,89 +499,95 @@ public enum StatusEnum [EnumMember(Value = "pendingApproval")] PendingApproval = 52, + /// + /// Enum PendingExecution for value: pendingExecution + /// + [EnumMember(Value = "pendingExecution")] + PendingExecution = 53, + /// /// Enum Received for value: received /// [EnumMember(Value = "received")] - Received = 53, + Received = 54, /// /// Enum RefundPending for value: refundPending /// [EnumMember(Value = "refundPending")] - RefundPending = 54, + RefundPending = 55, /// /// Enum RefundReversalPending for value: refundReversalPending /// [EnumMember(Value = "refundReversalPending")] - RefundReversalPending = 55, + RefundReversalPending = 56, /// /// Enum RefundReversed for value: refundReversed /// [EnumMember(Value = "refundReversed")] - RefundReversed = 56, + RefundReversed = 57, /// /// Enum Refunded for value: refunded /// [EnumMember(Value = "refunded")] - Refunded = 57, + Refunded = 58, /// /// Enum RefundedExternally for value: refundedExternally /// [EnumMember(Value = "refundedExternally")] - RefundedExternally = 58, + RefundedExternally = 59, /// /// Enum Refused for value: refused /// [EnumMember(Value = "refused")] - Refused = 59, + Refused = 60, /// /// Enum Rejected for value: rejected /// [EnumMember(Value = "rejected")] - Rejected = 60, + Rejected = 61, /// /// Enum ReserveAdjustment for value: reserveAdjustment /// [EnumMember(Value = "reserveAdjustment")] - ReserveAdjustment = 61, + ReserveAdjustment = 62, /// /// Enum ReserveAdjustmentPending for value: reserveAdjustmentPending /// [EnumMember(Value = "reserveAdjustmentPending")] - ReserveAdjustmentPending = 62, + ReserveAdjustmentPending = 63, /// /// Enum Returned for value: returned /// [EnumMember(Value = "returned")] - Returned = 63, + Returned = 64, /// /// Enum SecondChargeback for value: secondChargeback /// [EnumMember(Value = "secondChargeback")] - SecondChargeback = 64, + SecondChargeback = 65, /// /// Enum SecondChargebackPending for value: secondChargebackPending /// [EnumMember(Value = "secondChargebackPending")] - SecondChargebackPending = 65, + SecondChargebackPending = 66, /// /// Enum Undefined for value: undefined /// [EnumMember(Value = "undefined")] - Undefined = 66 + Undefined = 67 } diff --git a/Adyen/Model/Transfers/TransferInfo.cs b/Adyen/Model/Transfers/TransferInfo.cs index 1526a9a9d..fdbb1160b 100644 --- a/Adyen/Model/Transfers/TransferInfo.cs +++ b/Adyen/Model/Transfers/TransferInfo.cs @@ -234,9 +234,10 @@ protected TransferInfo() { } /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).. /// Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference.. /// A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others.. + /// review. /// The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The `category` must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The `category` must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The `category` must be **internal**. . /// ultimateParty. - public TransferInfo(Amount amount = default(Amount), string balanceAccountId = default(string), CategoryEnum category = default(CategoryEnum), CounterpartyInfoV3 counterparty = default(CounterpartyInfoV3), string description = default(string), string paymentInstrumentId = default(string), List priorities = default(List), PriorityEnum? priority = default(PriorityEnum?), string reference = default(string), string referenceForBeneficiary = default(string), TypeEnum? type = default(TypeEnum?), UltimatePartyIdentification ultimateParty = default(UltimatePartyIdentification)) + public TransferInfo(Amount amount = default(Amount), string balanceAccountId = default(string), CategoryEnum category = default(CategoryEnum), CounterpartyInfoV3 counterparty = default(CounterpartyInfoV3), string description = default(string), string paymentInstrumentId = default(string), List priorities = default(List), PriorityEnum? priority = default(PriorityEnum?), string reference = default(string), string referenceForBeneficiary = default(string), TransferRequestReview review = default(TransferRequestReview), TypeEnum? type = default(TypeEnum?), UltimatePartyIdentification ultimateParty = default(UltimatePartyIdentification)) { this.Amount = amount; this.Category = category; @@ -248,6 +249,7 @@ protected TransferInfo() { } this.Priority = priority; this.Reference = reference; this.ReferenceForBeneficiary = referenceForBeneficiary; + this.Review = review; this.Type = type; this.UltimateParty = ultimateParty; } @@ -299,6 +301,12 @@ protected TransferInfo() { } [DataMember(Name = "referenceForBeneficiary", EmitDefaultValue = false)] public string ReferenceForBeneficiary { get; set; } + /// + /// Gets or Sets Review + /// + [DataMember(Name = "review", EmitDefaultValue = false)] + public TransferRequestReview Review { get; set; } + /// /// Gets or Sets UltimateParty /// @@ -323,6 +331,7 @@ public override string ToString() sb.Append(" Priority: ").Append(Priority).Append("\n"); sb.Append(" Reference: ").Append(Reference).Append("\n"); sb.Append(" ReferenceForBeneficiary: ").Append(ReferenceForBeneficiary).Append("\n"); + sb.Append(" Review: ").Append(Review).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" UltimateParty: ").Append(UltimateParty).Append("\n"); sb.Append("}\n"); @@ -407,6 +416,11 @@ public bool Equals(TransferInfo input) (this.ReferenceForBeneficiary != null && this.ReferenceForBeneficiary.Equals(input.ReferenceForBeneficiary)) ) && + ( + this.Review == input.Review || + (this.Review != null && + this.Review.Equals(input.Review)) + ) && ( this.Type == input.Type || this.Type.Equals(input.Type) @@ -458,6 +472,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ReferenceForBeneficiary.GetHashCode(); } + if (this.Review != null) + { + hashCode = (hashCode * 59) + this.Review.GetHashCode(); + } hashCode = (hashCode * 59) + this.Type.GetHashCode(); if (this.UltimateParty != null) { diff --git a/Adyen/Model/Transfers/TransferRequestReview.cs b/Adyen/Model/Transfers/TransferRequestReview.cs new file mode 100644 index 000000000..73f4d0505 --- /dev/null +++ b/Adyen/Model/Transfers/TransferRequestReview.cs @@ -0,0 +1,140 @@ +/* +* Transfers API +* +* +* The version of the OpenAPI document: 4 +* +* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +* https://openapi-generator.tech +* Do not edit the class manually. +*/ + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter; + +namespace Adyen.Model.Transfers +{ + /// + /// TransferRequestReview + /// + [DataContract(Name = "TransferRequestReview")] + public partial class TransferRequestReview : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Specifies the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer.. + /// Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) request. Only applies to transfers made with an Adyen [business account](https://docs.adyen.com/platforms/business-accounts).. + public TransferRequestReview(int? numberOfApprovalsRequired = default(int?), bool? scaOnApproval = default(bool?)) + { + this.NumberOfApprovalsRequired = numberOfApprovalsRequired; + this.ScaOnApproval = scaOnApproval; + } + + /// + /// Specifies the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + /// + /// Specifies the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + [DataMember(Name = "numberOfApprovalsRequired", EmitDefaultValue = false)] + public int? NumberOfApprovalsRequired { get; set; } + + /// + /// Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) request. Only applies to transfers made with an Adyen [business account](https://docs.adyen.com/platforms/business-accounts). + /// + /// Specifies whether you will initiate Strong Customer Authentication (SCA) in thePOST [/transfers/approve](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) request. Only applies to transfers made with an Adyen [business account](https://docs.adyen.com/platforms/business-accounts). + [DataMember(Name = "scaOnApproval", EmitDefaultValue = false)] + public bool? ScaOnApproval { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TransferRequestReview {\n"); + sb.Append(" NumberOfApprovalsRequired: ").Append(NumberOfApprovalsRequired).Append("\n"); + sb.Append(" ScaOnApproval: ").Append(ScaOnApproval).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TransferRequestReview); + } + + /// + /// Returns true if TransferRequestReview instances are equal + /// + /// Instance of TransferRequestReview to be compared + /// Boolean + public bool Equals(TransferRequestReview input) + { + if (input == null) + { + return false; + } + return + ( + this.NumberOfApprovalsRequired == input.NumberOfApprovalsRequired || + this.NumberOfApprovalsRequired.Equals(input.NumberOfApprovalsRequired) + ) && + ( + this.ScaOnApproval == input.ScaOnApproval || + this.ScaOnApproval.Equals(input.ScaOnApproval) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.NumberOfApprovalsRequired.GetHashCode(); + hashCode = (hashCode * 59) + this.ScaOnApproval.GetHashCode(); + return hashCode; + } + } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Adyen/Model/Transfers/TransferReview.cs b/Adyen/Model/Transfers/TransferReview.cs new file mode 100644 index 000000000..755824a5e --- /dev/null +++ b/Adyen/Model/Transfers/TransferReview.cs @@ -0,0 +1,182 @@ +/* +* Transfers API +* +* +* The version of the OpenAPI document: 4 +* +* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +* https://openapi-generator.tech +* Do not edit the class manually. +*/ + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter; + +namespace Adyen.Model.Transfers +{ + /// + /// TransferReview + /// + [DataContract(Name = "TransferReview")] + public partial class TransferReview : IEquatable, IValidatableObject + { + /// + /// Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **completed**, **notApplicable**. + /// + /// Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **completed**, **notApplicable**. + [JsonConverter(typeof(StringEnumConverter))] + public enum ScaOnApprovalEnum + { + /// + /// Enum Completed for value: completed + /// + [EnumMember(Value = "completed")] + Completed = 1, + + /// + /// Enum NotApplicable for value: notApplicable + /// + [EnumMember(Value = "notApplicable")] + NotApplicable = 2, + + /// + /// Enum Required for value: required + /// + [EnumMember(Value = "required")] + Required = 3 + + } + + + /// + /// Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **completed**, **notApplicable**. + /// + /// Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **completed**, **notApplicable**. + [DataMember(Name = "scaOnApproval", EmitDefaultValue = false)] + public ScaOnApprovalEnum? ScaOnApproval { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Shows the number of approvals completed for the transfer.. + /// Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer.. + /// Shows the status of the Strong Customer Authentication (SCA) process. Possible values: **required**, **completed**, **notApplicable**.. + public TransferReview(int? numberOfApprovalsCompleted = default(int?), int? numberOfApprovalsRequired = default(int?), ScaOnApprovalEnum? scaOnApproval = default(ScaOnApprovalEnum?)) + { + this.NumberOfApprovalsCompleted = numberOfApprovalsCompleted; + this.NumberOfApprovalsRequired = numberOfApprovalsRequired; + this.ScaOnApproval = scaOnApproval; + } + + /// + /// Shows the number of approvals completed for the transfer. + /// + /// Shows the number of approvals completed for the transfer. + [DataMember(Name = "numberOfApprovalsCompleted", EmitDefaultValue = false)] + public int? NumberOfApprovalsCompleted { get; set; } + + /// + /// Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + /// + /// Shows the number of [approvals](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers/approve) required to process the transfer. + [DataMember(Name = "numberOfApprovalsRequired", EmitDefaultValue = false)] + public int? NumberOfApprovalsRequired { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TransferReview {\n"); + sb.Append(" NumberOfApprovalsCompleted: ").Append(NumberOfApprovalsCompleted).Append("\n"); + sb.Append(" NumberOfApprovalsRequired: ").Append(NumberOfApprovalsRequired).Append("\n"); + sb.Append(" ScaOnApproval: ").Append(ScaOnApproval).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TransferReview); + } + + /// + /// Returns true if TransferReview instances are equal + /// + /// Instance of TransferReview to be compared + /// Boolean + public bool Equals(TransferReview input) + { + if (input == null) + { + return false; + } + return + ( + this.NumberOfApprovalsCompleted == input.NumberOfApprovalsCompleted || + this.NumberOfApprovalsCompleted.Equals(input.NumberOfApprovalsCompleted) + ) && + ( + this.NumberOfApprovalsRequired == input.NumberOfApprovalsRequired || + this.NumberOfApprovalsRequired.Equals(input.NumberOfApprovalsRequired) + ) && + ( + this.ScaOnApproval == input.ScaOnApproval || + this.ScaOnApproval.Equals(input.ScaOnApproval) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.NumberOfApprovalsCompleted.GetHashCode(); + hashCode = (hashCode * 59) + this.NumberOfApprovalsRequired.GetHashCode(); + hashCode = (hashCode * 59) + this.ScaOnApproval.GetHashCode(); + return hashCode; + } + } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Adyen/Service/Checkout/ClassicCheckoutSDKService.cs b/Adyen/Service/Checkout/ClassicCheckoutSDKService.cs index edd7262df..8758ba18b 100644 --- a/Adyen/Service/Checkout/ClassicCheckoutSDKService.cs +++ b/Adyen/Service/Checkout/ClassicCheckoutSDKService.cs @@ -30,7 +30,7 @@ public interface IClassicCheckoutSDKService /// - /// - Additional request options. /// . - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v37.")] Model.Checkout.PaymentSetupResponse PaymentSession(PaymentSetupRequest paymentSetupRequest = default, RequestOptions requestOptions = default); /// @@ -40,7 +40,7 @@ public interface IClassicCheckoutSDKService /// - Additional request options. /// A CancellationToken enables cooperative cancellation between threads, thread pool work items, or Task objects. /// Task of . - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v37.")] Task PaymentSessionAsync(PaymentSetupRequest paymentSetupRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default); /// @@ -49,7 +49,7 @@ public interface IClassicCheckoutSDKService /// - /// - Additional request options. /// . - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v37.")] Model.Checkout.PaymentVerificationResponse VerifyPaymentResult(PaymentVerificationRequest paymentVerificationRequest = default, RequestOptions requestOptions = default); /// @@ -59,7 +59,7 @@ public interface IClassicCheckoutSDKService /// - Additional request options. /// A CancellationToken enables cooperative cancellation between threads, thread pool work items, or Task objects. /// Task of . - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v37.")] Task VerifyPaymentResultAsync(PaymentVerificationRequest paymentVerificationRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default); } @@ -76,13 +76,13 @@ public ClassicCheckoutSDKService(Client client) : base(client) _baseUrl = CreateBaseUrl("https://checkout-test.adyen.com/v71"); } - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v37.")] public Model.Checkout.PaymentSetupResponse PaymentSession(PaymentSetupRequest paymentSetupRequest = default, RequestOptions requestOptions = default) { return PaymentSessionAsync(paymentSetupRequest, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult(); } - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v37.")] public async Task PaymentSessionAsync(PaymentSetupRequest paymentSetupRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default) { var endpoint = _baseUrl + "/paymentSession"; @@ -90,13 +90,13 @@ public Model.Checkout.PaymentSetupResponse PaymentSession(PaymentSetupRequest pa return await resource.RequestAsync(paymentSetupRequest.ToJson(), requestOptions, new HttpMethod("POST"), cancellationToken).ConfigureAwait(false); } - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v37.")] public Model.Checkout.PaymentVerificationResponse VerifyPaymentResult(PaymentVerificationRequest paymentVerificationRequest = default, RequestOptions requestOptions = default) { return VerifyPaymentResultAsync(paymentVerificationRequest, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult(); } - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v37.")] public async Task VerifyPaymentResultAsync(PaymentVerificationRequest paymentVerificationRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default) { var endpoint = _baseUrl + "/payments/result"; diff --git a/Adyen/Service/Checkout/UtilityService.cs b/Adyen/Service/Checkout/UtilityService.cs index e7e0765cb..c6360aa89 100644 --- a/Adyen/Service/Checkout/UtilityService.cs +++ b/Adyen/Service/Checkout/UtilityService.cs @@ -47,7 +47,7 @@ public interface IUtilityService /// - /// - Additional request options. /// . - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v67.")] Model.Checkout.UtilityResponse OriginKeys(UtilityRequest utilityRequest = default, RequestOptions requestOptions = default); /// @@ -57,7 +57,7 @@ public interface IUtilityService /// - Additional request options. /// A CancellationToken enables cooperative cancellation between threads, thread pool work items, or Task objects. /// Task of . - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v67.")] Task OriginKeysAsync(UtilityRequest utilityRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default); /// @@ -103,13 +103,13 @@ public Model.Checkout.ApplePaySessionResponse GetApplePaySession(ApplePaySession return await resource.RequestAsync(applePaySessionRequest.ToJson(), requestOptions, new HttpMethod("POST"), cancellationToken).ConfigureAwait(false); } - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v67.")] public Model.Checkout.UtilityResponse OriginKeys(UtilityRequest utilityRequest = default, RequestOptions requestOptions = default) { return OriginKeysAsync(utilityRequest, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult(); } - [Obsolete] + [Obsolete("Deprecated since Adyen Checkout API v67.")] public async Task OriginKeysAsync(UtilityRequest utilityRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default) { var endpoint = _baseUrl + "/originKeys"; diff --git a/Adyen/Service/PaymentService.cs b/Adyen/Service/PaymentService.cs index cd0beb00d..e4191c398 100644 --- a/Adyen/Service/PaymentService.cs +++ b/Adyen/Service/PaymentService.cs @@ -149,7 +149,7 @@ public interface IPaymentService /// - /// - Additional request options. /// . - [Obsolete] + [Obsolete("")] Model.Payment.ModificationResult Donate(DonationRequest donationRequest = default, RequestOptions requestOptions = default); /// @@ -159,7 +159,7 @@ public interface IPaymentService /// - Additional request options. /// A CancellationToken enables cooperative cancellation between threads, thread pool work items, or Task objects. /// Task of . - [Obsolete] + [Obsolete("")] Task DonateAsync(DonationRequest donationRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default); /// @@ -345,13 +345,13 @@ public Model.Payment.ModificationResult Capture(CaptureRequest captureRequest = return await resource.RequestAsync(captureRequest.ToJson(), requestOptions, new HttpMethod("POST"), cancellationToken).ConfigureAwait(false); } - [Obsolete] + [Obsolete("")] public Model.Payment.ModificationResult Donate(DonationRequest donationRequest = default, RequestOptions requestOptions = default) { return DonateAsync(donationRequest, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult(); } - [Obsolete] + [Obsolete("")] public async Task DonateAsync(DonationRequest donationRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default) { var endpoint = _baseUrl + "/donate"; diff --git a/Adyen/Service/Transfers/TransfersService.cs b/Adyen/Service/Transfers/TransfersService.cs index 73a2ed2f6..478a7a7bd 100644 --- a/Adyen/Service/Transfers/TransfersService.cs +++ b/Adyen/Service/Transfers/TransfersService.cs @@ -24,6 +24,36 @@ namespace Adyen.Service.Transfers /// public interface ITransfersService { + /// + /// Approve initiated transfers + /// + /// - + /// - Additional request options. + void ApproveInitiatedTransfers(ApproveTransfersRequest approveTransfersRequest = default, RequestOptions requestOptions = default); + + /// + /// Approve initiated transfers + /// + /// - + /// - Additional request options. + /// A CancellationToken enables cooperative cancellation between threads, thread pool work items, or Task objects. + Task ApproveInitiatedTransfersAsync(ApproveTransfersRequest approveTransfersRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default); + + /// + /// Cancel initiated transfers + /// + /// - + /// - Additional request options. + void CancelInitiatedTransfers(CancelTransfersRequest cancelTransfersRequest = default, RequestOptions requestOptions = default); + + /// + /// Cancel initiated transfers + /// + /// - + /// - Additional request options. + /// A CancellationToken enables cooperative cancellation between threads, thread pool work items, or Task objects. + Task CancelInitiatedTransfersAsync(CancelTransfersRequest cancelTransfersRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default); + /// /// Get all transfers /// @@ -126,6 +156,30 @@ public TransfersService(Client client) : base(client) _baseUrl = CreateBaseUrl("https://balanceplatform-api-test.adyen.com/btl/v4"); } + public void ApproveInitiatedTransfers(ApproveTransfersRequest approveTransfersRequest = default, RequestOptions requestOptions = default) + { + ApproveInitiatedTransfersAsync(approveTransfersRequest, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult(); + } + + public async Task ApproveInitiatedTransfersAsync(ApproveTransfersRequest approveTransfersRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default) + { + var endpoint = _baseUrl + "/transfers/approve"; + var resource = new ServiceResource(this, endpoint); + await resource.RequestAsync(approveTransfersRequest.ToJson(), requestOptions, new HttpMethod("POST"), cancellationToken).ConfigureAwait(false); + } + + public void CancelInitiatedTransfers(CancelTransfersRequest cancelTransfersRequest = default, RequestOptions requestOptions = default) + { + CancelInitiatedTransfersAsync(cancelTransfersRequest, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult(); + } + + public async Task CancelInitiatedTransfersAsync(CancelTransfersRequest cancelTransfersRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default) + { + var endpoint = _baseUrl + "/transfers/cancel"; + var resource = new ServiceResource(this, endpoint); + await resource.RequestAsync(cancelTransfersRequest.ToJson(), requestOptions, new HttpMethod("POST"), cancellationToken).ConfigureAwait(false); + } + public Model.Transfers.FindTransfersResponse GetAllTransfers(DateTime createdSince, DateTime createdUntil, string balancePlatform = default, string accountHolderId = default, string balanceAccountId = default, string paymentInstrumentId = default, string reference = default, string category = default, string cursor = default, int? limit = default, RequestOptions requestOptions = default) { return GetAllTransfersAsync(createdSince, createdUntil, balancePlatform, accountHolderId, balanceAccountId, paymentInstrumentId, reference, category, cursor, limit, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult();