From 25d999ffc997d0d30b35ed58fbc75abf2635c5c2 Mon Sep 17 00:00:00 2001
From: AdyenAutomationBot
<38424300+AdyenAutomationBot@users.noreply.github.com>
Date: Fri, 16 Aug 2024 12:44:50 +0200
Subject: [PATCH] false[adyen-sdk-automation] automated change (#1044)
---
Adyen/Model/Checkout/AchDetails.cs | 21 +-
Adyen/Model/Checkout/Amounts.cs | 154 +++++++++
.../Model/Checkout/BacsDirectDebitDetails.cs | 21 +-
Adyen/Model/Checkout/CheckoutPaymentMethod.cs | 35 +-
.../Checkout/CreateCheckoutSessionRequest.cs | 44 ++-
.../Checkout/CreateCheckoutSessionResponse.cs | 44 ++-
Adyen/Model/Checkout/Donation.cs | 188 +++++++++++
Adyen/Model/Checkout/DonationCampaign.cs | 317 ++++++++++++++++++
.../Checkout/DonationCampaignsRequest.cs | 172 ++++++++++
.../Checkout/DonationCampaignsResponse.cs | 130 +++++++
.../Model/Checkout/DonationPaymentRequest.cs | 21 +-
Adyen/Model/Checkout/FundRecipient.cs | 21 +-
Adyen/Model/Checkout/PayPalDetails.cs | 10 +-
Adyen/Model/Checkout/PayToDetails.cs | 178 ++++++++++
Adyen/Model/Checkout/PaymentDetails.cs | 180 +++++-----
Adyen/Model/Checkout/PaymentLinkRequest.cs | 38 ++-
Adyen/Model/Checkout/PaymentLinkResponse.cs | 38 ++-
.../Model/Checkout/SepaDirectDebitDetails.cs | 21 +-
Adyen/Model/Checkout/Split.cs | 10 +-
.../Checkout/StoredPaymentMethodDetails.cs | 36 +-
Adyen/Model/LegalEntityManagement/Document.cs | 18 +-
.../GetTermsOfServiceDocumentRequest.cs | 21 +-
.../GetTermsOfServiceDocumentResponse.cs | 21 +-
.../IdentificationData.cs | 10 +-
.../LegalEntityManagement/LegalEntity.cs | 6 +-
.../LegalEntityAssociation.cs | 61 +++-
.../LegalEntityManagement/LegalEntityInfo.cs | 6 +-
.../LegalEntityInfoRequiredType.cs | 6 +-
.../OnboardingLinkSettings.cs | 75 +++--
.../LegalEntityManagement/Organization.cs | 21 +-
.../LegalEntityManagement/TaxInformation.cs | 6 +-
.../Management/CreateCompanyWebhookRequest.cs | 6 +-
.../CreateMerchantWebhookRequest.cs | 6 +-
Adyen/Model/Management/PaymentMethod.cs | 20 +-
.../Model/Management/PaymentMethodResponse.cs | 42 ++-
.../Management/PaymentMethodSetupInfo.cs | 62 +++-
Adyen/Model/Management/TicketInfo.cs | 129 +++++++
Adyen/Model/Management/Webhook.cs | 6 +-
.../TerminalBoardingData.cs | 191 +++++++++++
.../TerminalBoardingNotificationRequest.cs | 201 +++++++++++
.../TerminalBoardingNotificationResponse.cs | 129 +++++++
.../PaymentsApp/AbstractOpenAPISchema.cs | 81 +++++
.../Model/PaymentsApp/BoardingTokenRequest.cs | 134 ++++++++
.../PaymentsApp/BoardingTokenResponse.cs | 153 +++++++++
.../PaymentsApp/DefaultErrorResponseEntity.cs | 259 ++++++++++++++
Adyen/Model/PaymentsApp/InvalidField.cs | 172 ++++++++++
Adyen/Model/PaymentsApp/PaymentsAppDto.cs | 191 +++++++++++
.../Model/PaymentsApp/PaymentsAppResponse.cs | 135 ++++++++
Adyen/Model/TransferWebhooks/Card.cs | 151 +++++++++
.../TransferWebhooks/CardIdentification.cs | 315 +++++++++++++++++
.../Model/TransferWebhooks/CounterpartyV3.cs | 32 +-
.../TransferWebhooks/PartyIdentification.cs | 49 ++-
Adyen/Model/TransferWebhooks/TransferData.cs | 262 +++++++--------
.../TransferNotificationCounterParty.cs | 32 +-
Adyen/Model/Transfers/Card.cs | 151 +++++++++
Adyen/Model/Transfers/CardIdentification.cs | 315 +++++++++++++++++
Adyen/Model/Transfers/CounterpartyInfoV3.cs | 32 +-
Adyen/Model/Transfers/CounterpartyV3.cs | 32 +-
Adyen/Model/Transfers/PartyIdentification.cs | 49 ++-
Adyen/Model/Transfers/Transfer.cs | 262 +++++++--------
Adyen/Model/Transfers/TransferData.cs | 262 +++++++--------
Adyen/Model/Transfers/TransferInfo.cs | 28 +-
.../TransferNotificationCounterParty.cs | 32 +-
.../Transfers/UltimatePartyIdentification.cs | 49 ++-
Adyen/Service/Checkout/DonationsService.cs | 29 ++
Adyen/Service/PaymentsAppService.cs | 216 ++++++++++++
66 files changed, 5379 insertions(+), 766 deletions(-)
create mode 100644 Adyen/Model/Checkout/Amounts.cs
create mode 100644 Adyen/Model/Checkout/Donation.cs
create mode 100644 Adyen/Model/Checkout/DonationCampaign.cs
create mode 100644 Adyen/Model/Checkout/DonationCampaignsRequest.cs
create mode 100644 Adyen/Model/Checkout/DonationCampaignsResponse.cs
create mode 100644 Adyen/Model/Checkout/PayToDetails.cs
create mode 100644 Adyen/Model/Management/TicketInfo.cs
create mode 100644 Adyen/Model/ManagementWebhooks/TerminalBoardingData.cs
create mode 100644 Adyen/Model/ManagementWebhooks/TerminalBoardingNotificationRequest.cs
create mode 100644 Adyen/Model/ManagementWebhooks/TerminalBoardingNotificationResponse.cs
create mode 100644 Adyen/Model/PaymentsApp/AbstractOpenAPISchema.cs
create mode 100644 Adyen/Model/PaymentsApp/BoardingTokenRequest.cs
create mode 100644 Adyen/Model/PaymentsApp/BoardingTokenResponse.cs
create mode 100644 Adyen/Model/PaymentsApp/DefaultErrorResponseEntity.cs
create mode 100644 Adyen/Model/PaymentsApp/InvalidField.cs
create mode 100644 Adyen/Model/PaymentsApp/PaymentsAppDto.cs
create mode 100644 Adyen/Model/PaymentsApp/PaymentsAppResponse.cs
create mode 100644 Adyen/Model/TransferWebhooks/Card.cs
create mode 100644 Adyen/Model/TransferWebhooks/CardIdentification.cs
create mode 100644 Adyen/Model/Transfers/Card.cs
create mode 100644 Adyen/Model/Transfers/CardIdentification.cs
create mode 100644 Adyen/Service/PaymentsAppService.cs
diff --git a/Adyen/Model/Checkout/AchDetails.cs b/Adyen/Model/Checkout/AchDetails.cs
index 7baed30f2..b02e9a220 100644
--- a/Adyen/Model/Checkout/AchDetails.cs
+++ b/Adyen/Model/Checkout/AchDetails.cs
@@ -130,8 +130,9 @@ public enum TypeEnum
/// 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..
+ /// The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts..
/// **ach** (default to TypeEnum.Ach).
- public AchDetails(string bankAccountNumber = default(string), BankAccountTypeEnum? bankAccountType = default(BankAccountTypeEnum?), string bankLocationId = default(string), string checkoutAttemptId = default(string), string encryptedBankAccountNumber = default(string), string encryptedBankLocationId = default(string), string ownerName = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = TypeEnum.Ach)
+ public AchDetails(string bankAccountNumber = default(string), BankAccountTypeEnum? bankAccountType = default(BankAccountTypeEnum?), string bankLocationId = default(string), string checkoutAttemptId = default(string), string encryptedBankAccountNumber = default(string), string encryptedBankLocationId = default(string), string ownerName = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), string transferInstrumentId = default(string), TypeEnum? type = TypeEnum.Ach)
{
this.BankAccountNumber = bankAccountNumber;
this.BankAccountType = bankAccountType;
@@ -142,6 +143,7 @@ public enum TypeEnum
this.OwnerName = ownerName;
this.RecurringDetailReference = recurringDetailReference;
this.StoredPaymentMethodId = storedPaymentMethodId;
+ this.TransferInstrumentId = transferInstrumentId;
this.Type = type;
}
@@ -202,6 +204,13 @@ public enum TypeEnum
[DataMember(Name = "storedPaymentMethodId", EmitDefaultValue = false)]
public string StoredPaymentMethodId { get; set; }
+ ///
+ /// The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts.
+ ///
+ /// The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts.
+ [DataMember(Name = "transferInstrumentId", EmitDefaultValue = false)]
+ public string TransferInstrumentId { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -219,6 +228,7 @@ public override string ToString()
sb.Append(" OwnerName: ").Append(OwnerName).Append("\n");
sb.Append(" RecurringDetailReference: ").Append(RecurringDetailReference).Append("\n");
sb.Append(" StoredPaymentMethodId: ").Append(StoredPaymentMethodId).Append("\n");
+ sb.Append(" TransferInstrumentId: ").Append(TransferInstrumentId).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -299,6 +309,11 @@ public bool Equals(AchDetails input)
(this.StoredPaymentMethodId != null &&
this.StoredPaymentMethodId.Equals(input.StoredPaymentMethodId))
) &&
+ (
+ this.TransferInstrumentId == input.TransferInstrumentId ||
+ (this.TransferInstrumentId != null &&
+ this.TransferInstrumentId.Equals(input.TransferInstrumentId))
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -347,6 +362,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.StoredPaymentMethodId.GetHashCode();
}
+ if (this.TransferInstrumentId != null)
+ {
+ hashCode = (hashCode * 59) + this.TransferInstrumentId.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/Checkout/Amounts.cs b/Adyen/Model/Checkout/Amounts.cs
new file mode 100644
index 000000000..0383533bf
--- /dev/null
+++ b/Adyen/Model/Checkout/Amounts.cs
@@ -0,0 +1,154 @@
+/*
+* 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
+{
+ ///
+ /// Amounts
+ ///
+ [DataContract(Name = "Amounts")]
+ public partial class Amounts : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected Amounts() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). (required).
+ /// The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)). (required).
+ public Amounts(string currency = default(string), List values = default(List))
+ {
+ this.Currency = currency;
+ this.Values = values;
+ }
+
+ ///
+ /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).
+ ///
+ /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).
+ [DataMember(Name = "currency", IsRequired = false, EmitDefaultValue = false)]
+ public string Currency { get; set; }
+
+ ///
+ /// The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)).
+ ///
+ /// The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)).
+ [DataMember(Name = "values", IsRequired = false, EmitDefaultValue = false)]
+ public List Values { 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 Amounts {\n");
+ sb.Append(" Currency: ").Append(Currency).Append("\n");
+ sb.Append(" Values: ").Append(Values).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 Amounts);
+ }
+
+ ///
+ /// Returns true if Amounts instances are equal
+ ///
+ /// Instance of Amounts to be compared
+ /// Boolean
+ public bool Equals(Amounts input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Currency == input.Currency ||
+ (this.Currency != null &&
+ this.Currency.Equals(input.Currency))
+ ) &&
+ (
+ this.Values == input.Values ||
+ this.Values != null &&
+ input.Values != null &&
+ this.Values.SequenceEqual(input.Values)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.Currency != null)
+ {
+ hashCode = (hashCode * 59) + this.Currency.GetHashCode();
+ }
+ if (this.Values != null)
+ {
+ hashCode = (hashCode * 59) + this.Values.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/BacsDirectDebitDetails.cs b/Adyen/Model/Checkout/BacsDirectDebitDetails.cs
index fc12240d1..e02285d27 100644
--- a/Adyen/Model/Checkout/BacsDirectDebitDetails.cs
+++ b/Adyen/Model/Checkout/BacsDirectDebitDetails.cs
@@ -63,8 +63,9 @@ public enum TypeEnum
/// The name of the bank account holder..
/// 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..
+ /// The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts..
/// **directdebit_GB** (default to TypeEnum.DirectdebitGB).
- public BacsDirectDebitDetails(string bankAccountNumber = default(string), string bankLocationId = default(string), string checkoutAttemptId = default(string), string holderName = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = TypeEnum.DirectdebitGB)
+ public BacsDirectDebitDetails(string bankAccountNumber = default(string), string bankLocationId = default(string), string checkoutAttemptId = default(string), string holderName = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), string transferInstrumentId = default(string), TypeEnum? type = TypeEnum.DirectdebitGB)
{
this.BankAccountNumber = bankAccountNumber;
this.BankLocationId = bankLocationId;
@@ -72,6 +73,7 @@ public enum TypeEnum
this.HolderName = holderName;
this.RecurringDetailReference = recurringDetailReference;
this.StoredPaymentMethodId = storedPaymentMethodId;
+ this.TransferInstrumentId = transferInstrumentId;
this.Type = type;
}
@@ -118,6 +120,13 @@ public enum TypeEnum
[DataMember(Name = "storedPaymentMethodId", EmitDefaultValue = false)]
public string StoredPaymentMethodId { get; set; }
+ ///
+ /// The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts.
+ ///
+ /// The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts.
+ [DataMember(Name = "transferInstrumentId", EmitDefaultValue = false)]
+ public string TransferInstrumentId { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -132,6 +141,7 @@ public override string ToString()
sb.Append(" HolderName: ").Append(HolderName).Append("\n");
sb.Append(" RecurringDetailReference: ").Append(RecurringDetailReference).Append("\n");
sb.Append(" StoredPaymentMethodId: ").Append(StoredPaymentMethodId).Append("\n");
+ sb.Append(" TransferInstrumentId: ").Append(TransferInstrumentId).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -198,6 +208,11 @@ public bool Equals(BacsDirectDebitDetails input)
(this.StoredPaymentMethodId != null &&
this.StoredPaymentMethodId.Equals(input.StoredPaymentMethodId))
) &&
+ (
+ this.TransferInstrumentId == input.TransferInstrumentId ||
+ (this.TransferInstrumentId != null &&
+ this.TransferInstrumentId.Equals(input.TransferInstrumentId))
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -237,6 +252,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.StoredPaymentMethodId.GetHashCode();
}
+ if (this.TransferInstrumentId != null)
+ {
+ hashCode = (hashCode * 59) + this.TransferInstrumentId.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/Checkout/CheckoutPaymentMethod.cs b/Adyen/Model/Checkout/CheckoutPaymentMethod.cs
index 873ea143b..a8ada7252 100644
--- a/Adyen/Model/Checkout/CheckoutPaymentMethod.cs
+++ b/Adyen/Model/Checkout/CheckoutPaymentMethod.cs
@@ -370,6 +370,18 @@ public CheckoutPaymentMethod(PayPalDetails 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 PayToDetails.
+ public CheckoutPaymentMethod(PayToDetails 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
@@ -664,6 +676,10 @@ public override Object ActualInstance
{
this._actualInstance = value;
}
+ else if (value.GetType() == typeof(PayToDetails))
+ {
+ this._actualInstance = value;
+ }
else if (value.GetType() == typeof(PayUUpiDetails))
{
this._actualInstance = value;
@@ -722,7 +738,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, 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, 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");
}
}
}
@@ -1007,6 +1023,16 @@ public PayPalDetails GetPayPalDetails()
return (PayPalDetails)this.ActualInstance;
}
+ ///
+ /// Get the actual instance of `PayToDetails`. If the actual instance is not `PayToDetails`,
+ /// the InvalidClassException will be thrown
+ ///
+ /// An instance of PayToDetails
+ public PayToDetails GetPayToDetails()
+ {
+ return (PayToDetails)this.ActualInstance;
+ }
+
///
/// Get the actual instance of `PayUUpiDetails`. If the actual instance is not `PayUUpiDetails`,
/// the InvalidClassException will be thrown
@@ -1389,6 +1415,13 @@ public static CheckoutPaymentMethod FromJson(string jsonString)
matchedTypes.Add("PayPalDetails");
match++;
}
+ // Check if the jsonString type enum matches the PayToDetails type enums
+ if (ContainsValue(type))
+ {
+ newCheckoutPaymentMethod = new CheckoutPaymentMethod(JsonConvert.DeserializeObject(jsonString, CheckoutPaymentMethod.SerializerSettings));
+ matchedTypes.Add("PayToDetails");
+ match++;
+ }
// Check if the jsonString type enum matches the PayUUpiDetails type enums
if (ContainsValue(type))
{
diff --git a/Adyen/Model/Checkout/CreateCheckoutSessionRequest.cs b/Adyen/Model/Checkout/CreateCheckoutSessionRequest.cs
index a4dab7793..c9e41241b 100644
--- a/Adyen/Model/Checkout/CreateCheckoutSessionRequest.cs
+++ b/Adyen/Model/Checkout/CreateCheckoutSessionRequest.cs
@@ -169,6 +169,40 @@ public enum ShopperInteractionEnum
[DataMember(Name = "shopperInteraction", EmitDefaultValue = false)]
public ShopperInteractionEnum? ShopperInteraction { get; set; }
///
+ /// Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. - 'skipFilter': All payment methods are returned, regardless of store association.
+ ///
+ /// Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. - 'skipFilter': All payment methods are returned, regardless of store association.
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum StoreFiltrationModeEnum
+ {
+ ///
+ /// Enum Exclusive for value: exclusive
+ ///
+ [EnumMember(Value = "exclusive")]
+ Exclusive = 1,
+
+ ///
+ /// Enum Inclusive for value: inclusive
+ ///
+ [EnumMember(Value = "inclusive")]
+ Inclusive = 2,
+
+ ///
+ /// Enum SkipFilter for value: skipFilter
+ ///
+ [EnumMember(Value = "skipFilter")]
+ SkipFilter = 3
+
+ }
+
+
+ ///
+ /// Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. - 'skipFilter': All payment methods are returned, regardless of store association.
+ ///
+ /// Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. - 'skipFilter': All payment methods are returned, regardless of store association.
+ [DataMember(Name = "storeFiltrationMode", EmitDefaultValue = false)]
+ public StoreFiltrationModeEnum? StoreFiltrationMode { get; set; }
+ ///
/// Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent.
///
/// Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent.
@@ -263,6 +297,7 @@ protected CreateCheckoutSessionRequest() { }
/// Boolean value indicating whether the card payment method should be split into separate debit and credit options. (default to false).
/// 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..
+ /// Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. - 'skipFilter': All payment methods are returned, regardless of store association..
/// 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)..
/// Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent..
/// The shopper's telephone number..
@@ -270,7 +305,7 @@ protected CreateCheckoutSessionRequest() { }
/// 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 CreateCheckoutSessionRequest(AccountInfo accountInfo = default(AccountInfo), Amount additionalAmount = default(Amount), Dictionary additionalData = default(Dictionary), List allowedPaymentMethods = default(List), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), AuthenticationData authenticationData = default(AuthenticationData), BillingAddress billingAddress = default(BillingAddress), List blockedPaymentMethods = default(List), int? captureDelayHours = default(int?), ChannelEnum? channel = default(ChannelEnum?), Company company = default(Company), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), DateTime deliverAt = default(DateTime), DeliveryAddress deliveryAddress = default(DeliveryAddress), bool? enableOneClick = default(bool?), bool? enablePayOut = default(bool?), bool? enableRecurring = default(bool?), DateTime expiresAt = default(DateTime), FundOrigin fundOrigin = default(FundOrigin), FundRecipient fundRecipient = default(FundRecipient), Dictionary installmentOptions = default(Dictionary), List lineItems = default(List), Mandate mandate = default(Mandate), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), Dictionary metadata = default(Dictionary), ModeEnum? mode = ModeEnum.Embedded, ThreeDSecureData mpiData = default(ThreeDSecureData), 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 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), bool? showInstallmentAmount = default(bool?), bool? showRemovePaymentMethodButton = default(bool?), string socialSecurityNumber = default(string), bool? splitCardFundingSources = false, List splits = default(List), string store = default(string), bool? storePaymentMethod = default(bool?), StorePaymentMethodModeEnum? storePaymentMethodMode = default(StorePaymentMethodModeEnum?), string telephoneNumber = default(string), string themeId = default(string), CheckoutSessionThreeDS2RequestData threeDS2RequestData = default(CheckoutSessionThreeDS2RequestData), bool? threeDSAuthenticationOnly = false, bool? trustedShopper = default(bool?))
+ public CreateCheckoutSessionRequest(AccountInfo accountInfo = default(AccountInfo), Amount additionalAmount = default(Amount), Dictionary additionalData = default(Dictionary), List allowedPaymentMethods = default(List), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), AuthenticationData authenticationData = default(AuthenticationData), BillingAddress billingAddress = default(BillingAddress), List blockedPaymentMethods = default(List), int? captureDelayHours = default(int?), ChannelEnum? channel = default(ChannelEnum?), Company company = default(Company), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), DateTime deliverAt = default(DateTime), DeliveryAddress deliveryAddress = default(DeliveryAddress), bool? enableOneClick = default(bool?), bool? enablePayOut = default(bool?), bool? enableRecurring = default(bool?), DateTime expiresAt = default(DateTime), FundOrigin fundOrigin = default(FundOrigin), FundRecipient fundRecipient = default(FundRecipient), Dictionary installmentOptions = default(Dictionary), List lineItems = default(List), Mandate mandate = default(Mandate), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), Dictionary metadata = default(Dictionary), ModeEnum? mode = ModeEnum.Embedded, ThreeDSecureData mpiData = default(ThreeDSecureData), 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 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), bool? showInstallmentAmount = default(bool?), bool? showRemovePaymentMethodButton = default(bool?), string socialSecurityNumber = default(string), bool? splitCardFundingSources = false, List splits = default(List), string store = default(string), StoreFiltrationModeEnum? storeFiltrationMode = default(StoreFiltrationModeEnum?), bool? storePaymentMethod = default(bool?), StorePaymentMethodModeEnum? storePaymentMethodMode = default(StorePaymentMethodModeEnum?), string telephoneNumber = default(string), string themeId = default(string), CheckoutSessionThreeDS2RequestData threeDS2RequestData = default(CheckoutSessionThreeDS2RequestData), bool? threeDSAuthenticationOnly = false, bool? trustedShopper = default(bool?))
{
this.Amount = amount;
this.MerchantAccount = merchantAccount;
@@ -325,6 +360,7 @@ protected CreateCheckoutSessionRequest() { }
this.SplitCardFundingSources = splitCardFundingSources;
this.Splits = splits;
this.Store = store;
+ this.StoreFiltrationMode = storeFiltrationMode;
this.StorePaymentMethod = storePaymentMethod;
this.StorePaymentMethodMode = storePaymentMethodMode;
this.TelephoneNumber = telephoneNumber;
@@ -766,6 +802,7 @@ public override string ToString()
sb.Append(" SplitCardFundingSources: ").Append(SplitCardFundingSources).Append("\n");
sb.Append(" Splits: ").Append(Splits).Append("\n");
sb.Append(" Store: ").Append(Store).Append("\n");
+ sb.Append(" StoreFiltrationMode: ").Append(StoreFiltrationMode).Append("\n");
sb.Append(" StorePaymentMethod: ").Append(StorePaymentMethod).Append("\n");
sb.Append(" StorePaymentMethodMode: ").Append(StorePaymentMethodMode).Append("\n");
sb.Append(" TelephoneNumber: ").Append(TelephoneNumber).Append("\n");
@@ -1069,6 +1106,10 @@ public bool Equals(CreateCheckoutSessionRequest input)
(this.Store != null &&
this.Store.Equals(input.Store))
) &&
+ (
+ this.StoreFiltrationMode == input.StoreFiltrationMode ||
+ this.StoreFiltrationMode.Equals(input.StoreFiltrationMode)
+ ) &&
(
this.StorePaymentMethod == input.StorePaymentMethod ||
this.StorePaymentMethod.Equals(input.StorePaymentMethod)
@@ -1290,6 +1331,7 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Store.GetHashCode();
}
+ hashCode = (hashCode * 59) + this.StoreFiltrationMode.GetHashCode();
hashCode = (hashCode * 59) + this.StorePaymentMethod.GetHashCode();
hashCode = (hashCode * 59) + this.StorePaymentMethodMode.GetHashCode();
if (this.TelephoneNumber != null)
diff --git a/Adyen/Model/Checkout/CreateCheckoutSessionResponse.cs b/Adyen/Model/Checkout/CreateCheckoutSessionResponse.cs
index b91b7e7c5..ae24ac9cf 100644
--- a/Adyen/Model/Checkout/CreateCheckoutSessionResponse.cs
+++ b/Adyen/Model/Checkout/CreateCheckoutSessionResponse.cs
@@ -169,6 +169,40 @@ public enum ShopperInteractionEnum
[DataMember(Name = "shopperInteraction", EmitDefaultValue = false)]
public ShopperInteractionEnum? ShopperInteraction { get; set; }
///
+ /// Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. - 'skipFilter': All payment methods are returned, regardless of store association.
+ ///
+ /// Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. - 'skipFilter': All payment methods are returned, regardless of store association.
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum StoreFiltrationModeEnum
+ {
+ ///
+ /// Enum Exclusive for value: exclusive
+ ///
+ [EnumMember(Value = "exclusive")]
+ Exclusive = 1,
+
+ ///
+ /// Enum Inclusive for value: inclusive
+ ///
+ [EnumMember(Value = "inclusive")]
+ Inclusive = 2,
+
+ ///
+ /// Enum SkipFilter for value: skipFilter
+ ///
+ [EnumMember(Value = "skipFilter")]
+ SkipFilter = 3
+
+ }
+
+
+ ///
+ /// Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. - 'skipFilter': All payment methods are returned, regardless of store association.
+ ///
+ /// Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. - 'skipFilter': All payment methods are returned, regardless of store association.
+ [DataMember(Name = "storeFiltrationMode", EmitDefaultValue = false)]
+ public StoreFiltrationModeEnum? StoreFiltrationMode { get; set; }
+ ///
/// Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent.
///
/// Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent.
@@ -264,6 +298,7 @@ protected CreateCheckoutSessionResponse() { }
/// Boolean value indicating whether the card payment method should be split into separate debit and credit options. (default to false).
/// 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..
+ /// Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. - 'skipFilter': All payment methods are returned, regardless of store association..
/// 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)..
/// Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent..
/// The shopper's telephone number..
@@ -272,7 +307,7 @@ protected CreateCheckoutSessionResponse() { }
/// If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. (default to false).
/// Set to true if the payment should be routed to a trusted MID..
/// The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the payment..
- public CreateCheckoutSessionResponse(AccountInfo accountInfo = default(AccountInfo), Amount additionalAmount = default(Amount), Dictionary additionalData = default(Dictionary), List allowedPaymentMethods = default(List), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), AuthenticationData authenticationData = default(AuthenticationData), BillingAddress billingAddress = default(BillingAddress), List blockedPaymentMethods = default(List), int? captureDelayHours = default(int?), ChannelEnum? channel = default(ChannelEnum?), Company company = default(Company), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), DateTime deliverAt = default(DateTime), DeliveryAddress deliveryAddress = default(DeliveryAddress), bool? enableOneClick = default(bool?), bool? enablePayOut = default(bool?), bool? enableRecurring = default(bool?), DateTime expiresAt = default(DateTime), FundOrigin fundOrigin = default(FundOrigin), FundRecipient fundRecipient = default(FundRecipient), Dictionary installmentOptions = default(Dictionary), List lineItems = default(List), Mandate mandate = default(Mandate), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), Dictionary metadata = default(Dictionary), ModeEnum? mode = ModeEnum.Embedded, ThreeDSecureData mpiData = default(ThreeDSecureData), 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 sessionData = 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), bool? showInstallmentAmount = default(bool?), bool? showRemovePaymentMethodButton = default(bool?), string socialSecurityNumber = default(string), bool? splitCardFundingSources = false, List splits = default(List), string store = default(string), bool? storePaymentMethod = default(bool?), StorePaymentMethodModeEnum? storePaymentMethodMode = default(StorePaymentMethodModeEnum?), string telephoneNumber = default(string), string themeId = default(string), CheckoutSessionThreeDS2RequestData threeDS2RequestData = default(CheckoutSessionThreeDS2RequestData), bool? threeDSAuthenticationOnly = false, bool? trustedShopper = default(bool?), string url = default(string))
+ public CreateCheckoutSessionResponse(AccountInfo accountInfo = default(AccountInfo), Amount additionalAmount = default(Amount), Dictionary additionalData = default(Dictionary), List allowedPaymentMethods = default(List), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), AuthenticationData authenticationData = default(AuthenticationData), BillingAddress billingAddress = default(BillingAddress), List blockedPaymentMethods = default(List), int? captureDelayHours = default(int?), ChannelEnum? channel = default(ChannelEnum?), Company company = default(Company), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), DateTime deliverAt = default(DateTime), DeliveryAddress deliveryAddress = default(DeliveryAddress), bool? enableOneClick = default(bool?), bool? enablePayOut = default(bool?), bool? enableRecurring = default(bool?), DateTime expiresAt = default(DateTime), FundOrigin fundOrigin = default(FundOrigin), FundRecipient fundRecipient = default(FundRecipient), Dictionary installmentOptions = default(Dictionary), List lineItems = default(List), Mandate mandate = default(Mandate), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), Dictionary metadata = default(Dictionary), ModeEnum? mode = ModeEnum.Embedded, ThreeDSecureData mpiData = default(ThreeDSecureData), 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 sessionData = 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), bool? showInstallmentAmount = default(bool?), bool? showRemovePaymentMethodButton = default(bool?), string socialSecurityNumber = default(string), bool? splitCardFundingSources = false, List splits = default(List), string store = default(string), StoreFiltrationModeEnum? storeFiltrationMode = default(StoreFiltrationModeEnum?), bool? storePaymentMethod = default(bool?), StorePaymentMethodModeEnum? storePaymentMethodMode = default(StorePaymentMethodModeEnum?), string telephoneNumber = default(string), string themeId = default(string), CheckoutSessionThreeDS2RequestData threeDS2RequestData = default(CheckoutSessionThreeDS2RequestData), bool? threeDSAuthenticationOnly = false, bool? trustedShopper = default(bool?), string url = default(string))
{
this.Amount = amount;
this.ExpiresAt = expiresAt;
@@ -328,6 +363,7 @@ protected CreateCheckoutSessionResponse() { }
this.SplitCardFundingSources = splitCardFundingSources;
this.Splits = splits;
this.Store = store;
+ this.StoreFiltrationMode = storeFiltrationMode;
this.StorePaymentMethod = storePaymentMethod;
this.StorePaymentMethodMode = storePaymentMethodMode;
this.TelephoneNumber = telephoneNumber;
@@ -792,6 +828,7 @@ public override string ToString()
sb.Append(" SplitCardFundingSources: ").Append(SplitCardFundingSources).Append("\n");
sb.Append(" Splits: ").Append(Splits).Append("\n");
sb.Append(" Store: ").Append(Store).Append("\n");
+ sb.Append(" StoreFiltrationMode: ").Append(StoreFiltrationMode).Append("\n");
sb.Append(" StorePaymentMethod: ").Append(StorePaymentMethod).Append("\n");
sb.Append(" StorePaymentMethodMode: ").Append(StorePaymentMethodMode).Append("\n");
sb.Append(" TelephoneNumber: ").Append(TelephoneNumber).Append("\n");
@@ -1106,6 +1143,10 @@ public bool Equals(CreateCheckoutSessionResponse input)
(this.Store != null &&
this.Store.Equals(input.Store))
) &&
+ (
+ this.StoreFiltrationMode == input.StoreFiltrationMode ||
+ this.StoreFiltrationMode.Equals(input.StoreFiltrationMode)
+ ) &&
(
this.StorePaymentMethod == input.StorePaymentMethod ||
this.StorePaymentMethod.Equals(input.StorePaymentMethod)
@@ -1340,6 +1381,7 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Store.GetHashCode();
}
+ hashCode = (hashCode * 59) + this.StoreFiltrationMode.GetHashCode();
hashCode = (hashCode * 59) + this.StorePaymentMethod.GetHashCode();
hashCode = (hashCode * 59) + this.StorePaymentMethodMode.GetHashCode();
if (this.TelephoneNumber != null)
diff --git a/Adyen/Model/Checkout/Donation.cs b/Adyen/Model/Checkout/Donation.cs
new file mode 100644
index 000000000..f6b3acfa2
--- /dev/null
+++ b/Adyen/Model/Checkout/Donation.cs
@@ -0,0 +1,188 @@
+/*
+* 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
+{
+ ///
+ /// Donation
+ ///
+ [DataContract(Name = "Donation")]
+ public partial class Donation : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected Donation() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). (required).
+ /// The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from. (required).
+ /// The maximum amount a transaction can be rounded up to make a donation. This field is only present when `donationType` is **roundup**..
+ /// The fixed donation amounts in [minor units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field is only present when `donationType` is **fixedAmounts**..
+ public Donation(string currency = default(string), string donationType = default(string), long? maxRoundupAmount = default(long?), List values = default(List))
+ {
+ this.Currency = currency;
+ this.DonationType = donationType;
+ this.MaxRoundupAmount = maxRoundupAmount;
+ this.Values = values;
+ }
+
+ ///
+ /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).
+ ///
+ /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).
+ [DataMember(Name = "currency", IsRequired = false, EmitDefaultValue = false)]
+ public string Currency { get; set; }
+
+ ///
+ /// The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from.
+ ///
+ /// The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from.
+ [DataMember(Name = "donationType", IsRequired = false, EmitDefaultValue = false)]
+ public string DonationType { get; set; }
+
+ ///
+ /// The maximum amount a transaction can be rounded up to make a donation. This field is only present when `donationType` is **roundup**.
+ ///
+ /// The maximum amount a transaction can be rounded up to make a donation. This field is only present when `donationType` is **roundup**.
+ [DataMember(Name = "maxRoundupAmount", EmitDefaultValue = false)]
+ public long? MaxRoundupAmount { get; set; }
+
+ ///
+ /// The fixed donation amounts in [minor units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field is only present when `donationType` is **fixedAmounts**.
+ ///
+ /// The fixed donation amounts in [minor units](https://docs.adyen.com/development-resources/currency-codes//#minor-units). This field is only present when `donationType` is **fixedAmounts**.
+ [DataMember(Name = "values", EmitDefaultValue = false)]
+ public List Values { 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 Donation {\n");
+ sb.Append(" Currency: ").Append(Currency).Append("\n");
+ sb.Append(" DonationType: ").Append(DonationType).Append("\n");
+ sb.Append(" MaxRoundupAmount: ").Append(MaxRoundupAmount).Append("\n");
+ sb.Append(" Values: ").Append(Values).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 Donation);
+ }
+
+ ///
+ /// Returns true if Donation instances are equal
+ ///
+ /// Instance of Donation to be compared
+ /// Boolean
+ public bool Equals(Donation input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Currency == input.Currency ||
+ (this.Currency != null &&
+ this.Currency.Equals(input.Currency))
+ ) &&
+ (
+ this.DonationType == input.DonationType ||
+ (this.DonationType != null &&
+ this.DonationType.Equals(input.DonationType))
+ ) &&
+ (
+ this.MaxRoundupAmount == input.MaxRoundupAmount ||
+ this.MaxRoundupAmount.Equals(input.MaxRoundupAmount)
+ ) &&
+ (
+ this.Values == input.Values ||
+ this.Values != null &&
+ input.Values != null &&
+ this.Values.SequenceEqual(input.Values)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.Currency != null)
+ {
+ hashCode = (hashCode * 59) + this.Currency.GetHashCode();
+ }
+ if (this.DonationType != null)
+ {
+ hashCode = (hashCode * 59) + this.DonationType.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.MaxRoundupAmount.GetHashCode();
+ if (this.Values != null)
+ {
+ hashCode = (hashCode * 59) + this.Values.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/DonationCampaign.cs b/Adyen/Model/Checkout/DonationCampaign.cs
new file mode 100644
index 000000000..86c7db288
--- /dev/null
+++ b/Adyen/Model/Checkout/DonationCampaign.cs
@@ -0,0 +1,317 @@
+/*
+* 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
+{
+ ///
+ /// DonationCampaign
+ ///
+ [DataContract(Name = "DonationCampaign")]
+ public partial class DonationCampaign : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// amounts.
+ /// The URL for the banner of the nonprofit or campaign..
+ /// The name of the donation campaign...
+ /// The cause of the nonprofit..
+ /// donation.
+ /// The unique campaign ID of the donation campaign..
+ /// The URL for the logo of the nonprofit..
+ /// The description of the nonprofit..
+ /// The name of the nonprofit organization that receives the donation..
+ /// The website URL of the nonprofit..
+ /// The URL of the terms and conditions page of the nonprofit and the campaign..
+ public DonationCampaign(Amounts amounts = default(Amounts), string bannerUrl = default(string), string campaignName = default(string), string causeName = default(string), Donation donation = default(Donation), string id = default(string), string logoUrl = default(string), string nonprofitDescription = default(string), string nonprofitName = default(string), string nonprofitUrl = default(string), string termsAndConditionsUrl = default(string))
+ {
+ this.Amounts = amounts;
+ this.BannerUrl = bannerUrl;
+ this.CampaignName = campaignName;
+ this.CauseName = causeName;
+ this.Donation = donation;
+ this.Id = id;
+ this.LogoUrl = logoUrl;
+ this.NonprofitDescription = nonprofitDescription;
+ this.NonprofitName = nonprofitName;
+ this.NonprofitUrl = nonprofitUrl;
+ this.TermsAndConditionsUrl = termsAndConditionsUrl;
+ }
+
+ ///
+ /// Gets or Sets Amounts
+ ///
+ [DataMember(Name = "amounts", EmitDefaultValue = false)]
+ public Amounts Amounts { get; set; }
+
+ ///
+ /// The URL for the banner of the nonprofit or campaign.
+ ///
+ /// The URL for the banner of the nonprofit or campaign.
+ [DataMember(Name = "bannerUrl", EmitDefaultValue = false)]
+ public string BannerUrl { get; set; }
+
+ ///
+ /// The name of the donation campaign..
+ ///
+ /// The name of the donation campaign..
+ [DataMember(Name = "campaignName", EmitDefaultValue = false)]
+ public string CampaignName { get; set; }
+
+ ///
+ /// The cause of the nonprofit.
+ ///
+ /// The cause of the nonprofit.
+ [DataMember(Name = "causeName", EmitDefaultValue = false)]
+ public string CauseName { get; set; }
+
+ ///
+ /// Gets or Sets Donation
+ ///
+ [DataMember(Name = "donation", EmitDefaultValue = false)]
+ public Donation Donation { get; set; }
+
+ ///
+ /// The unique campaign ID of the donation campaign.
+ ///
+ /// The unique campaign ID of the donation campaign.
+ [DataMember(Name = "id", EmitDefaultValue = false)]
+ public string Id { get; set; }
+
+ ///
+ /// The URL for the logo of the nonprofit.
+ ///
+ /// The URL for the logo of the nonprofit.
+ [DataMember(Name = "logoUrl", EmitDefaultValue = false)]
+ public string LogoUrl { get; set; }
+
+ ///
+ /// The description of the nonprofit.
+ ///
+ /// The description of the nonprofit.
+ [DataMember(Name = "nonprofitDescription", EmitDefaultValue = false)]
+ public string NonprofitDescription { get; set; }
+
+ ///
+ /// The name of the nonprofit organization that receives the donation.
+ ///
+ /// The name of the nonprofit organization that receives the donation.
+ [DataMember(Name = "nonprofitName", EmitDefaultValue = false)]
+ public string NonprofitName { get; set; }
+
+ ///
+ /// The website URL of the nonprofit.
+ ///
+ /// The website URL of the nonprofit.
+ [DataMember(Name = "nonprofitUrl", EmitDefaultValue = false)]
+ public string NonprofitUrl { get; set; }
+
+ ///
+ /// The URL of the terms and conditions page of the nonprofit and the campaign.
+ ///
+ /// The URL of the terms and conditions page of the nonprofit and the campaign.
+ [DataMember(Name = "termsAndConditionsUrl", EmitDefaultValue = false)]
+ public string TermsAndConditionsUrl { 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 DonationCampaign {\n");
+ sb.Append(" Amounts: ").Append(Amounts).Append("\n");
+ sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n");
+ sb.Append(" CampaignName: ").Append(CampaignName).Append("\n");
+ sb.Append(" CauseName: ").Append(CauseName).Append("\n");
+ sb.Append(" Donation: ").Append(Donation).Append("\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" LogoUrl: ").Append(LogoUrl).Append("\n");
+ sb.Append(" NonprofitDescription: ").Append(NonprofitDescription).Append("\n");
+ sb.Append(" NonprofitName: ").Append(NonprofitName).Append("\n");
+ sb.Append(" NonprofitUrl: ").Append(NonprofitUrl).Append("\n");
+ sb.Append(" TermsAndConditionsUrl: ").Append(TermsAndConditionsUrl).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 DonationCampaign);
+ }
+
+ ///
+ /// Returns true if DonationCampaign instances are equal
+ ///
+ /// Instance of DonationCampaign to be compared
+ /// Boolean
+ public bool Equals(DonationCampaign input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Amounts == input.Amounts ||
+ (this.Amounts != null &&
+ this.Amounts.Equals(input.Amounts))
+ ) &&
+ (
+ this.BannerUrl == input.BannerUrl ||
+ (this.BannerUrl != null &&
+ this.BannerUrl.Equals(input.BannerUrl))
+ ) &&
+ (
+ this.CampaignName == input.CampaignName ||
+ (this.CampaignName != null &&
+ this.CampaignName.Equals(input.CampaignName))
+ ) &&
+ (
+ this.CauseName == input.CauseName ||
+ (this.CauseName != null &&
+ this.CauseName.Equals(input.CauseName))
+ ) &&
+ (
+ this.Donation == input.Donation ||
+ (this.Donation != null &&
+ this.Donation.Equals(input.Donation))
+ ) &&
+ (
+ this.Id == input.Id ||
+ (this.Id != null &&
+ this.Id.Equals(input.Id))
+ ) &&
+ (
+ this.LogoUrl == input.LogoUrl ||
+ (this.LogoUrl != null &&
+ this.LogoUrl.Equals(input.LogoUrl))
+ ) &&
+ (
+ this.NonprofitDescription == input.NonprofitDescription ||
+ (this.NonprofitDescription != null &&
+ this.NonprofitDescription.Equals(input.NonprofitDescription))
+ ) &&
+ (
+ this.NonprofitName == input.NonprofitName ||
+ (this.NonprofitName != null &&
+ this.NonprofitName.Equals(input.NonprofitName))
+ ) &&
+ (
+ this.NonprofitUrl == input.NonprofitUrl ||
+ (this.NonprofitUrl != null &&
+ this.NonprofitUrl.Equals(input.NonprofitUrl))
+ ) &&
+ (
+ this.TermsAndConditionsUrl == input.TermsAndConditionsUrl ||
+ (this.TermsAndConditionsUrl != null &&
+ this.TermsAndConditionsUrl.Equals(input.TermsAndConditionsUrl))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.Amounts != null)
+ {
+ hashCode = (hashCode * 59) + this.Amounts.GetHashCode();
+ }
+ if (this.BannerUrl != null)
+ {
+ hashCode = (hashCode * 59) + this.BannerUrl.GetHashCode();
+ }
+ if (this.CampaignName != null)
+ {
+ hashCode = (hashCode * 59) + this.CampaignName.GetHashCode();
+ }
+ if (this.CauseName != null)
+ {
+ hashCode = (hashCode * 59) + this.CauseName.GetHashCode();
+ }
+ if (this.Donation != null)
+ {
+ hashCode = (hashCode * 59) + this.Donation.GetHashCode();
+ }
+ if (this.Id != null)
+ {
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ }
+ if (this.LogoUrl != null)
+ {
+ hashCode = (hashCode * 59) + this.LogoUrl.GetHashCode();
+ }
+ if (this.NonprofitDescription != null)
+ {
+ hashCode = (hashCode * 59) + this.NonprofitDescription.GetHashCode();
+ }
+ if (this.NonprofitName != null)
+ {
+ hashCode = (hashCode * 59) + this.NonprofitName.GetHashCode();
+ }
+ if (this.NonprofitUrl != null)
+ {
+ hashCode = (hashCode * 59) + this.NonprofitUrl.GetHashCode();
+ }
+ if (this.TermsAndConditionsUrl != null)
+ {
+ hashCode = (hashCode * 59) + this.TermsAndConditionsUrl.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/DonationCampaignsRequest.cs b/Adyen/Model/Checkout/DonationCampaignsRequest.cs
new file mode 100644
index 000000000..3a223fac1
--- /dev/null
+++ b/Adyen/Model/Checkout/DonationCampaignsRequest.cs
@@ -0,0 +1,172 @@
+/*
+* 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
+{
+ ///
+ /// DonationCampaignsRequest
+ ///
+ [DataContract(Name = "DonationCampaignsRequest")]
+ public partial class DonationCampaignsRequest : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected DonationCampaignsRequest() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). (required).
+ /// Locale on the shopper interaction device..
+ /// Your merchant account identifier. (required).
+ public DonationCampaignsRequest(string currency = default(string), string locale = default(string), string merchantAccount = default(string))
+ {
+ this.Currency = currency;
+ this.MerchantAccount = merchantAccount;
+ this.Locale = locale;
+ }
+
+ ///
+ /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).
+ ///
+ /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).
+ [DataMember(Name = "currency", IsRequired = false, EmitDefaultValue = false)]
+ public string Currency { get; set; }
+
+ ///
+ /// Locale on the shopper interaction device.
+ ///
+ /// Locale on the shopper interaction device.
+ [DataMember(Name = "locale", EmitDefaultValue = false)]
+ public string Locale { get; set; }
+
+ ///
+ /// Your merchant account identifier.
+ ///
+ /// Your merchant account identifier.
+ [DataMember(Name = "merchantAccount", IsRequired = false, EmitDefaultValue = false)]
+ public string MerchantAccount { 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 DonationCampaignsRequest {\n");
+ sb.Append(" Currency: ").Append(Currency).Append("\n");
+ sb.Append(" Locale: ").Append(Locale).Append("\n");
+ sb.Append(" MerchantAccount: ").Append(MerchantAccount).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 DonationCampaignsRequest);
+ }
+
+ ///
+ /// Returns true if DonationCampaignsRequest instances are equal
+ ///
+ /// Instance of DonationCampaignsRequest to be compared
+ /// Boolean
+ public bool Equals(DonationCampaignsRequest input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Currency == input.Currency ||
+ (this.Currency != null &&
+ this.Currency.Equals(input.Currency))
+ ) &&
+ (
+ this.Locale == input.Locale ||
+ (this.Locale != null &&
+ this.Locale.Equals(input.Locale))
+ ) &&
+ (
+ this.MerchantAccount == input.MerchantAccount ||
+ (this.MerchantAccount != null &&
+ this.MerchantAccount.Equals(input.MerchantAccount))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.Currency != null)
+ {
+ hashCode = (hashCode * 59) + this.Currency.GetHashCode();
+ }
+ if (this.Locale != null)
+ {
+ hashCode = (hashCode * 59) + this.Locale.GetHashCode();
+ }
+ if (this.MerchantAccount != null)
+ {
+ hashCode = (hashCode * 59) + this.MerchantAccount.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/DonationCampaignsResponse.cs b/Adyen/Model/Checkout/DonationCampaignsResponse.cs
new file mode 100644
index 000000000..3793ecbb6
--- /dev/null
+++ b/Adyen/Model/Checkout/DonationCampaignsResponse.cs
@@ -0,0 +1,130 @@
+/*
+* 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
+{
+ ///
+ /// DonationCampaignsResponse
+ ///
+ [DataContract(Name = "DonationCampaignsResponse")]
+ public partial class DonationCampaignsResponse : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// List of active donation campaigns for your merchant account..
+ public DonationCampaignsResponse(List donationCampaigns = default(List))
+ {
+ this.DonationCampaigns = donationCampaigns;
+ }
+
+ ///
+ /// List of active donation campaigns for your merchant account.
+ ///
+ /// List of active donation campaigns for your merchant account.
+ [DataMember(Name = "donationCampaigns", EmitDefaultValue = false)]
+ public List DonationCampaigns { 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 DonationCampaignsResponse {\n");
+ sb.Append(" DonationCampaigns: ").Append(DonationCampaigns).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 DonationCampaignsResponse);
+ }
+
+ ///
+ /// Returns true if DonationCampaignsResponse instances are equal
+ ///
+ /// Instance of DonationCampaignsResponse to be compared
+ /// Boolean
+ public bool Equals(DonationCampaignsResponse input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.DonationCampaigns == input.DonationCampaigns ||
+ this.DonationCampaigns != null &&
+ input.DonationCampaigns != null &&
+ this.DonationCampaigns.SequenceEqual(input.DonationCampaigns)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.DonationCampaigns != null)
+ {
+ hashCode = (hashCode * 59) + this.DonationCampaigns.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/DonationPaymentRequest.cs b/Adyen/Model/Checkout/DonationPaymentRequest.cs
index 1ea545a68..fef8d4e7b 100644
--- a/Adyen/Model/Checkout/DonationPaymentRequest.cs
+++ b/Adyen/Model/Checkout/DonationPaymentRequest.cs
@@ -164,6 +164,7 @@ protected DonationPaymentRequest() { }
/// deliveryAddress.
/// A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting)..
/// Donation account to which the transaction is credited..
+ /// The donation campaign ID received in the `/donationCampaigns` call..
/// PSP reference of the transaction from which the donation token is generated. Required when `donationToken` is provided..
/// Donation token received in the `/payments` call..
/// Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Zip..
@@ -189,7 +190,7 @@ protected DonationPaymentRequest() { }
/// 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).
- public DonationPaymentRequest(AccountInfo accountInfo = default(AccountInfo), Dictionary additionalData = default(Dictionary), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), AuthenticationData authenticationData = default(AuthenticationData), BillingAddress billingAddress = default(BillingAddress), BrowserInfo browserInfo = default(BrowserInfo), ChannelEnum? channel = default(ChannelEnum?), string checkoutAttemptId = default(string), string conversionId = default(string), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), DateTime deliverAt = default(DateTime), DeliveryAddress deliveryAddress = default(DeliveryAddress), string deviceFingerprint = default(string), string donationAccount = default(string), string donationOriginalPspReference = default(string), string donationToken = default(string), List lineItems = default(List), string merchantAccount = default(string), MerchantRiskIndicator merchantRiskIndicator = default(MerchantRiskIndicator), Dictionary metadata = default(Dictionary), ThreeDSecureData mpiData = default(ThreeDSecureData), string origin = default(string), DonationPaymentMethod paymentMethod = default(DonationPaymentMethod), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string redirectFromIssuerMethod = default(string), string redirectToIssuerMethod = default(string), string reference = default(string), string returnUrl = default(string), 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 socialSecurityNumber = default(string), string telephoneNumber = default(string), ThreeDS2RequestFields threeDS2RequestData = default(ThreeDS2RequestFields), bool? threeDSAuthenticationOnly = false)
+ public DonationPaymentRequest(AccountInfo accountInfo = default(AccountInfo), Dictionary additionalData = default(Dictionary), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), AuthenticationData authenticationData = default(AuthenticationData), BillingAddress billingAddress = default(BillingAddress), BrowserInfo browserInfo = default(BrowserInfo), ChannelEnum? channel = default(ChannelEnum?), string checkoutAttemptId = default(string), string conversionId = default(string), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), DateTime deliverAt = default(DateTime), DeliveryAddress deliveryAddress = default(DeliveryAddress), string deviceFingerprint = default(string), string donationAccount = default(string), string donationCampaignId = default(string), string donationOriginalPspReference = default(string), string donationToken = default(string), List lineItems = default(List), string merchantAccount = default(string), MerchantRiskIndicator merchantRiskIndicator = default(MerchantRiskIndicator), Dictionary metadata = default(Dictionary), ThreeDSecureData mpiData = default(ThreeDSecureData), string origin = default(string), DonationPaymentMethod paymentMethod = default(DonationPaymentMethod), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string redirectFromIssuerMethod = default(string), string redirectToIssuerMethod = default(string), string reference = default(string), string returnUrl = default(string), 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 socialSecurityNumber = default(string), string telephoneNumber = default(string), ThreeDS2RequestFields threeDS2RequestData = default(ThreeDS2RequestFields), bool? threeDSAuthenticationOnly = false)
{
this.Amount = amount;
this.MerchantAccount = merchantAccount;
@@ -211,6 +212,7 @@ protected DonationPaymentRequest() { }
this.DeliveryAddress = deliveryAddress;
this.DeviceFingerprint = deviceFingerprint;
this.DonationAccount = donationAccount;
+ this.DonationCampaignId = donationCampaignId;
this.DonationOriginalPspReference = donationOriginalPspReference;
this.DonationToken = donationToken;
this.LineItems = lineItems;
@@ -333,6 +335,13 @@ protected DonationPaymentRequest() { }
[DataMember(Name = "donationAccount", EmitDefaultValue = false)]
public string DonationAccount { get; set; }
+ ///
+ /// The donation campaign ID received in the `/donationCampaigns` call.
+ ///
+ /// The donation campaign ID received in the `/donationCampaigns` call.
+ [DataMember(Name = "donationCampaignId", EmitDefaultValue = false)]
+ public string DonationCampaignId { get; set; }
+
///
/// PSP reference of the transaction from which the donation token is generated. Required when `donationToken` is provided.
///
@@ -514,6 +523,7 @@ public override string ToString()
sb.Append(" DeliveryAddress: ").Append(DeliveryAddress).Append("\n");
sb.Append(" DeviceFingerprint: ").Append(DeviceFingerprint).Append("\n");
sb.Append(" DonationAccount: ").Append(DonationAccount).Append("\n");
+ sb.Append(" DonationCampaignId: ").Append(DonationCampaignId).Append("\n");
sb.Append(" DonationOriginalPspReference: ").Append(DonationOriginalPspReference).Append("\n");
sb.Append(" DonationToken: ").Append(DonationToken).Append("\n");
sb.Append(" LineItems: ").Append(LineItems).Append("\n");
@@ -654,6 +664,11 @@ public bool Equals(DonationPaymentRequest input)
(this.DonationAccount != null &&
this.DonationAccount.Equals(input.DonationAccount))
) &&
+ (
+ this.DonationCampaignId == input.DonationCampaignId ||
+ (this.DonationCampaignId != null &&
+ this.DonationCampaignId.Equals(input.DonationCampaignId))
+ ) &&
(
this.DonationOriginalPspReference == input.DonationOriginalPspReference ||
(this.DonationOriginalPspReference != null &&
@@ -850,6 +865,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.DonationAccount.GetHashCode();
}
+ if (this.DonationCampaignId != null)
+ {
+ hashCode = (hashCode * 59) + this.DonationCampaignId.GetHashCode();
+ }
if (this.DonationOriginalPspReference != null)
{
hashCode = (hashCode * 59) + this.DonationOriginalPspReference.GetHashCode();
diff --git a/Adyen/Model/Checkout/FundRecipient.cs b/Adyen/Model/Checkout/FundRecipient.cs
index 286292e91..b269ad1f5 100644
--- a/Adyen/Model/Checkout/FundRecipient.cs
+++ b/Adyen/Model/Checkout/FundRecipient.cs
@@ -35,6 +35,7 @@ public partial class FundRecipient : IEquatable, IValidatableObje
///
/// Initializes a new instance of the class.
///
+ /// Fund Recipient Iban for C2C payments.
/// billingAddress.
/// paymentMethod.
/// The email address of the shopper..
@@ -45,8 +46,9 @@ public partial class FundRecipient : IEquatable, IValidatableObje
/// The telephone number of the shopper..
/// Indicates where the money is going..
/// Indicates the tax identifier of the fund recepient.
- public FundRecipient(Address billingAddress = default(Address), CardDetails paymentMethod = default(CardDetails), string shopperEmail = default(string), Name shopperName = default(Name), string shopperReference = default(string), string storedPaymentMethodId = default(string), SubMerchant subMerchant = default(SubMerchant), string telephoneNumber = default(string), string walletIdentifier = default(string), string walletOwnerTaxId = default(string))
+ public FundRecipient(string iBAN = default(string), Address billingAddress = default(Address), CardDetails paymentMethod = default(CardDetails), string shopperEmail = default(string), Name shopperName = default(Name), string shopperReference = default(string), string storedPaymentMethodId = default(string), SubMerchant subMerchant = default(SubMerchant), string telephoneNumber = default(string), string walletIdentifier = default(string), string walletOwnerTaxId = default(string))
{
+ this.IBAN = iBAN;
this.BillingAddress = billingAddress;
this.PaymentMethod = paymentMethod;
this.ShopperEmail = shopperEmail;
@@ -59,6 +61,13 @@ public partial class FundRecipient : IEquatable, IValidatableObje
this.WalletOwnerTaxId = walletOwnerTaxId;
}
+ ///
+ /// Fund Recipient Iban for C2C payments
+ ///
+ /// Fund Recipient Iban for C2C payments
+ [DataMember(Name = "IBAN", EmitDefaultValue = false)]
+ public string IBAN { get; set; }
+
///
/// Gets or Sets BillingAddress
///
@@ -133,6 +142,7 @@ public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class FundRecipient {\n");
+ sb.Append(" IBAN: ").Append(IBAN).Append("\n");
sb.Append(" BillingAddress: ").Append(BillingAddress).Append("\n");
sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n");
sb.Append(" ShopperEmail: ").Append(ShopperEmail).Append("\n");
@@ -178,6 +188,11 @@ public bool Equals(FundRecipient input)
return false;
}
return
+ (
+ this.IBAN == input.IBAN ||
+ (this.IBAN != null &&
+ this.IBAN.Equals(input.IBAN))
+ ) &&
(
this.BillingAddress == input.BillingAddress ||
(this.BillingAddress != null &&
@@ -239,6 +254,10 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
+ if (this.IBAN != null)
+ {
+ hashCode = (hashCode * 59) + this.IBAN.GetHashCode();
+ }
if (this.BillingAddress != null)
{
hashCode = (hashCode * 59) + this.BillingAddress.GetHashCode();
diff --git a/Adyen/Model/Checkout/PayPalDetails.cs b/Adyen/Model/Checkout/PayPalDetails.cs
index 91bb806c6..5b6f587af 100644
--- a/Adyen/Model/Checkout/PayPalDetails.cs
+++ b/Adyen/Model/Checkout/PayPalDetails.cs
@@ -39,17 +39,23 @@ public partial class PayPalDetails : IEquatable, IValidatableObje
[JsonConverter(typeof(StringEnumConverter))]
public enum SubtypeEnum
{
+ ///
+ /// Enum Express for value: express
+ ///
+ [EnumMember(Value = "express")]
+ Express = 1,
+
///
/// Enum Redirect for value: redirect
///
[EnumMember(Value = "redirect")]
- Redirect = 1,
+ Redirect = 2,
///
/// Enum Sdk for value: sdk
///
[EnumMember(Value = "sdk")]
- Sdk = 2
+ Sdk = 3
}
diff --git a/Adyen/Model/Checkout/PayToDetails.cs b/Adyen/Model/Checkout/PayToDetails.cs
new file mode 100644
index 000000000..df1ed2974
--- /dev/null
+++ b/Adyen/Model/Checkout/PayToDetails.cs
@@ -0,0 +1,178 @@
+/*
+* 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
+{
+ ///
+ /// PayToDetails
+ ///
+ [DataContract(Name = "PayToDetails")]
+ public partial class PayToDetails : IEquatable, IValidatableObject
+ {
+ ///
+ /// **payto**
+ ///
+ /// **payto**
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum TypeEnum
+ {
+ ///
+ /// Enum Payto for value: payto
+ ///
+ [EnumMember(Value = "payto")]
+ Payto = 1
+
+ }
+
+
+ ///
+ /// **payto**
+ ///
+ /// **payto**
+ [DataMember(Name = "type", EmitDefaultValue = false)]
+ public TypeEnum? Type { get; set; }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The checkout attempt identifier..
+ /// The shopper's banking details or payId reference, used to complete payment..
+ /// **payto** (default to TypeEnum.Payto).
+ public PayToDetails(string checkoutAttemptId = default(string), string shopperAccountIdentifier = default(string), TypeEnum? type = TypeEnum.Payto)
+ {
+ this.CheckoutAttemptId = checkoutAttemptId;
+ this.ShopperAccountIdentifier = shopperAccountIdentifier;
+ this.Type = type;
+ }
+
+ ///
+ /// The checkout attempt identifier.
+ ///
+ /// The checkout attempt identifier.
+ [DataMember(Name = "checkoutAttemptId", EmitDefaultValue = false)]
+ public string CheckoutAttemptId { get; set; }
+
+ ///
+ /// The shopper's banking details or payId reference, used to complete payment.
+ ///
+ /// The shopper's banking details or payId reference, used to complete payment.
+ [DataMember(Name = "shopperAccountIdentifier", EmitDefaultValue = false)]
+ public string ShopperAccountIdentifier { 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 PayToDetails {\n");
+ sb.Append(" CheckoutAttemptId: ").Append(CheckoutAttemptId).Append("\n");
+ sb.Append(" ShopperAccountIdentifier: ").Append(ShopperAccountIdentifier).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 PayToDetails);
+ }
+
+ ///
+ /// Returns true if PayToDetails instances are equal
+ ///
+ /// Instance of PayToDetails to be compared
+ /// Boolean
+ public bool Equals(PayToDetails input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.CheckoutAttemptId == input.CheckoutAttemptId ||
+ (this.CheckoutAttemptId != null &&
+ this.CheckoutAttemptId.Equals(input.CheckoutAttemptId))
+ ) &&
+ (
+ this.ShopperAccountIdentifier == input.ShopperAccountIdentifier ||
+ (this.ShopperAccountIdentifier != null &&
+ this.ShopperAccountIdentifier.Equals(input.ShopperAccountIdentifier))
+ ) &&
+ (
+ 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.CheckoutAttemptId != null)
+ {
+ hashCode = (hashCode * 59) + this.CheckoutAttemptId.GetHashCode();
+ }
+ if (this.ShopperAccountIdentifier != null)
+ {
+ hashCode = (hashCode * 59) + this.ShopperAccountIdentifier.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)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/Checkout/PaymentDetails.cs b/Adyen/Model/Checkout/PaymentDetails.cs
index 58e096242..e38e7b45c 100644
--- a/Adyen/Model/Checkout/PaymentDetails.cs
+++ b/Adyen/Model/Checkout/PaymentDetails.cs
@@ -51,527 +51,533 @@ public enum TypeEnum
[EnumMember(Value = "multibanco")]
Multibanco = 2,
+ ///
+ /// Enum BankTransferIBAN for value: bankTransfer_IBAN
+ ///
+ [EnumMember(Value = "bankTransfer_IBAN")]
+ BankTransferIBAN = 3,
+
///
/// Enum Paybright for value: paybright
///
[EnumMember(Value = "paybright")]
- Paybright = 3,
+ Paybright = 4,
///
/// Enum Paynow for value: paynow
///
[EnumMember(Value = "paynow")]
- Paynow = 4,
+ Paynow = 5,
///
/// Enum Affirm for value: affirm
///
[EnumMember(Value = "affirm")]
- Affirm = 5,
+ Affirm = 6,
///
/// Enum AffirmPos for value: affirm_pos
///
[EnumMember(Value = "affirm_pos")]
- AffirmPos = 6,
+ AffirmPos = 7,
///
/// Enum Trustly for value: trustly
///
[EnumMember(Value = "trustly")]
- Trustly = 7,
+ Trustly = 8,
///
/// Enum Trustlyvector for value: trustlyvector
///
[EnumMember(Value = "trustlyvector")]
- Trustlyvector = 8,
+ Trustlyvector = 9,
///
/// Enum Oney for value: oney
///
[EnumMember(Value = "oney")]
- Oney = 9,
+ Oney = 10,
///
/// Enum Facilypay for value: facilypay
///
[EnumMember(Value = "facilypay")]
- Facilypay = 10,
+ Facilypay = 11,
///
/// Enum Facilypay3x for value: facilypay_3x
///
[EnumMember(Value = "facilypay_3x")]
- Facilypay3x = 11,
+ Facilypay3x = 12,
///
/// Enum Facilypay4x for value: facilypay_4x
///
[EnumMember(Value = "facilypay_4x")]
- Facilypay4x = 12,
+ Facilypay4x = 13,
///
/// Enum Facilypay6x for value: facilypay_6x
///
[EnumMember(Value = "facilypay_6x")]
- Facilypay6x = 13,
+ Facilypay6x = 14,
///
/// Enum Facilypay10x for value: facilypay_10x
///
[EnumMember(Value = "facilypay_10x")]
- Facilypay10x = 14,
+ Facilypay10x = 15,
///
/// Enum Facilypay12x for value: facilypay_12x
///
[EnumMember(Value = "facilypay_12x")]
- Facilypay12x = 15,
+ Facilypay12x = 16,
///
/// Enum Unionpay for value: unionpay
///
[EnumMember(Value = "unionpay")]
- Unionpay = 16,
+ Unionpay = 17,
///
/// Enum KcpBanktransfer for value: kcp_banktransfer
///
[EnumMember(Value = "kcp_banktransfer")]
- KcpBanktransfer = 17,
+ KcpBanktransfer = 18,
///
/// Enum KcpPayco for value: kcp_payco
///
[EnumMember(Value = "kcp_payco")]
- KcpPayco = 18,
+ KcpPayco = 19,
///
/// Enum KcpCreditcard for value: kcp_creditcard
///
[EnumMember(Value = "kcp_creditcard")]
- KcpCreditcard = 19,
+ KcpCreditcard = 20,
///
/// Enum WechatpaySDK for value: wechatpaySDK
///
[EnumMember(Value = "wechatpaySDK")]
- WechatpaySDK = 20,
+ WechatpaySDK = 21,
///
/// Enum WechatpayQR for value: wechatpayQR
///
[EnumMember(Value = "wechatpayQR")]
- WechatpayQR = 21,
+ WechatpayQR = 22,
///
/// Enum WechatpayWeb for value: wechatpayWeb
///
[EnumMember(Value = "wechatpayWeb")]
- WechatpayWeb = 22,
+ WechatpayWeb = 23,
///
/// Enum MolpayBoost for value: molpay_boost
///
[EnumMember(Value = "molpay_boost")]
- MolpayBoost = 23,
+ MolpayBoost = 24,
///
/// Enum WalletIN for value: wallet_IN
///
[EnumMember(Value = "wallet_IN")]
- WalletIN = 24,
+ WalletIN = 25,
///
/// Enum PayuINCashcard for value: payu_IN_cashcard
///
[EnumMember(Value = "payu_IN_cashcard")]
- PayuINCashcard = 25,
+ PayuINCashcard = 26,
///
/// Enum PayuINNb for value: payu_IN_nb
///
[EnumMember(Value = "payu_IN_nb")]
- PayuINNb = 26,
+ PayuINNb = 27,
///
/// Enum UpiQr for value: upi_qr
///
[EnumMember(Value = "upi_qr")]
- UpiQr = 27,
+ UpiQr = 28,
///
/// Enum Paytm for value: paytm
///
[EnumMember(Value = "paytm")]
- Paytm = 28,
+ Paytm = 29,
///
/// Enum MolpayEbankingVN for value: molpay_ebanking_VN
///
[EnumMember(Value = "molpay_ebanking_VN")]
- MolpayEbankingVN = 29,
+ MolpayEbankingVN = 30,
///
/// Enum EbankingFI for value: ebanking_FI
///
[EnumMember(Value = "ebanking_FI")]
- EbankingFI = 30,
+ EbankingFI = 31,
///
/// Enum MolpayEbankingMY for value: molpay_ebanking_MY
///
[EnumMember(Value = "molpay_ebanking_MY")]
- MolpayEbankingMY = 31,
+ MolpayEbankingMY = 32,
///
/// Enum MolpayEbankingDirectMY for value: molpay_ebanking_direct_MY
///
[EnumMember(Value = "molpay_ebanking_direct_MY")]
- MolpayEbankingDirectMY = 32,
+ MolpayEbankingDirectMY = 33,
///
/// Enum Swish for value: swish
///
[EnumMember(Value = "swish")]
- Swish = 33,
+ Swish = 34,
///
/// Enum Pix for value: pix
///
[EnumMember(Value = "pix")]
- Pix = 34,
+ Pix = 35,
///
/// Enum Walley for value: walley
///
[EnumMember(Value = "walley")]
- Walley = 35,
+ Walley = 36,
///
/// Enum WalleyB2b for value: walley_b2b
///
[EnumMember(Value = "walley_b2b")]
- WalleyB2b = 36,
+ WalleyB2b = 37,
///
/// Enum Alma for value: alma
///
[EnumMember(Value = "alma")]
- Alma = 37,
+ Alma = 38,
///
/// Enum Paypo for value: paypo
///
[EnumMember(Value = "paypo")]
- Paypo = 38,
+ Paypo = 39,
///
/// Enum Scalapay for value: scalapay
///
[EnumMember(Value = "scalapay")]
- Scalapay = 39,
+ Scalapay = 40,
///
/// Enum Scalapay3x for value: scalapay_3x
///
[EnumMember(Value = "scalapay_3x")]
- Scalapay3x = 40,
+ Scalapay3x = 41,
///
/// Enum Scalapay4x for value: scalapay_4x
///
[EnumMember(Value = "scalapay_4x")]
- Scalapay4x = 41,
+ Scalapay4x = 42,
///
/// Enum MolpayFpx for value: molpay_fpx
///
[EnumMember(Value = "molpay_fpx")]
- MolpayFpx = 42,
+ MolpayFpx = 43,
///
/// Enum Konbini for value: konbini
///
[EnumMember(Value = "konbini")]
- Konbini = 43,
+ Konbini = 44,
///
/// Enum DirectEbanking for value: directEbanking
///
[EnumMember(Value = "directEbanking")]
- DirectEbanking = 44,
+ DirectEbanking = 45,
///
/// Enum Boletobancario for value: boletobancario
///
[EnumMember(Value = "boletobancario")]
- Boletobancario = 45,
+ Boletobancario = 46,
///
/// Enum Neteller for value: neteller
///
[EnumMember(Value = "neteller")]
- Neteller = 46,
+ Neteller = 47,
///
/// Enum Paysafecard for value: paysafecard
///
[EnumMember(Value = "paysafecard")]
- Paysafecard = 47,
+ Paysafecard = 48,
///
/// Enum Cashticket for value: cashticket
///
[EnumMember(Value = "cashticket")]
- Cashticket = 48,
+ Cashticket = 49,
///
/// Enum Ikano for value: ikano
///
[EnumMember(Value = "ikano")]
- Ikano = 49,
+ Ikano = 50,
///
/// Enum Karenmillen for value: karenmillen
///
[EnumMember(Value = "karenmillen")]
- Karenmillen = 50,
+ Karenmillen = 51,
///
/// Enum Oasis for value: oasis
///
[EnumMember(Value = "oasis")]
- Oasis = 51,
+ Oasis = 52,
///
/// Enum Warehouse for value: warehouse
///
[EnumMember(Value = "warehouse")]
- Warehouse = 52,
+ Warehouse = 53,
///
/// Enum PrimeiropayBoleto for value: primeiropay_boleto
///
[EnumMember(Value = "primeiropay_boleto")]
- PrimeiropayBoleto = 53,
+ PrimeiropayBoleto = 54,
///
/// Enum Mada for value: mada
///
[EnumMember(Value = "mada")]
- Mada = 54,
+ Mada = 55,
///
/// Enum Benefit for value: benefit
///
[EnumMember(Value = "benefit")]
- Benefit = 55,
+ Benefit = 56,
///
/// Enum Knet for value: knet
///
[EnumMember(Value = "knet")]
- Knet = 56,
+ Knet = 57,
///
/// Enum Omannet for value: omannet
///
[EnumMember(Value = "omannet")]
- Omannet = 57,
+ Omannet = 58,
///
/// Enum GopayWallet for value: gopay_wallet
///
[EnumMember(Value = "gopay_wallet")]
- GopayWallet = 58,
+ GopayWallet = 59,
///
/// Enum KcpNaverpay for value: kcp_naverpay
///
[EnumMember(Value = "kcp_naverpay")]
- KcpNaverpay = 59,
+ KcpNaverpay = 60,
///
/// Enum OnlinebankingIN for value: onlinebanking_IN
///
[EnumMember(Value = "onlinebanking_IN")]
- OnlinebankingIN = 60,
+ OnlinebankingIN = 61,
///
/// Enum Fawry for value: fawry
///
[EnumMember(Value = "fawry")]
- Fawry = 61,
+ Fawry = 62,
///
/// Enum Atome for value: atome
///
[EnumMember(Value = "atome")]
- Atome = 62,
+ Atome = 63,
///
/// Enum Moneybookers for value: moneybookers
///
[EnumMember(Value = "moneybookers")]
- Moneybookers = 63,
+ Moneybookers = 64,
///
/// Enum Naps for value: naps
///
[EnumMember(Value = "naps")]
- Naps = 64,
+ Naps = 65,
///
/// Enum Nordea for value: nordea
///
[EnumMember(Value = "nordea")]
- Nordea = 65,
+ Nordea = 66,
///
/// Enum BoletobancarioBradesco for value: boletobancario_bradesco
///
[EnumMember(Value = "boletobancario_bradesco")]
- BoletobancarioBradesco = 66,
+ BoletobancarioBradesco = 67,
///
/// Enum BoletobancarioItau for value: boletobancario_itau
///
[EnumMember(Value = "boletobancario_itau")]
- BoletobancarioItau = 67,
+ BoletobancarioItau = 68,
///
/// Enum BoletobancarioSantander for value: boletobancario_santander
///
[EnumMember(Value = "boletobancario_santander")]
- BoletobancarioSantander = 68,
+ BoletobancarioSantander = 69,
///
/// Enum BoletobancarioBancodobrasil for value: boletobancario_bancodobrasil
///
[EnumMember(Value = "boletobancario_bancodobrasil")]
- BoletobancarioBancodobrasil = 69,
+ BoletobancarioBancodobrasil = 70,
///
/// Enum BoletobancarioHsbc for value: boletobancario_hsbc
///
[EnumMember(Value = "boletobancario_hsbc")]
- BoletobancarioHsbc = 70,
+ BoletobancarioHsbc = 71,
///
/// Enum MolpayMaybank2u for value: molpay_maybank2u
///
[EnumMember(Value = "molpay_maybank2u")]
- MolpayMaybank2u = 71,
+ MolpayMaybank2u = 72,
///
/// Enum MolpayCimb for value: molpay_cimb
///
[EnumMember(Value = "molpay_cimb")]
- MolpayCimb = 72,
+ MolpayCimb = 73,
///
/// Enum MolpayRhb for value: molpay_rhb
///
[EnumMember(Value = "molpay_rhb")]
- MolpayRhb = 73,
+ MolpayRhb = 74,
///
/// Enum MolpayAmb for value: molpay_amb
///
[EnumMember(Value = "molpay_amb")]
- MolpayAmb = 74,
+ MolpayAmb = 75,
///
/// Enum MolpayHlb for value: molpay_hlb
///
[EnumMember(Value = "molpay_hlb")]
- MolpayHlb = 75,
+ MolpayHlb = 76,
///
/// Enum MolpayAffinEpg for value: molpay_affin_epg
///
[EnumMember(Value = "molpay_affin_epg")]
- MolpayAffinEpg = 76,
+ MolpayAffinEpg = 77,
///
/// Enum MolpayBankislam for value: molpay_bankislam
///
[EnumMember(Value = "molpay_bankislam")]
- MolpayBankislam = 77,
+ MolpayBankislam = 78,
///
/// Enum MolpayPublicbank for value: molpay_publicbank
///
[EnumMember(Value = "molpay_publicbank")]
- MolpayPublicbank = 78,
+ MolpayPublicbank = 79,
///
/// Enum FpxAgrobank for value: fpx_agrobank
///
[EnumMember(Value = "fpx_agrobank")]
- FpxAgrobank = 79,
+ FpxAgrobank = 80,
///
/// Enum Touchngo for value: touchngo
///
[EnumMember(Value = "touchngo")]
- Touchngo = 80,
+ Touchngo = 81,
///
/// Enum Maybank2uMae for value: maybank2u_mae
///
[EnumMember(Value = "maybank2u_mae")]
- Maybank2uMae = 81,
+ Maybank2uMae = 82,
///
/// Enum Duitnow for value: duitnow
///
[EnumMember(Value = "duitnow")]
- Duitnow = 82,
+ Duitnow = 83,
///
/// Enum Promptpay for value: promptpay
///
[EnumMember(Value = "promptpay")]
- Promptpay = 83,
+ Promptpay = 84,
///
/// Enum TwintPos for value: twint_pos
///
[EnumMember(Value = "twint_pos")]
- TwintPos = 84,
+ TwintPos = 85,
///
/// Enum AlipayHk for value: alipay_hk
///
[EnumMember(Value = "alipay_hk")]
- AlipayHk = 85,
+ AlipayHk = 86,
///
/// Enum AlipayHkWeb for value: alipay_hk_web
///
[EnumMember(Value = "alipay_hk_web")]
- AlipayHkWeb = 86,
+ AlipayHkWeb = 87,
///
/// Enum AlipayHkWap for value: alipay_hk_wap
///
[EnumMember(Value = "alipay_hk_wap")]
- AlipayHkWap = 87,
+ AlipayHkWap = 88,
///
/// Enum AlipayWap for value: alipay_wap
///
[EnumMember(Value = "alipay_wap")]
- AlipayWap = 88,
+ AlipayWap = 89,
///
/// Enum Balanceplatform for value: balanceplatform
///
[EnumMember(Value = "balanceplatform")]
- Balanceplatform = 89
+ Balanceplatform = 90
}
diff --git a/Adyen/Model/Checkout/PaymentLinkRequest.cs b/Adyen/Model/Checkout/PaymentLinkRequest.cs
index 455d826da..52f4c56ea 100644
--- a/Adyen/Model/Checkout/PaymentLinkRequest.cs
+++ b/Adyen/Model/Checkout/PaymentLinkRequest.cs
@@ -166,6 +166,8 @@ protected PaymentLinkRequest() { }
/// deliveryAddress.
/// A short description visible on the payment page. Maximum length: 280 characters..
/// The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created..
+ /// fundOrigin.
+ /// fundRecipient.
/// A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options..
/// Price and product information about the purchased items, to be included on the invoice sent to the shopper. This parameter is required for open invoice (_buy now, pay later_) payment methods such Afterpay, Clearpay, Klarna, RatePay, and Zip..
/// Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture)..
@@ -194,7 +196,7 @@ protected PaymentLinkRequest() { }
/// The shopper's telephone number..
/// A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area..
/// threeDS2RequestData.
- public PaymentLinkRequest(List allowedPaymentMethods = default(List), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), Address billingAddress = default(Address), List blockedPaymentMethods = default(List), int? captureDelayHours = default(int?), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), DateTime deliverAt = default(DateTime), Address deliveryAddress = default(Address), string description = default(string), DateTime expiresAt = default(DateTime), Dictionary installmentOptions = default(Dictionary), List lineItems = default(List), bool? manualCapture = default(bool?), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), Dictionary metadata = default(Dictionary), PlatformChargebackLogic platformChargebackLogic = default(PlatformChargebackLogic), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string reference = default(string), List requiredShopperFields = default(List), string returnUrl = default(string), bool? reusable = default(bool?), RiskData riskData = default(RiskData), string shopperEmail = default(string), string shopperLocale = default(string), Name shopperName = default(Name), string shopperReference = default(string), string shopperStatement = default(string), bool? showRemovePaymentMethodButton = true, string socialSecurityNumber = default(string), bool? splitCardFundingSources = false, List splits = default(List), string store = default(string), StorePaymentMethodModeEnum? storePaymentMethodMode = default(StorePaymentMethodModeEnum?), string telephoneNumber = default(string), string themeId = default(string), CheckoutSessionThreeDS2RequestData threeDS2RequestData = default(CheckoutSessionThreeDS2RequestData))
+ public PaymentLinkRequest(List allowedPaymentMethods = default(List), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), Address billingAddress = default(Address), List blockedPaymentMethods = default(List), int? captureDelayHours = default(int?), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), DateTime deliverAt = default(DateTime), Address deliveryAddress = default(Address), string description = default(string), DateTime expiresAt = default(DateTime), FundOrigin fundOrigin = default(FundOrigin), FundRecipient fundRecipient = default(FundRecipient), Dictionary installmentOptions = default(Dictionary), List lineItems = default(List), bool? manualCapture = default(bool?), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), Dictionary metadata = default(Dictionary), PlatformChargebackLogic platformChargebackLogic = default(PlatformChargebackLogic), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string reference = default(string), List requiredShopperFields = default(List), string returnUrl = default(string), bool? reusable = default(bool?), RiskData riskData = default(RiskData), string shopperEmail = default(string), string shopperLocale = default(string), Name shopperName = default(Name), string shopperReference = default(string), string shopperStatement = default(string), bool? showRemovePaymentMethodButton = true, string socialSecurityNumber = default(string), bool? splitCardFundingSources = false, List splits = default(List), string store = default(string), StorePaymentMethodModeEnum? storePaymentMethodMode = default(StorePaymentMethodModeEnum?), string telephoneNumber = default(string), string themeId = default(string), CheckoutSessionThreeDS2RequestData threeDS2RequestData = default(CheckoutSessionThreeDS2RequestData))
{
this.Amount = amount;
this.MerchantAccount = merchantAccount;
@@ -210,6 +212,8 @@ protected PaymentLinkRequest() { }
this.DeliveryAddress = deliveryAddress;
this.Description = description;
this.ExpiresAt = expiresAt;
+ this.FundOrigin = fundOrigin;
+ this.FundRecipient = fundRecipient;
this.InstallmentOptions = installmentOptions;
this.LineItems = lineItems;
this.ManualCapture = manualCapture;
@@ -319,6 +323,18 @@ protected PaymentLinkRequest() { }
[DataMember(Name = "expiresAt", EmitDefaultValue = false)]
public DateTime ExpiresAt { get; set; }
+ ///
+ /// Gets or Sets FundOrigin
+ ///
+ [DataMember(Name = "fundOrigin", EmitDefaultValue = false)]
+ public FundOrigin FundOrigin { get; set; }
+
+ ///
+ /// Gets or Sets FundRecipient
+ ///
+ [DataMember(Name = "fundRecipient", EmitDefaultValue = false)]
+ public FundRecipient FundRecipient { get; set; }
+
///
/// A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options.
///
@@ -510,6 +526,8 @@ public override string ToString()
sb.Append(" DeliveryAddress: ").Append(DeliveryAddress).Append("\n");
sb.Append(" Description: ").Append(Description).Append("\n");
sb.Append(" ExpiresAt: ").Append(ExpiresAt).Append("\n");
+ sb.Append(" FundOrigin: ").Append(FundOrigin).Append("\n");
+ sb.Append(" FundRecipient: ").Append(FundRecipient).Append("\n");
sb.Append(" InstallmentOptions: ").Append(InstallmentOptions).Append("\n");
sb.Append(" LineItems: ").Append(LineItems).Append("\n");
sb.Append(" ManualCapture: ").Append(ManualCapture).Append("\n");
@@ -634,6 +652,16 @@ public bool Equals(PaymentLinkRequest input)
(this.ExpiresAt != null &&
this.ExpiresAt.Equals(input.ExpiresAt))
) &&
+ (
+ this.FundOrigin == input.FundOrigin ||
+ (this.FundOrigin != null &&
+ this.FundOrigin.Equals(input.FundOrigin))
+ ) &&
+ (
+ this.FundRecipient == input.FundRecipient ||
+ (this.FundRecipient != null &&
+ this.FundRecipient.Equals(input.FundRecipient))
+ ) &&
(
this.InstallmentOptions == input.InstallmentOptions ||
this.InstallmentOptions != null &&
@@ -827,6 +855,14 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode();
}
+ if (this.FundOrigin != null)
+ {
+ hashCode = (hashCode * 59) + this.FundOrigin.GetHashCode();
+ }
+ if (this.FundRecipient != null)
+ {
+ hashCode = (hashCode * 59) + this.FundRecipient.GetHashCode();
+ }
if (this.InstallmentOptions != null)
{
hashCode = (hashCode * 59) + this.InstallmentOptions.GetHashCode();
diff --git a/Adyen/Model/Checkout/PaymentLinkResponse.cs b/Adyen/Model/Checkout/PaymentLinkResponse.cs
index 03d2c7d26..a5a19dbe6 100644
--- a/Adyen/Model/Checkout/PaymentLinkResponse.cs
+++ b/Adyen/Model/Checkout/PaymentLinkResponse.cs
@@ -212,6 +212,8 @@ protected PaymentLinkResponse() { }
/// deliveryAddress.
/// A short description visible on the payment page. Maximum length: 280 characters..
/// The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created..
+ /// fundOrigin.
+ /// fundRecipient.
/// A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options..
/// Price and product information about the purchased items, to be included on the invoice sent to the shopper. This parameter is required for open invoice (_buy now, pay later_) payment methods such Afterpay, Clearpay, Klarna, RatePay, and Zip..
/// Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture)..
@@ -242,7 +244,7 @@ protected PaymentLinkResponse() { }
/// A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area..
/// threeDS2RequestData.
/// The date when the payment link status was updated. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**..
- public PaymentLinkResponse(List allowedPaymentMethods = default(List), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), Address billingAddress = default(Address), List blockedPaymentMethods = default(List), int? captureDelayHours = default(int?), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), DateTime deliverAt = default(DateTime), Address deliveryAddress = default(Address), string description = default(string), DateTime expiresAt = default(DateTime), Dictionary installmentOptions = default(Dictionary), List lineItems = default(List), bool? manualCapture = default(bool?), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), Dictionary metadata = default(Dictionary), PlatformChargebackLogic platformChargebackLogic = default(PlatformChargebackLogic), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string reference = default(string), List requiredShopperFields = default(List), string returnUrl = default(string), bool? reusable = default(bool?), RiskData riskData = default(RiskData), string shopperEmail = default(string), string shopperLocale = default(string), Name shopperName = default(Name), string shopperReference = default(string), string shopperStatement = default(string), bool? showRemovePaymentMethodButton = true, string socialSecurityNumber = default(string), bool? splitCardFundingSources = false, List splits = default(List), StatusEnum status = default(StatusEnum), string store = default(string), StorePaymentMethodModeEnum? storePaymentMethodMode = default(StorePaymentMethodModeEnum?), string telephoneNumber = default(string), string themeId = default(string), CheckoutSessionThreeDS2RequestData threeDS2RequestData = default(CheckoutSessionThreeDS2RequestData), DateTime updatedAt = default(DateTime))
+ public PaymentLinkResponse(List allowedPaymentMethods = default(List), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), Address billingAddress = default(Address), List blockedPaymentMethods = default(List), int? captureDelayHours = default(int?), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), DateTime deliverAt = default(DateTime), Address deliveryAddress = default(Address), string description = default(string), DateTime expiresAt = default(DateTime), FundOrigin fundOrigin = default(FundOrigin), FundRecipient fundRecipient = default(FundRecipient), Dictionary installmentOptions = default(Dictionary), List lineItems = default(List), bool? manualCapture = default(bool?), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), Dictionary metadata = default(Dictionary), PlatformChargebackLogic platformChargebackLogic = default(PlatformChargebackLogic), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string reference = default(string), List requiredShopperFields = default(List), string returnUrl = default(string), bool? reusable = default(bool?), RiskData riskData = default(RiskData), string shopperEmail = default(string), string shopperLocale = default(string), Name shopperName = default(Name), string shopperReference = default(string), string shopperStatement = default(string), bool? showRemovePaymentMethodButton = true, string socialSecurityNumber = default(string), bool? splitCardFundingSources = false, List splits = default(List), StatusEnum status = default(StatusEnum), string store = default(string), StorePaymentMethodModeEnum? storePaymentMethodMode = default(StorePaymentMethodModeEnum?), string telephoneNumber = default(string), string themeId = default(string), CheckoutSessionThreeDS2RequestData threeDS2RequestData = default(CheckoutSessionThreeDS2RequestData), DateTime updatedAt = default(DateTime))
{
this.Amount = amount;
this.MerchantAccount = merchantAccount;
@@ -259,6 +261,8 @@ protected PaymentLinkResponse() { }
this.DeliveryAddress = deliveryAddress;
this.Description = description;
this.ExpiresAt = expiresAt;
+ this.FundOrigin = fundOrigin;
+ this.FundRecipient = fundRecipient;
this.InstallmentOptions = installmentOptions;
this.LineItems = lineItems;
this.ManualCapture = manualCapture;
@@ -369,6 +373,18 @@ protected PaymentLinkResponse() { }
[DataMember(Name = "expiresAt", EmitDefaultValue = false)]
public DateTime ExpiresAt { get; set; }
+ ///
+ /// Gets or Sets FundOrigin
+ ///
+ [DataMember(Name = "fundOrigin", EmitDefaultValue = false)]
+ public FundOrigin FundOrigin { get; set; }
+
+ ///
+ /// Gets or Sets FundRecipient
+ ///
+ [DataMember(Name = "fundRecipient", EmitDefaultValue = false)]
+ public FundRecipient FundRecipient { get; set; }
+
///
/// A unique identifier of the payment link.
///
@@ -581,6 +597,8 @@ public override string ToString()
sb.Append(" DeliveryAddress: ").Append(DeliveryAddress).Append("\n");
sb.Append(" Description: ").Append(Description).Append("\n");
sb.Append(" ExpiresAt: ").Append(ExpiresAt).Append("\n");
+ sb.Append(" FundOrigin: ").Append(FundOrigin).Append("\n");
+ sb.Append(" FundRecipient: ").Append(FundRecipient).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" InstallmentOptions: ").Append(InstallmentOptions).Append("\n");
sb.Append(" LineItems: ").Append(LineItems).Append("\n");
@@ -709,6 +727,16 @@ public bool Equals(PaymentLinkResponse input)
(this.ExpiresAt != null &&
this.ExpiresAt.Equals(input.ExpiresAt))
) &&
+ (
+ this.FundOrigin == input.FundOrigin ||
+ (this.FundOrigin != null &&
+ this.FundOrigin.Equals(input.FundOrigin))
+ ) &&
+ (
+ this.FundRecipient == input.FundRecipient ||
+ (this.FundRecipient != null &&
+ this.FundRecipient.Equals(input.FundRecipient))
+ ) &&
(
this.Id == input.Id ||
(this.Id != null &&
@@ -921,6 +949,14 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode();
}
+ if (this.FundOrigin != null)
+ {
+ hashCode = (hashCode * 59) + this.FundOrigin.GetHashCode();
+ }
+ if (this.FundRecipient != null)
+ {
+ hashCode = (hashCode * 59) + this.FundRecipient.GetHashCode();
+ }
if (this.Id != null)
{
hashCode = (hashCode * 59) + this.Id.GetHashCode();
diff --git a/Adyen/Model/Checkout/SepaDirectDebitDetails.cs b/Adyen/Model/Checkout/SepaDirectDebitDetails.cs
index 1103803c9..7b234b850 100644
--- a/Adyen/Model/Checkout/SepaDirectDebitDetails.cs
+++ b/Adyen/Model/Checkout/SepaDirectDebitDetails.cs
@@ -73,14 +73,16 @@ protected SepaDirectDebitDetails() { }
/// The name of the bank account holder. (required).
/// 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..
+ /// The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts..
/// **sepadirectdebit** (default to TypeEnum.Sepadirectdebit).
- public SepaDirectDebitDetails(string checkoutAttemptId = default(string), string iban = default(string), string ownerName = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = TypeEnum.Sepadirectdebit)
+ public SepaDirectDebitDetails(string checkoutAttemptId = default(string), string iban = default(string), string ownerName = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), string transferInstrumentId = default(string), TypeEnum? type = TypeEnum.Sepadirectdebit)
{
this.Iban = iban;
this.OwnerName = ownerName;
this.CheckoutAttemptId = checkoutAttemptId;
this.RecurringDetailReference = recurringDetailReference;
this.StoredPaymentMethodId = storedPaymentMethodId;
+ this.TransferInstrumentId = transferInstrumentId;
this.Type = type;
}
@@ -120,6 +122,13 @@ protected SepaDirectDebitDetails() { }
[DataMember(Name = "storedPaymentMethodId", EmitDefaultValue = false)]
public string StoredPaymentMethodId { get; set; }
+ ///
+ /// The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts.
+ ///
+ /// The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts.
+ [DataMember(Name = "transferInstrumentId", EmitDefaultValue = false)]
+ public string TransferInstrumentId { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -133,6 +142,7 @@ public override string ToString()
sb.Append(" OwnerName: ").Append(OwnerName).Append("\n");
sb.Append(" RecurringDetailReference: ").Append(RecurringDetailReference).Append("\n");
sb.Append(" StoredPaymentMethodId: ").Append(StoredPaymentMethodId).Append("\n");
+ sb.Append(" TransferInstrumentId: ").Append(TransferInstrumentId).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -194,6 +204,11 @@ public bool Equals(SepaDirectDebitDetails input)
(this.StoredPaymentMethodId != null &&
this.StoredPaymentMethodId.Equals(input.StoredPaymentMethodId))
) &&
+ (
+ this.TransferInstrumentId == input.TransferInstrumentId ||
+ (this.TransferInstrumentId != null &&
+ this.TransferInstrumentId.Equals(input.TransferInstrumentId))
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -229,6 +244,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.StoredPaymentMethodId.GetHashCode();
}
+ if (this.TransferInstrumentId != null)
+ {
+ hashCode = (hashCode * 59) + this.TransferInstrumentId.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/Checkout/Split.cs b/Adyen/Model/Checkout/Split.cs
index 656a6bcf2..7efa82f5e 100644
--- a/Adyen/Model/Checkout/Split.cs
+++ b/Adyen/Model/Checkout/Split.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.Checkout
public partial class Split : IEquatable, IValidatableObject
{
///
- /// The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**.
+ /// The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**.
///
- /// The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**.
+ /// The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**.
[JsonConverter(typeof(StringEnumConverter))]
public enum TypeEnum
{
@@ -133,9 +133,9 @@ public enum TypeEnum
///
- /// The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**.
+ /// The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**.
///
- /// The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**.
+ /// The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**.
[DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)]
public TypeEnum Type { get; set; }
///
@@ -150,7 +150,7 @@ protected Split() { }
/// amount.
/// Your description for the split item..
/// Your unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports..
- /// The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**. (required).
+ /// The part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: the aggregated amount of the interchange and scheme fees. * **PaymentFee**: the aggregated amount of all transaction fees. * **AdyenFees**: the aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: the transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: the transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: the fees paid to the issuer for each payment made with the card network. * **SchemeFee**: the fees paid to the card scheme for using their network. * **Commission**: your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: the amount left over after a currency conversion, booked to the specified `account`. * **TopUp**: allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: the value-added tax charged on the payment, booked to your platforms liable balance account. * **Commission**: your platform's commission (specified in `amount`) on the payment, booked to your liable balance account. * **Default**: in very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**. (required).
public Split(string account = default(string), SplitAmount amount = default(SplitAmount), string description = default(string), string reference = default(string), TypeEnum type = default(TypeEnum))
{
this.Type = type;
diff --git a/Adyen/Model/Checkout/StoredPaymentMethodDetails.cs b/Adyen/Model/Checkout/StoredPaymentMethodDetails.cs
index 6e3136479..2427f1fe0 100644
--- a/Adyen/Model/Checkout/StoredPaymentMethodDetails.cs
+++ b/Adyen/Model/Checkout/StoredPaymentMethodDetails.cs
@@ -57,101 +57,95 @@ public enum TypeEnum
[EnumMember(Value = "bcmc_mobile_app")]
BcmcMobileApp = 3,
- ///
- /// Enum BankTransferIBAN for value: bankTransfer_IBAN
- ///
- [EnumMember(Value = "bankTransfer_IBAN")]
- BankTransferIBAN = 4,
-
///
/// Enum MomoWallet for value: momo_wallet
///
[EnumMember(Value = "momo_wallet")]
- MomoWallet = 5,
+ MomoWallet = 4,
///
/// Enum MomoWalletApp for value: momo_wallet_app
///
[EnumMember(Value = "momo_wallet_app")]
- MomoWalletApp = 6,
+ MomoWalletApp = 5,
///
/// Enum Twint for value: twint
///
[EnumMember(Value = "twint")]
- Twint = 7,
+ Twint = 6,
///
/// Enum PaymayaWallet for value: paymaya_wallet
///
[EnumMember(Value = "paymaya_wallet")]
- PaymayaWallet = 8,
+ PaymayaWallet = 7,
///
/// Enum GrabpaySG for value: grabpay_SG
///
[EnumMember(Value = "grabpay_SG")]
- GrabpaySG = 9,
+ GrabpaySG = 8,
///
/// Enum GrabpayMY for value: grabpay_MY
///
[EnumMember(Value = "grabpay_MY")]
- GrabpayMY = 10,
+ GrabpayMY = 9,
///
/// Enum GrabpayTH for value: grabpay_TH
///
[EnumMember(Value = "grabpay_TH")]
- GrabpayTH = 11,
+ GrabpayTH = 10,
///
/// Enum GrabpayID for value: grabpay_ID
///
[EnumMember(Value = "grabpay_ID")]
- GrabpayID = 12,
+ GrabpayID = 11,
///
/// Enum GrabpayVN for value: grabpay_VN
///
[EnumMember(Value = "grabpay_VN")]
- GrabpayVN = 13,
+ GrabpayVN = 12,
///
/// Enum GrabpayPH for value: grabpay_PH
///
[EnumMember(Value = "grabpay_PH")]
- GrabpayPH = 14,
+ GrabpayPH = 13,
///
/// Enum Oxxo for value: oxxo
///
[EnumMember(Value = "oxxo")]
- Oxxo = 15,
+ Oxxo = 14,
///
/// Enum Gcash for value: gcash
///
[EnumMember(Value = "gcash")]
- Gcash = 16,
+ Gcash = 15,
///
/// Enum Dana for value: dana
///
[EnumMember(Value = "dana")]
- Dana = 17,
+ Dana = 16,
///
/// Enum Kakaopay for value: kakaopay
///
[EnumMember(Value = "kakaopay")]
- Kakaopay = 18,
+ Kakaopay = 17,
///
/// Enum Truemoney for value: truemoney
///
[EnumMember(Value = "truemoney")]
- Truemoney = 19
+ Truemoney = 18
}
diff --git a/Adyen/Model/LegalEntityManagement/Document.cs b/Adyen/Model/LegalEntityManagement/Document.cs
index bc1cec7d2..0a14d3276 100644
--- a/Adyen/Model/LegalEntityManagement/Document.cs
+++ b/Adyen/Model/LegalEntityManagement/Document.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.LegalEntityManagement
public partial class Document : IEquatable, IValidatableObject
{
///
- /// Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, or **proofOfFundingOrWealthSource**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value can be **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
+ /// Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value can be **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
///
- /// Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, or **proofOfFundingOrWealthSource**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value can be **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
+ /// Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value can be **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
[JsonConverter(typeof(StringEnumConverter))]
public enum TypeEnum
{
@@ -145,15 +145,21 @@ public enum TypeEnum
/// Enum ProofOfFundingOrWealthSource for value: proofOfFundingOrWealthSource
///
[EnumMember(Value = "proofOfFundingOrWealthSource")]
- ProofOfFundingOrWealthSource = 18
+ ProofOfFundingOrWealthSource = 18,
+
+ ///
+ /// Enum ProofOfRelationship for value: proofOfRelationship
+ ///
+ [EnumMember(Value = "proofOfRelationship")]
+ ProofOfRelationship = 19
}
///
- /// Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, or **proofOfFundingOrWealthSource**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value can be **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
+ /// Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value can be **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
///
- /// Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, or **proofOfFundingOrWealthSource**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value can be **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
+ /// Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value can be **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
[DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)]
public TypeEnum Type { get; set; }
///
@@ -173,7 +179,7 @@ protected Document() { }
/// The state or province where the document was issued (AU only)..
/// The number in the document..
/// owner.
- /// Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, or **proofOfFundingOrWealthSource**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value can be **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). (required).
+ /// Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value can be **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). (required).
public Document(Attachment attachment = default(Attachment), List attachments = default(List), string description = default(string), string expiryDate = default(string), string fileName = default(string), string issuerCountry = default(string), string issuerState = default(string), string number = default(string), OwnerEntity owner = default(OwnerEntity), TypeEnum type = default(TypeEnum))
{
this.Description = description;
diff --git a/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentRequest.cs b/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentRequest.cs
index ea5636355..759a3a7a6 100644
--- a/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentRequest.cs
+++ b/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentRequest.cs
@@ -105,11 +105,13 @@ protected GetTermsOfServiceDocumentRequest() { }
/// Initializes a new instance of the class.
///
/// The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. (required).
+ /// The requested format for the Terms of Service document. Default value: JSON. Possible values: JSON or PDF..
/// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** (required).
- public GetTermsOfServiceDocumentRequest(string language = default(string), TypeEnum type = default(TypeEnum))
+ public GetTermsOfServiceDocumentRequest(string language = default(string), string termsOfServiceDocumentFormat = default(string), TypeEnum type = default(TypeEnum))
{
this.Language = language;
this.Type = type;
+ this.TermsOfServiceDocumentFormat = termsOfServiceDocumentFormat;
}
///
@@ -119,6 +121,13 @@ protected GetTermsOfServiceDocumentRequest() { }
[DataMember(Name = "language", IsRequired = false, EmitDefaultValue = false)]
public string Language { get; set; }
+ ///
+ /// The requested format for the Terms of Service document. Default value: JSON. Possible values: JSON or PDF.
+ ///
+ /// The requested format for the Terms of Service document. Default value: JSON. Possible values: JSON or PDF.
+ [DataMember(Name = "termsOfServiceDocumentFormat", EmitDefaultValue = false)]
+ public string TermsOfServiceDocumentFormat { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -128,6 +137,7 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class GetTermsOfServiceDocumentRequest {\n");
sb.Append(" Language: ").Append(Language).Append("\n");
+ sb.Append(" TermsOfServiceDocumentFormat: ").Append(TermsOfServiceDocumentFormat).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -169,6 +179,11 @@ public bool Equals(GetTermsOfServiceDocumentRequest input)
(this.Language != null &&
this.Language.Equals(input.Language))
) &&
+ (
+ this.TermsOfServiceDocumentFormat == input.TermsOfServiceDocumentFormat ||
+ (this.TermsOfServiceDocumentFormat != null &&
+ this.TermsOfServiceDocumentFormat.Equals(input.TermsOfServiceDocumentFormat))
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -188,6 +203,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Language.GetHashCode();
}
+ if (this.TermsOfServiceDocumentFormat != null)
+ {
+ hashCode = (hashCode * 59) + this.TermsOfServiceDocumentFormat.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentResponse.cs b/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentResponse.cs
index 5ad27f010..aa7f9d7aa 100644
--- a/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentResponse.cs
+++ b/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentResponse.cs
@@ -102,13 +102,15 @@ public enum TypeEnum
/// The Terms of Service document in Base64-encoded format..
/// The unique identifier of the legal entity..
/// The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English..
+ /// The format of the Terms of Service document..
/// The unique identifier of the Terms of Service document..
/// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** .
- public GetTermsOfServiceDocumentResponse(byte[] document = default(byte[]), string id = default(string), string language = default(string), string termsOfServiceDocumentId = default(string), TypeEnum? type = default(TypeEnum?))
+ public GetTermsOfServiceDocumentResponse(byte[] document = default(byte[]), string id = default(string), string language = default(string), string termsOfServiceDocumentFormat = default(string), string termsOfServiceDocumentId = default(string), TypeEnum? type = default(TypeEnum?))
{
this.Document = document;
this.Id = id;
this.Language = language;
+ this.TermsOfServiceDocumentFormat = termsOfServiceDocumentFormat;
this.TermsOfServiceDocumentId = termsOfServiceDocumentId;
this.Type = type;
}
@@ -134,6 +136,13 @@ public enum TypeEnum
[DataMember(Name = "language", EmitDefaultValue = false)]
public string Language { get; set; }
+ ///
+ /// The format of the Terms of Service document.
+ ///
+ /// The format of the Terms of Service document.
+ [DataMember(Name = "termsOfServiceDocumentFormat", EmitDefaultValue = false)]
+ public string TermsOfServiceDocumentFormat { get; set; }
+
///
/// The unique identifier of the Terms of Service document.
///
@@ -152,6 +161,7 @@ public override string ToString()
sb.Append(" Document: ").Append(Document).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Language: ").Append(Language).Append("\n");
+ sb.Append(" TermsOfServiceDocumentFormat: ").Append(TermsOfServiceDocumentFormat).Append("\n");
sb.Append(" TermsOfServiceDocumentId: ").Append(TermsOfServiceDocumentId).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
@@ -204,6 +214,11 @@ public bool Equals(GetTermsOfServiceDocumentResponse input)
(this.Language != null &&
this.Language.Equals(input.Language))
) &&
+ (
+ this.TermsOfServiceDocumentFormat == input.TermsOfServiceDocumentFormat ||
+ (this.TermsOfServiceDocumentFormat != null &&
+ this.TermsOfServiceDocumentFormat.Equals(input.TermsOfServiceDocumentFormat))
+ ) &&
(
this.TermsOfServiceDocumentId == input.TermsOfServiceDocumentId ||
(this.TermsOfServiceDocumentId != null &&
@@ -236,6 +251,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Language.GetHashCode();
}
+ if (this.TermsOfServiceDocumentFormat != null)
+ {
+ hashCode = (hashCode * 59) + this.TermsOfServiceDocumentFormat.GetHashCode();
+ }
if (this.TermsOfServiceDocumentId != null)
{
hashCode = (hashCode * 59) + this.TermsOfServiceDocumentId.GetHashCode();
diff --git a/Adyen/Model/LegalEntityManagement/IdentificationData.cs b/Adyen/Model/LegalEntityManagement/IdentificationData.cs
index 4940df4d2..aef357684 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 `type` value is **nationalIdNumber**. For individuals in these countries, the following types are supported. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport**
+ /// 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 `type` value is **nationalIdNumber**. For individuals in these countries, the following types are supported. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport**
+ /// 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 `type` value is **nationalIdNumber**. For individuals in these countries, the following types are supported. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport**
+ /// 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 `type` value is **nationalIdNumber**. For individuals in these countries, the following types are supported. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport**
+ /// 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 `type` value is **nationalIdNumber**. For individuals in these countries, the following types are supported. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** (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/LegalEntity.cs b/Adyen/Model/LegalEntityManagement/LegalEntity.cs
index 8623ef664..3ece2bf91 100644
--- a/Adyen/Model/LegalEntityManagement/LegalEntity.cs
+++ b/Adyen/Model/LegalEntityManagement/LegalEntity.cs
@@ -96,7 +96,7 @@ protected LegalEntity() { }
/// soleProprietorship.
/// trust.
/// The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**..
- /// A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/onboard-users#upfront)..
+ /// A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification)..
public LegalEntity(List documentDetails = default(List), List documents = default(List), List entityAssociations = default(List), Individual individual = default(Individual), Organization organization = default(Organization), List problems = default(List), string reference = default(string), SoleProprietorship soleProprietorship = default(SoleProprietorship), Trust trust = default(Trust), TypeEnum? type = default(TypeEnum?), string verificationPlan = default(string))
{
this.DocumentDetails = documentDetails;
@@ -201,9 +201,9 @@ protected LegalEntity() { }
public List VerificationDeadlines { get; private set; }
///
- /// A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/onboard-users#upfront).
+ /// A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification).
///
- /// A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/onboard-users#upfront).
+ /// A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification).
[DataMember(Name = "verificationPlan", EmitDefaultValue = false)]
public string VerificationPlan { get; set; }
diff --git a/Adyen/Model/LegalEntityManagement/LegalEntityAssociation.cs b/Adyen/Model/LegalEntityManagement/LegalEntityAssociation.cs
index f8d892b5b..1cc75315d 100644
--- a/Adyen/Model/LegalEntityManagement/LegalEntityAssociation.cs
+++ b/Adyen/Model/LegalEntityManagement/LegalEntityAssociation.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.LegalEntityManagement
public partial class LegalEntityAssociation : IEquatable, IValidatableObject
{
///
- /// Defines the relationship of the legal entity to the current legal entity. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust** Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**.
+ /// Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**.
///
- /// Defines the relationship of the legal entity to the current legal entity. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust** Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**.
+ /// Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**.
[JsonConverter(typeof(StringEnumConverter))]
public enum TypeEnum
{
@@ -57,85 +57,91 @@ public enum TypeEnum
[EnumMember(Value = "immediateParentCompany")]
ImmediateParentCompany = 3,
+ ///
+ /// Enum LegalRepresentative for value: legalRepresentative
+ ///
+ [EnumMember(Value = "legalRepresentative")]
+ LegalRepresentative = 4,
+
///
/// Enum PciSignatory for value: pciSignatory
///
[EnumMember(Value = "pciSignatory")]
- PciSignatory = 4,
+ PciSignatory = 5,
///
/// Enum Protector for value: protector
///
[EnumMember(Value = "protector")]
- Protector = 5,
+ Protector = 6,
///
/// Enum SecondaryTrustee for value: secondaryTrustee
///
[EnumMember(Value = "secondaryTrustee")]
- SecondaryTrustee = 6,
+ SecondaryTrustee = 7,
///
/// Enum Settlor for value: settlor
///
[EnumMember(Value = "settlor")]
- Settlor = 7,
+ Settlor = 8,
///
/// Enum Signatory for value: signatory
///
[EnumMember(Value = "signatory")]
- Signatory = 8,
+ Signatory = 9,
///
/// Enum SoleProprietorship for value: soleProprietorship
///
[EnumMember(Value = "soleProprietorship")]
- SoleProprietorship = 9,
+ SoleProprietorship = 10,
///
/// Enum Trust for value: trust
///
[EnumMember(Value = "trust")]
- Trust = 10,
+ Trust = 11,
///
/// Enum TrustOwnership for value: trustOwnership
///
[EnumMember(Value = "trustOwnership")]
- TrustOwnership = 11,
+ TrustOwnership = 12,
///
/// Enum UboThroughControl for value: uboThroughControl
///
[EnumMember(Value = "uboThroughControl")]
- UboThroughControl = 12,
+ UboThroughControl = 13,
///
/// Enum UboThroughOwnership for value: uboThroughOwnership
///
[EnumMember(Value = "uboThroughOwnership")]
- UboThroughOwnership = 13,
+ UboThroughOwnership = 14,
///
/// Enum UltimateParentCompany for value: ultimateParentCompany
///
[EnumMember(Value = "ultimateParentCompany")]
- UltimateParentCompany = 14,
+ UltimateParentCompany = 15,
///
/// Enum UndefinedBeneficiary for value: undefinedBeneficiary
///
[EnumMember(Value = "undefinedBeneficiary")]
- UndefinedBeneficiary = 15
+ UndefinedBeneficiary = 16
}
///
- /// Defines the relationship of the legal entity to the current legal entity. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust** Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**.
+ /// Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**.
///
- /// Defines the relationship of the legal entity to the current legal entity. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust** Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**.
+ /// Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**.
[DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)]
public TypeEnum Type { get; set; }
///
@@ -148,12 +154,14 @@ protected LegalEntityAssociation() { }
///
/// The individual's job title if the `type` is **uboThroughControl** or **signatory**..
/// The unique identifier of the associated [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). (required).
- /// Defines the relationship of the legal entity to the current legal entity. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust** Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. (required).
- public LegalEntityAssociation(string jobTitle = default(string), string legalEntityId = default(string), TypeEnum type = default(TypeEnum))
+ /// The individual's relationship to a legal representative if the `type` is **legalRepresentative**. Possible values: **parent**, **guardian**..
+ /// Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. (required).
+ public LegalEntityAssociation(string jobTitle = default(string), string legalEntityId = default(string), string relationship = default(string), TypeEnum type = default(TypeEnum))
{
this.LegalEntityId = legalEntityId;
this.Type = type;
this.JobTitle = jobTitle;
+ this.Relationship = relationship;
}
///
@@ -191,6 +199,13 @@ protected LegalEntityAssociation() { }
[DataMember(Name = "name", EmitDefaultValue = false)]
public string Name { get; private set; }
+ ///
+ /// The individual's relationship to a legal representative if the `type` is **legalRepresentative**. Possible values: **parent**, **guardian**.
+ ///
+ /// The individual's relationship to a legal representative if the `type` is **legalRepresentative**. Possible values: **parent**, **guardian**.
+ [DataMember(Name = "relationship", EmitDefaultValue = false)]
+ public string Relationship { get; set; }
+
///
/// Defines the Kyc Exemption Reason for a Settlor associated with a trust. For example, **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**.
///
@@ -211,6 +226,7 @@ public override string ToString()
sb.Append(" JobTitle: ").Append(JobTitle).Append("\n");
sb.Append(" LegalEntityId: ").Append(LegalEntityId).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
+ sb.Append(" Relationship: ").Append(Relationship).Append("\n");
sb.Append(" SettlorExemptionReason: ").Append(SettlorExemptionReason).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
@@ -273,6 +289,11 @@ public bool Equals(LegalEntityAssociation input)
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
+ (
+ this.Relationship == input.Relationship ||
+ (this.Relationship != null &&
+ this.Relationship.Equals(input.Relationship))
+ ) &&
(
this.SettlorExemptionReason == input.SettlorExemptionReason ||
this.SettlorExemptionReason != null &&
@@ -314,6 +335,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Name.GetHashCode();
}
+ if (this.Relationship != null)
+ {
+ hashCode = (hashCode * 59) + this.Relationship.GetHashCode();
+ }
if (this.SettlorExemptionReason != null)
{
hashCode = (hashCode * 59) + this.SettlorExemptionReason.GetHashCode();
diff --git a/Adyen/Model/LegalEntityManagement/LegalEntityInfo.cs b/Adyen/Model/LegalEntityManagement/LegalEntityInfo.cs
index 86ad76901..9b4168eb4 100644
--- a/Adyen/Model/LegalEntityManagement/LegalEntityInfo.cs
+++ b/Adyen/Model/LegalEntityManagement/LegalEntityInfo.cs
@@ -88,7 +88,7 @@ public enum TypeEnum
/// soleProprietorship.
/// trust.
/// The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**..
- /// A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/onboard-users#upfront)..
+ /// A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification)..
public LegalEntityInfo(List entityAssociations = default(List), Individual individual = default(Individual), Organization organization = default(Organization), string reference = default(string), SoleProprietorship soleProprietorship = default(SoleProprietorship), Trust trust = default(Trust), TypeEnum? type = default(TypeEnum?), string verificationPlan = default(string))
{
this.EntityAssociations = entityAssociations;
@@ -147,9 +147,9 @@ public enum TypeEnum
public Trust Trust { get; set; }
///
- /// A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/onboard-users#upfront).
+ /// A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification).
///
- /// A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/onboard-users#upfront).
+ /// A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification).
[DataMember(Name = "verificationPlan", EmitDefaultValue = false)]
public string VerificationPlan { get; set; }
diff --git a/Adyen/Model/LegalEntityManagement/LegalEntityInfoRequiredType.cs b/Adyen/Model/LegalEntityManagement/LegalEntityInfoRequiredType.cs
index 2c88c9a08..f2cd20779 100644
--- a/Adyen/Model/LegalEntityManagement/LegalEntityInfoRequiredType.cs
+++ b/Adyen/Model/LegalEntityManagement/LegalEntityInfoRequiredType.cs
@@ -93,7 +93,7 @@ protected LegalEntityInfoRequiredType() { }
/// soleProprietorship.
/// trust.
/// The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. (required).
- /// A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/onboard-users#upfront)..
+ /// A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification)..
public LegalEntityInfoRequiredType(List entityAssociations = default(List), Individual individual = default(Individual), Organization organization = default(Organization), string reference = default(string), SoleProprietorship soleProprietorship = default(SoleProprietorship), Trust trust = default(Trust), TypeEnum type = default(TypeEnum), string verificationPlan = default(string))
{
this.Type = type;
@@ -152,9 +152,9 @@ protected LegalEntityInfoRequiredType() { }
public Trust Trust { get; set; }
///
- /// A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/onboard-users#upfront).
+ /// A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification).
///
- /// A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/onboard-users#upfront).
+ /// A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification).
[DataMember(Name = "verificationPlan", EmitDefaultValue = false)]
public string VerificationPlan { get; set; }
diff --git a/Adyen/Model/LegalEntityManagement/OnboardingLinkSettings.cs b/Adyen/Model/LegalEntityManagement/OnboardingLinkSettings.cs
index 8a80ffc98..fbe668e15 100644
--- a/Adyen/Model/LegalEntityManagement/OnboardingLinkSettings.cs
+++ b/Adyen/Model/LegalEntityManagement/OnboardingLinkSettings.cs
@@ -35,21 +35,21 @@ public partial class OnboardingLinkSettings : IEquatable
///
/// Initializes a new instance of the class.
///
- /// acceptedCountries.
- /// allowBankAccountFormatSelection.
- /// allowIntraRegionCrossBorderPayout.
- /// changeLegalEntityType.
- /// editPrefilledCountry.
- /// hideOnboardingIntroductionIndividual.
- /// hideOnboardingIntroductionOrganization.
- /// hideOnboardingIntroductionSoleProprietor.
- /// hideOnboardingIntroductionTrust.
- /// instantBankVerification.
- /// requirePciSignEcomMoto.
- /// requirePciSignEcommerce.
- /// requirePciSignPos.
- /// requirePciSignPosMoto.
- /// transferInstrumentLimit.
+ /// The list of countries the user can choose from in hosted onboarding when `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is empty by default, allowing all [countries and regions supported by hosted onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding)..
+ /// Default value: **false** Indicates if the user can select the format for their payout account (if applicable)..
+ /// Default value: **false** Indicates if the user can select a payout account in a different EU/EEA location (including Switzerland and the UK) than the location of their legal entity..
+ /// Default value: **true** Indicates if the user can change their legal entity type..
+ /// Default value: **true** Indicates if the user can change the country of their legal entity's address, for example the registered address of an organization..
+ /// Default value: **false** Indicates if the user of the individual legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process..
+ /// Default value: **false** Indicates if the user of the organization legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process..
+ /// Default value: **false** Indicates if the user of the sole proprietorship legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process..
+ /// Default value: **false** Indicates if the user of the trust legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process..
+ /// Default value: **true** Indicates if the user can initiate the verification process through open banking providers, like Plaid or Tink..
+ /// Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **ecomMoto** sales channel type..
+ /// Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **eCommerce** sales channel type..
+ /// Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **pos** sales channel type..
+ /// Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **posMoto** sales channel type..
+ /// The maximum number of transfer instruments the user can create..
public OnboardingLinkSettings(List acceptedCountries = default(List), bool? allowBankAccountFormatSelection = default(bool?), bool? allowIntraRegionCrossBorderPayout = default(bool?), bool? changeLegalEntityType = default(bool?), bool? editPrefilledCountry = default(bool?), bool? hideOnboardingIntroductionIndividual = default(bool?), bool? hideOnboardingIntroductionOrganization = default(bool?), bool? hideOnboardingIntroductionSoleProprietor = default(bool?), bool? hideOnboardingIntroductionTrust = default(bool?), bool? instantBankVerification = default(bool?), bool? requirePciSignEcomMoto = default(bool?), bool? requirePciSignEcommerce = default(bool?), bool? requirePciSignPos = default(bool?), bool? requirePciSignPosMoto = default(bool?), int? transferInstrumentLimit = default(int?))
{
this.AcceptedCountries = acceptedCountries;
@@ -70,92 +70,107 @@ public partial class OnboardingLinkSettings : IEquatable
}
///
- /// Gets or Sets AcceptedCountries
+ /// The list of countries the user can choose from in hosted onboarding when `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is empty by default, allowing all [countries and regions supported by hosted onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding).
///
+ /// The list of countries the user can choose from in hosted onboarding when `editPrefilledCountry` is allowed. The value must be in the two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code format. The array is empty by default, allowing all [countries and regions supported by hosted onboarding](https://docs.adyen.com/platforms/onboard-users/#hosted-onboarding).
[DataMember(Name = "acceptedCountries", EmitDefaultValue = false)]
public List AcceptedCountries { get; set; }
///
- /// Gets or Sets AllowBankAccountFormatSelection
+ /// Default value: **false** Indicates if the user can select the format for their payout account (if applicable).
///
+ /// Default value: **false** Indicates if the user can select the format for their payout account (if applicable).
[DataMember(Name = "allowBankAccountFormatSelection", EmitDefaultValue = false)]
public bool? AllowBankAccountFormatSelection { get; set; }
///
- /// Gets or Sets AllowIntraRegionCrossBorderPayout
+ /// Default value: **false** Indicates if the user can select a payout account in a different EU/EEA location (including Switzerland and the UK) than the location of their legal entity.
///
+ /// Default value: **false** Indicates if the user can select a payout account in a different EU/EEA location (including Switzerland and the UK) than the location of their legal entity.
[DataMember(Name = "allowIntraRegionCrossBorderPayout", EmitDefaultValue = false)]
public bool? AllowIntraRegionCrossBorderPayout { get; set; }
///
- /// Gets or Sets ChangeLegalEntityType
+ /// Default value: **true** Indicates if the user can change their legal entity type.
///
+ /// Default value: **true** Indicates if the user can change their legal entity type.
[DataMember(Name = "changeLegalEntityType", EmitDefaultValue = false)]
public bool? ChangeLegalEntityType { get; set; }
///
- /// Gets or Sets EditPrefilledCountry
+ /// Default value: **true** Indicates if the user can change the country of their legal entity's address, for example the registered address of an organization.
///
+ /// Default value: **true** Indicates if the user can change the country of their legal entity's address, for example the registered address of an organization.
[DataMember(Name = "editPrefilledCountry", EmitDefaultValue = false)]
public bool? EditPrefilledCountry { get; set; }
///
- /// Gets or Sets HideOnboardingIntroductionIndividual
+ /// Default value: **false** Indicates if the user of the individual legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process.
///
+ /// Default value: **false** Indicates if the user of the individual legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process.
[DataMember(Name = "hideOnboardingIntroductionIndividual", EmitDefaultValue = false)]
public bool? HideOnboardingIntroductionIndividual { get; set; }
///
- /// Gets or Sets HideOnboardingIntroductionOrganization
+ /// Default value: **false** Indicates if the user of the organization legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process.
///
+ /// Default value: **false** Indicates if the user of the organization legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process.
[DataMember(Name = "hideOnboardingIntroductionOrganization", EmitDefaultValue = false)]
public bool? HideOnboardingIntroductionOrganization { get; set; }
///
- /// Gets or Sets HideOnboardingIntroductionSoleProprietor
+ /// Default value: **false** Indicates if the user of the sole proprietorship legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process.
///
+ /// Default value: **false** Indicates if the user of the sole proprietorship legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process.
[DataMember(Name = "hideOnboardingIntroductionSoleProprietor", EmitDefaultValue = false)]
public bool? HideOnboardingIntroductionSoleProprietor { get; set; }
///
- /// Gets or Sets HideOnboardingIntroductionTrust
+ /// Default value: **false** Indicates if the user of the trust legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process.
///
+ /// Default value: **false** Indicates if the user of the trust legal entity type can view the introduction screen. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process.
[DataMember(Name = "hideOnboardingIntroductionTrust", EmitDefaultValue = false)]
public bool? HideOnboardingIntroductionTrust { get; set; }
///
- /// Gets or Sets InstantBankVerification
+ /// Default value: **true** Indicates if the user can initiate the verification process through open banking providers, like Plaid or Tink.
///
+ /// Default value: **true** Indicates if the user can initiate the verification process through open banking providers, like Plaid or Tink.
[DataMember(Name = "instantBankVerification", EmitDefaultValue = false)]
public bool? InstantBankVerification { get; set; }
///
- /// Gets or Sets RequirePciSignEcomMoto
+ /// Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **ecomMoto** sales channel type.
///
+ /// Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **ecomMoto** sales channel type.
[DataMember(Name = "requirePciSignEcomMoto", EmitDefaultValue = false)]
public bool? RequirePciSignEcomMoto { get; set; }
///
- /// Gets or Sets RequirePciSignEcommerce
+ /// Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **eCommerce** sales channel type.
///
+ /// Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **eCommerce** sales channel type.
[DataMember(Name = "requirePciSignEcommerce", EmitDefaultValue = false)]
public bool? RequirePciSignEcommerce { get; set; }
///
- /// Gets or Sets RequirePciSignPos
+ /// Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **pos** sales channel type.
///
+ /// Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **pos** sales channel type.
[DataMember(Name = "requirePciSignPos", EmitDefaultValue = false)]
public bool? RequirePciSignPos { get; set; }
///
- /// Gets or Sets RequirePciSignPosMoto
+ /// Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **posMoto** sales channel type.
///
+ /// Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **posMoto** sales channel type.
[DataMember(Name = "requirePciSignPosMoto", EmitDefaultValue = false)]
public bool? RequirePciSignPosMoto { get; set; }
///
- /// Gets or Sets TransferInstrumentLimit
+ /// The maximum number of transfer instruments the user can create.
///
+ /// The maximum number of transfer instruments the user can create.
[DataMember(Name = "transferInstrumentLimit", EmitDefaultValue = false)]
public int? TransferInstrumentLimit { get; set; }
diff --git a/Adyen/Model/LegalEntityManagement/Organization.cs b/Adyen/Model/LegalEntityManagement/Organization.cs
index b823dd8f4..94f16b4fe 100644
--- a/Adyen/Model/LegalEntityManagement/Organization.cs
+++ b/Adyen/Model/LegalEntityManagement/Organization.cs
@@ -120,6 +120,7 @@ protected Organization() { }
///
/// Initializes a new instance of the class.
///
+ /// The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country..
/// The date when the organization was incorporated in YYYY-MM-DD format..
/// Your description for the organization..
/// The organization's trading name, if different from the registered legal name..
@@ -136,10 +137,11 @@ protected Organization() { }
/// The reason the organization has not provided a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**..
/// The organization's VAT number..
/// webData.
- public Organization(string dateOfIncorporation = default(string), string description = default(string), string doingBusinessAs = default(string), string email = default(string), string legalName = default(string), PhoneNumber phone = default(PhoneNumber), Address principalPlaceOfBusiness = default(Address), Address registeredAddress = default(Address), string registrationNumber = default(string), StockData stockData = default(StockData), List taxInformation = default(List), TaxReportingClassification taxReportingClassification = default(TaxReportingClassification), TypeEnum? type = default(TypeEnum?), VatAbsenceReasonEnum? vatAbsenceReason = default(VatAbsenceReasonEnum?), string vatNumber = default(string), WebData webData = default(WebData))
+ public Organization(string countryOfGoverningLaw = default(string), string dateOfIncorporation = default(string), string description = default(string), string doingBusinessAs = default(string), string email = default(string), string legalName = default(string), PhoneNumber phone = default(PhoneNumber), Address principalPlaceOfBusiness = default(Address), Address registeredAddress = default(Address), string registrationNumber = default(string), StockData stockData = default(StockData), List taxInformation = default(List), TaxReportingClassification taxReportingClassification = default(TaxReportingClassification), TypeEnum? type = default(TypeEnum?), VatAbsenceReasonEnum? vatAbsenceReason = default(VatAbsenceReasonEnum?), string vatNumber = default(string), WebData webData = default(WebData))
{
this.LegalName = legalName;
this.RegisteredAddress = registeredAddress;
+ this.CountryOfGoverningLaw = countryOfGoverningLaw;
this.DateOfIncorporation = dateOfIncorporation;
this.Description = description;
this.DoingBusinessAs = doingBusinessAs;
@@ -156,6 +158,13 @@ protected Organization() { }
this.WebData = webData;
}
+ ///
+ /// The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country.
+ ///
+ /// The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country.
+ [DataMember(Name = "countryOfGoverningLaw", EmitDefaultValue = false)]
+ public string CountryOfGoverningLaw { get; set; }
+
///
/// The date when the organization was incorporated in YYYY-MM-DD format.
///
@@ -256,6 +265,7 @@ public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class Organization {\n");
+ sb.Append(" CountryOfGoverningLaw: ").Append(CountryOfGoverningLaw).Append("\n");
sb.Append(" DateOfIncorporation: ").Append(DateOfIncorporation).Append("\n");
sb.Append(" Description: ").Append(Description).Append("\n");
sb.Append(" DoingBusinessAs: ").Append(DoingBusinessAs).Append("\n");
@@ -307,6 +317,11 @@ public bool Equals(Organization input)
return false;
}
return
+ (
+ this.CountryOfGoverningLaw == input.CountryOfGoverningLaw ||
+ (this.CountryOfGoverningLaw != null &&
+ this.CountryOfGoverningLaw.Equals(input.CountryOfGoverningLaw))
+ ) &&
(
this.DateOfIncorporation == input.DateOfIncorporation ||
(this.DateOfIncorporation != null &&
@@ -397,6 +412,10 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
+ if (this.CountryOfGoverningLaw != null)
+ {
+ hashCode = (hashCode * 59) + this.CountryOfGoverningLaw.GetHashCode();
+ }
if (this.DateOfIncorporation != null)
{
hashCode = (hashCode * 59) + this.DateOfIncorporation.GetHashCode();
diff --git a/Adyen/Model/LegalEntityManagement/TaxInformation.cs b/Adyen/Model/LegalEntityManagement/TaxInformation.cs
index 7d050a803..de04a01d1 100644
--- a/Adyen/Model/LegalEntityManagement/TaxInformation.cs
+++ b/Adyen/Model/LegalEntityManagement/TaxInformation.cs
@@ -37,7 +37,7 @@ public partial class TaxInformation : IEquatable, IValidatableOb
///
/// The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code..
/// The tax ID number (TIN) of the organization or individual..
- /// The TIN type depending on the country where it was issued. Provide only for countries that have multiple tax IDs, such as Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US..
+ /// The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US..
public TaxInformation(string country = default(string), string number = default(string), string type = default(string))
{
this.Country = country;
@@ -60,9 +60,9 @@ public partial class TaxInformation : IEquatable, IValidatableOb
public string Number { get; set; }
///
- /// The TIN type depending on the country where it was issued. Provide only for countries that have multiple tax IDs, such as Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US.
+ /// The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US.
///
- /// The TIN type depending on the country where it was issued. Provide only for countries that have multiple tax IDs, such as Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US.
+ /// The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US.
[DataMember(Name = "type", EmitDefaultValue = false)]
public string Type { get; set; }
diff --git a/Adyen/Model/Management/CreateCompanyWebhookRequest.cs b/Adyen/Model/Management/CreateCompanyWebhookRequest.cs
index d80767ea0..9c35e201c 100644
--- a/Adyen/Model/Management/CreateCompanyWebhookRequest.cs
+++ b/Adyen/Model/Management/CreateCompanyWebhookRequest.cs
@@ -183,7 +183,7 @@ protected CreateCompanyWebhookRequest() { }
/// Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**..
/// Password to access the webhook URL..
/// Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**..
- /// The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). (required).
+ /// The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). (required).
/// Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. (required).
/// Username to access the webhook URL..
public CreateCompanyWebhookRequest(bool? acceptsExpiredCertificate = default(bool?), bool? acceptsSelfSignedCertificate = default(bool?), bool? acceptsUntrustedRootCertificate = default(bool?), bool? active = default(bool?), AdditionalSettings additionalSettings = default(AdditionalSettings), CommunicationFormatEnum communicationFormat = default(CommunicationFormatEnum), string description = default(string), EncryptionProtocolEnum? encryptionProtocol = default(EncryptionProtocolEnum?), FilterMerchantAccountTypeEnum filterMerchantAccountType = default(FilterMerchantAccountTypeEnum), List filterMerchantAccounts = default(List), NetworkTypeEnum? networkType = default(NetworkTypeEnum?), string password = default(string), bool? populateSoapActionHeader = default(bool?), string type = default(string), string url = default(string), string username = default(string))
@@ -269,9 +269,9 @@ protected CreateCompanyWebhookRequest() { }
public bool? PopulateSoapActionHeader { get; set; }
///
- /// The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications).
+ /// The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications).
///
- /// The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications).
+ /// The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications).
[DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)]
public string Type { get; set; }
diff --git a/Adyen/Model/Management/CreateMerchantWebhookRequest.cs b/Adyen/Model/Management/CreateMerchantWebhookRequest.cs
index 028465e2d..3732158da 100644
--- a/Adyen/Model/Management/CreateMerchantWebhookRequest.cs
+++ b/Adyen/Model/Management/CreateMerchantWebhookRequest.cs
@@ -147,7 +147,7 @@ protected CreateMerchantWebhookRequest() { }
/// Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**..
/// Password to access the webhook URL..
/// Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**..
- /// The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). (required).
+ /// The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). (required).
/// Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. (required).
/// Username to access the webhook URL..
public CreateMerchantWebhookRequest(bool? acceptsExpiredCertificate = default(bool?), bool? acceptsSelfSignedCertificate = default(bool?), bool? acceptsUntrustedRootCertificate = default(bool?), bool? active = default(bool?), AdditionalSettings additionalSettings = default(AdditionalSettings), CommunicationFormatEnum communicationFormat = default(CommunicationFormatEnum), string description = default(string), EncryptionProtocolEnum? encryptionProtocol = default(EncryptionProtocolEnum?), NetworkTypeEnum? networkType = default(NetworkTypeEnum?), string password = default(string), bool? populateSoapActionHeader = default(bool?), string type = default(string), string url = default(string), string username = default(string))
@@ -224,9 +224,9 @@ protected CreateMerchantWebhookRequest() { }
public bool? PopulateSoapActionHeader { get; set; }
///
- /// The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications).
+ /// The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications).
///
- /// The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications).
+ /// The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications).
[DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)]
public string Type { get; set; }
diff --git a/Adyen/Model/Management/PaymentMethod.cs b/Adyen/Model/Management/PaymentMethod.cs
index de6b14294..79a9aeb3e 100644
--- a/Adyen/Model/Management/PaymentMethod.cs
+++ b/Adyen/Model/Management/PaymentMethod.cs
@@ -113,6 +113,7 @@ protected PaymentMethod() { }
/// sofort.
/// The unique identifier of the store for which to configure the payment method, if any..
/// swish.
+ /// ticket.
/// twint.
/// Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api)..
/// Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected**.
@@ -120,7 +121,7 @@ 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), 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(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))
{
this.Id = id;
this.AfterpayTouch = afterpayTouch;
@@ -155,6 +156,7 @@ protected PaymentMethod() { }
this.Sofort = sofort;
this.StoreIds = storeIds;
this.Swish = swish;
+ this.Ticket = ticket;
this.Twint = twint;
this.Type = type;
this.VerificationStatus = verificationStatus;
@@ -372,6 +374,12 @@ protected PaymentMethod() { }
[DataMember(Name = "swish", EmitDefaultValue = false)]
public SwishInfo Swish { get; set; }
+ ///
+ /// Gets or Sets Ticket
+ ///
+ [DataMember(Name = "ticket", EmitDefaultValue = false)]
+ public TicketInfo Ticket { get; set; }
+
///
/// Gets or Sets Twint
///
@@ -450,6 +458,7 @@ public override string ToString()
sb.Append(" Sofort: ").Append(Sofort).Append("\n");
sb.Append(" StoreIds: ").Append(StoreIds).Append("\n");
sb.Append(" Swish: ").Append(Swish).Append("\n");
+ sb.Append(" Ticket: ").Append(Ticket).Append("\n");
sb.Append(" Twint: ").Append(Twint).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append(" VerificationStatus: ").Append(VerificationStatus).Append("\n");
@@ -659,6 +668,11 @@ public bool Equals(PaymentMethod input)
(this.Swish != null &&
this.Swish.Equals(input.Swish))
) &&
+ (
+ this.Ticket == input.Ticket ||
+ (this.Ticket != null &&
+ this.Ticket.Equals(input.Ticket))
+ ) &&
(
this.Twint == input.Twint ||
(this.Twint != null &&
@@ -830,6 +844,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Swish.GetHashCode();
}
+ if (this.Ticket != null)
+ {
+ hashCode = (hashCode * 59) + this.Ticket.GetHashCode();
+ }
if (this.Twint != null)
{
hashCode = (hashCode * 59) + this.Twint.GetHashCode();
diff --git a/Adyen/Model/Management/PaymentMethodResponse.cs b/Adyen/Model/Management/PaymentMethodResponse.cs
index f642c6118..1f150995c 100644
--- a/Adyen/Model/Management/PaymentMethodResponse.cs
+++ b/Adyen/Model/Management/PaymentMethodResponse.cs
@@ -266,77 +266,95 @@ public enum TypesWithErrorsEnum
[EnumMember(Value = "paybybank")]
Paybybank = 38,
+ ///
+ /// Enum Paynow for value: paynow
+ ///
+ [EnumMember(Value = "paynow")]
+ Paynow = 39,
+
+ ///
+ /// Enum PaynowPos for value: paynow_pos
+ ///
+ [EnumMember(Value = "paynow_pos")]
+ PaynowPos = 40,
+
///
/// Enum Paypal for value: paypal
///
[EnumMember(Value = "paypal")]
- Paypal = 39,
+ Paypal = 41,
///
/// Enum Payshop for value: payshop
///
[EnumMember(Value = "payshop")]
- Payshop = 40,
+ Payshop = 42,
///
/// Enum Swish for value: swish
///
[EnumMember(Value = "swish")]
- Swish = 41,
+ Swish = 43,
+
+ ///
+ /// Enum Ticket for value: ticket
+ ///
+ [EnumMember(Value = "ticket")]
+ Ticket = 44,
///
/// Enum Trustly for value: trustly
///
[EnumMember(Value = "trustly")]
- Trustly = 42,
+ Trustly = 45,
///
/// Enum Twint for value: twint
///
[EnumMember(Value = "twint")]
- Twint = 43,
+ Twint = 46,
///
/// Enum TwintPos for value: twint_pos
///
[EnumMember(Value = "twint_pos")]
- TwintPos = 44,
+ TwintPos = 47,
///
/// Enum Vipps for value: vipps
///
[EnumMember(Value = "vipps")]
- Vipps = 45,
+ Vipps = 48,
///
/// Enum Visa for value: visa
///
[EnumMember(Value = "visa")]
- Visa = 46,
+ Visa = 49,
///
/// Enum Visadebit for value: visadebit
///
[EnumMember(Value = "visadebit")]
- Visadebit = 47,
+ Visadebit = 50,
///
/// Enum Vpay for value: vpay
///
[EnumMember(Value = "vpay")]
- Vpay = 48,
+ Vpay = 51,
///
/// Enum Wechatpay for value: wechatpay
///
[EnumMember(Value = "wechatpay")]
- Wechatpay = 49,
+ Wechatpay = 52,
///
/// Enum WechatpayPos for value: wechatpay_pos
///
[EnumMember(Value = "wechatpay_pos")]
- WechatpayPos = 50
+ WechatpayPos = 53
}
diff --git a/Adyen/Model/Management/PaymentMethodSetupInfo.cs b/Adyen/Model/Management/PaymentMethodSetupInfo.cs
index 6dbb20635..ddd8f014f 100644
--- a/Adyen/Model/Management/PaymentMethodSetupInfo.cs
+++ b/Adyen/Model/Management/PaymentMethodSetupInfo.cs
@@ -307,77 +307,95 @@ public enum TypeEnum
[EnumMember(Value = "paybybank")]
Paybybank = 38,
+ ///
+ /// Enum Paynow for value: paynow
+ ///
+ [EnumMember(Value = "paynow")]
+ Paynow = 39,
+
+ ///
+ /// Enum PaynowPos for value: paynow_pos
+ ///
+ [EnumMember(Value = "paynow_pos")]
+ PaynowPos = 40,
+
///
/// Enum Paypal for value: paypal
///
[EnumMember(Value = "paypal")]
- Paypal = 39,
+ Paypal = 41,
///
/// Enum Payshop for value: payshop
///
[EnumMember(Value = "payshop")]
- Payshop = 40,
+ Payshop = 42,
///
/// Enum Swish for value: swish
///
[EnumMember(Value = "swish")]
- Swish = 41,
+ Swish = 43,
+
+ ///
+ /// Enum Ticket for value: ticket
+ ///
+ [EnumMember(Value = "ticket")]
+ Ticket = 44,
///
/// Enum Trustly for value: trustly
///
[EnumMember(Value = "trustly")]
- Trustly = 42,
+ Trustly = 45,
///
/// Enum Twint for value: twint
///
[EnumMember(Value = "twint")]
- Twint = 43,
+ Twint = 46,
///
/// Enum TwintPos for value: twint_pos
///
[EnumMember(Value = "twint_pos")]
- TwintPos = 44,
+ TwintPos = 47,
///
/// Enum Vipps for value: vipps
///
[EnumMember(Value = "vipps")]
- Vipps = 45,
+ Vipps = 48,
///
/// Enum Visa for value: visa
///
[EnumMember(Value = "visa")]
- Visa = 46,
+ Visa = 49,
///
/// Enum Visadebit for value: visadebit
///
[EnumMember(Value = "visadebit")]
- Visadebit = 47,
+ Visadebit = 50,
///
/// Enum Vpay for value: vpay
///
[EnumMember(Value = "vpay")]
- Vpay = 48,
+ Vpay = 51,
///
/// Enum Wechatpay for value: wechatpay
///
[EnumMember(Value = "wechatpay")]
- Wechatpay = 49,
+ Wechatpay = 52,
///
/// Enum WechatpayPos for value: wechatpay_pos
///
[EnumMember(Value = "wechatpay_pos")]
- WechatpayPos = 50
+ WechatpayPos = 53
}
@@ -426,13 +444,14 @@ protected PaymentMethodSetupInfo() { }
/// sofort.
/// The unique identifier of the store for which to configure the payment method, if any..
/// swish.
+ /// ticket.
/// twint.
/// Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). (required).
/// vipps.
/// 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), 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(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))
{
this.Type = type;
this.AfterpayTouch = afterpayTouch;
@@ -465,6 +484,7 @@ protected PaymentMethodSetupInfo() { }
this.Sofort = sofort;
this.StoreIds = storeIds;
this.Swish = swish;
+ this.Ticket = ticket;
this.Twint = twint;
this.Vipps = vipps;
this.Visa = visa;
@@ -652,6 +672,12 @@ protected PaymentMethodSetupInfo() { }
[DataMember(Name = "swish", EmitDefaultValue = false)]
public SwishInfo Swish { get; set; }
+ ///
+ /// Gets or Sets Ticket
+ ///
+ [DataMember(Name = "ticket", EmitDefaultValue = false)]
+ public TicketInfo Ticket { get; set; }
+
///
/// Gets or Sets Twint
///
@@ -720,6 +746,7 @@ public override string ToString()
sb.Append(" Sofort: ").Append(Sofort).Append("\n");
sb.Append(" StoreIds: ").Append(StoreIds).Append("\n");
sb.Append(" Swish: ").Append(Swish).Append("\n");
+ sb.Append(" Ticket: ").Append(Ticket).Append("\n");
sb.Append(" Twint: ").Append(Twint).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append(" Vipps: ").Append(Vipps).Append("\n");
@@ -914,6 +941,11 @@ public bool Equals(PaymentMethodSetupInfo input)
(this.Swish != null &&
this.Swish.Equals(input.Swish))
) &&
+ (
+ this.Ticket == input.Ticket ||
+ (this.Ticket != null &&
+ this.Ticket.Equals(input.Ticket))
+ ) &&
(
this.Twint == input.Twint ||
(this.Twint != null &&
@@ -1071,6 +1103,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Swish.GetHashCode();
}
+ if (this.Ticket != null)
+ {
+ hashCode = (hashCode * 59) + this.Ticket.GetHashCode();
+ }
if (this.Twint != null)
{
hashCode = (hashCode * 59) + this.Twint.GetHashCode();
diff --git a/Adyen/Model/Management/TicketInfo.cs b/Adyen/Model/Management/TicketInfo.cs
new file mode 100644
index 000000000..f86f3e44a
--- /dev/null
+++ b/Adyen/Model/Management/TicketInfo.cs
@@ -0,0 +1,129 @@
+/*
+* 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
+{
+ ///
+ /// TicketInfo
+ ///
+ [DataContract(Name = "TicketInfo")]
+ public partial class TicketInfo : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Ticket requestorId.
+ public TicketInfo(string requestorId = default(string))
+ {
+ this.RequestorId = requestorId;
+ }
+
+ ///
+ /// Ticket requestorId
+ ///
+ /// Ticket requestorId
+ [DataMember(Name = "requestorId", EmitDefaultValue = false)]
+ public string RequestorId { 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 TicketInfo {\n");
+ sb.Append(" RequestorId: ").Append(RequestorId).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 TicketInfo);
+ }
+
+ ///
+ /// Returns true if TicketInfo instances are equal
+ ///
+ /// Instance of TicketInfo to be compared
+ /// Boolean
+ public bool Equals(TicketInfo input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.RequestorId == input.RequestorId ||
+ (this.RequestorId != null &&
+ this.RequestorId.Equals(input.RequestorId))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.RequestorId != null)
+ {
+ hashCode = (hashCode * 59) + this.RequestorId.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/Webhook.cs b/Adyen/Model/Management/Webhook.cs
index 12ebc0e21..bda9e2cec 100644
--- a/Adyen/Model/Management/Webhook.cs
+++ b/Adyen/Model/Management/Webhook.cs
@@ -189,7 +189,7 @@ protected Webhook() { }
/// Unique identifier for this webhook..
/// Network type for Terminal API details webhooks..
/// Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**..
- /// The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). (required).
+ /// The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). (required).
/// Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. (required).
/// Username to access the webhook URL..
public Webhook(WebhookLinks links = default(WebhookLinks), bool? acceptsExpiredCertificate = default(bool?), bool? acceptsSelfSignedCertificate = default(bool?), bool? acceptsUntrustedRootCertificate = default(bool?), string accountReference = default(string), bool? active = default(bool?), AdditionalSettingsResponse additionalSettings = default(AdditionalSettingsResponse), string certificateAlias = default(string), CommunicationFormatEnum communicationFormat = default(CommunicationFormatEnum), string description = default(string), EncryptionProtocolEnum? encryptionProtocol = default(EncryptionProtocolEnum?), FilterMerchantAccountTypeEnum? filterMerchantAccountType = default(FilterMerchantAccountTypeEnum?), List filterMerchantAccounts = default(List), bool? hasError = default(bool?), bool? hasPassword = default(bool?), string hmacKeyCheckValue = default(string), string id = default(string), NetworkTypeEnum? networkType = default(NetworkTypeEnum?), bool? populateSoapActionHeader = default(bool?), string type = default(string), string url = default(string), string username = default(string))
@@ -322,9 +322,9 @@ protected Webhook() { }
public bool? PopulateSoapActionHeader { get; set; }
///
- /// The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications).
+ /// The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications).
///
- /// The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications).
+ /// The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **ach-notification-of-change-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** - **terminal-settings** - **terminal-boarding** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications).
[DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)]
public string Type { get; set; }
diff --git a/Adyen/Model/ManagementWebhooks/TerminalBoardingData.cs b/Adyen/Model/ManagementWebhooks/TerminalBoardingData.cs
new file mode 100644
index 000000000..bc3475005
--- /dev/null
+++ b/Adyen/Model/ManagementWebhooks/TerminalBoardingData.cs
@@ -0,0 +1,191 @@
+/*
+* Management Webhooks
+*
+*
+* 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.ManagementWebhooks
+{
+ ///
+ /// TerminalBoardingData
+ ///
+ [DataContract(Name = "TerminalBoardingData")]
+ public partial class TerminalBoardingData : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected TerminalBoardingData() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The unique identifier of the company account. (required).
+ /// The unique identifier of the merchant account..
+ /// The unique identifier of the store..
+ /// The unique identifier of the terminal. (required).
+ public TerminalBoardingData(string companyId = default(string), string merchantId = default(string), string storeId = default(string), string uniqueTerminalId = default(string))
+ {
+ this.CompanyId = companyId;
+ this.UniqueTerminalId = uniqueTerminalId;
+ this.MerchantId = merchantId;
+ this.StoreId = storeId;
+ }
+
+ ///
+ /// The unique identifier of the company account.
+ ///
+ /// The unique identifier of the company account.
+ [DataMember(Name = "companyId", IsRequired = false, EmitDefaultValue = false)]
+ public string CompanyId { get; set; }
+
+ ///
+ /// The unique identifier of the merchant account.
+ ///
+ /// The unique identifier of the merchant account.
+ [DataMember(Name = "merchantId", EmitDefaultValue = false)]
+ public string MerchantId { get; set; }
+
+ ///
+ /// The unique identifier of the store.
+ ///
+ /// The unique identifier of the store.
+ [DataMember(Name = "storeId", EmitDefaultValue = false)]
+ public string StoreId { get; set; }
+
+ ///
+ /// The unique identifier of the terminal.
+ ///
+ /// The unique identifier of the terminal.
+ [DataMember(Name = "uniqueTerminalId", IsRequired = false, EmitDefaultValue = false)]
+ public string UniqueTerminalId { 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 TerminalBoardingData {\n");
+ sb.Append(" CompanyId: ").Append(CompanyId).Append("\n");
+ sb.Append(" MerchantId: ").Append(MerchantId).Append("\n");
+ sb.Append(" StoreId: ").Append(StoreId).Append("\n");
+ sb.Append(" UniqueTerminalId: ").Append(UniqueTerminalId).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 TerminalBoardingData);
+ }
+
+ ///
+ /// Returns true if TerminalBoardingData instances are equal
+ ///
+ /// Instance of TerminalBoardingData to be compared
+ /// Boolean
+ public bool Equals(TerminalBoardingData input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.CompanyId == input.CompanyId ||
+ (this.CompanyId != null &&
+ this.CompanyId.Equals(input.CompanyId))
+ ) &&
+ (
+ this.MerchantId == input.MerchantId ||
+ (this.MerchantId != null &&
+ this.MerchantId.Equals(input.MerchantId))
+ ) &&
+ (
+ this.StoreId == input.StoreId ||
+ (this.StoreId != null &&
+ this.StoreId.Equals(input.StoreId))
+ ) &&
+ (
+ this.UniqueTerminalId == input.UniqueTerminalId ||
+ (this.UniqueTerminalId != null &&
+ this.UniqueTerminalId.Equals(input.UniqueTerminalId))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.CompanyId != null)
+ {
+ hashCode = (hashCode * 59) + this.CompanyId.GetHashCode();
+ }
+ if (this.MerchantId != null)
+ {
+ hashCode = (hashCode * 59) + this.MerchantId.GetHashCode();
+ }
+ if (this.StoreId != null)
+ {
+ hashCode = (hashCode * 59) + this.StoreId.GetHashCode();
+ }
+ if (this.UniqueTerminalId != null)
+ {
+ hashCode = (hashCode * 59) + this.UniqueTerminalId.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/ManagementWebhooks/TerminalBoardingNotificationRequest.cs b/Adyen/Model/ManagementWebhooks/TerminalBoardingNotificationRequest.cs
new file mode 100644
index 000000000..57eff2642
--- /dev/null
+++ b/Adyen/Model/ManagementWebhooks/TerminalBoardingNotificationRequest.cs
@@ -0,0 +1,201 @@
+/*
+* Management Webhooks
+*
+*
+* 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.ManagementWebhooks
+{
+ ///
+ /// TerminalBoardingNotificationRequest
+ ///
+ [DataContract(Name = "TerminalBoardingNotificationRequest")]
+ public partial class TerminalBoardingNotificationRequest : IEquatable, IValidatableObject
+ {
+ ///
+ /// Type of notification.
+ ///
+ /// Type of notification.
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum TypeEnum
+ {
+ ///
+ /// Enum TerminalBoardingTriggered for value: terminalBoarding.triggered
+ ///
+ [EnumMember(Value = "terminalBoarding.triggered")]
+ TerminalBoardingTriggered = 1
+
+ }
+
+
+ ///
+ /// Type of notification.
+ ///
+ /// Type of notification.
+ [DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)]
+ public TypeEnum Type { get; set; }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected TerminalBoardingNotificationRequest() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Timestamp for when the webhook was created. (required).
+ /// data (required).
+ /// The environment from which the webhook originated. Possible values: **test**, **live**. (required).
+ /// Type of notification. (required).
+ public TerminalBoardingNotificationRequest(DateTime createdAt = default(DateTime), TerminalBoardingData data = default(TerminalBoardingData), string environment = default(string), TypeEnum type = default(TypeEnum))
+ {
+ this.CreatedAt = createdAt;
+ this.Data = data;
+ this.Environment = environment;
+ this.Type = type;
+ }
+
+ ///
+ /// Timestamp for when the webhook was created.
+ ///
+ /// Timestamp for when the webhook was created.
+ [DataMember(Name = "createdAt", IsRequired = false, EmitDefaultValue = false)]
+ public DateTime CreatedAt { get; set; }
+
+ ///
+ /// Gets or Sets Data
+ ///
+ [DataMember(Name = "data", IsRequired = false, EmitDefaultValue = false)]
+ public TerminalBoardingData Data { get; set; }
+
+ ///
+ /// The environment from which the webhook originated. Possible values: **test**, **live**.
+ ///
+ /// The environment from which the webhook originated. Possible values: **test**, **live**.
+ [DataMember(Name = "environment", IsRequired = false, EmitDefaultValue = false)]
+ public string Environment { 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 TerminalBoardingNotificationRequest {\n");
+ sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
+ sb.Append(" Data: ").Append(Data).Append("\n");
+ sb.Append(" Environment: ").Append(Environment).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 TerminalBoardingNotificationRequest);
+ }
+
+ ///
+ /// Returns true if TerminalBoardingNotificationRequest instances are equal
+ ///
+ /// Instance of TerminalBoardingNotificationRequest to be compared
+ /// Boolean
+ public bool Equals(TerminalBoardingNotificationRequest input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.CreatedAt == input.CreatedAt ||
+ (this.CreatedAt != null &&
+ this.CreatedAt.Equals(input.CreatedAt))
+ ) &&
+ (
+ this.Data == input.Data ||
+ (this.Data != null &&
+ this.Data.Equals(input.Data))
+ ) &&
+ (
+ this.Environment == input.Environment ||
+ (this.Environment != null &&
+ this.Environment.Equals(input.Environment))
+ ) &&
+ (
+ 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.CreatedAt != null)
+ {
+ hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode();
+ }
+ if (this.Data != null)
+ {
+ hashCode = (hashCode * 59) + this.Data.GetHashCode();
+ }
+ if (this.Environment != null)
+ {
+ hashCode = (hashCode * 59) + this.Environment.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)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/ManagementWebhooks/TerminalBoardingNotificationResponse.cs b/Adyen/Model/ManagementWebhooks/TerminalBoardingNotificationResponse.cs
new file mode 100644
index 000000000..b3ce1fb7a
--- /dev/null
+++ b/Adyen/Model/ManagementWebhooks/TerminalBoardingNotificationResponse.cs
@@ -0,0 +1,129 @@
+/*
+* Management Webhooks
+*
+*
+* 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.ManagementWebhooks
+{
+ ///
+ /// TerminalBoardingNotificationResponse
+ ///
+ [DataContract(Name = "TerminalBoardingNotificationResponse")]
+ public partial class TerminalBoardingNotificationResponse : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications)..
+ public TerminalBoardingNotificationResponse(string notificationResponse = default(string))
+ {
+ this.NotificationResponse = notificationResponse;
+ }
+
+ ///
+ /// Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).
+ ///
+ /// Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).
+ [DataMember(Name = "notificationResponse", EmitDefaultValue = false)]
+ public string NotificationResponse { 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 TerminalBoardingNotificationResponse {\n");
+ sb.Append(" NotificationResponse: ").Append(NotificationResponse).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 TerminalBoardingNotificationResponse);
+ }
+
+ ///
+ /// Returns true if TerminalBoardingNotificationResponse instances are equal
+ ///
+ /// Instance of TerminalBoardingNotificationResponse to be compared
+ /// Boolean
+ public bool Equals(TerminalBoardingNotificationResponse input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.NotificationResponse == input.NotificationResponse ||
+ (this.NotificationResponse != null &&
+ this.NotificationResponse.Equals(input.NotificationResponse))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.NotificationResponse != null)
+ {
+ hashCode = (hashCode * 59) + this.NotificationResponse.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/PaymentsApp/AbstractOpenAPISchema.cs b/Adyen/Model/PaymentsApp/AbstractOpenAPISchema.cs
new file mode 100644
index 000000000..2ea557709
--- /dev/null
+++ b/Adyen/Model/PaymentsApp/AbstractOpenAPISchema.cs
@@ -0,0 +1,81 @@
+/*
+* Payments App API
+*
+*
+* The version of the OpenAPI document: 1
+*
+* 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.Generic;
+using System.Reflection;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Serialization;
+
+namespace Adyen.Model.PaymentsApp
+{
+ ///
+ /// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification
+ ///
+ public abstract partial class AbstractOpenAPISchema
+ {
+ ///
+ /// Custom JSON serializer
+ ///
+ static public readonly JsonSerializerSettings SerializerSettings = new JsonSerializerSettings
+ {
+ // OpenAPI generated types generally hide default constructors.
+ ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor,
+ MissingMemberHandling = MissingMemberHandling.Ignore,
+ ContractResolver = new DefaultContractResolver
+ {
+ NamingStrategy = new CamelCaseNamingStrategy
+ {
+ OverrideSpecifiedNames = false
+ }
+ }
+ };
+
+ ///
+ /// Gets or Sets the actual instance
+ ///
+ public abstract Object ActualInstance { get; set; }
+
+ ///
+ /// Gets or Sets IsNullable to indicate whether the instance is nullable
+ ///
+ public bool IsNullable { get; protected set; }
+
+ ///
+ /// Gets or Sets the schema type, which can be either `oneOf` or `anyOf`
+ ///
+ public string SchemaType { get; protected set; }
+
+ ///
+ /// Converts the instance into JSON string.
+ ///
+ public abstract string ToJson();
+
+ // Check if the contains TypeEnum value
+ protected static bool ContainsValue(string type) where T : struct, IConvertible
+ {
+ // Search for type in .TypeEnum
+ List list = new List();
+ var members = typeof(T).GetTypeInfo().DeclaredMembers;
+ foreach (var member in members)
+ {
+ var val = member?.GetCustomAttribute(false)?.Value;
+ if (!string.IsNullOrEmpty(val))
+ {
+ list.Add(val);
+ }
+ }
+
+ return list.Contains(type);
+ }
+ }
+}
diff --git a/Adyen/Model/PaymentsApp/BoardingTokenRequest.cs b/Adyen/Model/PaymentsApp/BoardingTokenRequest.cs
new file mode 100644
index 000000000..65d6e80e9
--- /dev/null
+++ b/Adyen/Model/PaymentsApp/BoardingTokenRequest.cs
@@ -0,0 +1,134 @@
+/*
+* Payments App API
+*
+*
+* The version of the OpenAPI document: 1
+*
+* 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.PaymentsApp
+{
+ ///
+ /// BoardingTokenRequest
+ ///
+ [DataContract(Name = "BoardingTokenRequest")]
+ public partial class BoardingTokenRequest : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected BoardingTokenRequest() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The boardingToken request token. (required).
+ public BoardingTokenRequest(string boardingRequestToken = default(string))
+ {
+ this.BoardingRequestToken = boardingRequestToken;
+ }
+
+ ///
+ /// The boardingToken request token.
+ ///
+ /// The boardingToken request token.
+ [DataMember(Name = "boardingRequestToken", IsRequired = false, EmitDefaultValue = false)]
+ public string BoardingRequestToken { 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 BoardingTokenRequest {\n");
+ sb.Append(" BoardingRequestToken: ").Append(BoardingRequestToken).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 BoardingTokenRequest);
+ }
+
+ ///
+ /// Returns true if BoardingTokenRequest instances are equal
+ ///
+ /// Instance of BoardingTokenRequest to be compared
+ /// Boolean
+ public bool Equals(BoardingTokenRequest input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.BoardingRequestToken == input.BoardingRequestToken ||
+ (this.BoardingRequestToken != null &&
+ this.BoardingRequestToken.Equals(input.BoardingRequestToken))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.BoardingRequestToken != null)
+ {
+ hashCode = (hashCode * 59) + this.BoardingRequestToken.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/PaymentsApp/BoardingTokenResponse.cs b/Adyen/Model/PaymentsApp/BoardingTokenResponse.cs
new file mode 100644
index 000000000..60e754525
--- /dev/null
+++ b/Adyen/Model/PaymentsApp/BoardingTokenResponse.cs
@@ -0,0 +1,153 @@
+/*
+* Payments App API
+*
+*
+* The version of the OpenAPI document: 1
+*
+* 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.PaymentsApp
+{
+ ///
+ /// BoardingTokenResponse
+ ///
+ [DataContract(Name = "BoardingTokenResponse")]
+ public partial class BoardingTokenResponse : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected BoardingTokenResponse() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The boarding token that allows the Payments App to board. (required).
+ /// The unique identifier of the Payments App instance. (required).
+ public BoardingTokenResponse(string boardingToken = default(string), string installationId = default(string))
+ {
+ this.BoardingToken = boardingToken;
+ this.InstallationId = installationId;
+ }
+
+ ///
+ /// The boarding token that allows the Payments App to board.
+ ///
+ /// The boarding token that allows the Payments App to board.
+ [DataMember(Name = "boardingToken", IsRequired = false, EmitDefaultValue = false)]
+ public string BoardingToken { get; set; }
+
+ ///
+ /// The unique identifier of the Payments App instance.
+ ///
+ /// The unique identifier of the Payments App instance.
+ [DataMember(Name = "installationId", IsRequired = false, EmitDefaultValue = false)]
+ public string InstallationId { 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 BoardingTokenResponse {\n");
+ sb.Append(" BoardingToken: ").Append(BoardingToken).Append("\n");
+ sb.Append(" InstallationId: ").Append(InstallationId).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 BoardingTokenResponse);
+ }
+
+ ///
+ /// Returns true if BoardingTokenResponse instances are equal
+ ///
+ /// Instance of BoardingTokenResponse to be compared
+ /// Boolean
+ public bool Equals(BoardingTokenResponse input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.BoardingToken == input.BoardingToken ||
+ (this.BoardingToken != null &&
+ this.BoardingToken.Equals(input.BoardingToken))
+ ) &&
+ (
+ this.InstallationId == input.InstallationId ||
+ (this.InstallationId != null &&
+ this.InstallationId.Equals(input.InstallationId))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.BoardingToken != null)
+ {
+ hashCode = (hashCode * 59) + this.BoardingToken.GetHashCode();
+ }
+ if (this.InstallationId != null)
+ {
+ hashCode = (hashCode * 59) + this.InstallationId.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/PaymentsApp/DefaultErrorResponseEntity.cs b/Adyen/Model/PaymentsApp/DefaultErrorResponseEntity.cs
new file mode 100644
index 000000000..8eb7552b6
--- /dev/null
+++ b/Adyen/Model/PaymentsApp/DefaultErrorResponseEntity.cs
@@ -0,0 +1,259 @@
+/*
+* Payments App API
+*
+*
+* The version of the OpenAPI document: 1
+*
+* 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.PaymentsApp
+{
+ ///
+ /// Standardized error response following RFC-7807 format
+ ///
+ [DataContract(Name = "DefaultErrorResponseEntity")]
+ public partial class DefaultErrorResponseEntity : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// A human-readable explanation specific to this occurrence of the problem..
+ /// Unique business error code..
+ /// A URI that identifies the specific occurrence of the problem if applicable..
+ /// Array of fields with validation errors when applicable..
+ /// The unique reference for the request..
+ /// The HTTP status code..
+ /// A short, human-readable summary of the problem type..
+ /// A URI that identifies the validation error type. It points to human-readable documentation for the problem type..
+ public DefaultErrorResponseEntity(string detail = default(string), string errorCode = default(string), string instance = default(string), List invalidFields = default(List), string requestId = default(string), int? status = default(int?), string title = default(string), string type = default(string))
+ {
+ this.Detail = detail;
+ this.ErrorCode = errorCode;
+ this.Instance = instance;
+ this.InvalidFields = invalidFields;
+ this.RequestId = requestId;
+ this.Status = status;
+ this.Title = title;
+ this.Type = type;
+ }
+
+ ///
+ /// A human-readable explanation specific to this occurrence of the problem.
+ ///
+ /// A human-readable explanation specific to this occurrence of the problem.
+ [DataMember(Name = "detail", EmitDefaultValue = false)]
+ public string Detail { get; set; }
+
+ ///
+ /// Unique business error code.
+ ///
+ /// Unique business error code.
+ [DataMember(Name = "errorCode", EmitDefaultValue = false)]
+ public string ErrorCode { get; set; }
+
+ ///
+ /// A URI that identifies the specific occurrence of the problem if applicable.
+ ///
+ /// A URI that identifies the specific occurrence of the problem if applicable.
+ [DataMember(Name = "instance", EmitDefaultValue = false)]
+ public string Instance { get; set; }
+
+ ///
+ /// Array of fields with validation errors when applicable.
+ ///
+ /// Array of fields with validation errors when applicable.
+ [DataMember(Name = "invalidFields", EmitDefaultValue = false)]
+ public List InvalidFields { get; set; }
+
+ ///
+ /// The unique reference for the request.
+ ///
+ /// The unique reference for the request.
+ [DataMember(Name = "requestId", EmitDefaultValue = false)]
+ public string RequestId { get; set; }
+
+ ///
+ /// The HTTP status code.
+ ///
+ /// The HTTP status code.
+ [DataMember(Name = "status", EmitDefaultValue = false)]
+ public int? Status { get; set; }
+
+ ///
+ /// A short, human-readable summary of the problem type.
+ ///
+ /// A short, human-readable summary of the problem type.
+ [DataMember(Name = "title", EmitDefaultValue = false)]
+ public string Title { get; set; }
+
+ ///
+ /// A URI that identifies the validation error type. It points to human-readable documentation for the problem type.
+ ///
+ /// A URI that identifies the validation error type. It points to human-readable documentation for the problem type.
+ [DataMember(Name = "type", EmitDefaultValue = false)]
+ public string Type { 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 DefaultErrorResponseEntity {\n");
+ sb.Append(" Detail: ").Append(Detail).Append("\n");
+ sb.Append(" ErrorCode: ").Append(ErrorCode).Append("\n");
+ sb.Append(" Instance: ").Append(Instance).Append("\n");
+ sb.Append(" InvalidFields: ").Append(InvalidFields).Append("\n");
+ sb.Append(" RequestId: ").Append(RequestId).Append("\n");
+ sb.Append(" Status: ").Append(Status).Append("\n");
+ sb.Append(" Title: ").Append(Title).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 DefaultErrorResponseEntity);
+ }
+
+ ///
+ /// Returns true if DefaultErrorResponseEntity instances are equal
+ ///
+ /// Instance of DefaultErrorResponseEntity to be compared
+ /// Boolean
+ public bool Equals(DefaultErrorResponseEntity input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Detail == input.Detail ||
+ (this.Detail != null &&
+ this.Detail.Equals(input.Detail))
+ ) &&
+ (
+ this.ErrorCode == input.ErrorCode ||
+ (this.ErrorCode != null &&
+ this.ErrorCode.Equals(input.ErrorCode))
+ ) &&
+ (
+ this.Instance == input.Instance ||
+ (this.Instance != null &&
+ this.Instance.Equals(input.Instance))
+ ) &&
+ (
+ this.InvalidFields == input.InvalidFields ||
+ this.InvalidFields != null &&
+ input.InvalidFields != null &&
+ this.InvalidFields.SequenceEqual(input.InvalidFields)
+ ) &&
+ (
+ this.RequestId == input.RequestId ||
+ (this.RequestId != null &&
+ this.RequestId.Equals(input.RequestId))
+ ) &&
+ (
+ this.Status == input.Status ||
+ this.Status.Equals(input.Status)
+ ) &&
+ (
+ this.Title == input.Title ||
+ (this.Title != null &&
+ this.Title.Equals(input.Title))
+ ) &&
+ (
+ this.Type == input.Type ||
+ (this.Type != null &&
+ 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.Detail != null)
+ {
+ hashCode = (hashCode * 59) + this.Detail.GetHashCode();
+ }
+ if (this.ErrorCode != null)
+ {
+ hashCode = (hashCode * 59) + this.ErrorCode.GetHashCode();
+ }
+ if (this.Instance != null)
+ {
+ hashCode = (hashCode * 59) + this.Instance.GetHashCode();
+ }
+ if (this.InvalidFields != null)
+ {
+ hashCode = (hashCode * 59) + this.InvalidFields.GetHashCode();
+ }
+ if (this.RequestId != null)
+ {
+ hashCode = (hashCode * 59) + this.RequestId.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.Status.GetHashCode();
+ if (this.Title != null)
+ {
+ hashCode = (hashCode * 59) + this.Title.GetHashCode();
+ }
+ if (this.Type != null)
+ {
+ hashCode = (hashCode * 59) + this.Type.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/PaymentsApp/InvalidField.cs b/Adyen/Model/PaymentsApp/InvalidField.cs
new file mode 100644
index 000000000..903c312dd
--- /dev/null
+++ b/Adyen/Model/PaymentsApp/InvalidField.cs
@@ -0,0 +1,172 @@
+/*
+* Payments App API
+*
+*
+* The version of the OpenAPI document: 1
+*
+* 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.PaymentsApp
+{
+ ///
+ /// InvalidField
+ ///
+ [DataContract(Name = "InvalidField")]
+ public partial class InvalidField : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected InvalidField() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The field that has an invalid value. (required).
+ /// The invalid value. (required).
+ /// Description of the validation error. (required).
+ public InvalidField(string name = default(string), string value = default(string), string message = default(string))
+ {
+ this.Name = name;
+ this.Value = value;
+ this.Message = message;
+ }
+
+ ///
+ /// The field that has an invalid value.
+ ///
+ /// The field that has an invalid value.
+ [DataMember(Name = "name", IsRequired = false, EmitDefaultValue = false)]
+ public string Name { get; set; }
+
+ ///
+ /// The invalid value.
+ ///
+ /// The invalid value.
+ [DataMember(Name = "value", IsRequired = false, EmitDefaultValue = false)]
+ public string Value { get; set; }
+
+ ///
+ /// Description of the validation error.
+ ///
+ /// Description of the validation error.
+ [DataMember(Name = "message", IsRequired = false, EmitDefaultValue = false)]
+ public string Message { 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 InvalidField {\n");
+ sb.Append(" Name: ").Append(Name).Append("\n");
+ sb.Append(" Value: ").Append(Value).Append("\n");
+ sb.Append(" Message: ").Append(Message).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 InvalidField);
+ }
+
+ ///
+ /// Returns true if InvalidField instances are equal
+ ///
+ /// Instance of InvalidField to be compared
+ /// Boolean
+ public bool Equals(InvalidField input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Name == input.Name ||
+ (this.Name != null &&
+ this.Name.Equals(input.Name))
+ ) &&
+ (
+ this.Value == input.Value ||
+ (this.Value != null &&
+ this.Value.Equals(input.Value))
+ ) &&
+ (
+ this.Message == input.Message ||
+ (this.Message != null &&
+ this.Message.Equals(input.Message))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.Name != null)
+ {
+ hashCode = (hashCode * 59) + this.Name.GetHashCode();
+ }
+ if (this.Value != null)
+ {
+ hashCode = (hashCode * 59) + this.Value.GetHashCode();
+ }
+ if (this.Message != null)
+ {
+ hashCode = (hashCode * 59) + this.Message.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/PaymentsApp/PaymentsAppDto.cs b/Adyen/Model/PaymentsApp/PaymentsAppDto.cs
new file mode 100644
index 000000000..299067e58
--- /dev/null
+++ b/Adyen/Model/PaymentsApp/PaymentsAppDto.cs
@@ -0,0 +1,191 @@
+/*
+* Payments App API
+*
+*
+* The version of the OpenAPI document: 1
+*
+* 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.PaymentsApp
+{
+ ///
+ /// PaymentsAppDto
+ ///
+ [DataContract(Name = "PaymentsAppDto")]
+ public partial class PaymentsAppDto : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected PaymentsAppDto() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The unique identifier of the Payments App instance. (required).
+ /// The account code associated with the Payments App instance. (required).
+ /// The store code associated with the Payments App instance..
+ /// The status of the Payments App instance. (required).
+ public PaymentsAppDto(string installationId = default(string), string merchantAccountCode = default(string), string merchantStoreCode = default(string), string status = default(string))
+ {
+ this.InstallationId = installationId;
+ this.MerchantAccountCode = merchantAccountCode;
+ this.Status = status;
+ this.MerchantStoreCode = merchantStoreCode;
+ }
+
+ ///
+ /// The unique identifier of the Payments App instance.
+ ///
+ /// The unique identifier of the Payments App instance.
+ [DataMember(Name = "installationId", IsRequired = false, EmitDefaultValue = false)]
+ public string InstallationId { get; set; }
+
+ ///
+ /// The account code associated with the Payments App instance.
+ ///
+ /// The account code associated with the Payments App instance.
+ [DataMember(Name = "merchantAccountCode", IsRequired = false, EmitDefaultValue = false)]
+ public string MerchantAccountCode { get; set; }
+
+ ///
+ /// The store code associated with the Payments App instance.
+ ///
+ /// The store code associated with the Payments App instance.
+ [DataMember(Name = "merchantStoreCode", EmitDefaultValue = false)]
+ public string MerchantStoreCode { get; set; }
+
+ ///
+ /// The status of the Payments App instance.
+ ///
+ /// The status of the Payments App instance.
+ [DataMember(Name = "status", IsRequired = false, EmitDefaultValue = false)]
+ public string Status { 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 PaymentsAppDto {\n");
+ sb.Append(" InstallationId: ").Append(InstallationId).Append("\n");
+ sb.Append(" MerchantAccountCode: ").Append(MerchantAccountCode).Append("\n");
+ sb.Append(" MerchantStoreCode: ").Append(MerchantStoreCode).Append("\n");
+ sb.Append(" Status: ").Append(Status).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 PaymentsAppDto);
+ }
+
+ ///
+ /// Returns true if PaymentsAppDto instances are equal
+ ///
+ /// Instance of PaymentsAppDto to be compared
+ /// Boolean
+ public bool Equals(PaymentsAppDto input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.InstallationId == input.InstallationId ||
+ (this.InstallationId != null &&
+ this.InstallationId.Equals(input.InstallationId))
+ ) &&
+ (
+ this.MerchantAccountCode == input.MerchantAccountCode ||
+ (this.MerchantAccountCode != null &&
+ this.MerchantAccountCode.Equals(input.MerchantAccountCode))
+ ) &&
+ (
+ this.MerchantStoreCode == input.MerchantStoreCode ||
+ (this.MerchantStoreCode != null &&
+ this.MerchantStoreCode.Equals(input.MerchantStoreCode))
+ ) &&
+ (
+ this.Status == input.Status ||
+ (this.Status != null &&
+ this.Status.Equals(input.Status))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.InstallationId != null)
+ {
+ hashCode = (hashCode * 59) + this.InstallationId.GetHashCode();
+ }
+ if (this.MerchantAccountCode != null)
+ {
+ hashCode = (hashCode * 59) + this.MerchantAccountCode.GetHashCode();
+ }
+ if (this.MerchantStoreCode != null)
+ {
+ hashCode = (hashCode * 59) + this.MerchantStoreCode.GetHashCode();
+ }
+ if (this.Status != null)
+ {
+ hashCode = (hashCode * 59) + this.Status.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/PaymentsApp/PaymentsAppResponse.cs b/Adyen/Model/PaymentsApp/PaymentsAppResponse.cs
new file mode 100644
index 000000000..6936546f1
--- /dev/null
+++ b/Adyen/Model/PaymentsApp/PaymentsAppResponse.cs
@@ -0,0 +1,135 @@
+/*
+* Payments App API
+*
+*
+* The version of the OpenAPI document: 1
+*
+* 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.PaymentsApp
+{
+ ///
+ /// PaymentsAppResponse
+ ///
+ [DataContract(Name = "PaymentsAppResponse")]
+ public partial class PaymentsAppResponse : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected PaymentsAppResponse() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// List of Payments Apps. (required).
+ public PaymentsAppResponse(List paymentsApps = default(List))
+ {
+ this.PaymentsApps = paymentsApps;
+ }
+
+ ///
+ /// List of Payments Apps.
+ ///
+ /// List of Payments Apps.
+ [DataMember(Name = "paymentsApps", IsRequired = false, EmitDefaultValue = false)]
+ public List PaymentsApps { 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 PaymentsAppResponse {\n");
+ sb.Append(" PaymentsApps: ").Append(PaymentsApps).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 PaymentsAppResponse);
+ }
+
+ ///
+ /// Returns true if PaymentsAppResponse instances are equal
+ ///
+ /// Instance of PaymentsAppResponse to be compared
+ /// Boolean
+ public bool Equals(PaymentsAppResponse input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.PaymentsApps == input.PaymentsApps ||
+ this.PaymentsApps != null &&
+ input.PaymentsApps != null &&
+ this.PaymentsApps.SequenceEqual(input.PaymentsApps)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.PaymentsApps != null)
+ {
+ hashCode = (hashCode * 59) + this.PaymentsApps.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ public IEnumerable Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/TransferWebhooks/Card.cs b/Adyen/Model/TransferWebhooks/Card.cs
new file mode 100644
index 000000000..690e52975
--- /dev/null
+++ b/Adyen/Model/TransferWebhooks/Card.cs
@@ -0,0 +1,151 @@
+/*
+* Transfer webhooks
+*
+*
+* The version of the OpenAPI document: 4
+*
+* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+* https://openapi-generator.tech
+* Do not edit the class manually.
+*/
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
+
+namespace Adyen.Model.TransferWebhooks
+{
+ ///
+ /// Card
+ ///
+ [DataContract(Name = "Card")]
+ public partial class Card : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected Card() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// cardHolder (required).
+ /// cardIdentification (required).
+ public Card(PartyIdentification cardHolder = default(PartyIdentification), CardIdentification cardIdentification = default(CardIdentification))
+ {
+ this.CardHolder = cardHolder;
+ this.CardIdentification = cardIdentification;
+ }
+
+ ///
+ /// Gets or Sets CardHolder
+ ///
+ [DataMember(Name = "cardHolder", IsRequired = false, EmitDefaultValue = false)]
+ public PartyIdentification CardHolder { get; set; }
+
+ ///
+ /// Gets or Sets CardIdentification
+ ///
+ [DataMember(Name = "cardIdentification", IsRequired = false, EmitDefaultValue = false)]
+ public CardIdentification CardIdentification { 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 Card {\n");
+ sb.Append(" CardHolder: ").Append(CardHolder).Append("\n");
+ sb.Append(" CardIdentification: ").Append(CardIdentification).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 Card);
+ }
+
+ ///
+ /// Returns true if Card instances are equal
+ ///
+ /// Instance of Card to be compared
+ /// Boolean
+ public bool Equals(Card input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.CardHolder == input.CardHolder ||
+ (this.CardHolder != null &&
+ this.CardHolder.Equals(input.CardHolder))
+ ) &&
+ (
+ this.CardIdentification == input.CardIdentification ||
+ (this.CardIdentification != null &&
+ this.CardIdentification.Equals(input.CardIdentification))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.CardHolder != null)
+ {
+ hashCode = (hashCode * 59) + this.CardHolder.GetHashCode();
+ }
+ if (this.CardIdentification != null)
+ {
+ hashCode = (hashCode * 59) + this.CardIdentification.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ public IEnumerable Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/TransferWebhooks/CardIdentification.cs b/Adyen/Model/TransferWebhooks/CardIdentification.cs
new file mode 100644
index 000000000..4a4a7c284
--- /dev/null
+++ b/Adyen/Model/TransferWebhooks/CardIdentification.cs
@@ -0,0 +1,315 @@
+/*
+* Transfer webhooks
+*
+*
+* The version of the OpenAPI document: 4
+*
+* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+* https://openapi-generator.tech
+* Do not edit the class manually.
+*/
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
+
+namespace Adyen.Model.TransferWebhooks
+{
+ ///
+ /// CardIdentification
+ ///
+ [DataContract(Name = "CardIdentification")]
+ public partial class CardIdentification : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November.
+ /// The expiry year of the card. Format: four digits. For example: 2020.
+ /// The issue number of the card. Applies only to some UK debit cards..
+ /// The card number without any separators. For security, the response only includes the last four digits of the card number..
+ /// The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November.
+ /// The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020.
+ /// The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. .
+ public CardIdentification(string expiryMonth = default(string), string expiryYear = default(string), string issueNumber = default(string), string number = default(string), string startMonth = default(string), string startYear = default(string), string storedPaymentMethodId = default(string))
+ {
+ this.ExpiryMonth = expiryMonth;
+ this.ExpiryYear = expiryYear;
+ this.IssueNumber = issueNumber;
+ this.Number = number;
+ this.StartMonth = startMonth;
+ this.StartYear = startYear;
+ this.StoredPaymentMethodId = storedPaymentMethodId;
+ }
+
+ ///
+ /// The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November
+ ///
+ /// The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November
+ [DataMember(Name = "expiryMonth", EmitDefaultValue = false)]
+ public string ExpiryMonth { get; set; }
+
+ ///
+ /// The expiry year of the card. Format: four digits. For example: 2020
+ ///
+ /// The expiry year of the card. Format: four digits. For example: 2020
+ [DataMember(Name = "expiryYear", EmitDefaultValue = false)]
+ public string ExpiryYear { get; set; }
+
+ ///
+ /// The issue number of the card. Applies only to some UK debit cards.
+ ///
+ /// The issue number of the card. Applies only to some UK debit cards.
+ [DataMember(Name = "issueNumber", EmitDefaultValue = false)]
+ public string IssueNumber { get; set; }
+
+ ///
+ /// The card number without any separators. For security, the response only includes the last four digits of the card number.
+ ///
+ /// The card number without any separators. For security, the response only includes the last four digits of the card number.
+ [DataMember(Name = "number", EmitDefaultValue = false)]
+ public string Number { get; set; }
+
+ ///
+ /// The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November
+ ///
+ /// The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November
+ [DataMember(Name = "startMonth", EmitDefaultValue = false)]
+ public string StartMonth { get; set; }
+
+ ///
+ /// The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020
+ ///
+ /// The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020
+ [DataMember(Name = "startYear", EmitDefaultValue = false)]
+ public string StartYear { get; set; }
+
+ ///
+ /// The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty.
+ ///
+ /// The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty.
+ [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 CardIdentification {\n");
+ sb.Append(" ExpiryMonth: ").Append(ExpiryMonth).Append("\n");
+ sb.Append(" ExpiryYear: ").Append(ExpiryYear).Append("\n");
+ sb.Append(" IssueNumber: ").Append(IssueNumber).Append("\n");
+ sb.Append(" Number: ").Append(Number).Append("\n");
+ sb.Append(" StartMonth: ").Append(StartMonth).Append("\n");
+ sb.Append(" StartYear: ").Append(StartYear).Append("\n");
+ sb.Append(" StoredPaymentMethodId: ").Append(StoredPaymentMethodId).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 CardIdentification);
+ }
+
+ ///
+ /// Returns true if CardIdentification instances are equal
+ ///
+ /// Instance of CardIdentification to be compared
+ /// Boolean
+ public bool Equals(CardIdentification input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.ExpiryMonth == input.ExpiryMonth ||
+ (this.ExpiryMonth != null &&
+ this.ExpiryMonth.Equals(input.ExpiryMonth))
+ ) &&
+ (
+ this.ExpiryYear == input.ExpiryYear ||
+ (this.ExpiryYear != null &&
+ this.ExpiryYear.Equals(input.ExpiryYear))
+ ) &&
+ (
+ this.IssueNumber == input.IssueNumber ||
+ (this.IssueNumber != null &&
+ this.IssueNumber.Equals(input.IssueNumber))
+ ) &&
+ (
+ this.Number == input.Number ||
+ (this.Number != null &&
+ this.Number.Equals(input.Number))
+ ) &&
+ (
+ this.StartMonth == input.StartMonth ||
+ (this.StartMonth != null &&
+ this.StartMonth.Equals(input.StartMonth))
+ ) &&
+ (
+ this.StartYear == input.StartYear ||
+ (this.StartYear != null &&
+ this.StartYear.Equals(input.StartYear))
+ ) &&
+ (
+ this.StoredPaymentMethodId == input.StoredPaymentMethodId ||
+ (this.StoredPaymentMethodId != null &&
+ this.StoredPaymentMethodId.Equals(input.StoredPaymentMethodId))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.ExpiryMonth != null)
+ {
+ hashCode = (hashCode * 59) + this.ExpiryMonth.GetHashCode();
+ }
+ if (this.ExpiryYear != null)
+ {
+ hashCode = (hashCode * 59) + this.ExpiryYear.GetHashCode();
+ }
+ if (this.IssueNumber != null)
+ {
+ hashCode = (hashCode * 59) + this.IssueNumber.GetHashCode();
+ }
+ if (this.Number != null)
+ {
+ hashCode = (hashCode * 59) + this.Number.GetHashCode();
+ }
+ if (this.StartMonth != null)
+ {
+ hashCode = (hashCode * 59) + this.StartMonth.GetHashCode();
+ }
+ if (this.StartYear != null)
+ {
+ hashCode = (hashCode * 59) + this.StartYear.GetHashCode();
+ }
+ if (this.StoredPaymentMethodId != null)
+ {
+ hashCode = (hashCode * 59) + this.StoredPaymentMethodId.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ public IEnumerable Validate(ValidationContext validationContext)
+ {
+ // ExpiryMonth (string) maxLength
+ if (this.ExpiryMonth != null && this.ExpiryMonth.Length > 2)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpiryMonth, length must be less than 2.", new [] { "ExpiryMonth" });
+ }
+
+ // ExpiryMonth (string) minLength
+ if (this.ExpiryMonth != null && this.ExpiryMonth.Length < 2)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpiryMonth, length must be greater than 2.", new [] { "ExpiryMonth" });
+ }
+
+ // ExpiryYear (string) maxLength
+ if (this.ExpiryYear != null && this.ExpiryYear.Length > 4)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpiryYear, length must be less than 4.", new [] { "ExpiryYear" });
+ }
+
+ // ExpiryYear (string) minLength
+ if (this.ExpiryYear != null && this.ExpiryYear.Length < 4)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpiryYear, length must be greater than 4.", new [] { "ExpiryYear" });
+ }
+
+ // IssueNumber (string) maxLength
+ if (this.IssueNumber != null && this.IssueNumber.Length > 2)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IssueNumber, length must be less than 2.", new [] { "IssueNumber" });
+ }
+
+ // IssueNumber (string) minLength
+ if (this.IssueNumber != null && this.IssueNumber.Length < 1)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IssueNumber, length must be greater than 1.", new [] { "IssueNumber" });
+ }
+
+ // Number (string) maxLength
+ if (this.Number != null && this.Number.Length > 19)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be less than 19.", new [] { "Number" });
+ }
+
+ // Number (string) minLength
+ if (this.Number != null && this.Number.Length < 4)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be greater than 4.", new [] { "Number" });
+ }
+
+ // StartMonth (string) maxLength
+ if (this.StartMonth != null && this.StartMonth.Length > 2)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StartMonth, length must be less than 2.", new [] { "StartMonth" });
+ }
+
+ // StartMonth (string) minLength
+ if (this.StartMonth != null && this.StartMonth.Length < 2)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StartMonth, length must be greater than 2.", new [] { "StartMonth" });
+ }
+
+ // StartYear (string) maxLength
+ if (this.StartYear != null && this.StartYear.Length > 4)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StartYear, length must be less than 4.", new [] { "StartYear" });
+ }
+
+ // StartYear (string) minLength
+ if (this.StartYear != null && this.StartYear.Length < 4)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StartYear, length must be greater than 4.", new [] { "StartYear" });
+ }
+
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/TransferWebhooks/CounterpartyV3.cs b/Adyen/Model/TransferWebhooks/CounterpartyV3.cs
index 4fc6a6c3f..07461a26e 100644
--- a/Adyen/Model/TransferWebhooks/CounterpartyV3.cs
+++ b/Adyen/Model/TransferWebhooks/CounterpartyV3.cs
@@ -35,22 +35,24 @@ public partial class CounterpartyV3 : IEquatable, IValidatableOb
///
/// Initializes a new instance of the class.
///
- /// The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id)..
+ /// The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id)..
/// bankAccount.
+ /// card.
/// merchant.
- /// The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id)..
- public CounterpartyV3(string balanceAccountId = default(string), BankAccountV3 bankAccount = default(BankAccountV3), MerchantData merchant = default(MerchantData), string transferInstrumentId = default(string))
+ /// The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id)..
+ public CounterpartyV3(string balanceAccountId = default(string), BankAccountV3 bankAccount = default(BankAccountV3), Card card = default(Card), MerchantData merchant = default(MerchantData), string transferInstrumentId = default(string))
{
this.BalanceAccountId = balanceAccountId;
this.BankAccount = bankAccount;
+ this.Card = card;
this.Merchant = merchant;
this.TransferInstrumentId = transferInstrumentId;
}
///
- /// The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id).
+ /// The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).
///
- /// The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id).
+ /// The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).
[DataMember(Name = "balanceAccountId", EmitDefaultValue = false)]
public string BalanceAccountId { get; set; }
@@ -60,6 +62,12 @@ public partial class CounterpartyV3 : IEquatable, IValidatableOb
[DataMember(Name = "bankAccount", EmitDefaultValue = false)]
public BankAccountV3 BankAccount { get; set; }
+ ///
+ /// Gets or Sets Card
+ ///
+ [DataMember(Name = "card", EmitDefaultValue = false)]
+ public Card Card { get; set; }
+
///
/// Gets or Sets Merchant
///
@@ -67,9 +75,9 @@ public partial class CounterpartyV3 : IEquatable, IValidatableOb
public MerchantData Merchant { get; set; }
///
- /// The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
+ /// The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).
///
- /// The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
+ /// The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).
[DataMember(Name = "transferInstrumentId", EmitDefaultValue = false)]
public string TransferInstrumentId { get; set; }
@@ -83,6 +91,7 @@ public override string ToString()
sb.Append("class CounterpartyV3 {\n");
sb.Append(" BalanceAccountId: ").Append(BalanceAccountId).Append("\n");
sb.Append(" BankAccount: ").Append(BankAccount).Append("\n");
+ sb.Append(" Card: ").Append(Card).Append("\n");
sb.Append(" Merchant: ").Append(Merchant).Append("\n");
sb.Append(" TransferInstrumentId: ").Append(TransferInstrumentId).Append("\n");
sb.Append("}\n");
@@ -130,6 +139,11 @@ public bool Equals(CounterpartyV3 input)
(this.BankAccount != null &&
this.BankAccount.Equals(input.BankAccount))
) &&
+ (
+ this.Card == input.Card ||
+ (this.Card != null &&
+ this.Card.Equals(input.Card))
+ ) &&
(
this.Merchant == input.Merchant ||
(this.Merchant != null &&
@@ -159,6 +173,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.BankAccount.GetHashCode();
}
+ if (this.Card != null)
+ {
+ hashCode = (hashCode * 59) + this.Card.GetHashCode();
+ }
if (this.Merchant != null)
{
hashCode = (hashCode * 59) + this.Merchant.GetHashCode();
diff --git a/Adyen/Model/TransferWebhooks/PartyIdentification.cs b/Adyen/Model/TransferWebhooks/PartyIdentification.cs
index 68fbfb259..76bdbfdef 100644
--- a/Adyen/Model/TransferWebhooks/PartyIdentification.cs
+++ b/Adyen/Model/TransferWebhooks/PartyIdentification.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.TransferWebhooks
public partial class PartyIdentification : IEquatable, IValidatableObject
{
///
- /// The type of entity that owns the bank account. Possible values: **individual**, **organization**, or **unknown**.
+ /// The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**.
///
- /// The type of entity that owns the bank account. Possible values: **individual**, **organization**, or **unknown**.
+ /// The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**.
[JsonConverter(typeof(StringEnumConverter))]
public enum TypeEnum
{
@@ -61,32 +61,27 @@ public enum TypeEnum
///
- /// The type of entity that owns the bank account. Possible values: **individual**, **organization**, or **unknown**.
+ /// The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**.
///
- /// The type of entity that owns the bank account. Possible values: **individual**, **organization**, or **unknown**.
+ /// The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**.
[DataMember(Name = "type", EmitDefaultValue = false)]
public TypeEnum? Type { get; set; }
///
/// Initializes a new instance of the class.
///
- [JsonConstructorAttribute]
- protected PartyIdentification() { }
- ///
- /// Initializes a new instance of the class.
- ///
/// address.
- /// The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Should not be before January 1, 1900. Allowed only when `type` is **individual**..
- /// First name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space. .
- /// The name of the entity. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and Space. (required).
- /// Last name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space. .
- /// A unique reference to identify the party or counterparty involved in transfers. This identifier ensures consistency and uniqueness throughout all transactions initiated to and from the same party. For example, your client's unique wallet or payee ID..
- /// The type of entity that owns the bank account. Possible values: **individual**, **organization**, or **unknown**. (default to TypeEnum.Unknown).
+ /// The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**..
+ /// The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**..
+ /// The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**..
+ /// The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**..
+ /// A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`..
+ /// The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. (default to TypeEnum.Unknown).
public PartyIdentification(Address address = default(Address), DateTime dateOfBirth = default(DateTime), string firstName = default(string), string fullName = default(string), string lastName = default(string), string reference = default(string), TypeEnum? type = TypeEnum.Unknown)
{
- this.FullName = fullName;
this.Address = address;
this.DateOfBirth = dateOfBirth;
this.FirstName = firstName;
+ this.FullName = fullName;
this.LastName = lastName;
this.Reference = reference;
this.Type = type;
@@ -99,38 +94,38 @@ protected PartyIdentification() { }
public Address Address { get; set; }
///
- /// The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Should not be before January 1, 1900. Allowed only when `type` is **individual**.
+ /// The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**.
///
- /// The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Should not be before January 1, 1900. Allowed only when `type` is **individual**.
+ /// The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**.
[DataMember(Name = "dateOfBirth", EmitDefaultValue = false)]
[JsonConverter(typeof(OpenAPIDateConverter))]
public DateTime DateOfBirth { get; set; }
///
- /// First name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space.
+ /// The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.
///
- /// First name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space.
+ /// The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.
[DataMember(Name = "firstName", EmitDefaultValue = false)]
public string FirstName { get; set; }
///
- /// The name of the entity. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and Space.
+ /// The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**.
///
- /// The name of the entity. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and Space.
- [DataMember(Name = "fullName", IsRequired = false, EmitDefaultValue = false)]
+ /// The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**.
+ [DataMember(Name = "fullName", EmitDefaultValue = false)]
public string FullName { get; set; }
///
- /// Last name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space.
+ /// The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.
///
- /// Last name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space.
+ /// The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.
[DataMember(Name = "lastName", EmitDefaultValue = false)]
public string LastName { get; set; }
///
- /// A unique reference to identify the party or counterparty involved in transfers. This identifier ensures consistency and uniqueness throughout all transactions initiated to and from the same party. For example, your client's unique wallet or payee ID.
+ /// A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`.
///
- /// A unique reference to identify the party or counterparty involved in transfers. This identifier ensures consistency and uniqueness throughout all transactions initiated to and from the same party. For example, your client's unique wallet or payee ID.
+ /// A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`.
[DataMember(Name = "reference", EmitDefaultValue = false)]
public string Reference { get; set; }
diff --git a/Adyen/Model/TransferWebhooks/TransferData.cs b/Adyen/Model/TransferWebhooks/TransferData.cs
index 109cdde07..8b3812a32 100644
--- a/Adyen/Model/TransferWebhooks/TransferData.cs
+++ b/Adyen/Model/TransferWebhooks/TransferData.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.TransferWebhooks
public partial class TransferData : IEquatable, IValidatableObject
{
///
- /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
+ /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
///
- /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
+ /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
[JsonConverter(typeof(StringEnumConverter))]
public enum CategoryEnum
{
@@ -45,31 +45,37 @@ public enum CategoryEnum
[EnumMember(Value = "bank")]
Bank = 1,
+ ///
+ /// Enum Card for value: card
+ ///
+ [EnumMember(Value = "card")]
+ Card = 2,
+
///
/// Enum Internal for value: internal
///
[EnumMember(Value = "internal")]
- Internal = 2,
+ Internal = 3,
///
/// Enum IssuedCard for value: issuedCard
///
[EnumMember(Value = "issuedCard")]
- IssuedCard = 3,
+ IssuedCard = 4,
///
/// Enum PlatformPayment for value: platformPayment
///
[EnumMember(Value = "platformPayment")]
- PlatformPayment = 4
+ PlatformPayment = 5
}
///
- /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
+ /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
///
- /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
+ /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
[DataMember(Name = "category", IsRequired = false, EmitDefaultValue = false)]
public CategoryEnum Category { get; set; }
///
@@ -644,244 +650,232 @@ public enum StatusEnum
public enum TypeEnum
{
///
- /// Enum AtmWithdrawal for value: atmWithdrawal
- ///
- [EnumMember(Value = "atmWithdrawal")]
- AtmWithdrawal = 1,
-
- ///
- /// Enum AtmWithdrawalReversal for value: atmWithdrawalReversal
- ///
- [EnumMember(Value = "atmWithdrawalReversal")]
- AtmWithdrawalReversal = 2,
-
- ///
- /// Enum BalanceAdjustment for value: balanceAdjustment
- ///
- [EnumMember(Value = "balanceAdjustment")]
- BalanceAdjustment = 3,
-
- ///
- /// Enum BalanceMigration for value: balanceMigration
- ///
- [EnumMember(Value = "balanceMigration")]
- BalanceMigration = 4,
-
- ///
- /// Enum BalanceRollover for value: balanceRollover
+ /// Enum Payment for value: payment
///
- [EnumMember(Value = "balanceRollover")]
- BalanceRollover = 5,
+ [EnumMember(Value = "payment")]
+ Payment = 1,
///
- /// Enum BankDirectDebit for value: bankDirectDebit
+ /// Enum Capture for value: capture
///
- [EnumMember(Value = "bankDirectDebit")]
- BankDirectDebit = 6,
+ [EnumMember(Value = "capture")]
+ Capture = 2,
///
- /// Enum BankTransfer for value: bankTransfer
+ /// Enum CaptureReversal for value: captureReversal
///
- [EnumMember(Value = "bankTransfer")]
- BankTransfer = 7,
+ [EnumMember(Value = "captureReversal")]
+ CaptureReversal = 3,
///
- /// Enum CapitalFundsCollection for value: capitalFundsCollection
+ /// Enum Refund for value: refund
///
- [EnumMember(Value = "capitalFundsCollection")]
- CapitalFundsCollection = 8,
+ [EnumMember(Value = "refund")]
+ Refund = 4,
///
- /// Enum Capture for value: capture
+ /// Enum RefundReversal for value: refundReversal
///
- [EnumMember(Value = "capture")]
- Capture = 9,
+ [EnumMember(Value = "refundReversal")]
+ RefundReversal = 5,
///
- /// Enum CaptureReversal for value: captureReversal
+ /// Enum Chargeback for value: chargeback
///
- [EnumMember(Value = "captureReversal")]
- CaptureReversal = 10,
+ [EnumMember(Value = "chargeback")]
+ Chargeback = 6,
///
- /// Enum CardTransfer for value: cardTransfer
+ /// Enum ChargebackCorrection for value: chargebackCorrection
///
- [EnumMember(Value = "cardTransfer")]
- CardTransfer = 11,
+ [EnumMember(Value = "chargebackCorrection")]
+ ChargebackCorrection = 7,
///
- /// Enum CashOutFee for value: cashOutFee
+ /// Enum ChargebackReversal for value: chargebackReversal
///
- [EnumMember(Value = "cashOutFee")]
- CashOutFee = 12,
+ [EnumMember(Value = "chargebackReversal")]
+ ChargebackReversal = 8,
///
- /// Enum CashOutFunding for value: cashOutFunding
+ /// Enum ChargebackReversalCorrection for value: chargebackReversalCorrection
///
- [EnumMember(Value = "cashOutFunding")]
- CashOutFunding = 13,
+ [EnumMember(Value = "chargebackReversalCorrection")]
+ ChargebackReversalCorrection = 9,
///
- /// Enum CashOutInstruction for value: cashOutInstruction
+ /// Enum SecondChargeback for value: secondChargeback
///
- [EnumMember(Value = "cashOutInstruction")]
- CashOutInstruction = 14,
+ [EnumMember(Value = "secondChargeback")]
+ SecondChargeback = 10,
///
- /// Enum CashoutFee for value: cashoutFee
+ /// Enum SecondChargebackCorrection for value: secondChargebackCorrection
///
- [EnumMember(Value = "cashoutFee")]
- CashoutFee = 15,
+ [EnumMember(Value = "secondChargebackCorrection")]
+ SecondChargebackCorrection = 11,
///
- /// Enum CashoutFunding for value: cashoutFunding
+ /// Enum AtmWithdrawal for value: atmWithdrawal
///
- [EnumMember(Value = "cashoutFunding")]
- CashoutFunding = 16,
+ [EnumMember(Value = "atmWithdrawal")]
+ AtmWithdrawal = 12,
///
- /// Enum CashoutRepayment for value: cashoutRepayment
+ /// Enum AtmWithdrawalReversal for value: atmWithdrawalReversal
///
- [EnumMember(Value = "cashoutRepayment")]
- CashoutRepayment = 17,
+ [EnumMember(Value = "atmWithdrawalReversal")]
+ AtmWithdrawalReversal = 13,
///
- /// Enum Chargeback for value: chargeback
+ /// Enum InternalTransfer for value: internalTransfer
///
- [EnumMember(Value = "chargeback")]
- Chargeback = 18,
+ [EnumMember(Value = "internalTransfer")]
+ InternalTransfer = 14,
///
- /// Enum ChargebackCorrection for value: chargebackCorrection
+ /// Enum InternalDirectDebit for value: internalDirectDebit
///
- [EnumMember(Value = "chargebackCorrection")]
- ChargebackCorrection = 19,
+ [EnumMember(Value = "internalDirectDebit")]
+ InternalDirectDebit = 15,
///
- /// Enum ChargebackReversal for value: chargebackReversal
+ /// Enum ManualCorrection for value: manualCorrection
///
- [EnumMember(Value = "chargebackReversal")]
- ChargebackReversal = 20,
+ [EnumMember(Value = "manualCorrection")]
+ ManualCorrection = 16,
///
- /// Enum ChargebackReversalCorrection for value: chargebackReversalCorrection
+ /// Enum InvoiceDeduction for value: invoiceDeduction
///
- [EnumMember(Value = "chargebackReversalCorrection")]
- ChargebackReversalCorrection = 21,
+ [EnumMember(Value = "invoiceDeduction")]
+ InvoiceDeduction = 17,
///
/// Enum DepositCorrection for value: depositCorrection
///
[EnumMember(Value = "depositCorrection")]
- DepositCorrection = 22,
+ DepositCorrection = 18,
///
- /// Enum Fee for value: fee
+ /// Enum ReserveAdjustment for value: reserveAdjustment
///
- [EnumMember(Value = "fee")]
- Fee = 23,
+ [EnumMember(Value = "reserveAdjustment")]
+ ReserveAdjustment = 19,
///
- /// Enum Grant for value: grant
+ /// Enum BankTransfer for value: bankTransfer
///
- [EnumMember(Value = "grant")]
- Grant = 24,
+ [EnumMember(Value = "bankTransfer")]
+ BankTransfer = 20,
///
- /// Enum Installment for value: installment
+ /// Enum BankDirectDebit for value: bankDirectDebit
///
- [EnumMember(Value = "installment")]
- Installment = 25,
+ [EnumMember(Value = "bankDirectDebit")]
+ BankDirectDebit = 21,
///
- /// Enum InstallmentReversal for value: installmentReversal
+ /// Enum CardTransfer for value: cardTransfer
///
- [EnumMember(Value = "installmentReversal")]
- InstallmentReversal = 26,
+ [EnumMember(Value = "cardTransfer")]
+ CardTransfer = 22,
///
- /// Enum InternalDirectDebit for value: internalDirectDebit
+ /// Enum MiscCost for value: miscCost
///
- [EnumMember(Value = "internalDirectDebit")]
- InternalDirectDebit = 27,
+ [EnumMember(Value = "miscCost")]
+ MiscCost = 23,
///
- /// Enum InternalTransfer for value: internalTransfer
+ /// Enum PaymentCost for value: paymentCost
///
- [EnumMember(Value = "internalTransfer")]
- InternalTransfer = 28,
+ [EnumMember(Value = "paymentCost")]
+ PaymentCost = 24,
///
- /// Enum InvoiceDeduction for value: invoiceDeduction
+ /// Enum Fee for value: fee
///
- [EnumMember(Value = "invoiceDeduction")]
- InvoiceDeduction = 29,
+ [EnumMember(Value = "fee")]
+ Fee = 25,
///
/// Enum Leftover for value: leftover
///
[EnumMember(Value = "leftover")]
- Leftover = 30,
+ Leftover = 26,
///
- /// Enum ManualCorrection for value: manualCorrection
+ /// Enum Grant for value: grant
///
- [EnumMember(Value = "manualCorrection")]
- ManualCorrection = 31,
+ [EnumMember(Value = "grant")]
+ Grant = 27,
///
- /// Enum MiscCost for value: miscCost
+ /// Enum CapitalFundsCollection for value: capitalFundsCollection
///
- [EnumMember(Value = "miscCost")]
- MiscCost = 32,
+ [EnumMember(Value = "capitalFundsCollection")]
+ CapitalFundsCollection = 28,
///
- /// Enum Payment for value: payment
+ /// Enum CashOutInstruction for value: cashOutInstruction
///
- [EnumMember(Value = "payment")]
- Payment = 33,
+ [EnumMember(Value = "cashOutInstruction")]
+ CashOutInstruction = 29,
///
- /// Enum PaymentCost for value: paymentCost
+ /// Enum CashoutFee for value: cashoutFee
///
- [EnumMember(Value = "paymentCost")]
- PaymentCost = 34,
+ [EnumMember(Value = "cashoutFee")]
+ CashoutFee = 30,
///
- /// Enum Refund for value: refund
+ /// Enum CashoutRepayment for value: cashoutRepayment
///
- [EnumMember(Value = "refund")]
- Refund = 35,
+ [EnumMember(Value = "cashoutRepayment")]
+ CashoutRepayment = 31,
///
- /// Enum RefundReversal for value: refundReversal
+ /// Enum CashoutFunding for value: cashoutFunding
///
- [EnumMember(Value = "refundReversal")]
- RefundReversal = 36,
+ [EnumMember(Value = "cashoutFunding")]
+ CashoutFunding = 32,
///
/// Enum Repayment for value: repayment
///
[EnumMember(Value = "repayment")]
- Repayment = 37,
+ Repayment = 33,
///
- /// Enum ReserveAdjustment for value: reserveAdjustment
+ /// Enum Installment for value: installment
///
- [EnumMember(Value = "reserveAdjustment")]
- ReserveAdjustment = 38,
+ [EnumMember(Value = "installment")]
+ Installment = 34,
///
- /// Enum SecondChargeback for value: secondChargeback
+ /// Enum InstallmentReversal for value: installmentReversal
///
- [EnumMember(Value = "secondChargeback")]
- SecondChargeback = 39,
+ [EnumMember(Value = "installmentReversal")]
+ InstallmentReversal = 35,
///
- /// Enum SecondChargebackCorrection for value: secondChargebackCorrection
+ /// Enum BalanceAdjustment for value: balanceAdjustment
///
- [EnumMember(Value = "secondChargebackCorrection")]
- SecondChargebackCorrection = 40
+ [EnumMember(Value = "balanceAdjustment")]
+ BalanceAdjustment = 36,
+
+ ///
+ /// Enum BalanceRollover for value: balanceRollover
+ ///
+ [EnumMember(Value = "balanceRollover")]
+ BalanceRollover = 37,
+
+ ///
+ /// Enum BalanceMigration for value: balanceMigration
+ ///
+ [EnumMember(Value = "balanceMigration")]
+ BalanceMigration = 38
}
@@ -905,7 +899,7 @@ protected TransferData() { }
/// balanceAccount.
/// The unique identifier of the balance platform..
/// The list of the latest balance statuses in the transfer..
- /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. (required).
+ /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. (required).
/// categoryData.
/// counterparty.
/// The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**..
diff --git a/Adyen/Model/TransferWebhooks/TransferNotificationCounterParty.cs b/Adyen/Model/TransferWebhooks/TransferNotificationCounterParty.cs
index 0461c5ac5..7c9afff8b 100644
--- a/Adyen/Model/TransferWebhooks/TransferNotificationCounterParty.cs
+++ b/Adyen/Model/TransferWebhooks/TransferNotificationCounterParty.cs
@@ -35,22 +35,24 @@ public partial class TransferNotificationCounterParty : IEquatable
/// Initializes a new instance of the class.
///
- /// The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id)..
+ /// The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id)..
/// bankAccount.
+ /// card.
/// merchant.
- /// The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id)..
- public TransferNotificationCounterParty(string balanceAccountId = default(string), BankAccountV3 bankAccount = default(BankAccountV3), TransferNotificationMerchantData merchant = default(TransferNotificationMerchantData), string transferInstrumentId = default(string))
+ /// The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id)..
+ public TransferNotificationCounterParty(string balanceAccountId = default(string), BankAccountV3 bankAccount = default(BankAccountV3), Card card = default(Card), TransferNotificationMerchantData merchant = default(TransferNotificationMerchantData), string transferInstrumentId = default(string))
{
this.BalanceAccountId = balanceAccountId;
this.BankAccount = bankAccount;
+ this.Card = card;
this.Merchant = merchant;
this.TransferInstrumentId = transferInstrumentId;
}
///
- /// The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id).
+ /// The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).
///
- /// The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id).
+ /// The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).
[DataMember(Name = "balanceAccountId", EmitDefaultValue = false)]
public string BalanceAccountId { get; set; }
@@ -60,6 +62,12 @@ public partial class TransferNotificationCounterParty : IEquatable
+ /// Gets or Sets Card
+ ///
+ [DataMember(Name = "card", EmitDefaultValue = false)]
+ public Card Card { get; set; }
+
///
/// Gets or Sets Merchant
///
@@ -67,9 +75,9 @@ public partial class TransferNotificationCounterParty : IEquatable
- /// The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
+ /// The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).
///
- /// The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
+ /// The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).
[DataMember(Name = "transferInstrumentId", EmitDefaultValue = false)]
public string TransferInstrumentId { get; set; }
@@ -83,6 +91,7 @@ public override string ToString()
sb.Append("class TransferNotificationCounterParty {\n");
sb.Append(" BalanceAccountId: ").Append(BalanceAccountId).Append("\n");
sb.Append(" BankAccount: ").Append(BankAccount).Append("\n");
+ sb.Append(" Card: ").Append(Card).Append("\n");
sb.Append(" Merchant: ").Append(Merchant).Append("\n");
sb.Append(" TransferInstrumentId: ").Append(TransferInstrumentId).Append("\n");
sb.Append("}\n");
@@ -130,6 +139,11 @@ public bool Equals(TransferNotificationCounterParty input)
(this.BankAccount != null &&
this.BankAccount.Equals(input.BankAccount))
) &&
+ (
+ this.Card == input.Card ||
+ (this.Card != null &&
+ this.Card.Equals(input.Card))
+ ) &&
(
this.Merchant == input.Merchant ||
(this.Merchant != null &&
@@ -159,6 +173,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.BankAccount.GetHashCode();
}
+ if (this.Card != null)
+ {
+ hashCode = (hashCode * 59) + this.Card.GetHashCode();
+ }
if (this.Merchant != null)
{
hashCode = (hashCode * 59) + this.Merchant.GetHashCode();
diff --git a/Adyen/Model/Transfers/Card.cs b/Adyen/Model/Transfers/Card.cs
new file mode 100644
index 000000000..b8b266788
--- /dev/null
+++ b/Adyen/Model/Transfers/Card.cs
@@ -0,0 +1,151 @@
+/*
+* Transfers API
+*
+*
+* The version of the OpenAPI document: 4
+*
+* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+* https://openapi-generator.tech
+* Do not edit the class manually.
+*/
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
+
+namespace Adyen.Model.Transfers
+{
+ ///
+ /// Card
+ ///
+ [DataContract(Name = "Card")]
+ public partial class Card : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected Card() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// cardHolder (required).
+ /// cardIdentification (required).
+ public Card(PartyIdentification cardHolder = default(PartyIdentification), CardIdentification cardIdentification = default(CardIdentification))
+ {
+ this.CardHolder = cardHolder;
+ this.CardIdentification = cardIdentification;
+ }
+
+ ///
+ /// Gets or Sets CardHolder
+ ///
+ [DataMember(Name = "cardHolder", IsRequired = false, EmitDefaultValue = false)]
+ public PartyIdentification CardHolder { get; set; }
+
+ ///
+ /// Gets or Sets CardIdentification
+ ///
+ [DataMember(Name = "cardIdentification", IsRequired = false, EmitDefaultValue = false)]
+ public CardIdentification CardIdentification { 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 Card {\n");
+ sb.Append(" CardHolder: ").Append(CardHolder).Append("\n");
+ sb.Append(" CardIdentification: ").Append(CardIdentification).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 Card);
+ }
+
+ ///
+ /// Returns true if Card instances are equal
+ ///
+ /// Instance of Card to be compared
+ /// Boolean
+ public bool Equals(Card input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.CardHolder == input.CardHolder ||
+ (this.CardHolder != null &&
+ this.CardHolder.Equals(input.CardHolder))
+ ) &&
+ (
+ this.CardIdentification == input.CardIdentification ||
+ (this.CardIdentification != null &&
+ this.CardIdentification.Equals(input.CardIdentification))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.CardHolder != null)
+ {
+ hashCode = (hashCode * 59) + this.CardHolder.GetHashCode();
+ }
+ if (this.CardIdentification != null)
+ {
+ hashCode = (hashCode * 59) + this.CardIdentification.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ public IEnumerable Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/Transfers/CardIdentification.cs b/Adyen/Model/Transfers/CardIdentification.cs
new file mode 100644
index 000000000..6ae0de064
--- /dev/null
+++ b/Adyen/Model/Transfers/CardIdentification.cs
@@ -0,0 +1,315 @@
+/*
+* Transfers API
+*
+*
+* The version of the OpenAPI document: 4
+*
+* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+* https://openapi-generator.tech
+* Do not edit the class manually.
+*/
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
+
+namespace Adyen.Model.Transfers
+{
+ ///
+ /// CardIdentification
+ ///
+ [DataContract(Name = "CardIdentification")]
+ public partial class CardIdentification : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November.
+ /// The expiry year of the card. Format: four digits. For example: 2020.
+ /// The issue number of the card. Applies only to some UK debit cards..
+ /// The card number without any separators. For security, the response only includes the last four digits of the card number..
+ /// The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November.
+ /// The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020.
+ /// The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty. .
+ public CardIdentification(string expiryMonth = default(string), string expiryYear = default(string), string issueNumber = default(string), string number = default(string), string startMonth = default(string), string startYear = default(string), string storedPaymentMethodId = default(string))
+ {
+ this.ExpiryMonth = expiryMonth;
+ this.ExpiryYear = expiryYear;
+ this.IssueNumber = issueNumber;
+ this.Number = number;
+ this.StartMonth = startMonth;
+ this.StartYear = startYear;
+ this.StoredPaymentMethodId = storedPaymentMethodId;
+ }
+
+ ///
+ /// The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November
+ ///
+ /// The expiry month of the card. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November
+ [DataMember(Name = "expiryMonth", EmitDefaultValue = false)]
+ public string ExpiryMonth { get; set; }
+
+ ///
+ /// The expiry year of the card. Format: four digits. For example: 2020
+ ///
+ /// The expiry year of the card. Format: four digits. For example: 2020
+ [DataMember(Name = "expiryYear", EmitDefaultValue = false)]
+ public string ExpiryYear { get; set; }
+
+ ///
+ /// The issue number of the card. Applies only to some UK debit cards.
+ ///
+ /// The issue number of the card. Applies only to some UK debit cards.
+ [DataMember(Name = "issueNumber", EmitDefaultValue = false)]
+ public string IssueNumber { get; set; }
+
+ ///
+ /// The card number without any separators. For security, the response only includes the last four digits of the card number.
+ ///
+ /// The card number without any separators. For security, the response only includes the last four digits of the card number.
+ [DataMember(Name = "number", EmitDefaultValue = false)]
+ public string Number { get; set; }
+
+ ///
+ /// The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November
+ ///
+ /// The month when the card was issued. Applies only to some UK debit cards. Format: two digits. Add a leading zero for single-digit months. For example: * 03 = March * 11 = November
+ [DataMember(Name = "startMonth", EmitDefaultValue = false)]
+ public string StartMonth { get; set; }
+
+ ///
+ /// The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020
+ ///
+ /// The year when the card was issued. Applies only to some UK debit cards. Format: four digits. For example: 2020
+ [DataMember(Name = "startYear", EmitDefaultValue = false)]
+ public string StartYear { get; set; }
+
+ ///
+ /// The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty.
+ ///
+ /// The unique [token](/payouts/payout-service/pay-out-to-cards/manage-card-information#save-card-details) created to identify the counterparty.
+ [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 CardIdentification {\n");
+ sb.Append(" ExpiryMonth: ").Append(ExpiryMonth).Append("\n");
+ sb.Append(" ExpiryYear: ").Append(ExpiryYear).Append("\n");
+ sb.Append(" IssueNumber: ").Append(IssueNumber).Append("\n");
+ sb.Append(" Number: ").Append(Number).Append("\n");
+ sb.Append(" StartMonth: ").Append(StartMonth).Append("\n");
+ sb.Append(" StartYear: ").Append(StartYear).Append("\n");
+ sb.Append(" StoredPaymentMethodId: ").Append(StoredPaymentMethodId).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 CardIdentification);
+ }
+
+ ///
+ /// Returns true if CardIdentification instances are equal
+ ///
+ /// Instance of CardIdentification to be compared
+ /// Boolean
+ public bool Equals(CardIdentification input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.ExpiryMonth == input.ExpiryMonth ||
+ (this.ExpiryMonth != null &&
+ this.ExpiryMonth.Equals(input.ExpiryMonth))
+ ) &&
+ (
+ this.ExpiryYear == input.ExpiryYear ||
+ (this.ExpiryYear != null &&
+ this.ExpiryYear.Equals(input.ExpiryYear))
+ ) &&
+ (
+ this.IssueNumber == input.IssueNumber ||
+ (this.IssueNumber != null &&
+ this.IssueNumber.Equals(input.IssueNumber))
+ ) &&
+ (
+ this.Number == input.Number ||
+ (this.Number != null &&
+ this.Number.Equals(input.Number))
+ ) &&
+ (
+ this.StartMonth == input.StartMonth ||
+ (this.StartMonth != null &&
+ this.StartMonth.Equals(input.StartMonth))
+ ) &&
+ (
+ this.StartYear == input.StartYear ||
+ (this.StartYear != null &&
+ this.StartYear.Equals(input.StartYear))
+ ) &&
+ (
+ this.StoredPaymentMethodId == input.StoredPaymentMethodId ||
+ (this.StoredPaymentMethodId != null &&
+ this.StoredPaymentMethodId.Equals(input.StoredPaymentMethodId))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.ExpiryMonth != null)
+ {
+ hashCode = (hashCode * 59) + this.ExpiryMonth.GetHashCode();
+ }
+ if (this.ExpiryYear != null)
+ {
+ hashCode = (hashCode * 59) + this.ExpiryYear.GetHashCode();
+ }
+ if (this.IssueNumber != null)
+ {
+ hashCode = (hashCode * 59) + this.IssueNumber.GetHashCode();
+ }
+ if (this.Number != null)
+ {
+ hashCode = (hashCode * 59) + this.Number.GetHashCode();
+ }
+ if (this.StartMonth != null)
+ {
+ hashCode = (hashCode * 59) + this.StartMonth.GetHashCode();
+ }
+ if (this.StartYear != null)
+ {
+ hashCode = (hashCode * 59) + this.StartYear.GetHashCode();
+ }
+ if (this.StoredPaymentMethodId != null)
+ {
+ hashCode = (hashCode * 59) + this.StoredPaymentMethodId.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ public IEnumerable Validate(ValidationContext validationContext)
+ {
+ // ExpiryMonth (string) maxLength
+ if (this.ExpiryMonth != null && this.ExpiryMonth.Length > 2)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpiryMonth, length must be less than 2.", new [] { "ExpiryMonth" });
+ }
+
+ // ExpiryMonth (string) minLength
+ if (this.ExpiryMonth != null && this.ExpiryMonth.Length < 2)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpiryMonth, length must be greater than 2.", new [] { "ExpiryMonth" });
+ }
+
+ // ExpiryYear (string) maxLength
+ if (this.ExpiryYear != null && this.ExpiryYear.Length > 4)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpiryYear, length must be less than 4.", new [] { "ExpiryYear" });
+ }
+
+ // ExpiryYear (string) minLength
+ if (this.ExpiryYear != null && this.ExpiryYear.Length < 4)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExpiryYear, length must be greater than 4.", new [] { "ExpiryYear" });
+ }
+
+ // IssueNumber (string) maxLength
+ if (this.IssueNumber != null && this.IssueNumber.Length > 2)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IssueNumber, length must be less than 2.", new [] { "IssueNumber" });
+ }
+
+ // IssueNumber (string) minLength
+ if (this.IssueNumber != null && this.IssueNumber.Length < 1)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IssueNumber, length must be greater than 1.", new [] { "IssueNumber" });
+ }
+
+ // Number (string) maxLength
+ if (this.Number != null && this.Number.Length > 19)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be less than 19.", new [] { "Number" });
+ }
+
+ // Number (string) minLength
+ if (this.Number != null && this.Number.Length < 4)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Number, length must be greater than 4.", new [] { "Number" });
+ }
+
+ // StartMonth (string) maxLength
+ if (this.StartMonth != null && this.StartMonth.Length > 2)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StartMonth, length must be less than 2.", new [] { "StartMonth" });
+ }
+
+ // StartMonth (string) minLength
+ if (this.StartMonth != null && this.StartMonth.Length < 2)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StartMonth, length must be greater than 2.", new [] { "StartMonth" });
+ }
+
+ // StartYear (string) maxLength
+ if (this.StartYear != null && this.StartYear.Length > 4)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StartYear, length must be less than 4.", new [] { "StartYear" });
+ }
+
+ // StartYear (string) minLength
+ if (this.StartYear != null && this.StartYear.Length < 4)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for StartYear, length must be greater than 4.", new [] { "StartYear" });
+ }
+
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/Transfers/CounterpartyInfoV3.cs b/Adyen/Model/Transfers/CounterpartyInfoV3.cs
index a6c31b216..dbcf7112f 100644
--- a/Adyen/Model/Transfers/CounterpartyInfoV3.cs
+++ b/Adyen/Model/Transfers/CounterpartyInfoV3.cs
@@ -35,20 +35,22 @@ public partial class CounterpartyInfoV3 : IEquatable, IValid
///
/// Initializes a new instance of the class.
///
- /// The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id)..
+ /// The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id)..
/// bankAccount.
- /// The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id)..
- public CounterpartyInfoV3(string balanceAccountId = default(string), BankAccountV3 bankAccount = default(BankAccountV3), string transferInstrumentId = default(string))
+ /// card.
+ /// The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id)..
+ public CounterpartyInfoV3(string balanceAccountId = default(string), BankAccountV3 bankAccount = default(BankAccountV3), Card card = default(Card), string transferInstrumentId = default(string))
{
this.BalanceAccountId = balanceAccountId;
this.BankAccount = bankAccount;
+ this.Card = card;
this.TransferInstrumentId = transferInstrumentId;
}
///
- /// The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id).
+ /// The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).
///
- /// The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id).
+ /// The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).
[DataMember(Name = "balanceAccountId", EmitDefaultValue = false)]
public string BalanceAccountId { get; set; }
@@ -59,9 +61,15 @@ public partial class CounterpartyInfoV3 : IEquatable, IValid
public BankAccountV3 BankAccount { get; set; }
///
- /// The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
+ /// Gets or Sets Card
///
- /// The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
+ [DataMember(Name = "card", EmitDefaultValue = false)]
+ public Card Card { get; set; }
+
+ ///
+ /// The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).
+ ///
+ /// The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).
[DataMember(Name = "transferInstrumentId", EmitDefaultValue = false)]
public string TransferInstrumentId { get; set; }
@@ -75,6 +83,7 @@ public override string ToString()
sb.Append("class CounterpartyInfoV3 {\n");
sb.Append(" BalanceAccountId: ").Append(BalanceAccountId).Append("\n");
sb.Append(" BankAccount: ").Append(BankAccount).Append("\n");
+ sb.Append(" Card: ").Append(Card).Append("\n");
sb.Append(" TransferInstrumentId: ").Append(TransferInstrumentId).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -121,6 +130,11 @@ public bool Equals(CounterpartyInfoV3 input)
(this.BankAccount != null &&
this.BankAccount.Equals(input.BankAccount))
) &&
+ (
+ this.Card == input.Card ||
+ (this.Card != null &&
+ this.Card.Equals(input.Card))
+ ) &&
(
this.TransferInstrumentId == input.TransferInstrumentId ||
(this.TransferInstrumentId != null &&
@@ -145,6 +159,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.BankAccount.GetHashCode();
}
+ if (this.Card != null)
+ {
+ hashCode = (hashCode * 59) + this.Card.GetHashCode();
+ }
if (this.TransferInstrumentId != null)
{
hashCode = (hashCode * 59) + this.TransferInstrumentId.GetHashCode();
diff --git a/Adyen/Model/Transfers/CounterpartyV3.cs b/Adyen/Model/Transfers/CounterpartyV3.cs
index 6fcd09298..0e035d0d5 100644
--- a/Adyen/Model/Transfers/CounterpartyV3.cs
+++ b/Adyen/Model/Transfers/CounterpartyV3.cs
@@ -35,22 +35,24 @@ public partial class CounterpartyV3 : IEquatable, IValidatableOb
///
/// Initializes a new instance of the class.
///
- /// The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id)..
+ /// The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id)..
/// bankAccount.
+ /// card.
/// merchant.
- /// The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id)..
- public CounterpartyV3(string balanceAccountId = default(string), BankAccountV3 bankAccount = default(BankAccountV3), MerchantData merchant = default(MerchantData), string transferInstrumentId = default(string))
+ /// The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id)..
+ public CounterpartyV3(string balanceAccountId = default(string), BankAccountV3 bankAccount = default(BankAccountV3), Card card = default(Card), MerchantData merchant = default(MerchantData), string transferInstrumentId = default(string))
{
this.BalanceAccountId = balanceAccountId;
this.BankAccount = bankAccount;
+ this.Card = card;
this.Merchant = merchant;
this.TransferInstrumentId = transferInstrumentId;
}
///
- /// The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id).
+ /// The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).
///
- /// The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id).
+ /// The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).
[DataMember(Name = "balanceAccountId", EmitDefaultValue = false)]
public string BalanceAccountId { get; set; }
@@ -60,6 +62,12 @@ public partial class CounterpartyV3 : IEquatable, IValidatableOb
[DataMember(Name = "bankAccount", EmitDefaultValue = false)]
public BankAccountV3 BankAccount { get; set; }
+ ///
+ /// Gets or Sets Card
+ ///
+ [DataMember(Name = "card", EmitDefaultValue = false)]
+ public Card Card { get; set; }
+
///
/// Gets or Sets Merchant
///
@@ -67,9 +75,9 @@ public partial class CounterpartyV3 : IEquatable, IValidatableOb
public MerchantData Merchant { get; set; }
///
- /// The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
+ /// The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).
///
- /// The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
+ /// The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).
[DataMember(Name = "transferInstrumentId", EmitDefaultValue = false)]
public string TransferInstrumentId { get; set; }
@@ -83,6 +91,7 @@ public override string ToString()
sb.Append("class CounterpartyV3 {\n");
sb.Append(" BalanceAccountId: ").Append(BalanceAccountId).Append("\n");
sb.Append(" BankAccount: ").Append(BankAccount).Append("\n");
+ sb.Append(" Card: ").Append(Card).Append("\n");
sb.Append(" Merchant: ").Append(Merchant).Append("\n");
sb.Append(" TransferInstrumentId: ").Append(TransferInstrumentId).Append("\n");
sb.Append("}\n");
@@ -130,6 +139,11 @@ public bool Equals(CounterpartyV3 input)
(this.BankAccount != null &&
this.BankAccount.Equals(input.BankAccount))
) &&
+ (
+ this.Card == input.Card ||
+ (this.Card != null &&
+ this.Card.Equals(input.Card))
+ ) &&
(
this.Merchant == input.Merchant ||
(this.Merchant != null &&
@@ -159,6 +173,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.BankAccount.GetHashCode();
}
+ if (this.Card != null)
+ {
+ hashCode = (hashCode * 59) + this.Card.GetHashCode();
+ }
if (this.Merchant != null)
{
hashCode = (hashCode * 59) + this.Merchant.GetHashCode();
diff --git a/Adyen/Model/Transfers/PartyIdentification.cs b/Adyen/Model/Transfers/PartyIdentification.cs
index d7c0f7173..62c87d54e 100644
--- a/Adyen/Model/Transfers/PartyIdentification.cs
+++ b/Adyen/Model/Transfers/PartyIdentification.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.Transfers
public partial class PartyIdentification : IEquatable, IValidatableObject
{
///
- /// The type of entity that owns the bank account. Possible values: **individual**, **organization**, or **unknown**.
+ /// The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**.
///
- /// The type of entity that owns the bank account. Possible values: **individual**, **organization**, or **unknown**.
+ /// The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**.
[JsonConverter(typeof(StringEnumConverter))]
public enum TypeEnum
{
@@ -61,32 +61,27 @@ public enum TypeEnum
///
- /// The type of entity that owns the bank account. Possible values: **individual**, **organization**, or **unknown**.
+ /// The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**.
///
- /// The type of entity that owns the bank account. Possible values: **individual**, **organization**, or **unknown**.
+ /// The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**.
[DataMember(Name = "type", EmitDefaultValue = false)]
public TypeEnum? Type { get; set; }
///
/// Initializes a new instance of the class.
///
- [JsonConstructorAttribute]
- protected PartyIdentification() { }
- ///
- /// Initializes a new instance of the class.
- ///
/// address.
- /// The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Should not be before January 1, 1900. Allowed only when `type` is **individual**..
- /// First name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space. .
- /// The name of the entity. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and Space. (required).
- /// Last name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space. .
- /// A unique reference to identify the party or counterparty involved in transfers. This identifier ensures consistency and uniqueness throughout all transactions initiated to and from the same party. For example, your client's unique wallet or payee ID..
- /// The type of entity that owns the bank account. Possible values: **individual**, **organization**, or **unknown**. (default to TypeEnum.Unknown).
+ /// The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**..
+ /// The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**..
+ /// The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**..
+ /// The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**..
+ /// A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`..
+ /// The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. (default to TypeEnum.Unknown).
public PartyIdentification(Address address = default(Address), DateTime dateOfBirth = default(DateTime), string firstName = default(string), string fullName = default(string), string lastName = default(string), string reference = default(string), TypeEnum? type = TypeEnum.Unknown)
{
- this.FullName = fullName;
this.Address = address;
this.DateOfBirth = dateOfBirth;
this.FirstName = firstName;
+ this.FullName = fullName;
this.LastName = lastName;
this.Reference = reference;
this.Type = type;
@@ -99,38 +94,38 @@ protected PartyIdentification() { }
public Address Address { get; set; }
///
- /// The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Should not be before January 1, 1900. Allowed only when `type` is **individual**.
+ /// The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**.
///
- /// The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Should not be before January 1, 1900. Allowed only when `type` is **individual**.
+ /// The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**.
[DataMember(Name = "dateOfBirth", EmitDefaultValue = false)]
[JsonConverter(typeof(OpenAPIDateConverter))]
public DateTime DateOfBirth { get; set; }
///
- /// First name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space.
+ /// The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.
///
- /// First name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space.
+ /// The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.
[DataMember(Name = "firstName", EmitDefaultValue = false)]
public string FirstName { get; set; }
///
- /// The name of the entity. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and Space.
+ /// The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**.
///
- /// The name of the entity. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and Space.
- [DataMember(Name = "fullName", IsRequired = false, EmitDefaultValue = false)]
+ /// The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**.
+ [DataMember(Name = "fullName", EmitDefaultValue = false)]
public string FullName { get; set; }
///
- /// Last name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space.
+ /// The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.
///
- /// Last name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space.
+ /// The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.
[DataMember(Name = "lastName", EmitDefaultValue = false)]
public string LastName { get; set; }
///
- /// A unique reference to identify the party or counterparty involved in transfers. This identifier ensures consistency and uniqueness throughout all transactions initiated to and from the same party. For example, your client's unique wallet or payee ID.
+ /// A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`.
///
- /// A unique reference to identify the party or counterparty involved in transfers. This identifier ensures consistency and uniqueness throughout all transactions initiated to and from the same party. For example, your client's unique wallet or payee ID.
+ /// A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`.
[DataMember(Name = "reference", EmitDefaultValue = false)]
public string Reference { get; set; }
diff --git a/Adyen/Model/Transfers/Transfer.cs b/Adyen/Model/Transfers/Transfer.cs
index a342e47a2..f471a115f 100644
--- a/Adyen/Model/Transfers/Transfer.cs
+++ b/Adyen/Model/Transfers/Transfer.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.Transfers
public partial class Transfer : IEquatable, IValidatableObject
{
///
- /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
+ /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
///
- /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
+ /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
[JsonConverter(typeof(StringEnumConverter))]
public enum CategoryEnum
{
@@ -45,31 +45,37 @@ public enum CategoryEnum
[EnumMember(Value = "bank")]
Bank = 1,
+ ///
+ /// Enum Card for value: card
+ ///
+ [EnumMember(Value = "card")]
+ Card = 2,
+
///
/// Enum Internal for value: internal
///
[EnumMember(Value = "internal")]
- Internal = 2,
+ Internal = 3,
///
/// Enum IssuedCard for value: issuedCard
///
[EnumMember(Value = "issuedCard")]
- IssuedCard = 3,
+ IssuedCard = 4,
///
/// Enum PlatformPayment for value: platformPayment
///
[EnumMember(Value = "platformPayment")]
- PlatformPayment = 4
+ PlatformPayment = 5
}
///
- /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
+ /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
///
- /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
+ /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
[DataMember(Name = "category", IsRequired = false, EmitDefaultValue = false)]
public CategoryEnum Category { get; set; }
///
@@ -644,244 +650,232 @@ public enum StatusEnum
public enum TypeEnum
{
///
- /// Enum AtmWithdrawal for value: atmWithdrawal
- ///
- [EnumMember(Value = "atmWithdrawal")]
- AtmWithdrawal = 1,
-
- ///
- /// Enum AtmWithdrawalReversal for value: atmWithdrawalReversal
- ///
- [EnumMember(Value = "atmWithdrawalReversal")]
- AtmWithdrawalReversal = 2,
-
- ///
- /// Enum BalanceAdjustment for value: balanceAdjustment
- ///
- [EnumMember(Value = "balanceAdjustment")]
- BalanceAdjustment = 3,
-
- ///
- /// Enum BalanceMigration for value: balanceMigration
- ///
- [EnumMember(Value = "balanceMigration")]
- BalanceMigration = 4,
-
- ///
- /// Enum BalanceRollover for value: balanceRollover
+ /// Enum Payment for value: payment
///
- [EnumMember(Value = "balanceRollover")]
- BalanceRollover = 5,
+ [EnumMember(Value = "payment")]
+ Payment = 1,
///
- /// Enum BankDirectDebit for value: bankDirectDebit
+ /// Enum Capture for value: capture
///
- [EnumMember(Value = "bankDirectDebit")]
- BankDirectDebit = 6,
+ [EnumMember(Value = "capture")]
+ Capture = 2,
///
- /// Enum BankTransfer for value: bankTransfer
+ /// Enum CaptureReversal for value: captureReversal
///
- [EnumMember(Value = "bankTransfer")]
- BankTransfer = 7,
+ [EnumMember(Value = "captureReversal")]
+ CaptureReversal = 3,
///
- /// Enum CapitalFundsCollection for value: capitalFundsCollection
+ /// Enum Refund for value: refund
///
- [EnumMember(Value = "capitalFundsCollection")]
- CapitalFundsCollection = 8,
+ [EnumMember(Value = "refund")]
+ Refund = 4,
///
- /// Enum Capture for value: capture
+ /// Enum RefundReversal for value: refundReversal
///
- [EnumMember(Value = "capture")]
- Capture = 9,
+ [EnumMember(Value = "refundReversal")]
+ RefundReversal = 5,
///
- /// Enum CaptureReversal for value: captureReversal
+ /// Enum Chargeback for value: chargeback
///
- [EnumMember(Value = "captureReversal")]
- CaptureReversal = 10,
+ [EnumMember(Value = "chargeback")]
+ Chargeback = 6,
///
- /// Enum CardTransfer for value: cardTransfer
+ /// Enum ChargebackCorrection for value: chargebackCorrection
///
- [EnumMember(Value = "cardTransfer")]
- CardTransfer = 11,
+ [EnumMember(Value = "chargebackCorrection")]
+ ChargebackCorrection = 7,
///
- /// Enum CashOutFee for value: cashOutFee
+ /// Enum ChargebackReversal for value: chargebackReversal
///
- [EnumMember(Value = "cashOutFee")]
- CashOutFee = 12,
+ [EnumMember(Value = "chargebackReversal")]
+ ChargebackReversal = 8,
///
- /// Enum CashOutFunding for value: cashOutFunding
+ /// Enum ChargebackReversalCorrection for value: chargebackReversalCorrection
///
- [EnumMember(Value = "cashOutFunding")]
- CashOutFunding = 13,
+ [EnumMember(Value = "chargebackReversalCorrection")]
+ ChargebackReversalCorrection = 9,
///
- /// Enum CashOutInstruction for value: cashOutInstruction
+ /// Enum SecondChargeback for value: secondChargeback
///
- [EnumMember(Value = "cashOutInstruction")]
- CashOutInstruction = 14,
+ [EnumMember(Value = "secondChargeback")]
+ SecondChargeback = 10,
///
- /// Enum CashoutFee for value: cashoutFee
+ /// Enum SecondChargebackCorrection for value: secondChargebackCorrection
///
- [EnumMember(Value = "cashoutFee")]
- CashoutFee = 15,
+ [EnumMember(Value = "secondChargebackCorrection")]
+ SecondChargebackCorrection = 11,
///
- /// Enum CashoutFunding for value: cashoutFunding
+ /// Enum AtmWithdrawal for value: atmWithdrawal
///
- [EnumMember(Value = "cashoutFunding")]
- CashoutFunding = 16,
+ [EnumMember(Value = "atmWithdrawal")]
+ AtmWithdrawal = 12,
///
- /// Enum CashoutRepayment for value: cashoutRepayment
+ /// Enum AtmWithdrawalReversal for value: atmWithdrawalReversal
///
- [EnumMember(Value = "cashoutRepayment")]
- CashoutRepayment = 17,
+ [EnumMember(Value = "atmWithdrawalReversal")]
+ AtmWithdrawalReversal = 13,
///
- /// Enum Chargeback for value: chargeback
+ /// Enum InternalTransfer for value: internalTransfer
///
- [EnumMember(Value = "chargeback")]
- Chargeback = 18,
+ [EnumMember(Value = "internalTransfer")]
+ InternalTransfer = 14,
///
- /// Enum ChargebackCorrection for value: chargebackCorrection
+ /// Enum InternalDirectDebit for value: internalDirectDebit
///
- [EnumMember(Value = "chargebackCorrection")]
- ChargebackCorrection = 19,
+ [EnumMember(Value = "internalDirectDebit")]
+ InternalDirectDebit = 15,
///
- /// Enum ChargebackReversal for value: chargebackReversal
+ /// Enum ManualCorrection for value: manualCorrection
///
- [EnumMember(Value = "chargebackReversal")]
- ChargebackReversal = 20,
+ [EnumMember(Value = "manualCorrection")]
+ ManualCorrection = 16,
///
- /// Enum ChargebackReversalCorrection for value: chargebackReversalCorrection
+ /// Enum InvoiceDeduction for value: invoiceDeduction
///
- [EnumMember(Value = "chargebackReversalCorrection")]
- ChargebackReversalCorrection = 21,
+ [EnumMember(Value = "invoiceDeduction")]
+ InvoiceDeduction = 17,
///
/// Enum DepositCorrection for value: depositCorrection
///
[EnumMember(Value = "depositCorrection")]
- DepositCorrection = 22,
+ DepositCorrection = 18,
///
- /// Enum Fee for value: fee
+ /// Enum ReserveAdjustment for value: reserveAdjustment
///
- [EnumMember(Value = "fee")]
- Fee = 23,
+ [EnumMember(Value = "reserveAdjustment")]
+ ReserveAdjustment = 19,
///
- /// Enum Grant for value: grant
+ /// Enum BankTransfer for value: bankTransfer
///
- [EnumMember(Value = "grant")]
- Grant = 24,
+ [EnumMember(Value = "bankTransfer")]
+ BankTransfer = 20,
///
- /// Enum Installment for value: installment
+ /// Enum BankDirectDebit for value: bankDirectDebit
///
- [EnumMember(Value = "installment")]
- Installment = 25,
+ [EnumMember(Value = "bankDirectDebit")]
+ BankDirectDebit = 21,
///
- /// Enum InstallmentReversal for value: installmentReversal
+ /// Enum CardTransfer for value: cardTransfer
///
- [EnumMember(Value = "installmentReversal")]
- InstallmentReversal = 26,
+ [EnumMember(Value = "cardTransfer")]
+ CardTransfer = 22,
///
- /// Enum InternalDirectDebit for value: internalDirectDebit
+ /// Enum MiscCost for value: miscCost
///
- [EnumMember(Value = "internalDirectDebit")]
- InternalDirectDebit = 27,
+ [EnumMember(Value = "miscCost")]
+ MiscCost = 23,
///
- /// Enum InternalTransfer for value: internalTransfer
+ /// Enum PaymentCost for value: paymentCost
///
- [EnumMember(Value = "internalTransfer")]
- InternalTransfer = 28,
+ [EnumMember(Value = "paymentCost")]
+ PaymentCost = 24,
///
- /// Enum InvoiceDeduction for value: invoiceDeduction
+ /// Enum Fee for value: fee
///
- [EnumMember(Value = "invoiceDeduction")]
- InvoiceDeduction = 29,
+ [EnumMember(Value = "fee")]
+ Fee = 25,
///
/// Enum Leftover for value: leftover
///
[EnumMember(Value = "leftover")]
- Leftover = 30,
+ Leftover = 26,
///
- /// Enum ManualCorrection for value: manualCorrection
+ /// Enum Grant for value: grant
///
- [EnumMember(Value = "manualCorrection")]
- ManualCorrection = 31,
+ [EnumMember(Value = "grant")]
+ Grant = 27,
///
- /// Enum MiscCost for value: miscCost
+ /// Enum CapitalFundsCollection for value: capitalFundsCollection
///
- [EnumMember(Value = "miscCost")]
- MiscCost = 32,
+ [EnumMember(Value = "capitalFundsCollection")]
+ CapitalFundsCollection = 28,
///
- /// Enum Payment for value: payment
+ /// Enum CashOutInstruction for value: cashOutInstruction
///
- [EnumMember(Value = "payment")]
- Payment = 33,
+ [EnumMember(Value = "cashOutInstruction")]
+ CashOutInstruction = 29,
///
- /// Enum PaymentCost for value: paymentCost
+ /// Enum CashoutFee for value: cashoutFee
///
- [EnumMember(Value = "paymentCost")]
- PaymentCost = 34,
+ [EnumMember(Value = "cashoutFee")]
+ CashoutFee = 30,
///
- /// Enum Refund for value: refund
+ /// Enum CashoutRepayment for value: cashoutRepayment
///
- [EnumMember(Value = "refund")]
- Refund = 35,
+ [EnumMember(Value = "cashoutRepayment")]
+ CashoutRepayment = 31,
///
- /// Enum RefundReversal for value: refundReversal
+ /// Enum CashoutFunding for value: cashoutFunding
///
- [EnumMember(Value = "refundReversal")]
- RefundReversal = 36,
+ [EnumMember(Value = "cashoutFunding")]
+ CashoutFunding = 32,
///
/// Enum Repayment for value: repayment
///
[EnumMember(Value = "repayment")]
- Repayment = 37,
+ Repayment = 33,
///
- /// Enum ReserveAdjustment for value: reserveAdjustment
+ /// Enum Installment for value: installment
///
- [EnumMember(Value = "reserveAdjustment")]
- ReserveAdjustment = 38,
+ [EnumMember(Value = "installment")]
+ Installment = 34,
///
- /// Enum SecondChargeback for value: secondChargeback
+ /// Enum InstallmentReversal for value: installmentReversal
///
- [EnumMember(Value = "secondChargeback")]
- SecondChargeback = 39,
+ [EnumMember(Value = "installmentReversal")]
+ InstallmentReversal = 35,
///
- /// Enum SecondChargebackCorrection for value: secondChargebackCorrection
+ /// Enum BalanceAdjustment for value: balanceAdjustment
///
- [EnumMember(Value = "secondChargebackCorrection")]
- SecondChargebackCorrection = 40
+ [EnumMember(Value = "balanceAdjustment")]
+ BalanceAdjustment = 36,
+
+ ///
+ /// Enum BalanceRollover for value: balanceRollover
+ ///
+ [EnumMember(Value = "balanceRollover")]
+ BalanceRollover = 37,
+
+ ///
+ /// Enum BalanceMigration for value: balanceMigration
+ ///
+ [EnumMember(Value = "balanceMigration")]
+ BalanceMigration = 38
}
@@ -903,7 +897,7 @@ protected Transfer() { }
/// accountHolder.
/// amount (required).
/// balanceAccount.
- /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. (required).
+ /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. (required).
/// categoryData.
/// counterparty (required).
/// The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**..
diff --git a/Adyen/Model/Transfers/TransferData.cs b/Adyen/Model/Transfers/TransferData.cs
index 1e2be2296..0aacc9757 100644
--- a/Adyen/Model/Transfers/TransferData.cs
+++ b/Adyen/Model/Transfers/TransferData.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.Transfers
public partial class TransferData : IEquatable, IValidatableObject
{
///
- /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
+ /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
///
- /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
+ /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
[JsonConverter(typeof(StringEnumConverter))]
public enum CategoryEnum
{
@@ -45,31 +45,37 @@ public enum CategoryEnum
[EnumMember(Value = "bank")]
Bank = 1,
+ ///
+ /// Enum Card for value: card
+ ///
+ [EnumMember(Value = "card")]
+ Card = 2,
+
///
/// Enum Internal for value: internal
///
[EnumMember(Value = "internal")]
- Internal = 2,
+ Internal = 3,
///
/// Enum IssuedCard for value: issuedCard
///
[EnumMember(Value = "issuedCard")]
- IssuedCard = 3,
+ IssuedCard = 4,
///
/// Enum PlatformPayment for value: platformPayment
///
[EnumMember(Value = "platformPayment")]
- PlatformPayment = 4
+ PlatformPayment = 5
}
///
- /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
+ /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
///
- /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
+ /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
[DataMember(Name = "category", IsRequired = false, EmitDefaultValue = false)]
public CategoryEnum Category { get; set; }
///
@@ -644,244 +650,232 @@ public enum StatusEnum
public enum TypeEnum
{
///
- /// Enum AtmWithdrawal for value: atmWithdrawal
- ///
- [EnumMember(Value = "atmWithdrawal")]
- AtmWithdrawal = 1,
-
- ///
- /// Enum AtmWithdrawalReversal for value: atmWithdrawalReversal
- ///
- [EnumMember(Value = "atmWithdrawalReversal")]
- AtmWithdrawalReversal = 2,
-
- ///
- /// Enum BalanceAdjustment for value: balanceAdjustment
- ///
- [EnumMember(Value = "balanceAdjustment")]
- BalanceAdjustment = 3,
-
- ///
- /// Enum BalanceMigration for value: balanceMigration
- ///
- [EnumMember(Value = "balanceMigration")]
- BalanceMigration = 4,
-
- ///
- /// Enum BalanceRollover for value: balanceRollover
+ /// Enum Payment for value: payment
///
- [EnumMember(Value = "balanceRollover")]
- BalanceRollover = 5,
+ [EnumMember(Value = "payment")]
+ Payment = 1,
///
- /// Enum BankDirectDebit for value: bankDirectDebit
+ /// Enum Capture for value: capture
///
- [EnumMember(Value = "bankDirectDebit")]
- BankDirectDebit = 6,
+ [EnumMember(Value = "capture")]
+ Capture = 2,
///
- /// Enum BankTransfer for value: bankTransfer
+ /// Enum CaptureReversal for value: captureReversal
///
- [EnumMember(Value = "bankTransfer")]
- BankTransfer = 7,
+ [EnumMember(Value = "captureReversal")]
+ CaptureReversal = 3,
///
- /// Enum CapitalFundsCollection for value: capitalFundsCollection
+ /// Enum Refund for value: refund
///
- [EnumMember(Value = "capitalFundsCollection")]
- CapitalFundsCollection = 8,
+ [EnumMember(Value = "refund")]
+ Refund = 4,
///
- /// Enum Capture for value: capture
+ /// Enum RefundReversal for value: refundReversal
///
- [EnumMember(Value = "capture")]
- Capture = 9,
+ [EnumMember(Value = "refundReversal")]
+ RefundReversal = 5,
///
- /// Enum CaptureReversal for value: captureReversal
+ /// Enum Chargeback for value: chargeback
///
- [EnumMember(Value = "captureReversal")]
- CaptureReversal = 10,
+ [EnumMember(Value = "chargeback")]
+ Chargeback = 6,
///
- /// Enum CardTransfer for value: cardTransfer
+ /// Enum ChargebackCorrection for value: chargebackCorrection
///
- [EnumMember(Value = "cardTransfer")]
- CardTransfer = 11,
+ [EnumMember(Value = "chargebackCorrection")]
+ ChargebackCorrection = 7,
///
- /// Enum CashOutFee for value: cashOutFee
+ /// Enum ChargebackReversal for value: chargebackReversal
///
- [EnumMember(Value = "cashOutFee")]
- CashOutFee = 12,
+ [EnumMember(Value = "chargebackReversal")]
+ ChargebackReversal = 8,
///
- /// Enum CashOutFunding for value: cashOutFunding
+ /// Enum ChargebackReversalCorrection for value: chargebackReversalCorrection
///
- [EnumMember(Value = "cashOutFunding")]
- CashOutFunding = 13,
+ [EnumMember(Value = "chargebackReversalCorrection")]
+ ChargebackReversalCorrection = 9,
///
- /// Enum CashOutInstruction for value: cashOutInstruction
+ /// Enum SecondChargeback for value: secondChargeback
///
- [EnumMember(Value = "cashOutInstruction")]
- CashOutInstruction = 14,
+ [EnumMember(Value = "secondChargeback")]
+ SecondChargeback = 10,
///
- /// Enum CashoutFee for value: cashoutFee
+ /// Enum SecondChargebackCorrection for value: secondChargebackCorrection
///
- [EnumMember(Value = "cashoutFee")]
- CashoutFee = 15,
+ [EnumMember(Value = "secondChargebackCorrection")]
+ SecondChargebackCorrection = 11,
///
- /// Enum CashoutFunding for value: cashoutFunding
+ /// Enum AtmWithdrawal for value: atmWithdrawal
///
- [EnumMember(Value = "cashoutFunding")]
- CashoutFunding = 16,
+ [EnumMember(Value = "atmWithdrawal")]
+ AtmWithdrawal = 12,
///
- /// Enum CashoutRepayment for value: cashoutRepayment
+ /// Enum AtmWithdrawalReversal for value: atmWithdrawalReversal
///
- [EnumMember(Value = "cashoutRepayment")]
- CashoutRepayment = 17,
+ [EnumMember(Value = "atmWithdrawalReversal")]
+ AtmWithdrawalReversal = 13,
///
- /// Enum Chargeback for value: chargeback
+ /// Enum InternalTransfer for value: internalTransfer
///
- [EnumMember(Value = "chargeback")]
- Chargeback = 18,
+ [EnumMember(Value = "internalTransfer")]
+ InternalTransfer = 14,
///
- /// Enum ChargebackCorrection for value: chargebackCorrection
+ /// Enum InternalDirectDebit for value: internalDirectDebit
///
- [EnumMember(Value = "chargebackCorrection")]
- ChargebackCorrection = 19,
+ [EnumMember(Value = "internalDirectDebit")]
+ InternalDirectDebit = 15,
///
- /// Enum ChargebackReversal for value: chargebackReversal
+ /// Enum ManualCorrection for value: manualCorrection
///
- [EnumMember(Value = "chargebackReversal")]
- ChargebackReversal = 20,
+ [EnumMember(Value = "manualCorrection")]
+ ManualCorrection = 16,
///
- /// Enum ChargebackReversalCorrection for value: chargebackReversalCorrection
+ /// Enum InvoiceDeduction for value: invoiceDeduction
///
- [EnumMember(Value = "chargebackReversalCorrection")]
- ChargebackReversalCorrection = 21,
+ [EnumMember(Value = "invoiceDeduction")]
+ InvoiceDeduction = 17,
///
/// Enum DepositCorrection for value: depositCorrection
///
[EnumMember(Value = "depositCorrection")]
- DepositCorrection = 22,
+ DepositCorrection = 18,
///
- /// Enum Fee for value: fee
+ /// Enum ReserveAdjustment for value: reserveAdjustment
///
- [EnumMember(Value = "fee")]
- Fee = 23,
+ [EnumMember(Value = "reserveAdjustment")]
+ ReserveAdjustment = 19,
///
- /// Enum Grant for value: grant
+ /// Enum BankTransfer for value: bankTransfer
///
- [EnumMember(Value = "grant")]
- Grant = 24,
+ [EnumMember(Value = "bankTransfer")]
+ BankTransfer = 20,
///
- /// Enum Installment for value: installment
+ /// Enum BankDirectDebit for value: bankDirectDebit
///
- [EnumMember(Value = "installment")]
- Installment = 25,
+ [EnumMember(Value = "bankDirectDebit")]
+ BankDirectDebit = 21,
///
- /// Enum InstallmentReversal for value: installmentReversal
+ /// Enum CardTransfer for value: cardTransfer
///
- [EnumMember(Value = "installmentReversal")]
- InstallmentReversal = 26,
+ [EnumMember(Value = "cardTransfer")]
+ CardTransfer = 22,
///
- /// Enum InternalDirectDebit for value: internalDirectDebit
+ /// Enum MiscCost for value: miscCost
///
- [EnumMember(Value = "internalDirectDebit")]
- InternalDirectDebit = 27,
+ [EnumMember(Value = "miscCost")]
+ MiscCost = 23,
///
- /// Enum InternalTransfer for value: internalTransfer
+ /// Enum PaymentCost for value: paymentCost
///
- [EnumMember(Value = "internalTransfer")]
- InternalTransfer = 28,
+ [EnumMember(Value = "paymentCost")]
+ PaymentCost = 24,
///
- /// Enum InvoiceDeduction for value: invoiceDeduction
+ /// Enum Fee for value: fee
///
- [EnumMember(Value = "invoiceDeduction")]
- InvoiceDeduction = 29,
+ [EnumMember(Value = "fee")]
+ Fee = 25,
///
/// Enum Leftover for value: leftover
///
[EnumMember(Value = "leftover")]
- Leftover = 30,
+ Leftover = 26,
///
- /// Enum ManualCorrection for value: manualCorrection
+ /// Enum Grant for value: grant
///
- [EnumMember(Value = "manualCorrection")]
- ManualCorrection = 31,
+ [EnumMember(Value = "grant")]
+ Grant = 27,
///
- /// Enum MiscCost for value: miscCost
+ /// Enum CapitalFundsCollection for value: capitalFundsCollection
///
- [EnumMember(Value = "miscCost")]
- MiscCost = 32,
+ [EnumMember(Value = "capitalFundsCollection")]
+ CapitalFundsCollection = 28,
///
- /// Enum Payment for value: payment
+ /// Enum CashOutInstruction for value: cashOutInstruction
///
- [EnumMember(Value = "payment")]
- Payment = 33,
+ [EnumMember(Value = "cashOutInstruction")]
+ CashOutInstruction = 29,
///
- /// Enum PaymentCost for value: paymentCost
+ /// Enum CashoutFee for value: cashoutFee
///
- [EnumMember(Value = "paymentCost")]
- PaymentCost = 34,
+ [EnumMember(Value = "cashoutFee")]
+ CashoutFee = 30,
///
- /// Enum Refund for value: refund
+ /// Enum CashoutRepayment for value: cashoutRepayment
///
- [EnumMember(Value = "refund")]
- Refund = 35,
+ [EnumMember(Value = "cashoutRepayment")]
+ CashoutRepayment = 31,
///
- /// Enum RefundReversal for value: refundReversal
+ /// Enum CashoutFunding for value: cashoutFunding
///
- [EnumMember(Value = "refundReversal")]
- RefundReversal = 36,
+ [EnumMember(Value = "cashoutFunding")]
+ CashoutFunding = 32,
///
/// Enum Repayment for value: repayment
///
[EnumMember(Value = "repayment")]
- Repayment = 37,
+ Repayment = 33,
///
- /// Enum ReserveAdjustment for value: reserveAdjustment
+ /// Enum Installment for value: installment
///
- [EnumMember(Value = "reserveAdjustment")]
- ReserveAdjustment = 38,
+ [EnumMember(Value = "installment")]
+ Installment = 34,
///
- /// Enum SecondChargeback for value: secondChargeback
+ /// Enum InstallmentReversal for value: installmentReversal
///
- [EnumMember(Value = "secondChargeback")]
- SecondChargeback = 39,
+ [EnumMember(Value = "installmentReversal")]
+ InstallmentReversal = 35,
///
- /// Enum SecondChargebackCorrection for value: secondChargebackCorrection
+ /// Enum BalanceAdjustment for value: balanceAdjustment
///
- [EnumMember(Value = "secondChargebackCorrection")]
- SecondChargebackCorrection = 40
+ [EnumMember(Value = "balanceAdjustment")]
+ BalanceAdjustment = 36,
+
+ ///
+ /// Enum BalanceRollover for value: balanceRollover
+ ///
+ [EnumMember(Value = "balanceRollover")]
+ BalanceRollover = 37,
+
+ ///
+ /// Enum BalanceMigration for value: balanceMigration
+ ///
+ [EnumMember(Value = "balanceMigration")]
+ BalanceMigration = 38
}
@@ -905,7 +899,7 @@ protected TransferData() { }
/// balanceAccount.
/// The unique identifier of the balance platform..
/// The list of the latest balance statuses in the transfer..
- /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. (required).
+ /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. (required).
/// categoryData.
/// counterparty.
/// The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**..
diff --git a/Adyen/Model/Transfers/TransferInfo.cs b/Adyen/Model/Transfers/TransferInfo.cs
index 723162525..1526a9a9d 100644
--- a/Adyen/Model/Transfers/TransferInfo.cs
+++ b/Adyen/Model/Transfers/TransferInfo.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.Transfers
public partial class TransferInfo : IEquatable, IValidatableObject
{
///
- /// The type of transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
+ /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
///
- /// The type of transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
+ /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
[JsonConverter(typeof(StringEnumConverter))]
public enum CategoryEnum
{
@@ -45,37 +45,37 @@ public enum CategoryEnum
[EnumMember(Value = "bank")]
Bank = 1,
+ ///
+ /// Enum Card for value: card
+ ///
+ [EnumMember(Value = "card")]
+ Card = 2,
+
///
/// Enum Internal for value: internal
///
[EnumMember(Value = "internal")]
- Internal = 2,
+ Internal = 3,
///
/// Enum IssuedCard for value: issuedCard
///
[EnumMember(Value = "issuedCard")]
- IssuedCard = 3,
+ IssuedCard = 4,
///
/// Enum PlatformPayment for value: platformPayment
///
[EnumMember(Value = "platformPayment")]
- PlatformPayment = 4,
-
- ///
- /// Enum Card for value: card
- ///
- [EnumMember(Value = "card")]
- Card = 5
+ PlatformPayment = 5
}
///
- /// The type of transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
+ /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
///
- /// The type of transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
+ /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.
[DataMember(Name = "category", IsRequired = false, EmitDefaultValue = false)]
public CategoryEnum Category { get; set; }
///
@@ -226,7 +226,7 @@ protected TransferInfo() { }
///
/// amount (required).
/// The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount** assigned to the balance account, you must specify the [payment instrument ID](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id) of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account..
- /// The type of transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. (required).
+ /// The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. (required).
/// counterparty (required).
/// Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?**.
/// The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount**, you must specify the payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account..
diff --git a/Adyen/Model/Transfers/TransferNotificationCounterParty.cs b/Adyen/Model/Transfers/TransferNotificationCounterParty.cs
index a6e08e102..4082ae956 100644
--- a/Adyen/Model/Transfers/TransferNotificationCounterParty.cs
+++ b/Adyen/Model/Transfers/TransferNotificationCounterParty.cs
@@ -35,22 +35,24 @@ public partial class TransferNotificationCounterParty : IEquatable
/// Initializes a new instance of the class.
///
- /// The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id)..
+ /// The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id)..
/// bankAccount.
+ /// card.
/// merchant.
- /// The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id)..
- public TransferNotificationCounterParty(string balanceAccountId = default(string), BankAccountV3 bankAccount = default(BankAccountV3), TransferNotificationMerchantData merchant = default(TransferNotificationMerchantData), string transferInstrumentId = default(string))
+ /// The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id)..
+ public TransferNotificationCounterParty(string balanceAccountId = default(string), BankAccountV3 bankAccount = default(BankAccountV3), Card card = default(Card), TransferNotificationMerchantData merchant = default(TransferNotificationMerchantData), string transferInstrumentId = default(string))
{
this.BalanceAccountId = balanceAccountId;
this.BankAccount = bankAccount;
+ this.Card = card;
this.Merchant = merchant;
this.TransferInstrumentId = transferInstrumentId;
}
///
- /// The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id).
+ /// The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).
///
- /// The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id).
+ /// The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).
[DataMember(Name = "balanceAccountId", EmitDefaultValue = false)]
public string BalanceAccountId { get; set; }
@@ -60,6 +62,12 @@ public partial class TransferNotificationCounterParty : IEquatable
+ /// Gets or Sets Card
+ ///
+ [DataMember(Name = "card", EmitDefaultValue = false)]
+ public Card Card { get; set; }
+
///
/// Gets or Sets Merchant
///
@@ -67,9 +75,9 @@ public partial class TransferNotificationCounterParty : IEquatable
- /// The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
+ /// The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).
///
- /// The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
+ /// The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).
[DataMember(Name = "transferInstrumentId", EmitDefaultValue = false)]
public string TransferInstrumentId { get; set; }
@@ -83,6 +91,7 @@ public override string ToString()
sb.Append("class TransferNotificationCounterParty {\n");
sb.Append(" BalanceAccountId: ").Append(BalanceAccountId).Append("\n");
sb.Append(" BankAccount: ").Append(BankAccount).Append("\n");
+ sb.Append(" Card: ").Append(Card).Append("\n");
sb.Append(" Merchant: ").Append(Merchant).Append("\n");
sb.Append(" TransferInstrumentId: ").Append(TransferInstrumentId).Append("\n");
sb.Append("}\n");
@@ -130,6 +139,11 @@ public bool Equals(TransferNotificationCounterParty input)
(this.BankAccount != null &&
this.BankAccount.Equals(input.BankAccount))
) &&
+ (
+ this.Card == input.Card ||
+ (this.Card != null &&
+ this.Card.Equals(input.Card))
+ ) &&
(
this.Merchant == input.Merchant ||
(this.Merchant != null &&
@@ -159,6 +173,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.BankAccount.GetHashCode();
}
+ if (this.Card != null)
+ {
+ hashCode = (hashCode * 59) + this.Card.GetHashCode();
+ }
if (this.Merchant != null)
{
hashCode = (hashCode * 59) + this.Merchant.GetHashCode();
diff --git a/Adyen/Model/Transfers/UltimatePartyIdentification.cs b/Adyen/Model/Transfers/UltimatePartyIdentification.cs
index c7a5df27b..820f42a56 100644
--- a/Adyen/Model/Transfers/UltimatePartyIdentification.cs
+++ b/Adyen/Model/Transfers/UltimatePartyIdentification.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.Transfers
public partial class UltimatePartyIdentification : IEquatable, IValidatableObject
{
///
- /// The type of entity that owns the bank account. Possible values: **individual**, **organization**, or **unknown**.
+ /// The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**.
///
- /// The type of entity that owns the bank account. Possible values: **individual**, **organization**, or **unknown**.
+ /// The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**.
[JsonConverter(typeof(StringEnumConverter))]
public enum TypeEnum
{
@@ -61,32 +61,27 @@ public enum TypeEnum
///
- /// The type of entity that owns the bank account. Possible values: **individual**, **organization**, or **unknown**.
+ /// The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**.
///
- /// The type of entity that owns the bank account. Possible values: **individual**, **organization**, or **unknown**.
+ /// The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**.
[DataMember(Name = "type", EmitDefaultValue = false)]
public TypeEnum? Type { get; set; }
///
/// Initializes a new instance of the class.
///
- [JsonConstructorAttribute]
- protected UltimatePartyIdentification() { }
- ///
- /// Initializes a new instance of the class.
- ///
/// address.
- /// The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Should not be before January 1, 1900. Allowed only when `type` is **individual**..
- /// First name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space. .
- /// The name of the entity. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and Space. (required).
- /// Last name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space. .
- /// A unique reference to identify the party or counterparty involved in transfers. This identifier ensures consistency and uniqueness throughout all transactions initiated to and from the same party. For example, your client's unique wallet or payee ID..
- /// The type of entity that owns the bank account. Possible values: **individual**, **organization**, or **unknown**. (default to TypeEnum.Unknown).
+ /// The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**..
+ /// The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**..
+ /// The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**..
+ /// The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**..
+ /// A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`..
+ /// The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**. (default to TypeEnum.Unknown).
public UltimatePartyIdentification(Address address = default(Address), DateTime dateOfBirth = default(DateTime), string firstName = default(string), string fullName = default(string), string lastName = default(string), string reference = default(string), TypeEnum? type = TypeEnum.Unknown)
{
- this.FullName = fullName;
this.Address = address;
this.DateOfBirth = dateOfBirth;
this.FirstName = firstName;
+ this.FullName = fullName;
this.LastName = lastName;
this.Reference = reference;
this.Type = type;
@@ -99,38 +94,38 @@ protected UltimatePartyIdentification() { }
public Address Address { get; set; }
///
- /// The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Should not be before January 1, 1900. Allowed only when `type` is **individual**.
+ /// The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**.
///
- /// The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Should not be before January 1, 1900. Allowed only when `type` is **individual**.
+ /// The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**.
[DataMember(Name = "dateOfBirth", EmitDefaultValue = false)]
[JsonConverter(typeof(OpenAPIDateConverter))]
public DateTime DateOfBirth { get; set; }
///
- /// First name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space.
+ /// The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.
///
- /// First name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space.
+ /// The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.
[DataMember(Name = "firstName", EmitDefaultValue = false)]
public string FirstName { get; set; }
///
- /// The name of the entity. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and Space.
+ /// The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**.
///
- /// The name of the entity. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and Space.
- [DataMember(Name = "fullName", IsRequired = false, EmitDefaultValue = false)]
+ /// The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**.
+ [DataMember(Name = "fullName", EmitDefaultValue = false)]
public string FullName { get; set; }
///
- /// Last name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space.
+ /// The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.
///
- /// Last name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space.
+ /// The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.
[DataMember(Name = "lastName", EmitDefaultValue = false)]
public string LastName { get; set; }
///
- /// A unique reference to identify the party or counterparty involved in transfers. This identifier ensures consistency and uniqueness throughout all transactions initiated to and from the same party. For example, your client's unique wallet or payee ID.
+ /// A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`.
///
- /// A unique reference to identify the party or counterparty involved in transfers. This identifier ensures consistency and uniqueness throughout all transactions initiated to and from the same party. For example, your client's unique wallet or payee ID.
+ /// A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`.
[DataMember(Name = "reference", EmitDefaultValue = false)]
public string Reference { get; set; }
diff --git a/Adyen/Service/Checkout/DonationsService.cs b/Adyen/Service/Checkout/DonationsService.cs
index 1536053dd..c9e869252 100644
--- a/Adyen/Service/Checkout/DonationsService.cs
+++ b/Adyen/Service/Checkout/DonationsService.cs
@@ -24,6 +24,23 @@ namespace Adyen.Service.Checkout
///
public interface IDonationsService
{
+ ///
+ /// Get a list of donation campaigns.
+ ///
+ /// -
+ /// - Additional request options.
+ /// .
+ Model.Checkout.DonationCampaignsResponse DonationCampaigns(DonationCampaignsRequest donationCampaignsRequest = default, RequestOptions requestOptions = default);
+
+ ///
+ /// Get a list of donation campaigns.
+ ///
+ /// -
+ /// - Additional request options.
+ /// A CancellationToken enables cooperative cancellation between threads, thread pool work items, or Task objects.
+ /// Task of .
+ Task DonationCampaignsAsync(DonationCampaignsRequest donationCampaignsRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default);
+
///
/// Start a transaction for donations
///
@@ -55,6 +72,18 @@ public DonationsService(Client client) : base(client)
_baseUrl = CreateBaseUrl("https://checkout-test.adyen.com/v71");
}
+ public Model.Checkout.DonationCampaignsResponse DonationCampaigns(DonationCampaignsRequest donationCampaignsRequest = default, RequestOptions requestOptions = default)
+ {
+ return DonationCampaignsAsync(donationCampaignsRequest, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult();
+ }
+
+ public async Task DonationCampaignsAsync(DonationCampaignsRequest donationCampaignsRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default)
+ {
+ var endpoint = _baseUrl + "/donationCampaigns";
+ var resource = new ServiceResource(this, endpoint);
+ return await resource.RequestAsync(donationCampaignsRequest.ToJson(), requestOptions, new HttpMethod("POST"), cancellationToken).ConfigureAwait(false);
+ }
+
public Model.Checkout.DonationPaymentResponse Donations(DonationPaymentRequest donationPaymentRequest = default, RequestOptions requestOptions = default)
{
return DonationsAsync(donationPaymentRequest, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult();
diff --git a/Adyen/Service/PaymentsAppService.cs b/Adyen/Service/PaymentsAppService.cs
new file mode 100644
index 000000000..1944da24c
--- /dev/null
+++ b/Adyen/Service/PaymentsAppService.cs
@@ -0,0 +1,216 @@
+/*
+* Payments App API
+*
+*
+* The version of the OpenAPI document: 1
+*
+* 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.Generic;
+using System.Net.Http;
+using System.Threading;
+using System.Threading.Tasks;
+using Adyen.Model;
+using Adyen.Model.PaymentsApp;
+
+namespace Adyen.Service
+{
+ ///
+ /// PaymentsAppService Interface
+ ///
+ public interface IPaymentsAppService
+ {
+ ///
+ /// Create a boarding token - merchant level
+ ///
+ /// - The unique identifier of the merchant account.
+ /// -
+ /// - Additional request options.
+ /// .
+ Model.PaymentsApp.BoardingTokenResponse GeneratePaymentsAppBoardingTokenForMerchant(string merchantId, BoardingTokenRequest boardingTokenRequest, RequestOptions requestOptions = default);
+
+ ///
+ /// Create a boarding token - merchant level
+ ///
+ /// - The unique identifier of the merchant account.
+ /// -
+ /// - Additional request options.
+ /// A CancellationToken enables cooperative cancellation between threads, thread pool work items, or Task objects.
+ /// Task of .
+ Task GeneratePaymentsAppBoardingTokenForMerchantAsync(string merchantId, BoardingTokenRequest boardingTokenRequest, RequestOptions requestOptions = default, CancellationToken cancellationToken = default);
+
+ ///
+ /// Create a boarding token - store level
+ ///
+ /// - The unique identifier of the merchant account.
+ /// - The unique identifier of the store.
+ /// -
+ /// - Additional request options.
+ /// .
+ Model.PaymentsApp.BoardingTokenResponse GeneratePaymentsAppBoardingTokenForStore(string merchantId, string storeId, BoardingTokenRequest boardingTokenRequest, RequestOptions requestOptions = default);
+
+ ///
+ /// Create a boarding token - store level
+ ///
+ /// - The unique identifier of the merchant account.
+ /// - The unique identifier of the store.
+ /// -
+ /// - Additional request options.
+ /// A CancellationToken enables cooperative cancellation between threads, thread pool work items, or Task objects.
+ /// Task of .
+ Task GeneratePaymentsAppBoardingTokenForStoreAsync(string merchantId, string storeId, BoardingTokenRequest boardingTokenRequest, RequestOptions requestOptions = default, CancellationToken cancellationToken = default);
+
+ ///
+ /// Get a list of Payments Apps - merchant level
+ ///
+ /// - The unique identifier of the merchant account.
+ /// - The status of the Payments App. Comma-separated list of one or more values. If no value is provided, the list returns all statuses. Possible values: * **BOARDING** * **BOARDED** * **REVOKED**
+ /// - The number of items to return.
+ /// - The number of items to skip.
+ /// - Additional request options.
+ /// .
+ Model.PaymentsApp.PaymentsAppResponse ListPaymentsAppForMerchant(string merchantId, string statuses = default, int? limit = default, long? offset = default, RequestOptions requestOptions = default);
+
+ ///
+ /// Get a list of Payments Apps - merchant level
+ ///
+ /// - The unique identifier of the merchant account.
+ /// - The status of the Payments App. Comma-separated list of one or more values. If no value is provided, the list returns all statuses. Possible values: * **BOARDING** * **BOARDED** * **REVOKED**
+ /// - The number of items to return.
+ /// - The number of items to skip.
+ /// - Additional request options.
+ /// A CancellationToken enables cooperative cancellation between threads, thread pool work items, or Task objects.
+ /// Task of .
+ Task ListPaymentsAppForMerchantAsync(string merchantId, string statuses = default, int? limit = default, long? offset = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default);
+
+ ///
+ /// Get a list of Payments Apps - store level
+ ///
+ /// - The unique identifier of the merchant account.
+ /// - The unique identifier of the store.
+ /// - The status of the Payments App. Comma-separated list of one or more values. If no value is provided, the list returns all statuses. Possible values: * **BOARDING** * **BOARDED** * **REVOKED**
+ /// - The number of items to return.
+ /// - The number of items to skip.
+ /// - Additional request options.
+ /// .
+ Model.PaymentsApp.PaymentsAppResponse ListPaymentsAppForStore(string merchantId, string storeId, string statuses = default, int? limit = default, long? offset = default, RequestOptions requestOptions = default);
+
+ ///
+ /// Get a list of Payments Apps - store level
+ ///
+ /// - The unique identifier of the merchant account.
+ /// - The unique identifier of the store.
+ /// - The status of the Payments App. Comma-separated list of one or more values. If no value is provided, the list returns all statuses. Possible values: * **BOARDING** * **BOARDED** * **REVOKED**
+ /// - The number of items to return.
+ /// - The number of items to skip.
+ /// - Additional request options.
+ /// A CancellationToken enables cooperative cancellation between threads, thread pool work items, or Task objects.
+ /// Task of .
+ Task ListPaymentsAppForStoreAsync(string merchantId, string storeId, string statuses = default, int? limit = default, long? offset = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default);
+
+ ///
+ /// Revoke Payments App instance authentication
+ ///
+ /// - The unique identifier of the merchant account.
+ /// - The unique identifier of the Payments App instance on a device.
+ /// - Additional request options.
+ void RevokePaymentsApp(string merchantId, string installationId, RequestOptions requestOptions = default);
+
+ ///
+ /// Revoke Payments App instance authentication
+ ///
+ /// - The unique identifier of the merchant account.
+ /// - The unique identifier of the Payments App instance on a device.
+ /// - Additional request options.
+ /// A CancellationToken enables cooperative cancellation between threads, thread pool work items, or Task objects.
+ Task RevokePaymentsAppAsync(string merchantId, string installationId, RequestOptions requestOptions = default, CancellationToken cancellationToken = default);
+
+ }
+
+ ///
+ /// Represents a collection of functions to interact with the PaymentsAppService API endpoints
+ ///
+ public class PaymentsAppService : AbstractService, IPaymentsAppService
+ {
+ private readonly string _baseUrl;
+
+ public PaymentsAppService(Client client) : base(client)
+ {
+ _baseUrl = CreateBaseUrl("https://management-live.adyen.com/v1");
+ }
+
+ public Model.PaymentsApp.BoardingTokenResponse GeneratePaymentsAppBoardingTokenForMerchant(string merchantId, BoardingTokenRequest boardingTokenRequest, RequestOptions requestOptions = default)
+ {
+ return GeneratePaymentsAppBoardingTokenForMerchantAsync(merchantId, boardingTokenRequest, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult();
+ }
+
+ public async Task GeneratePaymentsAppBoardingTokenForMerchantAsync(string merchantId, BoardingTokenRequest boardingTokenRequest, RequestOptions requestOptions = default, CancellationToken cancellationToken = default)
+ {
+ var endpoint = _baseUrl + $"/merchants/{merchantId}/generatePaymentsAppBoardingToken";
+ var resource = new ServiceResource(this, endpoint);
+ return await resource.RequestAsync(boardingTokenRequest.ToJson(), requestOptions, new HttpMethod("POST"), cancellationToken).ConfigureAwait(false);
+ }
+
+ public Model.PaymentsApp.BoardingTokenResponse GeneratePaymentsAppBoardingTokenForStore(string merchantId, string storeId, BoardingTokenRequest boardingTokenRequest, RequestOptions requestOptions = default)
+ {
+ return GeneratePaymentsAppBoardingTokenForStoreAsync(merchantId, storeId, boardingTokenRequest, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult();
+ }
+
+ public async Task GeneratePaymentsAppBoardingTokenForStoreAsync(string merchantId, string storeId, BoardingTokenRequest boardingTokenRequest, RequestOptions requestOptions = default, CancellationToken cancellationToken = default)
+ {
+ var endpoint = _baseUrl + $"/merchants/{merchantId}/stores/{storeId}/generatePaymentsAppBoardingToken";
+ var resource = new ServiceResource(this, endpoint);
+ return await resource.RequestAsync(boardingTokenRequest.ToJson(), requestOptions, new HttpMethod("POST"), cancellationToken).ConfigureAwait(false);
+ }
+
+ public Model.PaymentsApp.PaymentsAppResponse ListPaymentsAppForMerchant(string merchantId, string statuses = default, int? limit = default, long? offset = default, RequestOptions requestOptions = default)
+ {
+ return ListPaymentsAppForMerchantAsync(merchantId, statuses, limit, offset, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult();
+ }
+
+ public async Task ListPaymentsAppForMerchantAsync(string merchantId, string statuses = default, int? limit = default, long? offset = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default)
+ {
+ // Build the query string
+ var queryParams = new Dictionary();
+ if (statuses != null) queryParams.Add("statuses", statuses);
+ if (limit != null) queryParams.Add("limit", limit.ToString());
+ if (offset != null) queryParams.Add("offset", offset.ToString());
+ var endpoint = _baseUrl + $"/merchants/{merchantId}/paymentsApps" + ToQueryString(queryParams);
+ var resource = new ServiceResource(this, endpoint);
+ return await resource.RequestAsync(null, requestOptions, new HttpMethod("GET"), cancellationToken).ConfigureAwait(false);
+ }
+
+ public Model.PaymentsApp.PaymentsAppResponse ListPaymentsAppForStore(string merchantId, string storeId, string statuses = default, int? limit = default, long? offset = default, RequestOptions requestOptions = default)
+ {
+ return ListPaymentsAppForStoreAsync(merchantId, storeId, statuses, limit, offset, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult();
+ }
+
+ public async Task ListPaymentsAppForStoreAsync(string merchantId, string storeId, string statuses = default, int? limit = default, long? offset = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default)
+ {
+ // Build the query string
+ var queryParams = new Dictionary();
+ if (statuses != null) queryParams.Add("statuses", statuses);
+ if (limit != null) queryParams.Add("limit", limit.ToString());
+ if (offset != null) queryParams.Add("offset", offset.ToString());
+ var endpoint = _baseUrl + $"/merchants/{merchantId}/stores/{storeId}/paymentsApps" + ToQueryString(queryParams);
+ var resource = new ServiceResource(this, endpoint);
+ return await resource.RequestAsync(null, requestOptions, new HttpMethod("GET"), cancellationToken).ConfigureAwait(false);
+ }
+
+ public void RevokePaymentsApp(string merchantId, string installationId, RequestOptions requestOptions = default)
+ {
+ RevokePaymentsAppAsync(merchantId, installationId, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult();
+ }
+
+ public async Task RevokePaymentsAppAsync(string merchantId, string installationId, RequestOptions requestOptions = default, CancellationToken cancellationToken = default)
+ {
+ var endpoint = _baseUrl + $"/merchants/{merchantId}/paymentsApps/{installationId}/revoke";
+ var resource = new ServiceResource(this, endpoint);
+ await resource.RequestAsync(null, requestOptions, new HttpMethod("POST"), cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file