diff --git a/Adyen/Model/Checkout/AdditionalData3DSecure.cs b/Adyen/Model/Checkout/AdditionalData3DSecure.cs index 50697d7cd..f1faeaf8a 100644 --- a/Adyen/Model/Checkout/AdditionalData3DSecure.cs +++ b/Adyen/Model/Checkout/AdditionalData3DSecure.cs @@ -81,7 +81,7 @@ public enum ChallengeWindowSizeEnum /// /// Initializes a new instance of the class. /// - /// 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 still selects the version of 3D Secure based on configuration to optimize authorisation rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen will not offer 3D Secure 2 to your shopper regardless of your configuration. . + /// 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. . /// Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen. /// 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. . /// In case of Secure+, this field must be set to **CUPSecurePlus**.. @@ -98,9 +98,9 @@ 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 still selects the version of 3D Secure based on configuration to optimize authorisation rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen will not offer 3D Secure 2 to your shopper regardless of your configuration. + /// 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. /// - /// 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 still selects the version of 3D Secure based on configuration to optimize authorisation rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen will not offer 3D Secure 2 to your shopper regardless of your configuration. + /// 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] public string Allow3DS2 { get; set; } diff --git a/Adyen/Model/Checkout/AdditionalDataLodging.cs b/Adyen/Model/Checkout/AdditionalDataLodging.cs index fa7ace2e3..3382ee07a 100644 --- a/Adyen/Model/Checkout/AdditionalDataLodging.cs +++ b/Adyen/Model/Checkout/AdditionalDataLodging.cs @@ -38,14 +38,14 @@ public partial class AdditionalDataLodging : IEquatable, /// A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit. /// The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**.. /// The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**.. - /// The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros.. + /// The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros.. /// Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character. /// The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters. - /// The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters. * Must not start with a space *Must not be all zeros.. + /// The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros.. /// Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters. /// Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in. /// The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters. - /// The lodging property location's phone number. * Format: numeric. * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros.. + /// The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros.. /// The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters. /// The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number. /// The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number. @@ -95,9 +95,9 @@ public partial class AdditionalDataLodging : IEquatable, public string LodgingCheckOutDate { get; set; } /// - /// The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. + /// The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. /// - /// The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. + /// The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. [DataMember(Name = "lodging.customerServiceTollFreeNumber", EmitDefaultValue = false)] public string LodgingCustomerServiceTollFreeNumber { get; set; } @@ -116,9 +116,9 @@ public partial class AdditionalDataLodging : IEquatable, public string LodgingFolioCashAdvances { get; set; } /// - /// The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters. * Must not start with a space *Must not be all zeros. + /// The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. /// - /// The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters. * Must not start with a space *Must not be all zeros. + /// The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. [DataMember(Name = "lodging.folioNumber", EmitDefaultValue = false)] public string LodgingFolioNumber { get; set; } @@ -144,9 +144,9 @@ public partial class AdditionalDataLodging : IEquatable, public string LodgingPrepaidExpenses { get; set; } /// - /// The lodging property location's phone number. * Format: numeric. * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. + /// The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. /// - /// The lodging property location's phone number. * Format: numeric. * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. + /// The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. [DataMember(Name = "lodging.propertyPhoneNumber", EmitDefaultValue = false)] public string LodgingPropertyPhoneNumber { get; set; } diff --git a/Adyen/Model/Checkout/CardDetails.cs b/Adyen/Model/Checkout/CardDetails.cs index deaa588dd..751db840a 100644 --- a/Adyen/Model/Checkout/CardDetails.cs +++ b/Adyen/Model/Checkout/CardDetails.cs @@ -121,7 +121,7 @@ public enum TypeEnum /// The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).. /// The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**.. /// The name of the card holder.. - /// The network token reference. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment.. + /// The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment.. /// The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).. /// This is the `recurringDetailReference` returned in the response when you created the token.. /// The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India.. @@ -237,9 +237,9 @@ public enum TypeEnum public string HolderName { get; set; } /// - /// The network token reference. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + /// The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. /// - /// The network token reference. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + /// The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. [DataMember(Name = "networkPaymentReference", EmitDefaultValue = false)] public string NetworkPaymentReference { get; set; } diff --git a/Adyen/Model/Checkout/CardDonations.cs b/Adyen/Model/Checkout/CardDonations.cs index c87916f8e..384926b5f 100644 --- a/Adyen/Model/Checkout/CardDonations.cs +++ b/Adyen/Model/Checkout/CardDonations.cs @@ -121,7 +121,7 @@ public enum TypeEnum /// The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).. /// The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**.. /// The name of the card holder.. - /// The network token reference. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment.. + /// The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment.. /// The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).. /// This is the `recurringDetailReference` returned in the response when you created the token.. /// The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used only for recurring payments in India.. @@ -237,9 +237,9 @@ public enum TypeEnum public string HolderName { get; set; } /// - /// The network token reference. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + /// The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. /// - /// The network token reference. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. + /// The transaction identifier from card schemes. This is the [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) from the response to the first payment. [DataMember(Name = "networkPaymentReference", EmitDefaultValue = false)] public string NetworkPaymentReference { get; set; } diff --git a/Adyen/Model/Checkout/CheckoutBankTransferAction.cs b/Adyen/Model/Checkout/CheckoutBankTransferAction.cs new file mode 100644 index 000000000..c0e83599b --- /dev/null +++ b/Adyen/Model/Checkout/CheckoutBankTransferAction.cs @@ -0,0 +1,372 @@ +/* +* Adyen Checkout API +* +* +* The version of the OpenAPI document: 71 +* +* 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.Checkout +{ + /// + /// CheckoutBankTransferAction + /// + [DataContract(Name = "CheckoutBankTransferAction")] + public partial class CheckoutBankTransferAction : IEquatable, IValidatableObject + { + /// + /// The type of the action. + /// + /// The type of the action. + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum BankTransfer for value: bankTransfer + /// + [EnumMember(Value = "bankTransfer")] + BankTransfer = 1 + + } + + + /// + /// The type of the action. + /// + /// The type of the action. + [DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CheckoutBankTransferAction() { } + /// + /// Initializes a new instance of the class. + /// + /// The account number of the bank transfer.. + /// The name of the account holder.. + /// The BIC of the IBAN.. + /// The url to download payment details with.. + /// The IBAN of the bank transfer.. + /// Specifies the payment method.. + /// The transfer reference.. + /// The routing number of the bank transfer.. + /// The e-mail of the shopper, included if an e-mail was sent to the shopper.. + /// The sort code of the bank transfer.. + /// totalAmount. + /// The type of the action. (required). + /// Specifies the URL to redirect to.. + public CheckoutBankTransferAction(string accountNumber = default(string), string beneficiary = default(string), string bic = default(string), string downloadUrl = default(string), string iban = default(string), string paymentMethodType = default(string), string reference = default(string), string routingNumber = default(string), string shopperEmail = default(string), string sortCode = default(string), Amount totalAmount = default(Amount), TypeEnum type = default(TypeEnum), string url = default(string)) + { + this.Type = type; + this.AccountNumber = accountNumber; + this.Beneficiary = beneficiary; + this.Bic = bic; + this.DownloadUrl = downloadUrl; + this.Iban = iban; + this.PaymentMethodType = paymentMethodType; + this.Reference = reference; + this.RoutingNumber = routingNumber; + this.ShopperEmail = shopperEmail; + this.SortCode = sortCode; + this.TotalAmount = totalAmount; + this.Url = url; + } + + /// + /// The account number of the bank transfer. + /// + /// The account number of the bank transfer. + [DataMember(Name = "accountNumber", EmitDefaultValue = false)] + public string AccountNumber { get; set; } + + /// + /// The name of the account holder. + /// + /// The name of the account holder. + [DataMember(Name = "beneficiary", EmitDefaultValue = false)] + public string Beneficiary { get; set; } + + /// + /// The BIC of the IBAN. + /// + /// The BIC of the IBAN. + [DataMember(Name = "bic", EmitDefaultValue = false)] + public string Bic { get; set; } + + /// + /// The url to download payment details with. + /// + /// The url to download payment details with. + [DataMember(Name = "downloadUrl", EmitDefaultValue = false)] + public string DownloadUrl { get; set; } + + /// + /// The IBAN of the bank transfer. + /// + /// The IBAN of the bank transfer. + [DataMember(Name = "iban", EmitDefaultValue = false)] + public string Iban { get; set; } + + /// + /// Specifies the payment method. + /// + /// Specifies the payment method. + [DataMember(Name = "paymentMethodType", EmitDefaultValue = false)] + public string PaymentMethodType { get; set; } + + /// + /// The transfer reference. + /// + /// The transfer reference. + [DataMember(Name = "reference", EmitDefaultValue = false)] + public string Reference { get; set; } + + /// + /// The routing number of the bank transfer. + /// + /// The routing number of the bank transfer. + [DataMember(Name = "routingNumber", EmitDefaultValue = false)] + public string RoutingNumber { get; set; } + + /// + /// The e-mail of the shopper, included if an e-mail was sent to the shopper. + /// + /// The e-mail of the shopper, included if an e-mail was sent to the shopper. + [DataMember(Name = "shopperEmail", EmitDefaultValue = false)] + public string ShopperEmail { get; set; } + + /// + /// The sort code of the bank transfer. + /// + /// The sort code of the bank transfer. + [DataMember(Name = "sortCode", EmitDefaultValue = false)] + public string SortCode { get; set; } + + /// + /// Gets or Sets TotalAmount + /// + [DataMember(Name = "totalAmount", EmitDefaultValue = false)] + public Amount TotalAmount { get; set; } + + /// + /// Specifies the URL to redirect to. + /// + /// Specifies the URL to redirect to. + [DataMember(Name = "url", EmitDefaultValue = false)] + public string Url { 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 CheckoutBankTransferAction {\n"); + sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n"); + sb.Append(" Beneficiary: ").Append(Beneficiary).Append("\n"); + sb.Append(" Bic: ").Append(Bic).Append("\n"); + sb.Append(" DownloadUrl: ").Append(DownloadUrl).Append("\n"); + sb.Append(" Iban: ").Append(Iban).Append("\n"); + sb.Append(" PaymentMethodType: ").Append(PaymentMethodType).Append("\n"); + sb.Append(" Reference: ").Append(Reference).Append("\n"); + sb.Append(" RoutingNumber: ").Append(RoutingNumber).Append("\n"); + sb.Append(" ShopperEmail: ").Append(ShopperEmail).Append("\n"); + sb.Append(" SortCode: ").Append(SortCode).Append("\n"); + sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Url: ").Append(Url).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 CheckoutBankTransferAction); + } + + /// + /// Returns true if CheckoutBankTransferAction instances are equal + /// + /// Instance of CheckoutBankTransferAction to be compared + /// Boolean + public bool Equals(CheckoutBankTransferAction input) + { + if (input == null) + { + return false; + } + return + ( + this.AccountNumber == input.AccountNumber || + (this.AccountNumber != null && + this.AccountNumber.Equals(input.AccountNumber)) + ) && + ( + this.Beneficiary == input.Beneficiary || + (this.Beneficiary != null && + this.Beneficiary.Equals(input.Beneficiary)) + ) && + ( + this.Bic == input.Bic || + (this.Bic != null && + this.Bic.Equals(input.Bic)) + ) && + ( + this.DownloadUrl == input.DownloadUrl || + (this.DownloadUrl != null && + this.DownloadUrl.Equals(input.DownloadUrl)) + ) && + ( + this.Iban == input.Iban || + (this.Iban != null && + this.Iban.Equals(input.Iban)) + ) && + ( + this.PaymentMethodType == input.PaymentMethodType || + (this.PaymentMethodType != null && + this.PaymentMethodType.Equals(input.PaymentMethodType)) + ) && + ( + this.Reference == input.Reference || + (this.Reference != null && + this.Reference.Equals(input.Reference)) + ) && + ( + this.RoutingNumber == input.RoutingNumber || + (this.RoutingNumber != null && + this.RoutingNumber.Equals(input.RoutingNumber)) + ) && + ( + this.ShopperEmail == input.ShopperEmail || + (this.ShopperEmail != null && + this.ShopperEmail.Equals(input.ShopperEmail)) + ) && + ( + this.SortCode == input.SortCode || + (this.SortCode != null && + this.SortCode.Equals(input.SortCode)) + ) && + ( + this.TotalAmount == input.TotalAmount || + (this.TotalAmount != null && + this.TotalAmount.Equals(input.TotalAmount)) + ) && + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ) && + ( + this.Url == input.Url || + (this.Url != null && + this.Url.Equals(input.Url)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AccountNumber != null) + { + hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode(); + } + if (this.Beneficiary != null) + { + hashCode = (hashCode * 59) + this.Beneficiary.GetHashCode(); + } + if (this.Bic != null) + { + hashCode = (hashCode * 59) + this.Bic.GetHashCode(); + } + if (this.DownloadUrl != null) + { + hashCode = (hashCode * 59) + this.DownloadUrl.GetHashCode(); + } + if (this.Iban != null) + { + hashCode = (hashCode * 59) + this.Iban.GetHashCode(); + } + if (this.PaymentMethodType != null) + { + hashCode = (hashCode * 59) + this.PaymentMethodType.GetHashCode(); + } + if (this.Reference != null) + { + hashCode = (hashCode * 59) + this.Reference.GetHashCode(); + } + if (this.RoutingNumber != null) + { + hashCode = (hashCode * 59) + this.RoutingNumber.GetHashCode(); + } + if (this.ShopperEmail != null) + { + hashCode = (hashCode * 59) + this.ShopperEmail.GetHashCode(); + } + if (this.SortCode != null) + { + hashCode = (hashCode * 59) + this.SortCode.GetHashCode(); + } + if (this.TotalAmount != null) + { + hashCode = (hashCode * 59) + this.TotalAmount.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Type.GetHashCode(); + if (this.Url != null) + { + hashCode = (hashCode * 59) + this.Url.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/Checkout/CheckoutPaymentMethod.cs b/Adyen/Model/Checkout/CheckoutPaymentMethod.cs index a8ada7252..72405bedf 100644 --- a/Adyen/Model/Checkout/CheckoutPaymentMethod.cs +++ b/Adyen/Model/Checkout/CheckoutPaymentMethod.cs @@ -226,6 +226,18 @@ public CheckoutPaymentMethod(EcontextVoucherDetails actualInstance) this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); } + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of EftDetails. + public CheckoutPaymentMethod(EftDetails actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + /// /// Initializes a new instance of the class /// with the class @@ -628,6 +640,10 @@ public override Object ActualInstance { this._actualInstance = value; } + else if (value.GetType() == typeof(EftDetails)) + { + this._actualInstance = value; + } else if (value.GetType() == typeof(GenericIssuerPaymentMethodDetails)) { this._actualInstance = value; @@ -738,7 +754,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: AchDetails, AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DotpayDetails, DragonpayDetails, EcontextVoucherDetails, GenericIssuerPaymentMethodDetails, GiropayDetails, GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankDetails, PayPalDetails, PayToDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, RatepayDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails"); + throw new ArgumentException("Invalid instance found. Must be the following types: AchDetails, AfterpayDetails, AmazonPayDetails, AncvDetails, AndroidPayDetails, ApplePayDetails, BacsDirectDebitDetails, BillDeskDetails, BlikDetails, CardDetails, CashAppDetails, CellulantDetails, DokuDetails, DotpayDetails, DragonpayDetails, EcontextVoucherDetails, EftDetails, GenericIssuerPaymentMethodDetails, GiropayDetails, GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankDetails, PayPalDetails, PayToDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, RatepayDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails"); } } } @@ -903,6 +919,16 @@ public EcontextVoucherDetails GetEcontextVoucherDetails() return (EcontextVoucherDetails)this.ActualInstance; } + /// + /// Get the actual instance of `EftDetails`. If the actual instance is not `EftDetails`, + /// the InvalidClassException will be thrown + /// + /// An instance of EftDetails + public EftDetails GetEftDetails() + { + return (EftDetails)this.ActualInstance; + } + /// /// Get the actual instance of `GenericIssuerPaymentMethodDetails`. If the actual instance is not `GenericIssuerPaymentMethodDetails`, /// the InvalidClassException will be thrown @@ -1331,6 +1357,13 @@ public static CheckoutPaymentMethod FromJson(string jsonString) matchedTypes.Add("EcontextVoucherDetails"); match++; } + // Check if the jsonString type enum matches the EftDetails type enums + if (ContainsValue(type)) + { + newCheckoutPaymentMethod = new CheckoutPaymentMethod(JsonConvert.DeserializeObject(jsonString, CheckoutPaymentMethod.SerializerSettings)); + matchedTypes.Add("EftDetails"); + match++; + } // Check if the jsonString type enum matches the GenericIssuerPaymentMethodDetails type enums if (ContainsValue(type)) { diff --git a/Adyen/Model/Checkout/DonationPaymentRequest.cs b/Adyen/Model/Checkout/DonationPaymentRequest.cs index 259ed8b09..1a913a6ed 100644 --- a/Adyen/Model/Checkout/DonationPaymentRequest.cs +++ b/Adyen/Model/Checkout/DonationPaymentRequest.cs @@ -178,7 +178,7 @@ protected DonationPaymentRequest() { } /// Specifies the redirect method (GET or POST) when redirecting back from the issuer.. /// Specifies the redirect method (GET or POST) when redirecting to the issuer.. /// The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. (required). - /// The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name`If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. (required). + /// The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. (required). /// The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00. /// The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations.. /// The shopper's IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new).. @@ -424,9 +424,9 @@ protected DonationPaymentRequest() { } public string Reference { get; set; } /// - /// The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name`If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. + /// The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. /// - /// The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name`If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. + /// The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. [DataMember(Name = "returnUrl", IsRequired = false, EmitDefaultValue = false)] public string ReturnUrl { get; set; } diff --git a/Adyen/Model/Checkout/EftDetails.cs b/Adyen/Model/Checkout/EftDetails.cs new file mode 100644 index 000000000..705c04a4e --- /dev/null +++ b/Adyen/Model/Checkout/EftDetails.cs @@ -0,0 +1,280 @@ +/* +* Adyen Checkout API +* +* +* The version of the OpenAPI document: 71 +* +* 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.Checkout +{ + /// + /// EftDetails + /// + [DataContract(Name = "EftDetails")] + public partial class EftDetails : IEquatable, IValidatableObject + { + /// + /// **eft** + /// + /// **eft** + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum EftDirectdebitCA for value: eft_directdebit_CA + /// + [EnumMember(Value = "eft_directdebit_CA")] + EftDirectdebitCA = 1 + + } + + + /// + /// **eft** + /// + /// **eft** + [DataMember(Name = "type", EmitDefaultValue = false)] + public TypeEnum? Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The bank account number (without separators).. + /// The financial institution code.. + /// The bank routing number of the account.. + /// The checkout attempt identifier.. + /// The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'.. + /// This is the `recurringDetailReference` returned in the response when you created the token.. + /// This is the `recurringDetailReference` returned in the response when you created the token.. + /// **eft** (default to TypeEnum.EftDirectdebitCA). + public EftDetails(string bankAccountNumber = default(string), string bankCode = default(string), string bankLocationId = default(string), string checkoutAttemptId = default(string), string ownerName = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = TypeEnum.EftDirectdebitCA) + { + this.BankAccountNumber = bankAccountNumber; + this.BankCode = bankCode; + this.BankLocationId = bankLocationId; + this.CheckoutAttemptId = checkoutAttemptId; + this.OwnerName = ownerName; + this.RecurringDetailReference = recurringDetailReference; + this.StoredPaymentMethodId = storedPaymentMethodId; + this.Type = type; + } + + /// + /// The bank account number (without separators). + /// + /// The bank account number (without separators). + [DataMember(Name = "bankAccountNumber", EmitDefaultValue = false)] + public string BankAccountNumber { get; set; } + + /// + /// The financial institution code. + /// + /// The financial institution code. + [DataMember(Name = "bankCode", EmitDefaultValue = false)] + public string BankCode { get; set; } + + /// + /// The bank routing number of the account. + /// + /// The bank routing number of the account. + [DataMember(Name = "bankLocationId", EmitDefaultValue = false)] + public string BankLocationId { get; set; } + + /// + /// The checkout attempt identifier. + /// + /// The checkout attempt identifier. + [DataMember(Name = "checkoutAttemptId", EmitDefaultValue = false)] + public string CheckoutAttemptId { get; set; } + + /// + /// The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + /// + /// The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. + [DataMember(Name = "ownerName", EmitDefaultValue = false)] + public string OwnerName { get; set; } + + /// + /// This is the `recurringDetailReference` returned in the response when you created the token. + /// + /// This is the `recurringDetailReference` returned in the response when you created the token. + [DataMember(Name = "recurringDetailReference", EmitDefaultValue = false)] + [Obsolete] + public string RecurringDetailReference { get; set; } + + /// + /// This is the `recurringDetailReference` returned in the response when you created the token. + /// + /// This is the `recurringDetailReference` returned in the response when you created the token. + [DataMember(Name = "storedPaymentMethodId", EmitDefaultValue = false)] + public string StoredPaymentMethodId { 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 EftDetails {\n"); + sb.Append(" BankAccountNumber: ").Append(BankAccountNumber).Append("\n"); + sb.Append(" BankCode: ").Append(BankCode).Append("\n"); + sb.Append(" BankLocationId: ").Append(BankLocationId).Append("\n"); + sb.Append(" CheckoutAttemptId: ").Append(CheckoutAttemptId).Append("\n"); + sb.Append(" OwnerName: ").Append(OwnerName).Append("\n"); + sb.Append(" RecurringDetailReference: ").Append(RecurringDetailReference).Append("\n"); + sb.Append(" StoredPaymentMethodId: ").Append(StoredPaymentMethodId).Append("\n"); + sb.Append(" Type: ").Append(Type).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 EftDetails); + } + + /// + /// Returns true if EftDetails instances are equal + /// + /// Instance of EftDetails to be compared + /// Boolean + public bool Equals(EftDetails input) + { + if (input == null) + { + return false; + } + return + ( + this.BankAccountNumber == input.BankAccountNumber || + (this.BankAccountNumber != null && + this.BankAccountNumber.Equals(input.BankAccountNumber)) + ) && + ( + this.BankCode == input.BankCode || + (this.BankCode != null && + this.BankCode.Equals(input.BankCode)) + ) && + ( + this.BankLocationId == input.BankLocationId || + (this.BankLocationId != null && + this.BankLocationId.Equals(input.BankLocationId)) + ) && + ( + this.CheckoutAttemptId == input.CheckoutAttemptId || + (this.CheckoutAttemptId != null && + this.CheckoutAttemptId.Equals(input.CheckoutAttemptId)) + ) && + ( + this.OwnerName == input.OwnerName || + (this.OwnerName != null && + this.OwnerName.Equals(input.OwnerName)) + ) && + ( + this.RecurringDetailReference == input.RecurringDetailReference || + (this.RecurringDetailReference != null && + this.RecurringDetailReference.Equals(input.RecurringDetailReference)) + ) && + ( + this.StoredPaymentMethodId == input.StoredPaymentMethodId || + (this.StoredPaymentMethodId != null && + this.StoredPaymentMethodId.Equals(input.StoredPaymentMethodId)) + ) && + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.BankAccountNumber != null) + { + hashCode = (hashCode * 59) + this.BankAccountNumber.GetHashCode(); + } + if (this.BankCode != null) + { + hashCode = (hashCode * 59) + this.BankCode.GetHashCode(); + } + if (this.BankLocationId != null) + { + hashCode = (hashCode * 59) + this.BankLocationId.GetHashCode(); + } + if (this.CheckoutAttemptId != null) + { + hashCode = (hashCode * 59) + this.CheckoutAttemptId.GetHashCode(); + } + if (this.OwnerName != null) + { + hashCode = (hashCode * 59) + this.OwnerName.GetHashCode(); + } + if (this.RecurringDetailReference != null) + { + hashCode = (hashCode * 59) + this.RecurringDetailReference.GetHashCode(); + } + if (this.StoredPaymentMethodId != null) + { + hashCode = (hashCode * 59) + this.StoredPaymentMethodId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Type.GetHashCode(); + return hashCode; + } + } + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + // StoredPaymentMethodId (string) maxLength + if (this.StoredPaymentMethodId != null && this.StoredPaymentMethodId.Length > 64) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StoredPaymentMethodId, length must be less than 64.", new [] { "StoredPaymentMethodId" }); + } + + yield break; + } + } + +} diff --git a/Adyen/Model/Checkout/FundOrigin.cs b/Adyen/Model/Checkout/FundOrigin.cs index 3f2c0f25c..a21b41e7b 100644 --- a/Adyen/Model/Checkout/FundOrigin.cs +++ b/Adyen/Model/Checkout/FundOrigin.cs @@ -36,10 +36,10 @@ public partial class FundOrigin : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// billingAddress. - /// Email address of the person.. + /// The email address of the person funding the money.. /// shopperName. - /// Phone number of the person. - /// walletIdentifier. + /// The phone number of the person funding the money.. + /// The unique identifier of the wallet where the funds are coming from.. public FundOrigin(Address billingAddress = default(Address), string shopperEmail = default(string), Name shopperName = default(Name), string telephoneNumber = default(string), string walletIdentifier = default(string)) { this.BillingAddress = billingAddress; @@ -56,9 +56,9 @@ public partial class FundOrigin : IEquatable, IValidatableObject public Address BillingAddress { get; set; } /// - /// Email address of the person. + /// The email address of the person funding the money. /// - /// Email address of the person. + /// The email address of the person funding the money. [DataMember(Name = "shopperEmail", EmitDefaultValue = false)] public string ShopperEmail { get; set; } @@ -69,15 +69,16 @@ public partial class FundOrigin : IEquatable, IValidatableObject public Name ShopperName { get; set; } /// - /// Phone number of the person + /// The phone number of the person funding the money. /// - /// Phone number of the person + /// The phone number of the person funding the money. [DataMember(Name = "telephoneNumber", EmitDefaultValue = false)] public string TelephoneNumber { get; set; } /// - /// Gets or Sets WalletIdentifier + /// The unique identifier of the wallet where the funds are coming from. /// + /// The unique identifier of the wallet where the funds are coming from. [DataMember(Name = "walletIdentifier", EmitDefaultValue = false)] public string WalletIdentifier { get; set; } diff --git a/Adyen/Model/Checkout/PaymentRequest.cs b/Adyen/Model/Checkout/PaymentRequest.cs index 13015d0e7..c49e1b60f 100644 --- a/Adyen/Model/Checkout/PaymentRequest.cs +++ b/Adyen/Model/Checkout/PaymentRequest.cs @@ -273,11 +273,12 @@ protected PaymentRequest() { } /// An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split).. /// Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment.. /// When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types).. + /// This field contains additional information on the submerchant, who is onboarded to an acquirer through a payment facilitator or aggregator. /// The shopper's telephone number.. /// 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. (default to false). /// Set to true if the payment should be routed to a trusted MID.. - public PaymentRequest(AccountInfo accountInfo = default(AccountInfo), Amount additionalAmount = default(Amount), Dictionary additionalData = default(Dictionary), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), AuthenticationData authenticationData = default(AuthenticationData), BillingAddress billingAddress = default(BillingAddress), BrowserInfo browserInfo = default(BrowserInfo), int? captureDelayHours = default(int?), ChannelEnum? channel = default(ChannelEnum?), string checkoutAttemptId = default(string), Company company = default(Company), string conversionId = default(string), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), ForexQuote dccQuote = default(ForexQuote), DateTime deliverAt = default(DateTime), DeliveryAddress deliveryAddress = default(DeliveryAddress), DateTime deliveryDate = default(DateTime), string deviceFingerprint = default(string), bool? enableOneClick = default(bool?), bool? enablePayOut = default(bool?), bool? enableRecurring = default(bool?), EntityTypeEnum? entityType = default(EntityTypeEnum?), int? fraudOffset = default(int?), FundOrigin fundOrigin = default(FundOrigin), FundRecipient fundRecipient = default(FundRecipient), IndustryUsageEnum? industryUsage = default(IndustryUsageEnum?), Installments installments = default(Installments), List lineItems = default(List), Dictionary localizedShopperStatement = default(Dictionary), Mandate mandate = default(Mandate), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), MerchantRiskIndicator merchantRiskIndicator = default(MerchantRiskIndicator), Dictionary metadata = default(Dictionary), ThreeDSecureData mpiData = default(ThreeDSecureData), EncryptedOrderData order = default(EncryptedOrderData), string orderReference = default(string), string origin = default(string), CheckoutPaymentMethod paymentMethod = default(CheckoutPaymentMethod), PlatformChargebackLogic platformChargebackLogic = default(PlatformChargebackLogic), string recurringExpiry = default(string), string recurringFrequency = default(string), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string redirectFromIssuerMethod = default(string), string redirectToIssuerMethod = default(string), string reference = default(string), string returnUrl = default(string), RiskData riskData = default(RiskData), string sessionValidity = default(string), string shopperEmail = default(string), string shopperIP = default(string), ShopperInteractionEnum? shopperInteraction = default(ShopperInteractionEnum?), string shopperLocale = default(string), Name shopperName = default(Name), string shopperReference = default(string), string shopperStatement = default(string), string socialSecurityNumber = default(string), List splits = default(List), string store = default(string), bool? storePaymentMethod = default(bool?), string telephoneNumber = default(string), ThreeDS2RequestFields threeDS2RequestData = default(ThreeDS2RequestFields), bool? threeDSAuthenticationOnly = false, bool? trustedShopper = default(bool?)) + public PaymentRequest(AccountInfo accountInfo = default(AccountInfo), Amount additionalAmount = default(Amount), Dictionary additionalData = default(Dictionary), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), AuthenticationData authenticationData = default(AuthenticationData), BillingAddress billingAddress = default(BillingAddress), BrowserInfo browserInfo = default(BrowserInfo), int? captureDelayHours = default(int?), ChannelEnum? channel = default(ChannelEnum?), string checkoutAttemptId = default(string), Company company = default(Company), string conversionId = default(string), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), ForexQuote dccQuote = default(ForexQuote), DateTime deliverAt = default(DateTime), DeliveryAddress deliveryAddress = default(DeliveryAddress), DateTime deliveryDate = default(DateTime), string deviceFingerprint = default(string), bool? enableOneClick = default(bool?), bool? enablePayOut = default(bool?), bool? enableRecurring = default(bool?), EntityTypeEnum? entityType = default(EntityTypeEnum?), int? fraudOffset = default(int?), FundOrigin fundOrigin = default(FundOrigin), FundRecipient fundRecipient = default(FundRecipient), IndustryUsageEnum? industryUsage = default(IndustryUsageEnum?), Installments installments = default(Installments), List lineItems = default(List), Dictionary localizedShopperStatement = default(Dictionary), Mandate mandate = default(Mandate), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), MerchantRiskIndicator merchantRiskIndicator = default(MerchantRiskIndicator), Dictionary metadata = default(Dictionary), ThreeDSecureData mpiData = default(ThreeDSecureData), EncryptedOrderData order = default(EncryptedOrderData), string orderReference = default(string), string origin = default(string), CheckoutPaymentMethod paymentMethod = default(CheckoutPaymentMethod), PlatformChargebackLogic platformChargebackLogic = default(PlatformChargebackLogic), string recurringExpiry = default(string), string recurringFrequency = default(string), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string redirectFromIssuerMethod = default(string), string redirectToIssuerMethod = default(string), string reference = default(string), string returnUrl = default(string), RiskData riskData = default(RiskData), string sessionValidity = default(string), string shopperEmail = default(string), string shopperIP = default(string), ShopperInteractionEnum? shopperInteraction = default(ShopperInteractionEnum?), string shopperLocale = default(string), Name shopperName = default(Name), string shopperReference = default(string), string shopperStatement = default(string), string socialSecurityNumber = default(string), List splits = default(List), string store = default(string), bool? storePaymentMethod = default(bool?), List subMerchants = default(List), string telephoneNumber = default(string), ThreeDS2RequestFields threeDS2RequestData = default(ThreeDS2RequestFields), bool? threeDSAuthenticationOnly = false, bool? trustedShopper = default(bool?)) { this.Amount = amount; this.MerchantAccount = merchantAccount; @@ -342,6 +343,7 @@ protected PaymentRequest() { } this.Splits = splits; this.Store = store; this.StorePaymentMethod = storePaymentMethod; + this.SubMerchants = subMerchants; this.TelephoneNumber = telephoneNumber; this.ThreeDS2RequestData = threeDS2RequestData; this.ThreeDSAuthenticationOnly = threeDSAuthenticationOnly; @@ -735,6 +737,13 @@ protected PaymentRequest() { } [DataMember(Name = "storePaymentMethod", EmitDefaultValue = false)] public bool? StorePaymentMethod { get; set; } + /// + /// This field contains additional information on the submerchant, who is onboarded to an acquirer through a payment facilitator or aggregator + /// + /// This field contains additional information on the submerchant, who is onboarded to an acquirer through a payment facilitator or aggregator + [DataMember(Name = "subMerchants", EmitDefaultValue = false)] + public List SubMerchants { get; set; } + /// /// The shopper's telephone number. /// @@ -834,6 +843,7 @@ public override string ToString() sb.Append(" Splits: ").Append(Splits).Append("\n"); sb.Append(" Store: ").Append(Store).Append("\n"); sb.Append(" StorePaymentMethod: ").Append(StorePaymentMethod).Append("\n"); + sb.Append(" SubMerchants: ").Append(SubMerchants).Append("\n"); sb.Append(" TelephoneNumber: ").Append(TelephoneNumber).Append("\n"); sb.Append(" ThreeDS2RequestData: ").Append(ThreeDS2RequestData).Append("\n"); sb.Append(" ThreeDSAuthenticationOnly: ").Append(ThreeDSAuthenticationOnly).Append("\n"); @@ -1182,6 +1192,12 @@ public bool Equals(PaymentRequest input) this.StorePaymentMethod == input.StorePaymentMethod || this.StorePaymentMethod.Equals(input.StorePaymentMethod) ) && + ( + this.SubMerchants == input.SubMerchants || + this.SubMerchants != null && + input.SubMerchants != null && + this.SubMerchants.SequenceEqual(input.SubMerchants) + ) && ( this.TelephoneNumber == input.TelephoneNumber || (this.TelephoneNumber != null && @@ -1430,6 +1446,10 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.Store.GetHashCode(); } hashCode = (hashCode * 59) + this.StorePaymentMethod.GetHashCode(); + if (this.SubMerchants != null) + { + hashCode = (hashCode * 59) + this.SubMerchants.GetHashCode(); + } if (this.TelephoneNumber != null) { hashCode = (hashCode * 59) + this.TelephoneNumber.GetHashCode(); diff --git a/Adyen/Model/Checkout/PaymentResponseAction.cs b/Adyen/Model/Checkout/PaymentResponseAction.cs index 0d2499526..9069a7e40 100644 --- a/Adyen/Model/Checkout/PaymentResponseAction.cs +++ b/Adyen/Model/Checkout/PaymentResponseAction.cs @@ -46,6 +46,18 @@ public PaymentResponseAction(CheckoutAwaitAction actualInstance) this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); } + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of CheckoutBankTransferAction. + public PaymentResponseAction(CheckoutBankTransferAction actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + /// /// Initializes a new instance of the class /// with the class @@ -148,6 +160,10 @@ public override Object ActualInstance { this._actualInstance = value; } + else if (value.GetType() == typeof(CheckoutBankTransferAction)) + { + this._actualInstance = value; + } else if (value.GetType() == typeof(CheckoutDelegatedAuthenticationAction)) { this._actualInstance = value; @@ -178,7 +194,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: CheckoutAwaitAction, CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction"); + throw new ArgumentException("Invalid instance found. Must be the following types: CheckoutAwaitAction, CheckoutBankTransferAction, CheckoutDelegatedAuthenticationAction, CheckoutNativeRedirectAction, CheckoutQrCodeAction, CheckoutRedirectAction, CheckoutSDKAction, CheckoutThreeDS2Action, CheckoutVoucherAction"); } } } @@ -193,6 +209,16 @@ public CheckoutAwaitAction GetCheckoutAwaitAction() return (CheckoutAwaitAction)this.ActualInstance; } + /// + /// Get the actual instance of `CheckoutBankTransferAction`. If the actual instance is not `CheckoutBankTransferAction`, + /// the InvalidClassException will be thrown + /// + /// An instance of CheckoutBankTransferAction + public CheckoutBankTransferAction GetCheckoutBankTransferAction() + { + return (CheckoutBankTransferAction)this.ActualInstance; + } + /// /// Get the actual instance of `CheckoutDelegatedAuthenticationAction`. If the actual instance is not `CheckoutDelegatedAuthenticationAction`, /// the InvalidClassException will be thrown @@ -316,6 +342,13 @@ public static PaymentResponseAction FromJson(string jsonString) matchedTypes.Add("CheckoutAwaitAction"); match++; } + // Check if the jsonString type enum matches the CheckoutBankTransferAction type enums + if (ContainsValue(type)) + { + newPaymentResponseAction = new PaymentResponseAction(JsonConvert.DeserializeObject(jsonString, PaymentResponseAction.SerializerSettings)); + matchedTypes.Add("CheckoutBankTransferAction"); + match++; + } // Check if the jsonString type enum matches the CheckoutDelegatedAuthenticationAction type enums if (ContainsValue(type)) { diff --git a/Adyen/Model/Checkout/PaymentSetupRequest.cs b/Adyen/Model/Checkout/PaymentSetupRequest.cs index 379b44265..a7bffe960 100644 --- a/Adyen/Model/Checkout/PaymentSetupRequest.cs +++ b/Adyen/Model/Checkout/PaymentSetupRequest.cs @@ -179,7 +179,7 @@ protected PaymentSetupRequest() { } /// Date after which no further authorisations shall be performed. Only for 3D Secure 2.. /// Minimum number of days between authorisations. Only for 3D Secure 2.. /// The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. (required). - /// The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name`If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. (required). + /// The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. (required). /// riskData. /// The version of the SDK you are using (for Web SDK integrations only).. /// secureRemoteCommerceCheckoutData. @@ -497,9 +497,9 @@ protected PaymentSetupRequest() { } public string Reference { get; set; } /// - /// The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name`If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. + /// The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. /// - /// The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name`If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. + /// The URL to return to in case of a redirection. The format depends on the channel. This URL can have a maximum of 1024 characters. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. [DataMember(Name = "returnUrl", IsRequired = false, EmitDefaultValue = false)] public string ReturnUrl { get; set; } diff --git a/Adyen/Model/Checkout/SubMerchantInfo.cs b/Adyen/Model/Checkout/SubMerchantInfo.cs index 0d176f8c7..0aadcc313 100644 --- a/Adyen/Model/Checkout/SubMerchantInfo.cs +++ b/Adyen/Model/Checkout/SubMerchantInfo.cs @@ -37,14 +37,14 @@ public partial class SubMerchantInfo : IEquatable, IValidatable /// /// address. /// amount. - /// email. - /// id. - /// mcc. - /// name. - /// phoneNumber. + /// Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account.. + /// Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters. + /// Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits. + /// Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters. + /// Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account.. /// registeredSince. - /// taxId. - /// url. + /// Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ. + /// Required for transactions performed by registered payment facilitators. The sub-merchant's URL on the platform, i.e. the sub-merchant's shop.. public SubMerchantInfo(BillingAddress address = default(BillingAddress), Amount amount = default(Amount), string email = default(string), string id = default(string), string mcc = default(string), string name = default(string), string phoneNumber = default(string), string registeredSince = default(string), string taxId = default(string), string url = default(string)) { this.Address = address; @@ -72,32 +72,37 @@ public partial class SubMerchantInfo : IEquatable, IValidatable public Amount Amount { get; set; } /// - /// Gets or Sets Email + /// Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account. /// + /// Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant's account. [DataMember(Name = "email", EmitDefaultValue = false)] public string Email { get; set; } /// - /// Gets or Sets Id + /// Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters /// + /// Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters [DataMember(Name = "id", EmitDefaultValue = false)] public string Id { get; set; } /// - /// Gets or Sets Mcc + /// Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits /// + /// Required for transactions performed by registered payment facilitators. The sub-merchant's 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits [DataMember(Name = "mcc", EmitDefaultValue = false)] public string Mcc { get; set; } /// - /// Gets or Sets Name + /// Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters /// + /// Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters [DataMember(Name = "name", EmitDefaultValue = false)] public string Name { get; set; } /// - /// Gets or Sets PhoneNumber + /// Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account. /// + /// Required for transactions performed by registered payment facilitators. The phone number associated with the sub-merchant's account. [DataMember(Name = "phoneNumber", EmitDefaultValue = false)] public string PhoneNumber { get; set; } @@ -108,14 +113,16 @@ public partial class SubMerchantInfo : IEquatable, IValidatable public string RegisteredSince { get; set; } /// - /// Gets or Sets TaxId + /// Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ /// + /// Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ [DataMember(Name = "taxId", EmitDefaultValue = false)] public string TaxId { get; set; } /// - /// Gets or Sets Url + /// Required for transactions performed by registered payment facilitators. The sub-merchant's URL on the platform, i.e. the sub-merchant's shop. /// + /// Required for transactions performed by registered payment facilitators. The sub-merchant's URL on the platform, i.e. the sub-merchant's shop. [DataMember(Name = "url", EmitDefaultValue = false)] public string Url { get; set; } diff --git a/Adyen/Model/LegalEntityManagement/IdentificationData.cs b/Adyen/Model/LegalEntityManagement/IdentificationData.cs index aef357684..99155e004 100644 --- a/Adyen/Model/LegalEntityManagement/IdentificationData.cs +++ b/Adyen/Model/LegalEntityManagement/IdentificationData.cs @@ -33,9 +33,9 @@ namespace Adyen.Model.LegalEntityManagement public partial class IdentificationData : IEquatable, IValidatableObject { /// - /// Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber + /// Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** /// - /// Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber + /// Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** [JsonConverter(typeof(StringEnumConverter))] public enum TypeEnum { @@ -67,9 +67,9 @@ public enum TypeEnum /// - /// Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber + /// Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** /// - /// Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber + /// Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** [DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)] public TypeEnum Type { get; set; } /// @@ -86,7 +86,7 @@ protected IdentificationData() { } /// The state or province where the document was issued (AU only).. /// Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. To verify their identity, Adyen will require them to upload an ID document.. /// The number in the document.. - /// Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber (required). + /// Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** (required). public IdentificationData(string cardNumber = default(string), string expiryDate = default(string), string issuerCountry = default(string), string issuerState = default(string), bool? nationalIdExempt = default(bool?), string number = default(string), TypeEnum type = default(TypeEnum)) { this.Type = type; diff --git a/Adyen/Model/LegalEntityManagement/VerificationError.cs b/Adyen/Model/LegalEntityManagement/VerificationError.cs index 5b1afdf3e..d906970a0 100644 --- a/Adyen/Model/LegalEntityManagement/VerificationError.cs +++ b/Adyen/Model/LegalEntityManagement/VerificationError.cs @@ -349,9 +349,9 @@ public enum CapabilitiesEnum [DataMember(Name = "capabilities", EmitDefaultValue = false)] public List Capabilities { get; set; } /// - /// The type of error. + /// The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** /// - /// The type of error. + /// The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** [JsonConverter(typeof(StringEnumConverter))] public enum TypeEnum { @@ -389,9 +389,9 @@ public enum TypeEnum /// - /// The type of error. + /// The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** /// - /// The type of error. + /// The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** [DataMember(Name = "type", EmitDefaultValue = false)] public TypeEnum? Type { get; set; } /// @@ -402,7 +402,7 @@ public enum TypeEnum /// The general error message.. /// An object containing possible solutions to fix a verification error.. /// An array containing more granular information about the cause of the verification error.. - /// The type of error.. + /// The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** . public VerificationError(List capabilities = default(List), string code = default(string), string message = default(string), List remediatingActions = default(List), List subErrors = default(List), TypeEnum? type = default(TypeEnum?)) { this.Capabilities = capabilities; diff --git a/Adyen/Model/LegalEntityManagement/VerificationErrorRecursive.cs b/Adyen/Model/LegalEntityManagement/VerificationErrorRecursive.cs index 6d85f70f8..ebdcb18a6 100644 --- a/Adyen/Model/LegalEntityManagement/VerificationErrorRecursive.cs +++ b/Adyen/Model/LegalEntityManagement/VerificationErrorRecursive.cs @@ -349,9 +349,9 @@ public enum CapabilitiesEnum [DataMember(Name = "capabilities", EmitDefaultValue = false)] public List Capabilities { get; set; } /// - /// The type of error. + /// The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** /// - /// The type of error. + /// The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** [JsonConverter(typeof(StringEnumConverter))] public enum TypeEnum { @@ -389,9 +389,9 @@ public enum TypeEnum /// - /// The type of error. + /// The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** /// - /// The type of error. + /// The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** [DataMember(Name = "type", EmitDefaultValue = false)] public TypeEnum? Type { get; set; } /// @@ -400,7 +400,7 @@ public enum TypeEnum /// Contains key-value pairs that specify the actions that the legal entity can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability.. /// The general error code.. /// The general error message.. - /// The type of error.. + /// The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** . /// An object containing possible solutions to fix a verification error.. public VerificationErrorRecursive(List capabilities = default(List), string code = default(string), string message = default(string), TypeEnum? type = default(TypeEnum?), List remediatingActions = default(List)) { diff --git a/Adyen/Model/Management/AccelInfo.cs b/Adyen/Model/Management/AccelInfo.cs new file mode 100644 index 000000000..1bff8c3f6 --- /dev/null +++ b/Adyen/Model/Management/AccelInfo.cs @@ -0,0 +1,175 @@ +/* +* Management API +* +* +* The version of the OpenAPI document: 3 +* +* 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.Management +{ + /// + /// AccelInfo + /// + [DataContract(Name = "AccelInfo")] + public partial class AccelInfo : IEquatable, IValidatableObject + { + /// + /// The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + /// + /// The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + [JsonConverter(typeof(StringEnumConverter))] + public enum ProcessingTypeEnum + { + /// + /// Enum Billpay for value: billpay + /// + [EnumMember(Value = "billpay")] + Billpay = 1, + + /// + /// Enum Ecom for value: ecom + /// + [EnumMember(Value = "ecom")] + Ecom = 2, + + /// + /// Enum Pos for value: pos + /// + [EnumMember(Value = "pos")] + Pos = 3 + + } + + + /// + /// The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + /// + /// The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + [DataMember(Name = "processingType", IsRequired = false, EmitDefaultValue = false)] + public ProcessingTypeEnum ProcessingType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected AccelInfo() { } + /// + /// Initializes a new instance of the class. + /// + /// The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. (required). + /// transactionDescription. + public AccelInfo(ProcessingTypeEnum processingType = default(ProcessingTypeEnum), TransactionDescriptionInfo transactionDescription = default(TransactionDescriptionInfo)) + { + this.ProcessingType = processingType; + this.TransactionDescription = transactionDescription; + } + + /// + /// Gets or Sets TransactionDescription + /// + [DataMember(Name = "transactionDescription", EmitDefaultValue = false)] + public TransactionDescriptionInfo TransactionDescription { 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 AccelInfo {\n"); + sb.Append(" ProcessingType: ").Append(ProcessingType).Append("\n"); + sb.Append(" TransactionDescription: ").Append(TransactionDescription).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 AccelInfo); + } + + /// + /// Returns true if AccelInfo instances are equal + /// + /// Instance of AccelInfo to be compared + /// Boolean + public bool Equals(AccelInfo input) + { + if (input == null) + { + return false; + } + return + ( + this.ProcessingType == input.ProcessingType || + this.ProcessingType.Equals(input.ProcessingType) + ) && + ( + this.TransactionDescription == input.TransactionDescription || + (this.TransactionDescription != null && + this.TransactionDescription.Equals(input.TransactionDescription)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.ProcessingType.GetHashCode(); + if (this.TransactionDescription != null) + { + hashCode = (hashCode * 59) + this.TransactionDescription.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/Management/Connectivity.cs b/Adyen/Model/Management/Connectivity.cs index 34b39bfe5..cdb128ca8 100644 --- a/Adyen/Model/Management/Connectivity.cs +++ b/Adyen/Model/Management/Connectivity.cs @@ -64,11 +64,19 @@ public enum SimcardStatusEnum /// Initializes a new instance of the class. /// /// Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can't use cellular connectivity.. - public Connectivity(SimcardStatusEnum? simcardStatus = default(SimcardStatusEnum?)) + /// terminalIPAddressURL. + public Connectivity(SimcardStatusEnum? simcardStatus = default(SimcardStatusEnum?), EventUrl terminalIPAddressURL = default(EventUrl)) { this.SimcardStatus = simcardStatus; + this.TerminalIPAddressURL = terminalIPAddressURL; } + /// + /// Gets or Sets TerminalIPAddressURL + /// + [DataMember(Name = "terminalIPAddressURL", EmitDefaultValue = false)] + public EventUrl TerminalIPAddressURL { get; set; } + /// /// Returns the string presentation of the object /// @@ -78,6 +86,7 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class Connectivity {\n"); sb.Append(" SimcardStatus: ").Append(SimcardStatus).Append("\n"); + sb.Append(" TerminalIPAddressURL: ").Append(TerminalIPAddressURL).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -116,6 +125,11 @@ public bool Equals(Connectivity input) ( this.SimcardStatus == input.SimcardStatus || this.SimcardStatus.Equals(input.SimcardStatus) + ) && + ( + this.TerminalIPAddressURL == input.TerminalIPAddressURL || + (this.TerminalIPAddressURL != null && + this.TerminalIPAddressURL.Equals(input.TerminalIPAddressURL)) ); } @@ -129,6 +143,10 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.SimcardStatus.GetHashCode(); + if (this.TerminalIPAddressURL != null) + { + hashCode = (hashCode * 59) + this.TerminalIPAddressURL.GetHashCode(); + } return hashCode; } } diff --git a/Adyen/Model/Management/NyceInfo.cs b/Adyen/Model/Management/NyceInfo.cs new file mode 100644 index 000000000..78ecbf3bf --- /dev/null +++ b/Adyen/Model/Management/NyceInfo.cs @@ -0,0 +1,175 @@ +/* +* Management API +* +* +* The version of the OpenAPI document: 3 +* +* 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.Management +{ + /// + /// NyceInfo + /// + [DataContract(Name = "NyceInfo")] + public partial class NyceInfo : IEquatable, IValidatableObject + { + /// + /// The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + /// + /// The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + [JsonConverter(typeof(StringEnumConverter))] + public enum ProcessingTypeEnum + { + /// + /// Enum Billpay for value: billpay + /// + [EnumMember(Value = "billpay")] + Billpay = 1, + + /// + /// Enum Ecom for value: ecom + /// + [EnumMember(Value = "ecom")] + Ecom = 2, + + /// + /// Enum Pos for value: pos + /// + [EnumMember(Value = "pos")] + Pos = 3 + + } + + + /// + /// The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + /// + /// The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + [DataMember(Name = "processingType", IsRequired = false, EmitDefaultValue = false)] + public ProcessingTypeEnum ProcessingType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NyceInfo() { } + /// + /// Initializes a new instance of the class. + /// + /// The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. (required). + /// transactionDescription. + public NyceInfo(ProcessingTypeEnum processingType = default(ProcessingTypeEnum), TransactionDescriptionInfo transactionDescription = default(TransactionDescriptionInfo)) + { + this.ProcessingType = processingType; + this.TransactionDescription = transactionDescription; + } + + /// + /// Gets or Sets TransactionDescription + /// + [DataMember(Name = "transactionDescription", EmitDefaultValue = false)] + public TransactionDescriptionInfo TransactionDescription { 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 NyceInfo {\n"); + sb.Append(" ProcessingType: ").Append(ProcessingType).Append("\n"); + sb.Append(" TransactionDescription: ").Append(TransactionDescription).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 NyceInfo); + } + + /// + /// Returns true if NyceInfo instances are equal + /// + /// Instance of NyceInfo to be compared + /// Boolean + public bool Equals(NyceInfo input) + { + if (input == null) + { + return false; + } + return + ( + this.ProcessingType == input.ProcessingType || + this.ProcessingType.Equals(input.ProcessingType) + ) && + ( + this.TransactionDescription == input.TransactionDescription || + (this.TransactionDescription != null && + this.TransactionDescription.Equals(input.TransactionDescription)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.ProcessingType.GetHashCode(); + if (this.TransactionDescription != null) + { + hashCode = (hashCode * 59) + this.TransactionDescription.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/Management/PayMeInfo.cs b/Adyen/Model/Management/PayMeInfo.cs new file mode 100644 index 000000000..bbab95e03 --- /dev/null +++ b/Adyen/Model/Management/PayMeInfo.cs @@ -0,0 +1,172 @@ +/* +* Management API +* +* +* The version of the OpenAPI document: 3 +* +* 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.Management +{ + /// + /// PayMeInfo + /// + [DataContract(Name = "PayMeInfo")] + public partial class PayMeInfo : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PayMeInfo() { } + /// + /// Initializes a new instance of the class. + /// + /// Merchant display name (required). + /// Merchant logo. Format: Base64-encoded string. (required). + /// The email address of merchant support. (required). + public PayMeInfo(string displayName = default(string), string logo = default(string), string supportEmail = default(string)) + { + this.DisplayName = displayName; + this.Logo = logo; + this.SupportEmail = supportEmail; + } + + /// + /// Merchant display name + /// + /// Merchant display name + [DataMember(Name = "displayName", IsRequired = false, EmitDefaultValue = false)] + public string DisplayName { get; set; } + + /// + /// Merchant logo. Format: Base64-encoded string. + /// + /// Merchant logo. Format: Base64-encoded string. + [DataMember(Name = "logo", IsRequired = false, EmitDefaultValue = false)] + public string Logo { get; set; } + + /// + /// The email address of merchant support. + /// + /// The email address of merchant support. + [DataMember(Name = "supportEmail", IsRequired = false, EmitDefaultValue = false)] + public string SupportEmail { 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 PayMeInfo {\n"); + sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); + sb.Append(" Logo: ").Append(Logo).Append("\n"); + sb.Append(" SupportEmail: ").Append(SupportEmail).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 PayMeInfo); + } + + /// + /// Returns true if PayMeInfo instances are equal + /// + /// Instance of PayMeInfo to be compared + /// Boolean + public bool Equals(PayMeInfo input) + { + if (input == null) + { + return false; + } + return + ( + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) + ) && + ( + this.Logo == input.Logo || + (this.Logo != null && + this.Logo.Equals(input.Logo)) + ) && + ( + this.SupportEmail == input.SupportEmail || + (this.SupportEmail != null && + this.SupportEmail.Equals(input.SupportEmail)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DisplayName != null) + { + hashCode = (hashCode * 59) + this.DisplayName.GetHashCode(); + } + if (this.Logo != null) + { + hashCode = (hashCode * 59) + this.Logo.GetHashCode(); + } + if (this.SupportEmail != null) + { + hashCode = (hashCode * 59) + this.SupportEmail.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/Management/PaymentMethod.cs b/Adyen/Model/Management/PaymentMethod.cs index 79a9aeb3e..b0411bbeb 100644 --- a/Adyen/Model/Management/PaymentMethod.cs +++ b/Adyen/Model/Management/PaymentMethod.cs @@ -80,6 +80,7 @@ protected PaymentMethod() { } /// /// Initializes a new instance of the class. /// + /// accel. /// afterpayTouch. /// Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account.. /// amex. @@ -107,10 +108,15 @@ protected PaymentMethod() { } /// maestro. /// mc. /// mealVoucherFR. + /// nyce. + /// payme. /// paypal. + /// pulse. /// Your reference for the payment method. Supported characters a-z, A-Z, 0-9.. /// The sales channel.. + /// sodexo. /// sofort. + /// star. /// The unique identifier of the store for which to configure the payment method, if any.. /// swish. /// ticket. @@ -121,9 +127,10 @@ protected PaymentMethod() { } /// visa. /// wechatpay. /// wechatpayPos. - public PaymentMethod(AfterpayTouchInfo afterpayTouch = default(AfterpayTouchInfo), bool? allowed = default(bool?), AmexInfo amex = default(AmexInfo), ApplePayInfo applePay = default(ApplePayInfo), BcmcInfo bcmc = default(BcmcInfo), string businessLineId = default(string), CartesBancairesInfo cartesBancaires = default(CartesBancairesInfo), ClearpayInfo clearpay = default(ClearpayInfo), List countries = default(List), GenericPmWithTdiInfo cup = default(GenericPmWithTdiInfo), List currencies = default(List), List customRoutingFlags = default(List), GenericPmWithTdiInfo diners = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo discover = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo eftposAustralia = default(GenericPmWithTdiInfo), bool? enabled = default(bool?), GiroPayInfo giroPay = default(GiroPayInfo), GenericPmWithTdiInfo girocard = default(GenericPmWithTdiInfo), GooglePayInfo googlePay = default(GooglePayInfo), string id = default(string), GenericPmWithTdiInfo ideal = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo interacCard = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo jcb = default(GenericPmWithTdiInfo), KlarnaInfo klarna = default(KlarnaInfo), GenericPmWithTdiInfo maestro = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo mc = default(GenericPmWithTdiInfo), MealVoucherFRInfo mealVoucherFR = default(MealVoucherFRInfo), PayPalInfo paypal = default(PayPalInfo), string reference = default(string), string shopperInteraction = default(string), SofortInfo sofort = default(SofortInfo), List storeIds = default(List), SwishInfo swish = default(SwishInfo), TicketInfo ticket = default(TicketInfo), TwintInfo twint = default(TwintInfo), string type = default(string), VerificationStatusEnum? verificationStatus = default(VerificationStatusEnum?), VippsInfo vipps = default(VippsInfo), GenericPmWithTdiInfo visa = default(GenericPmWithTdiInfo), WeChatPayInfo wechatpay = default(WeChatPayInfo), WeChatPayPosInfo wechatpayPos = default(WeChatPayPosInfo)) + public PaymentMethod(AccelInfo accel = default(AccelInfo), AfterpayTouchInfo afterpayTouch = default(AfterpayTouchInfo), bool? allowed = default(bool?), AmexInfo amex = default(AmexInfo), ApplePayInfo applePay = default(ApplePayInfo), BcmcInfo bcmc = default(BcmcInfo), string businessLineId = default(string), CartesBancairesInfo cartesBancaires = default(CartesBancairesInfo), ClearpayInfo clearpay = default(ClearpayInfo), List countries = default(List), GenericPmWithTdiInfo cup = default(GenericPmWithTdiInfo), List currencies = default(List), List customRoutingFlags = default(List), GenericPmWithTdiInfo diners = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo discover = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo eftposAustralia = default(GenericPmWithTdiInfo), bool? enabled = default(bool?), GiroPayInfo giroPay = default(GiroPayInfo), GenericPmWithTdiInfo girocard = default(GenericPmWithTdiInfo), GooglePayInfo googlePay = default(GooglePayInfo), string id = default(string), GenericPmWithTdiInfo ideal = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo interacCard = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo jcb = default(GenericPmWithTdiInfo), KlarnaInfo klarna = default(KlarnaInfo), GenericPmWithTdiInfo maestro = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo mc = default(GenericPmWithTdiInfo), MealVoucherFRInfo mealVoucherFR = default(MealVoucherFRInfo), NyceInfo nyce = default(NyceInfo), PayMeInfo payme = default(PayMeInfo), PayPalInfo paypal = default(PayPalInfo), PulseInfo pulse = default(PulseInfo), string reference = default(string), string shopperInteraction = default(string), SodexoInfo sodexo = default(SodexoInfo), SofortInfo sofort = default(SofortInfo), StarInfo star = default(StarInfo), List storeIds = default(List), SwishInfo swish = default(SwishInfo), TicketInfo ticket = default(TicketInfo), TwintInfo twint = default(TwintInfo), string type = default(string), VerificationStatusEnum? verificationStatus = default(VerificationStatusEnum?), VippsInfo vipps = default(VippsInfo), GenericPmWithTdiInfo visa = default(GenericPmWithTdiInfo), WeChatPayInfo wechatpay = default(WeChatPayInfo), WeChatPayPosInfo wechatpayPos = default(WeChatPayPosInfo)) { this.Id = id; + this.Accel = accel; this.AfterpayTouch = afterpayTouch; this.Allowed = allowed; this.Amex = amex; @@ -150,10 +157,15 @@ protected PaymentMethod() { } this.Maestro = maestro; this.Mc = mc; this.MealVoucherFR = mealVoucherFR; + this.Nyce = nyce; + this.Payme = payme; this.Paypal = paypal; + this.Pulse = pulse; this.Reference = reference; this.ShopperInteraction = shopperInteraction; + this.Sodexo = sodexo; this.Sofort = sofort; + this.Star = star; this.StoreIds = storeIds; this.Swish = swish; this.Ticket = ticket; @@ -166,6 +178,12 @@ protected PaymentMethod() { } this.WechatpayPos = wechatpayPos; } + /// + /// Gets or Sets Accel + /// + [DataMember(Name = "accel", EmitDefaultValue = false)] + public AccelInfo Accel { get; set; } + /// /// Gets or Sets AfterpayTouch /// @@ -335,12 +353,30 @@ protected PaymentMethod() { } [DataMember(Name = "mealVoucher_FR", EmitDefaultValue = false)] public MealVoucherFRInfo MealVoucherFR { get; set; } + /// + /// Gets or Sets Nyce + /// + [DataMember(Name = "nyce", EmitDefaultValue = false)] + public NyceInfo Nyce { get; set; } + + /// + /// Gets or Sets Payme + /// + [DataMember(Name = "payme", EmitDefaultValue = false)] + public PayMeInfo Payme { get; set; } + /// /// Gets or Sets Paypal /// [DataMember(Name = "paypal", EmitDefaultValue = false)] public PayPalInfo Paypal { get; set; } + /// + /// Gets or Sets Pulse + /// + [DataMember(Name = "pulse", EmitDefaultValue = false)] + public PulseInfo Pulse { get; set; } + /// /// Your reference for the payment method. Supported characters a-z, A-Z, 0-9. /// @@ -355,12 +391,24 @@ protected PaymentMethod() { } [DataMember(Name = "shopperInteraction", EmitDefaultValue = false)] public string ShopperInteraction { get; set; } + /// + /// Gets or Sets Sodexo + /// + [DataMember(Name = "sodexo", EmitDefaultValue = false)] + public SodexoInfo Sodexo { get; set; } + /// /// Gets or Sets Sofort /// [DataMember(Name = "sofort", EmitDefaultValue = false)] public SofortInfo Sofort { get; set; } + /// + /// Gets or Sets Star + /// + [DataMember(Name = "star", EmitDefaultValue = false)] + public StarInfo Star { get; set; } + /// /// The unique identifier of the store for which to configure the payment method, if any. /// @@ -425,6 +473,7 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class PaymentMethod {\n"); + sb.Append(" Accel: ").Append(Accel).Append("\n"); sb.Append(" AfterpayTouch: ").Append(AfterpayTouch).Append("\n"); sb.Append(" Allowed: ").Append(Allowed).Append("\n"); sb.Append(" Amex: ").Append(Amex).Append("\n"); @@ -452,10 +501,15 @@ public override string ToString() sb.Append(" Maestro: ").Append(Maestro).Append("\n"); sb.Append(" Mc: ").Append(Mc).Append("\n"); sb.Append(" MealVoucherFR: ").Append(MealVoucherFR).Append("\n"); + sb.Append(" Nyce: ").Append(Nyce).Append("\n"); + sb.Append(" Payme: ").Append(Payme).Append("\n"); sb.Append(" Paypal: ").Append(Paypal).Append("\n"); + sb.Append(" Pulse: ").Append(Pulse).Append("\n"); sb.Append(" Reference: ").Append(Reference).Append("\n"); sb.Append(" ShopperInteraction: ").Append(ShopperInteraction).Append("\n"); + sb.Append(" Sodexo: ").Append(Sodexo).Append("\n"); sb.Append(" Sofort: ").Append(Sofort).Append("\n"); + sb.Append(" Star: ").Append(Star).Append("\n"); sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); sb.Append(" Swish: ").Append(Swish).Append("\n"); sb.Append(" Ticket: ").Append(Ticket).Append("\n"); @@ -501,6 +555,11 @@ public bool Equals(PaymentMethod input) return false; } return + ( + this.Accel == input.Accel || + (this.Accel != null && + this.Accel.Equals(input.Accel)) + ) && ( this.AfterpayTouch == input.AfterpayTouch || (this.AfterpayTouch != null && @@ -637,11 +696,26 @@ public bool Equals(PaymentMethod input) (this.MealVoucherFR != null && this.MealVoucherFR.Equals(input.MealVoucherFR)) ) && + ( + this.Nyce == input.Nyce || + (this.Nyce != null && + this.Nyce.Equals(input.Nyce)) + ) && + ( + this.Payme == input.Payme || + (this.Payme != null && + this.Payme.Equals(input.Payme)) + ) && ( this.Paypal == input.Paypal || (this.Paypal != null && this.Paypal.Equals(input.Paypal)) ) && + ( + this.Pulse == input.Pulse || + (this.Pulse != null && + this.Pulse.Equals(input.Pulse)) + ) && ( this.Reference == input.Reference || (this.Reference != null && @@ -652,11 +726,21 @@ public bool Equals(PaymentMethod input) (this.ShopperInteraction != null && this.ShopperInteraction.Equals(input.ShopperInteraction)) ) && + ( + this.Sodexo == input.Sodexo || + (this.Sodexo != null && + this.Sodexo.Equals(input.Sodexo)) + ) && ( this.Sofort == input.Sofort || (this.Sofort != null && this.Sofort.Equals(input.Sofort)) ) && + ( + this.Star == input.Star || + (this.Star != null && + this.Star.Equals(input.Star)) + ) && ( this.StoreIds == input.StoreIds || this.StoreIds != null && @@ -718,6 +802,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.Accel != null) + { + hashCode = (hashCode * 59) + this.Accel.GetHashCode(); + } if (this.AfterpayTouch != null) { hashCode = (hashCode * 59) + this.AfterpayTouch.GetHashCode(); @@ -820,10 +908,22 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.MealVoucherFR.GetHashCode(); } + if (this.Nyce != null) + { + hashCode = (hashCode * 59) + this.Nyce.GetHashCode(); + } + if (this.Payme != null) + { + hashCode = (hashCode * 59) + this.Payme.GetHashCode(); + } if (this.Paypal != null) { hashCode = (hashCode * 59) + this.Paypal.GetHashCode(); } + if (this.Pulse != null) + { + hashCode = (hashCode * 59) + this.Pulse.GetHashCode(); + } if (this.Reference != null) { hashCode = (hashCode * 59) + this.Reference.GetHashCode(); @@ -832,10 +932,18 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ShopperInteraction.GetHashCode(); } + if (this.Sodexo != null) + { + hashCode = (hashCode * 59) + this.Sodexo.GetHashCode(); + } if (this.Sofort != null) { hashCode = (hashCode * 59) + this.Sofort.GetHashCode(); } + if (this.Star != null) + { + hashCode = (hashCode * 59) + this.Star.GetHashCode(); + } if (this.StoreIds != null) { hashCode = (hashCode * 59) + this.StoreIds.GetHashCode(); diff --git a/Adyen/Model/Management/PaymentMethodResponse.cs b/Adyen/Model/Management/PaymentMethodResponse.cs index 1f150995c..3ac483db1 100644 --- a/Adyen/Model/Management/PaymentMethodResponse.cs +++ b/Adyen/Model/Management/PaymentMethodResponse.cs @@ -38,323 +38,437 @@ public partial class PaymentMethodResponse : IEquatable, [JsonConverter(typeof(StringEnumConverter))] public enum TypesWithErrorsEnum { + /// + /// Enum Accel for value: accel + /// + [EnumMember(Value = "accel")] + Accel = 1, + /// /// Enum Afterpaytouch for value: afterpaytouch /// [EnumMember(Value = "afterpaytouch")] - Afterpaytouch = 1, + Afterpaytouch = 2, + + /// + /// Enum Alelo for value: alelo + /// + [EnumMember(Value = "alelo")] + Alelo = 3, /// /// Enum Alipay for value: alipay /// [EnumMember(Value = "alipay")] - Alipay = 2, + Alipay = 4, /// /// Enum AlipayHk for value: alipay_hk /// [EnumMember(Value = "alipay_hk")] - AlipayHk = 3, + AlipayHk = 5, /// /// Enum Amex for value: amex /// [EnumMember(Value = "amex")] - Amex = 4, + Amex = 6, /// /// Enum Applepay for value: applepay /// [EnumMember(Value = "applepay")] - Applepay = 5, + Applepay = 7, + + /// + /// Enum BaneseCard for value: banese_card + /// + [EnumMember(Value = "banese_card")] + BaneseCard = 8, + + /// + /// Enum BaneseCardCredit for value: banese_card_credit + /// + [EnumMember(Value = "banese_card_credit")] + BaneseCardCredit = 9, + + /// + /// Enum BaneseCardDebit for value: banese_card_debit + /// + [EnumMember(Value = "banese_card_debit")] + BaneseCardDebit = 10, + + /// + /// Enum BaneseCardPrepaid for value: banese_card_prepaid + /// + [EnumMember(Value = "banese_card_prepaid")] + BaneseCardPrepaid = 11, /// /// Enum Bcmc for value: bcmc /// [EnumMember(Value = "bcmc")] - Bcmc = 6, + Bcmc = 12, /// /// Enum Blik for value: blik /// [EnumMember(Value = "blik")] - Blik = 7, + Blik = 13, /// /// Enum Cartebancaire for value: cartebancaire /// [EnumMember(Value = "cartebancaire")] - Cartebancaire = 8, + Cartebancaire = 14, /// /// Enum Clearpay for value: clearpay /// [EnumMember(Value = "clearpay")] - Clearpay = 9, + Clearpay = 15, /// /// Enum Clicktopay for value: clicktopay /// [EnumMember(Value = "clicktopay")] - Clicktopay = 10, + Clicktopay = 16, + + /// + /// Enum Credtodos for value: credtodos + /// + [EnumMember(Value = "credtodos")] + Credtodos = 17, + + /// + /// Enum CredtodosPrivateCredit for value: credtodos_private_credit + /// + [EnumMember(Value = "credtodos_private_credit")] + CredtodosPrivateCredit = 18, + + /// + /// Enum CredtodosPrivateDebit for value: credtodos_private_debit + /// + [EnumMember(Value = "credtodos_private_debit")] + CredtodosPrivateDebit = 19, /// /// Enum Cup for value: cup /// [EnumMember(Value = "cup")] - Cup = 11, + Cup = 20, /// /// Enum Diners for value: diners /// [EnumMember(Value = "diners")] - Diners = 12, + Diners = 21, /// /// Enum DirectdebitGB for value: directdebit_GB /// [EnumMember(Value = "directdebit_GB")] - DirectdebitGB = 13, + DirectdebitGB = 22, /// /// Enum Discover for value: discover /// [EnumMember(Value = "discover")] - Discover = 14, + Discover = 23, /// /// Enum EbankingFI for value: ebanking_FI /// [EnumMember(Value = "ebanking_FI")] - EbankingFI = 15, + EbankingFI = 24, /// /// Enum EftposAustralia for value: eftpos_australia /// [EnumMember(Value = "eftpos_australia")] - EftposAustralia = 16, + EftposAustralia = 25, /// /// Enum Elo for value: elo /// [EnumMember(Value = "elo")] - Elo = 17, + Elo = 26, /// /// Enum Elocredit for value: elocredit /// [EnumMember(Value = "elocredit")] - Elocredit = 18, + Elocredit = 27, /// /// Enum Elodebit for value: elodebit /// [EnumMember(Value = "elodebit")] - Elodebit = 19, + Elodebit = 28, /// /// Enum Girocard for value: girocard /// [EnumMember(Value = "girocard")] - Girocard = 20, + Girocard = 29, /// /// Enum Googlepay for value: googlepay /// [EnumMember(Value = "googlepay")] - Googlepay = 21, + Googlepay = 30, /// /// Enum Hiper for value: hiper /// [EnumMember(Value = "hiper")] - Hiper = 22, + Hiper = 31, /// /// Enum Hipercard for value: hipercard /// [EnumMember(Value = "hipercard")] - Hipercard = 23, + Hipercard = 32, /// /// Enum Ideal for value: ideal /// [EnumMember(Value = "ideal")] - Ideal = 24, + Ideal = 33, /// /// Enum InteracCard for value: interac_card /// [EnumMember(Value = "interac_card")] - InteracCard = 25, + InteracCard = 34, /// /// Enum Jcb for value: jcb /// [EnumMember(Value = "jcb")] - Jcb = 26, + Jcb = 35, /// /// Enum Klarna for value: klarna /// [EnumMember(Value = "klarna")] - Klarna = 27, + Klarna = 36, /// /// Enum KlarnaAccount for value: klarna_account /// [EnumMember(Value = "klarna_account")] - KlarnaAccount = 28, + KlarnaAccount = 37, /// /// Enum KlarnaPaynow for value: klarna_paynow /// [EnumMember(Value = "klarna_paynow")] - KlarnaPaynow = 29, + KlarnaPaynow = 38, /// /// Enum Maestro for value: maestro /// [EnumMember(Value = "maestro")] - Maestro = 30, + Maestro = 39, /// /// Enum Mbway for value: mbway /// [EnumMember(Value = "mbway")] - Mbway = 31, + Mbway = 40, /// /// Enum Mc for value: mc /// [EnumMember(Value = "mc")] - Mc = 32, + Mc = 41, /// /// Enum Mcdebit for value: mcdebit /// [EnumMember(Value = "mcdebit")] - Mcdebit = 33, + Mcdebit = 42, /// /// Enum MealVoucherFR for value: mealVoucher_FR /// [EnumMember(Value = "mealVoucher_FR")] - MealVoucherFR = 34, + MealVoucherFR = 43, /// /// Enum Mobilepay for value: mobilepay /// [EnumMember(Value = "mobilepay")] - Mobilepay = 35, + Mobilepay = 44, /// /// Enum Multibanco for value: multibanco /// [EnumMember(Value = "multibanco")] - Multibanco = 36, + Multibanco = 45, + + /// + /// Enum Nyce for value: nyce + /// + [EnumMember(Value = "nyce")] + Nyce = 46, /// /// Enum OnlineBankingPL for value: onlineBanking_PL /// [EnumMember(Value = "onlineBanking_PL")] - OnlineBankingPL = 37, + OnlineBankingPL = 47, /// /// Enum Paybybank for value: paybybank /// [EnumMember(Value = "paybybank")] - Paybybank = 38, + Paybybank = 48, + + /// + /// Enum Payme for value: payme + /// + [EnumMember(Value = "payme")] + Payme = 49, + + /// + /// Enum PaymePos for value: payme_pos + /// + [EnumMember(Value = "payme_pos")] + PaymePos = 50, /// /// Enum Paynow for value: paynow /// [EnumMember(Value = "paynow")] - Paynow = 39, + Paynow = 51, /// /// Enum PaynowPos for value: paynow_pos /// [EnumMember(Value = "paynow_pos")] - PaynowPos = 40, + PaynowPos = 52, /// /// Enum Paypal for value: paypal /// [EnumMember(Value = "paypal")] - Paypal = 41, + Paypal = 53, /// /// Enum Payshop for value: payshop /// [EnumMember(Value = "payshop")] - Payshop = 42, + Payshop = 54, + + /// + /// Enum Pulse for value: pulse + /// + [EnumMember(Value = "pulse")] + Pulse = 55, + + /// + /// Enum Sodexo for value: sodexo + /// + [EnumMember(Value = "sodexo")] + Sodexo = 56, + + /// + /// Enum Star for value: star + /// + [EnumMember(Value = "star")] + Star = 57, /// /// Enum Swish for value: swish /// [EnumMember(Value = "swish")] - Swish = 43, + Swish = 58, /// /// Enum Ticket for value: ticket /// [EnumMember(Value = "ticket")] - Ticket = 44, + Ticket = 59, + + /// + /// Enum TodoGiftcard for value: todo_giftcard + /// + [EnumMember(Value = "todo_giftcard")] + TodoGiftcard = 60, /// /// Enum Trustly for value: trustly /// [EnumMember(Value = "trustly")] - Trustly = 45, + Trustly = 61, /// /// Enum Twint for value: twint /// [EnumMember(Value = "twint")] - Twint = 46, + Twint = 62, /// /// Enum TwintPos for value: twint_pos /// [EnumMember(Value = "twint_pos")] - TwintPos = 47, + TwintPos = 63, + + /// + /// Enum UpBrazilCredit for value: up_brazil_credit + /// + [EnumMember(Value = "up_brazil_credit")] + UpBrazilCredit = 64, + + /// + /// Enum ValeRefeicao for value: vale_refeicao + /// + [EnumMember(Value = "vale_refeicao")] + ValeRefeicao = 65, + + /// + /// Enum ValeRefeicaoPrepaid for value: vale_refeicao_prepaid + /// + [EnumMember(Value = "vale_refeicao_prepaid")] + ValeRefeicaoPrepaid = 66, /// /// Enum Vipps for value: vipps /// [EnumMember(Value = "vipps")] - Vipps = 48, + Vipps = 67, /// /// Enum Visa for value: visa /// [EnumMember(Value = "visa")] - Visa = 49, + Visa = 68, /// /// Enum Visadebit for value: visadebit /// [EnumMember(Value = "visadebit")] - Visadebit = 50, + Visadebit = 69, /// /// Enum Vpay for value: vpay /// [EnumMember(Value = "vpay")] - Vpay = 51, + Vpay = 70, /// /// Enum Wechatpay for value: wechatpay /// [EnumMember(Value = "wechatpay")] - Wechatpay = 52, + Wechatpay = 71, /// /// Enum WechatpayPos for value: wechatpay_pos /// [EnumMember(Value = "wechatpay_pos")] - WechatpayPos = 53 + WechatpayPos = 72 } diff --git a/Adyen/Model/Management/PaymentMethodSetupInfo.cs b/Adyen/Model/Management/PaymentMethodSetupInfo.cs index ddd8f014f..41512db33 100644 --- a/Adyen/Model/Management/PaymentMethodSetupInfo.cs +++ b/Adyen/Model/Management/PaymentMethodSetupInfo.cs @@ -79,323 +79,437 @@ public enum ShopperInteractionEnum [JsonConverter(typeof(StringEnumConverter))] public enum TypeEnum { + /// + /// Enum Accel for value: accel + /// + [EnumMember(Value = "accel")] + Accel = 1, + /// /// Enum Afterpaytouch for value: afterpaytouch /// [EnumMember(Value = "afterpaytouch")] - Afterpaytouch = 1, + Afterpaytouch = 2, + + /// + /// Enum Alelo for value: alelo + /// + [EnumMember(Value = "alelo")] + Alelo = 3, /// /// Enum Alipay for value: alipay /// [EnumMember(Value = "alipay")] - Alipay = 2, + Alipay = 4, /// /// Enum AlipayHk for value: alipay_hk /// [EnumMember(Value = "alipay_hk")] - AlipayHk = 3, + AlipayHk = 5, /// /// Enum Amex for value: amex /// [EnumMember(Value = "amex")] - Amex = 4, + Amex = 6, /// /// Enum Applepay for value: applepay /// [EnumMember(Value = "applepay")] - Applepay = 5, + Applepay = 7, + + /// + /// Enum BaneseCard for value: banese_card + /// + [EnumMember(Value = "banese_card")] + BaneseCard = 8, + + /// + /// Enum BaneseCardCredit for value: banese_card_credit + /// + [EnumMember(Value = "banese_card_credit")] + BaneseCardCredit = 9, + + /// + /// Enum BaneseCardDebit for value: banese_card_debit + /// + [EnumMember(Value = "banese_card_debit")] + BaneseCardDebit = 10, + + /// + /// Enum BaneseCardPrepaid for value: banese_card_prepaid + /// + [EnumMember(Value = "banese_card_prepaid")] + BaneseCardPrepaid = 11, /// /// Enum Bcmc for value: bcmc /// [EnumMember(Value = "bcmc")] - Bcmc = 6, + Bcmc = 12, /// /// Enum Blik for value: blik /// [EnumMember(Value = "blik")] - Blik = 7, + Blik = 13, /// /// Enum Cartebancaire for value: cartebancaire /// [EnumMember(Value = "cartebancaire")] - Cartebancaire = 8, + Cartebancaire = 14, /// /// Enum Clearpay for value: clearpay /// [EnumMember(Value = "clearpay")] - Clearpay = 9, + Clearpay = 15, /// /// Enum Clicktopay for value: clicktopay /// [EnumMember(Value = "clicktopay")] - Clicktopay = 10, + Clicktopay = 16, + + /// + /// Enum Credtodos for value: credtodos + /// + [EnumMember(Value = "credtodos")] + Credtodos = 17, + + /// + /// Enum CredtodosPrivateCredit for value: credtodos_private_credit + /// + [EnumMember(Value = "credtodos_private_credit")] + CredtodosPrivateCredit = 18, + + /// + /// Enum CredtodosPrivateDebit for value: credtodos_private_debit + /// + [EnumMember(Value = "credtodos_private_debit")] + CredtodosPrivateDebit = 19, /// /// Enum Cup for value: cup /// [EnumMember(Value = "cup")] - Cup = 11, + Cup = 20, /// /// Enum Diners for value: diners /// [EnumMember(Value = "diners")] - Diners = 12, + Diners = 21, /// /// Enum DirectdebitGB for value: directdebit_GB /// [EnumMember(Value = "directdebit_GB")] - DirectdebitGB = 13, + DirectdebitGB = 22, /// /// Enum Discover for value: discover /// [EnumMember(Value = "discover")] - Discover = 14, + Discover = 23, /// /// Enum EbankingFI for value: ebanking_FI /// [EnumMember(Value = "ebanking_FI")] - EbankingFI = 15, + EbankingFI = 24, /// /// Enum EftposAustralia for value: eftpos_australia /// [EnumMember(Value = "eftpos_australia")] - EftposAustralia = 16, + EftposAustralia = 25, /// /// Enum Elo for value: elo /// [EnumMember(Value = "elo")] - Elo = 17, + Elo = 26, /// /// Enum Elocredit for value: elocredit /// [EnumMember(Value = "elocredit")] - Elocredit = 18, + Elocredit = 27, /// /// Enum Elodebit for value: elodebit /// [EnumMember(Value = "elodebit")] - Elodebit = 19, + Elodebit = 28, /// /// Enum Girocard for value: girocard /// [EnumMember(Value = "girocard")] - Girocard = 20, + Girocard = 29, /// /// Enum Googlepay for value: googlepay /// [EnumMember(Value = "googlepay")] - Googlepay = 21, + Googlepay = 30, /// /// Enum Hiper for value: hiper /// [EnumMember(Value = "hiper")] - Hiper = 22, + Hiper = 31, /// /// Enum Hipercard for value: hipercard /// [EnumMember(Value = "hipercard")] - Hipercard = 23, + Hipercard = 32, /// /// Enum Ideal for value: ideal /// [EnumMember(Value = "ideal")] - Ideal = 24, + Ideal = 33, /// /// Enum InteracCard for value: interac_card /// [EnumMember(Value = "interac_card")] - InteracCard = 25, + InteracCard = 34, /// /// Enum Jcb for value: jcb /// [EnumMember(Value = "jcb")] - Jcb = 26, + Jcb = 35, /// /// Enum Klarna for value: klarna /// [EnumMember(Value = "klarna")] - Klarna = 27, + Klarna = 36, /// /// Enum KlarnaAccount for value: klarna_account /// [EnumMember(Value = "klarna_account")] - KlarnaAccount = 28, + KlarnaAccount = 37, /// /// Enum KlarnaPaynow for value: klarna_paynow /// [EnumMember(Value = "klarna_paynow")] - KlarnaPaynow = 29, + KlarnaPaynow = 38, /// /// Enum Maestro for value: maestro /// [EnumMember(Value = "maestro")] - Maestro = 30, + Maestro = 39, /// /// Enum Mbway for value: mbway /// [EnumMember(Value = "mbway")] - Mbway = 31, + Mbway = 40, /// /// Enum Mc for value: mc /// [EnumMember(Value = "mc")] - Mc = 32, + Mc = 41, /// /// Enum Mcdebit for value: mcdebit /// [EnumMember(Value = "mcdebit")] - Mcdebit = 33, + Mcdebit = 42, /// /// Enum MealVoucherFR for value: mealVoucher_FR /// [EnumMember(Value = "mealVoucher_FR")] - MealVoucherFR = 34, + MealVoucherFR = 43, /// /// Enum Mobilepay for value: mobilepay /// [EnumMember(Value = "mobilepay")] - Mobilepay = 35, + Mobilepay = 44, /// /// Enum Multibanco for value: multibanco /// [EnumMember(Value = "multibanco")] - Multibanco = 36, + Multibanco = 45, + + /// + /// Enum Nyce for value: nyce + /// + [EnumMember(Value = "nyce")] + Nyce = 46, /// /// Enum OnlineBankingPL for value: onlineBanking_PL /// [EnumMember(Value = "onlineBanking_PL")] - OnlineBankingPL = 37, + OnlineBankingPL = 47, /// /// Enum Paybybank for value: paybybank /// [EnumMember(Value = "paybybank")] - Paybybank = 38, + Paybybank = 48, + + /// + /// Enum Payme for value: payme + /// + [EnumMember(Value = "payme")] + Payme = 49, + + /// + /// Enum PaymePos for value: payme_pos + /// + [EnumMember(Value = "payme_pos")] + PaymePos = 50, /// /// Enum Paynow for value: paynow /// [EnumMember(Value = "paynow")] - Paynow = 39, + Paynow = 51, /// /// Enum PaynowPos for value: paynow_pos /// [EnumMember(Value = "paynow_pos")] - PaynowPos = 40, + PaynowPos = 52, /// /// Enum Paypal for value: paypal /// [EnumMember(Value = "paypal")] - Paypal = 41, + Paypal = 53, /// /// Enum Payshop for value: payshop /// [EnumMember(Value = "payshop")] - Payshop = 42, + Payshop = 54, + + /// + /// Enum Pulse for value: pulse + /// + [EnumMember(Value = "pulse")] + Pulse = 55, + + /// + /// Enum Sodexo for value: sodexo + /// + [EnumMember(Value = "sodexo")] + Sodexo = 56, + + /// + /// Enum Star for value: star + /// + [EnumMember(Value = "star")] + Star = 57, /// /// Enum Swish for value: swish /// [EnumMember(Value = "swish")] - Swish = 43, + Swish = 58, /// /// Enum Ticket for value: ticket /// [EnumMember(Value = "ticket")] - Ticket = 44, + Ticket = 59, + + /// + /// Enum TodoGiftcard for value: todo_giftcard + /// + [EnumMember(Value = "todo_giftcard")] + TodoGiftcard = 60, /// /// Enum Trustly for value: trustly /// [EnumMember(Value = "trustly")] - Trustly = 45, + Trustly = 61, /// /// Enum Twint for value: twint /// [EnumMember(Value = "twint")] - Twint = 46, + Twint = 62, /// /// Enum TwintPos for value: twint_pos /// [EnumMember(Value = "twint_pos")] - TwintPos = 47, + TwintPos = 63, + + /// + /// Enum UpBrazilCredit for value: up_brazil_credit + /// + [EnumMember(Value = "up_brazil_credit")] + UpBrazilCredit = 64, + + /// + /// Enum ValeRefeicao for value: vale_refeicao + /// + [EnumMember(Value = "vale_refeicao")] + ValeRefeicao = 65, + + /// + /// Enum ValeRefeicaoPrepaid for value: vale_refeicao_prepaid + /// + [EnumMember(Value = "vale_refeicao_prepaid")] + ValeRefeicaoPrepaid = 66, /// /// Enum Vipps for value: vipps /// [EnumMember(Value = "vipps")] - Vipps = 48, + Vipps = 67, /// /// Enum Visa for value: visa /// [EnumMember(Value = "visa")] - Visa = 49, + Visa = 68, /// /// Enum Visadebit for value: visadebit /// [EnumMember(Value = "visadebit")] - Visadebit = 50, + Visadebit = 69, /// /// Enum Vpay for value: vpay /// [EnumMember(Value = "vpay")] - Vpay = 51, + Vpay = 70, /// /// Enum Wechatpay for value: wechatpay /// [EnumMember(Value = "wechatpay")] - Wechatpay = 52, + Wechatpay = 71, /// /// Enum WechatpayPos for value: wechatpay_pos /// [EnumMember(Value = "wechatpay_pos")] - WechatpayPos = 53 + WechatpayPos = 72 } @@ -414,6 +528,7 @@ protected PaymentMethodSetupInfo() { } /// /// Initializes a new instance of the class. /// + /// accel. /// afterpayTouch. /// amex. /// applePay. @@ -438,10 +553,15 @@ protected PaymentMethodSetupInfo() { } /// maestro. /// mc. /// mealVoucherFR. + /// nyce. + /// payme. /// paypal. + /// pulse. /// Your reference for the payment method. Supported characters a-z, A-Z, 0-9.. /// The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. . + /// sodexo. /// sofort. + /// star. /// The unique identifier of the store for which to configure the payment method, if any.. /// swish. /// ticket. @@ -451,9 +571,10 @@ protected PaymentMethodSetupInfo() { } /// visa. /// wechatpay. /// wechatpayPos. - public PaymentMethodSetupInfo(AfterpayTouchInfo afterpayTouch = default(AfterpayTouchInfo), AmexInfo amex = default(AmexInfo), ApplePayInfo applePay = default(ApplePayInfo), BcmcInfo bcmc = default(BcmcInfo), string businessLineId = default(string), CartesBancairesInfo cartesBancaires = default(CartesBancairesInfo), ClearpayInfo clearpay = default(ClearpayInfo), List countries = default(List), GenericPmWithTdiInfo cup = default(GenericPmWithTdiInfo), List currencies = default(List), List customRoutingFlags = default(List), GenericPmWithTdiInfo diners = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo discover = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo eftposAustralia = default(GenericPmWithTdiInfo), GiroPayInfo giroPay = default(GiroPayInfo), GenericPmWithTdiInfo girocard = default(GenericPmWithTdiInfo), GooglePayInfo googlePay = default(GooglePayInfo), GenericPmWithTdiInfo ideal = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo interacCard = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo jcb = default(GenericPmWithTdiInfo), KlarnaInfo klarna = default(KlarnaInfo), GenericPmWithTdiInfo maestro = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo mc = default(GenericPmWithTdiInfo), MealVoucherFRInfo mealVoucherFR = default(MealVoucherFRInfo), PayPalInfo paypal = default(PayPalInfo), string reference = default(string), ShopperInteractionEnum? shopperInteraction = default(ShopperInteractionEnum?), SofortInfo sofort = default(SofortInfo), List storeIds = default(List), SwishInfo swish = default(SwishInfo), TicketInfo ticket = default(TicketInfo), TwintInfo twint = default(TwintInfo), TypeEnum type = default(TypeEnum), VippsInfo vipps = default(VippsInfo), GenericPmWithTdiInfo visa = default(GenericPmWithTdiInfo), WeChatPayInfo wechatpay = default(WeChatPayInfo), WeChatPayPosInfo wechatpayPos = default(WeChatPayPosInfo)) + public PaymentMethodSetupInfo(AccelInfo accel = default(AccelInfo), AfterpayTouchInfo afterpayTouch = default(AfterpayTouchInfo), AmexInfo amex = default(AmexInfo), ApplePayInfo applePay = default(ApplePayInfo), BcmcInfo bcmc = default(BcmcInfo), string businessLineId = default(string), CartesBancairesInfo cartesBancaires = default(CartesBancairesInfo), ClearpayInfo clearpay = default(ClearpayInfo), List countries = default(List), GenericPmWithTdiInfo cup = default(GenericPmWithTdiInfo), List currencies = default(List), List customRoutingFlags = default(List), GenericPmWithTdiInfo diners = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo discover = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo eftposAustralia = default(GenericPmWithTdiInfo), GiroPayInfo giroPay = default(GiroPayInfo), GenericPmWithTdiInfo girocard = default(GenericPmWithTdiInfo), GooglePayInfo googlePay = default(GooglePayInfo), GenericPmWithTdiInfo ideal = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo interacCard = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo jcb = default(GenericPmWithTdiInfo), KlarnaInfo klarna = default(KlarnaInfo), GenericPmWithTdiInfo maestro = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo mc = default(GenericPmWithTdiInfo), MealVoucherFRInfo mealVoucherFR = default(MealVoucherFRInfo), NyceInfo nyce = default(NyceInfo), PayMeInfo payme = default(PayMeInfo), PayPalInfo paypal = default(PayPalInfo), PulseInfo pulse = default(PulseInfo), string reference = default(string), ShopperInteractionEnum? shopperInteraction = default(ShopperInteractionEnum?), SodexoInfo sodexo = default(SodexoInfo), SofortInfo sofort = default(SofortInfo), StarInfo star = default(StarInfo), List storeIds = default(List), SwishInfo swish = default(SwishInfo), TicketInfo ticket = default(TicketInfo), TwintInfo twint = default(TwintInfo), TypeEnum type = default(TypeEnum), VippsInfo vipps = default(VippsInfo), GenericPmWithTdiInfo visa = default(GenericPmWithTdiInfo), WeChatPayInfo wechatpay = default(WeChatPayInfo), WeChatPayPosInfo wechatpayPos = default(WeChatPayPosInfo)) { this.Type = type; + this.Accel = accel; this.AfterpayTouch = afterpayTouch; this.Amex = amex; this.ApplePay = applePay; @@ -478,10 +599,15 @@ protected PaymentMethodSetupInfo() { } this.Maestro = maestro; this.Mc = mc; this.MealVoucherFR = mealVoucherFR; + this.Nyce = nyce; + this.Payme = payme; this.Paypal = paypal; + this.Pulse = pulse; this.Reference = reference; this.ShopperInteraction = shopperInteraction; + this.Sodexo = sodexo; this.Sofort = sofort; + this.Star = star; this.StoreIds = storeIds; this.Swish = swish; this.Ticket = ticket; @@ -492,6 +618,12 @@ protected PaymentMethodSetupInfo() { } this.WechatpayPos = wechatpayPos; } + /// + /// Gets or Sets Accel + /// + [DataMember(Name = "accel", EmitDefaultValue = false)] + public AccelInfo Accel { get; set; } + /// /// Gets or Sets AfterpayTouch /// @@ -640,12 +772,30 @@ protected PaymentMethodSetupInfo() { } [DataMember(Name = "mealVoucher_FR", EmitDefaultValue = false)] public MealVoucherFRInfo MealVoucherFR { get; set; } + /// + /// Gets or Sets Nyce + /// + [DataMember(Name = "nyce", EmitDefaultValue = false)] + public NyceInfo Nyce { get; set; } + + /// + /// Gets or Sets Payme + /// + [DataMember(Name = "payme", EmitDefaultValue = false)] + public PayMeInfo Payme { get; set; } + /// /// Gets or Sets Paypal /// [DataMember(Name = "paypal", EmitDefaultValue = false)] public PayPalInfo Paypal { get; set; } + /// + /// Gets or Sets Pulse + /// + [DataMember(Name = "pulse", EmitDefaultValue = false)] + public PulseInfo Pulse { get; set; } + /// /// Your reference for the payment method. Supported characters a-z, A-Z, 0-9. /// @@ -653,12 +803,24 @@ protected PaymentMethodSetupInfo() { } [DataMember(Name = "reference", EmitDefaultValue = false)] public string Reference { get; set; } + /// + /// Gets or Sets Sodexo + /// + [DataMember(Name = "sodexo", EmitDefaultValue = false)] + public SodexoInfo Sodexo { get; set; } + /// /// Gets or Sets Sofort /// [DataMember(Name = "sofort", EmitDefaultValue = false)] public SofortInfo Sofort { get; set; } + /// + /// Gets or Sets Star + /// + [DataMember(Name = "star", EmitDefaultValue = false)] + public StarInfo Star { get; set; } + /// /// The unique identifier of the store for which to configure the payment method, if any. /// @@ -716,6 +878,7 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class PaymentMethodSetupInfo {\n"); + sb.Append(" Accel: ").Append(Accel).Append("\n"); sb.Append(" AfterpayTouch: ").Append(AfterpayTouch).Append("\n"); sb.Append(" Amex: ").Append(Amex).Append("\n"); sb.Append(" ApplePay: ").Append(ApplePay).Append("\n"); @@ -740,10 +903,15 @@ public override string ToString() sb.Append(" Maestro: ").Append(Maestro).Append("\n"); sb.Append(" Mc: ").Append(Mc).Append("\n"); sb.Append(" MealVoucherFR: ").Append(MealVoucherFR).Append("\n"); + sb.Append(" Nyce: ").Append(Nyce).Append("\n"); + sb.Append(" Payme: ").Append(Payme).Append("\n"); sb.Append(" Paypal: ").Append(Paypal).Append("\n"); + sb.Append(" Pulse: ").Append(Pulse).Append("\n"); sb.Append(" Reference: ").Append(Reference).Append("\n"); sb.Append(" ShopperInteraction: ").Append(ShopperInteraction).Append("\n"); + sb.Append(" Sodexo: ").Append(Sodexo).Append("\n"); sb.Append(" Sofort: ").Append(Sofort).Append("\n"); + sb.Append(" Star: ").Append(Star).Append("\n"); sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); sb.Append(" Swish: ").Append(Swish).Append("\n"); sb.Append(" Ticket: ").Append(Ticket).Append("\n"); @@ -788,6 +956,11 @@ public bool Equals(PaymentMethodSetupInfo input) return false; } return + ( + this.Accel == input.Accel || + (this.Accel != null && + this.Accel.Equals(input.Accel)) + ) && ( this.AfterpayTouch == input.AfterpayTouch || (this.AfterpayTouch != null && @@ -911,11 +1084,26 @@ public bool Equals(PaymentMethodSetupInfo input) (this.MealVoucherFR != null && this.MealVoucherFR.Equals(input.MealVoucherFR)) ) && + ( + this.Nyce == input.Nyce || + (this.Nyce != null && + this.Nyce.Equals(input.Nyce)) + ) && + ( + this.Payme == input.Payme || + (this.Payme != null && + this.Payme.Equals(input.Payme)) + ) && ( this.Paypal == input.Paypal || (this.Paypal != null && this.Paypal.Equals(input.Paypal)) ) && + ( + this.Pulse == input.Pulse || + (this.Pulse != null && + this.Pulse.Equals(input.Pulse)) + ) && ( this.Reference == input.Reference || (this.Reference != null && @@ -925,11 +1113,21 @@ public bool Equals(PaymentMethodSetupInfo input) this.ShopperInteraction == input.ShopperInteraction || this.ShopperInteraction.Equals(input.ShopperInteraction) ) && + ( + this.Sodexo == input.Sodexo || + (this.Sodexo != null && + this.Sodexo.Equals(input.Sodexo)) + ) && ( this.Sofort == input.Sofort || (this.Sofort != null && this.Sofort.Equals(input.Sofort)) ) && + ( + this.Star == input.Star || + (this.Star != null && + this.Star.Equals(input.Star)) + ) && ( this.StoreIds == input.StoreIds || this.StoreIds != null && @@ -986,6 +1184,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.Accel != null) + { + hashCode = (hashCode * 59) + this.Accel.GetHashCode(); + } if (this.AfterpayTouch != null) { hashCode = (hashCode * 59) + this.AfterpayTouch.GetHashCode(); @@ -1082,19 +1284,39 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.MealVoucherFR.GetHashCode(); } + if (this.Nyce != null) + { + hashCode = (hashCode * 59) + this.Nyce.GetHashCode(); + } + if (this.Payme != null) + { + hashCode = (hashCode * 59) + this.Payme.GetHashCode(); + } if (this.Paypal != null) { hashCode = (hashCode * 59) + this.Paypal.GetHashCode(); } + if (this.Pulse != null) + { + hashCode = (hashCode * 59) + this.Pulse.GetHashCode(); + } if (this.Reference != null) { hashCode = (hashCode * 59) + this.Reference.GetHashCode(); } hashCode = (hashCode * 59) + this.ShopperInteraction.GetHashCode(); + if (this.Sodexo != null) + { + hashCode = (hashCode * 59) + this.Sodexo.GetHashCode(); + } if (this.Sofort != null) { hashCode = (hashCode * 59) + this.Sofort.GetHashCode(); } + if (this.Star != null) + { + hashCode = (hashCode * 59) + this.Star.GetHashCode(); + } if (this.StoreIds != null) { hashCode = (hashCode * 59) + this.StoreIds.GetHashCode(); diff --git a/Adyen/Model/Management/PulseInfo.cs b/Adyen/Model/Management/PulseInfo.cs new file mode 100644 index 000000000..ab83e53d3 --- /dev/null +++ b/Adyen/Model/Management/PulseInfo.cs @@ -0,0 +1,175 @@ +/* +* Management API +* +* +* The version of the OpenAPI document: 3 +* +* 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.Management +{ + /// + /// PulseInfo + /// + [DataContract(Name = "PulseInfo")] + public partial class PulseInfo : IEquatable, IValidatableObject + { + /// + /// The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + /// + /// The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + [JsonConverter(typeof(StringEnumConverter))] + public enum ProcessingTypeEnum + { + /// + /// Enum Billpay for value: billpay + /// + [EnumMember(Value = "billpay")] + Billpay = 1, + + /// + /// Enum Ecom for value: ecom + /// + [EnumMember(Value = "ecom")] + Ecom = 2, + + /// + /// Enum Pos for value: pos + /// + [EnumMember(Value = "pos")] + Pos = 3 + + } + + + /// + /// The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + /// + /// The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + [DataMember(Name = "processingType", IsRequired = false, EmitDefaultValue = false)] + public ProcessingTypeEnum ProcessingType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PulseInfo() { } + /// + /// Initializes a new instance of the class. + /// + /// The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. (required). + /// transactionDescription. + public PulseInfo(ProcessingTypeEnum processingType = default(ProcessingTypeEnum), TransactionDescriptionInfo transactionDescription = default(TransactionDescriptionInfo)) + { + this.ProcessingType = processingType; + this.TransactionDescription = transactionDescription; + } + + /// + /// Gets or Sets TransactionDescription + /// + [DataMember(Name = "transactionDescription", EmitDefaultValue = false)] + public TransactionDescriptionInfo TransactionDescription { 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 PulseInfo {\n"); + sb.Append(" ProcessingType: ").Append(ProcessingType).Append("\n"); + sb.Append(" TransactionDescription: ").Append(TransactionDescription).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 PulseInfo); + } + + /// + /// Returns true if PulseInfo instances are equal + /// + /// Instance of PulseInfo to be compared + /// Boolean + public bool Equals(PulseInfo input) + { + if (input == null) + { + return false; + } + return + ( + this.ProcessingType == input.ProcessingType || + this.ProcessingType.Equals(input.ProcessingType) + ) && + ( + this.TransactionDescription == input.TransactionDescription || + (this.TransactionDescription != null && + this.TransactionDescription.Equals(input.TransactionDescription)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.ProcessingType.GetHashCode(); + if (this.TransactionDescription != null) + { + hashCode = (hashCode * 59) + this.TransactionDescription.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/Management/SodexoInfo.cs b/Adyen/Model/Management/SodexoInfo.cs new file mode 100644 index 000000000..149db962d --- /dev/null +++ b/Adyen/Model/Management/SodexoInfo.cs @@ -0,0 +1,134 @@ +/* +* Management API +* +* +* The version of the OpenAPI document: 3 +* +* 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.Management +{ + /// + /// SodexoInfo + /// + [DataContract(Name = "SodexoInfo")] + public partial class SodexoInfo : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SodexoInfo() { } + /// + /// Initializes a new instance of the class. + /// + /// Sodexo merchantContactPhone (required). + public SodexoInfo(string merchantContactPhone = default(string)) + { + this.MerchantContactPhone = merchantContactPhone; + } + + /// + /// Sodexo merchantContactPhone + /// + /// Sodexo merchantContactPhone + [DataMember(Name = "merchantContactPhone", IsRequired = false, EmitDefaultValue = false)] + public string MerchantContactPhone { 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 SodexoInfo {\n"); + sb.Append(" MerchantContactPhone: ").Append(MerchantContactPhone).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 SodexoInfo); + } + + /// + /// Returns true if SodexoInfo instances are equal + /// + /// Instance of SodexoInfo to be compared + /// Boolean + public bool Equals(SodexoInfo input) + { + if (input == null) + { + return false; + } + return + ( + this.MerchantContactPhone == input.MerchantContactPhone || + (this.MerchantContactPhone != null && + this.MerchantContactPhone.Equals(input.MerchantContactPhone)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MerchantContactPhone != null) + { + hashCode = (hashCode * 59) + this.MerchantContactPhone.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/Management/StarInfo.cs b/Adyen/Model/Management/StarInfo.cs new file mode 100644 index 000000000..234da6d7d --- /dev/null +++ b/Adyen/Model/Management/StarInfo.cs @@ -0,0 +1,175 @@ +/* +* Management API +* +* +* The version of the OpenAPI document: 3 +* +* 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.Management +{ + /// + /// StarInfo + /// + [DataContract(Name = "StarInfo")] + public partial class StarInfo : IEquatable, IValidatableObject + { + /// + /// The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + /// + /// The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + [JsonConverter(typeof(StringEnumConverter))] + public enum ProcessingTypeEnum + { + /// + /// Enum Billpay for value: billpay + /// + [EnumMember(Value = "billpay")] + Billpay = 1, + + /// + /// Enum Ecom for value: ecom + /// + [EnumMember(Value = "ecom")] + Ecom = 2, + + /// + /// Enum Pos for value: pos + /// + [EnumMember(Value = "pos")] + Pos = 3 + + } + + + /// + /// The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + /// + /// The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + [DataMember(Name = "processingType", IsRequired = false, EmitDefaultValue = false)] + public ProcessingTypeEnum ProcessingType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected StarInfo() { } + /// + /// Initializes a new instance of the class. + /// + /// The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. (required). + /// transactionDescription. + public StarInfo(ProcessingTypeEnum processingType = default(ProcessingTypeEnum), TransactionDescriptionInfo transactionDescription = default(TransactionDescriptionInfo)) + { + this.ProcessingType = processingType; + this.TransactionDescription = transactionDescription; + } + + /// + /// Gets or Sets TransactionDescription + /// + [DataMember(Name = "transactionDescription", EmitDefaultValue = false)] + public TransactionDescriptionInfo TransactionDescription { 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 StarInfo {\n"); + sb.Append(" ProcessingType: ").Append(ProcessingType).Append("\n"); + sb.Append(" TransactionDescription: ").Append(TransactionDescription).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 StarInfo); + } + + /// + /// Returns true if StarInfo instances are equal + /// + /// Instance of StarInfo to be compared + /// Boolean + public bool Equals(StarInfo input) + { + if (input == null) + { + return false; + } + return + ( + this.ProcessingType == input.ProcessingType || + this.ProcessingType.Equals(input.ProcessingType) + ) && + ( + this.TransactionDescription == input.TransactionDescription || + (this.TransactionDescription != null && + this.TransactionDescription.Equals(input.TransactionDescription)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.ProcessingType.GetHashCode(); + if (this.TransactionDescription != null) + { + hashCode = (hashCode * 59) + this.TransactionDescription.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/Management/UpdatePaymentMethodInfo.cs b/Adyen/Model/Management/UpdatePaymentMethodInfo.cs index 6bd090c6e..b5b3aec8c 100644 --- a/Adyen/Model/Management/UpdatePaymentMethodInfo.cs +++ b/Adyen/Model/Management/UpdatePaymentMethodInfo.cs @@ -35,6 +35,7 @@ public partial class UpdatePaymentMethodInfo : IEquatable /// Initializes a new instance of the class. /// + /// accel. /// bcmc. /// cartesBancaires. /// The list of countries where a payment method is available. By default, all countries supported by the payment method.. @@ -51,10 +52,14 @@ public partial class UpdatePaymentMethodInfo : IEquatablejcb. /// maestro. /// mc. + /// nyce. + /// pulse. + /// star. /// The list of stores for this payment method. /// visa. - public UpdatePaymentMethodInfo(BcmcInfo bcmc = default(BcmcInfo), CartesBancairesInfo cartesBancaires = default(CartesBancairesInfo), List countries = default(List), GenericPmWithTdiInfo cup = default(GenericPmWithTdiInfo), List currencies = default(List), List customRoutingFlags = default(List), GenericPmWithTdiInfo diners = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo discover = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo eftposAustralia = default(GenericPmWithTdiInfo), bool? enabled = default(bool?), GenericPmWithTdiInfo girocard = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo ideal = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo interacCard = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo jcb = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo maestro = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo mc = default(GenericPmWithTdiInfo), List storeIds = default(List), GenericPmWithTdiInfo visa = default(GenericPmWithTdiInfo)) + public UpdatePaymentMethodInfo(AccelInfo accel = default(AccelInfo), BcmcInfo bcmc = default(BcmcInfo), CartesBancairesInfo cartesBancaires = default(CartesBancairesInfo), List countries = default(List), GenericPmWithTdiInfo cup = default(GenericPmWithTdiInfo), List currencies = default(List), List customRoutingFlags = default(List), GenericPmWithTdiInfo diners = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo discover = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo eftposAustralia = default(GenericPmWithTdiInfo), bool? enabled = default(bool?), GenericPmWithTdiInfo girocard = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo ideal = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo interacCard = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo jcb = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo maestro = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo mc = default(GenericPmWithTdiInfo), NyceInfo nyce = default(NyceInfo), PulseInfo pulse = default(PulseInfo), StarInfo star = default(StarInfo), List storeIds = default(List), GenericPmWithTdiInfo visa = default(GenericPmWithTdiInfo)) { + this.Accel = accel; this.Bcmc = bcmc; this.CartesBancaires = cartesBancaires; this.Countries = countries; @@ -71,10 +76,19 @@ public partial class UpdatePaymentMethodInfo : IEquatable + /// Gets or Sets Accel + /// + [DataMember(Name = "accel", EmitDefaultValue = false)] + public AccelInfo Accel { get; set; } + /// /// Gets or Sets Bcmc /// @@ -175,6 +189,24 @@ public partial class UpdatePaymentMethodInfo : IEquatable + /// Gets or Sets Nyce + /// + [DataMember(Name = "nyce", EmitDefaultValue = false)] + public NyceInfo Nyce { get; set; } + + /// + /// Gets or Sets Pulse + /// + [DataMember(Name = "pulse", EmitDefaultValue = false)] + public PulseInfo Pulse { get; set; } + + /// + /// Gets or Sets Star + /// + [DataMember(Name = "star", EmitDefaultValue = false)] + public StarInfo Star { get; set; } + /// /// The list of stores for this payment method /// @@ -196,6 +228,7 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class UpdatePaymentMethodInfo {\n"); + sb.Append(" Accel: ").Append(Accel).Append("\n"); sb.Append(" Bcmc: ").Append(Bcmc).Append("\n"); sb.Append(" CartesBancaires: ").Append(CartesBancaires).Append("\n"); sb.Append(" Countries: ").Append(Countries).Append("\n"); @@ -212,6 +245,9 @@ public override string ToString() sb.Append(" Jcb: ").Append(Jcb).Append("\n"); sb.Append(" Maestro: ").Append(Maestro).Append("\n"); sb.Append(" Mc: ").Append(Mc).Append("\n"); + sb.Append(" Nyce: ").Append(Nyce).Append("\n"); + sb.Append(" Pulse: ").Append(Pulse).Append("\n"); + sb.Append(" Star: ").Append(Star).Append("\n"); sb.Append(" StoreIds: ").Append(StoreIds).Append("\n"); sb.Append(" Visa: ").Append(Visa).Append("\n"); sb.Append("}\n"); @@ -249,6 +285,11 @@ public bool Equals(UpdatePaymentMethodInfo input) return false; } return + ( + this.Accel == input.Accel || + (this.Accel != null && + this.Accel.Equals(input.Accel)) + ) && ( this.Bcmc == input.Bcmc || (this.Bcmc != null && @@ -331,6 +372,21 @@ public bool Equals(UpdatePaymentMethodInfo input) (this.Mc != null && this.Mc.Equals(input.Mc)) ) && + ( + this.Nyce == input.Nyce || + (this.Nyce != null && + this.Nyce.Equals(input.Nyce)) + ) && + ( + this.Pulse == input.Pulse || + (this.Pulse != null && + this.Pulse.Equals(input.Pulse)) + ) && + ( + this.Star == input.Star || + (this.Star != null && + this.Star.Equals(input.Star)) + ) && ( this.StoreIds == input.StoreIds || this.StoreIds != null && @@ -353,6 +409,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.Accel != null) + { + hashCode = (hashCode * 59) + this.Accel.GetHashCode(); + } if (this.Bcmc != null) { hashCode = (hashCode * 59) + this.Bcmc.GetHashCode(); @@ -414,6 +474,18 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Mc.GetHashCode(); } + if (this.Nyce != null) + { + hashCode = (hashCode * 59) + this.Nyce.GetHashCode(); + } + if (this.Pulse != null) + { + hashCode = (hashCode * 59) + this.Pulse.GetHashCode(); + } + if (this.Star != null) + { + hashCode = (hashCode * 59) + this.Star.GetHashCode(); + } if (this.StoreIds != null) { hashCode = (hashCode * 59) + this.StoreIds.GetHashCode(); diff --git a/Adyen/Model/Payment/AdditionalData3DSecure.cs b/Adyen/Model/Payment/AdditionalData3DSecure.cs index 526e860ac..2c988e841 100644 --- a/Adyen/Model/Payment/AdditionalData3DSecure.cs +++ b/Adyen/Model/Payment/AdditionalData3DSecure.cs @@ -81,7 +81,7 @@ public enum ChallengeWindowSizeEnum /// /// Initializes a new instance of the class. /// - /// 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 still selects the version of 3D Secure based on configuration to optimize authorisation rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen will not offer 3D Secure 2 to your shopper regardless of your configuration. . + /// 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. . /// Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen. /// 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. . /// In case of Secure+, this field must be set to **CUPSecurePlus**.. @@ -98,9 +98,9 @@ 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 still selects the version of 3D Secure based on configuration to optimize authorisation rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen will not offer 3D Secure 2 to your shopper regardless of your configuration. + /// 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. /// - /// 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 still selects the version of 3D Secure based on configuration to optimize authorisation rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen will not offer 3D Secure 2 to your shopper regardless of your configuration. + /// 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)] public string Allow3DS2 { get; set; } diff --git a/Adyen/Model/Payment/AdditionalDataLodging.cs b/Adyen/Model/Payment/AdditionalDataLodging.cs index 7c9055eca..a8a0223ce 100644 --- a/Adyen/Model/Payment/AdditionalDataLodging.cs +++ b/Adyen/Model/Payment/AdditionalDataLodging.cs @@ -38,14 +38,14 @@ public partial class AdditionalDataLodging : IEquatable, /// A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit. /// The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**.. /// The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**.. - /// The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros.. + /// The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros.. /// Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character. /// The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters. - /// The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters. * Must not start with a space *Must not be all zeros.. + /// The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros.. /// Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters. /// Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in. /// The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters. - /// The lodging property location's phone number. * Format: numeric. * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros.. + /// The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros.. /// The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 4 characters. /// The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number. /// The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number. @@ -95,9 +95,9 @@ public partial class AdditionalDataLodging : IEquatable, public string LodgingCheckOutDate { get; set; } /// - /// The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. + /// The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. /// - /// The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. + /// The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. [DataMember(Name = "lodging.customerServiceTollFreeNumber", EmitDefaultValue = false)] public string LodgingCustomerServiceTollFreeNumber { get; set; } @@ -116,9 +116,9 @@ public partial class AdditionalDataLodging : IEquatable, public string LodgingFolioCashAdvances { get; set; } /// - /// The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters. * Must not start with a space *Must not be all zeros. + /// The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. /// - /// The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters. * Must not start with a space *Must not be all zeros. + /// The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters * Must not start with a space * Must not contain any special characters * Must not be all zeros. [DataMember(Name = "lodging.folioNumber", EmitDefaultValue = false)] public string LodgingFolioNumber { get; set; } @@ -144,9 +144,9 @@ public partial class AdditionalDataLodging : IEquatable, public string LodgingPrepaidExpenses { get; set; } /// - /// The lodging property location's phone number. * Format: numeric. * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. + /// The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. /// - /// The lodging property location's phone number. * Format: numeric. * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. + /// The lodging property location's phone number. * Format: numeric * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. [DataMember(Name = "lodging.propertyPhoneNumber", EmitDefaultValue = false)] public string LodgingPropertyPhoneNumber { get; set; }