diff --git a/Adyen/Model/BalancePlatform/CreateSweepConfigurationV2.cs b/Adyen/Model/BalancePlatform/CreateSweepConfigurationV2.cs
index d3e3d023d..fbb7580cd 100644
--- a/Adyen/Model/BalancePlatform/CreateSweepConfigurationV2.cs
+++ b/Adyen/Model/BalancePlatform/CreateSweepConfigurationV2.cs
@@ -395,6 +395,13 @@ protected CreateSweepConfigurationV2() { }
[DataMember(Name = "description", EmitDefaultValue = false)]
public string Description { get; set; }
+ ///
+ /// The human readable reason for disabling the sweep.
+ ///
+ /// The human readable reason for disabling the sweep.
+ [DataMember(Name = "reasonDetail", EmitDefaultValue = false)]
+ public string ReasonDetail { get; private set; }
+
///
/// Your reference for the sweep configuration.
///
@@ -447,6 +454,7 @@ public override string ToString()
sb.Append(" Description: ").Append(Description).Append("\n");
sb.Append(" Priorities: ").Append(Priorities).Append("\n");
sb.Append(" Reason: ").Append(Reason).Append("\n");
+ sb.Append(" ReasonDetail: ").Append(ReasonDetail).Append("\n");
sb.Append(" Reference: ").Append(Reference).Append("\n");
sb.Append(" ReferenceForBeneficiary: ").Append(ReferenceForBeneficiary).Append("\n");
sb.Append(" Schedule: ").Append(Schedule).Append("\n");
@@ -517,6 +525,11 @@ public bool Equals(CreateSweepConfigurationV2 input)
this.Reason == input.Reason ||
this.Reason.Equals(input.Reason)
) &&
+ (
+ this.ReasonDetail == input.ReasonDetail ||
+ (this.ReasonDetail != null &&
+ this.ReasonDetail.Equals(input.ReasonDetail))
+ ) &&
(
this.Reference == input.Reference ||
(this.Reference != null &&
@@ -581,6 +594,10 @@ public override int GetHashCode()
}
hashCode = (hashCode * 59) + this.Priorities.GetHashCode();
hashCode = (hashCode * 59) + this.Reason.GetHashCode();
+ if (this.ReasonDetail != null)
+ {
+ hashCode = (hashCode * 59) + this.ReasonDetail.GetHashCode();
+ }
if (this.Reference != null)
{
hashCode = (hashCode * 59) + this.Reference.GetHashCode();
diff --git a/Adyen/Model/BalancePlatform/SweepConfigurationV2.cs b/Adyen/Model/BalancePlatform/SweepConfigurationV2.cs
index afb343a78..a06b3f8b6 100644
--- a/Adyen/Model/BalancePlatform/SweepConfigurationV2.cs
+++ b/Adyen/Model/BalancePlatform/SweepConfigurationV2.cs
@@ -402,6 +402,13 @@ protected SweepConfigurationV2() { }
[DataMember(Name = "id", IsRequired = false, EmitDefaultValue = false)]
public string Id { get; private set; }
+ ///
+ /// The human readable reason for disabling the sweep.
+ ///
+ /// The human readable reason for disabling the sweep.
+ [DataMember(Name = "reasonDetail", EmitDefaultValue = false)]
+ public string ReasonDetail { get; private set; }
+
///
/// Your reference for the sweep configuration.
///
@@ -455,6 +462,7 @@ public override string ToString()
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Priorities: ").Append(Priorities).Append("\n");
sb.Append(" Reason: ").Append(Reason).Append("\n");
+ sb.Append(" ReasonDetail: ").Append(ReasonDetail).Append("\n");
sb.Append(" Reference: ").Append(Reference).Append("\n");
sb.Append(" ReferenceForBeneficiary: ").Append(ReferenceForBeneficiary).Append("\n");
sb.Append(" Schedule: ").Append(Schedule).Append("\n");
@@ -530,6 +538,11 @@ public bool Equals(SweepConfigurationV2 input)
this.Reason == input.Reason ||
this.Reason.Equals(input.Reason)
) &&
+ (
+ this.ReasonDetail == input.ReasonDetail ||
+ (this.ReasonDetail != null &&
+ this.ReasonDetail.Equals(input.ReasonDetail))
+ ) &&
(
this.Reference == input.Reference ||
(this.Reference != null &&
@@ -598,6 +611,10 @@ public override int GetHashCode()
}
hashCode = (hashCode * 59) + this.Priorities.GetHashCode();
hashCode = (hashCode * 59) + this.Reason.GetHashCode();
+ if (this.ReasonDetail != null)
+ {
+ hashCode = (hashCode * 59) + this.ReasonDetail.GetHashCode();
+ }
if (this.Reference != null)
{
hashCode = (hashCode * 59) + this.Reference.GetHashCode();
diff --git a/Adyen/Model/BalancePlatform/UpdateSweepConfigurationV2.cs b/Adyen/Model/BalancePlatform/UpdateSweepConfigurationV2.cs
index f8721417e..204f7cc72 100644
--- a/Adyen/Model/BalancePlatform/UpdateSweepConfigurationV2.cs
+++ b/Adyen/Model/BalancePlatform/UpdateSweepConfigurationV2.cs
@@ -397,6 +397,13 @@ public enum TypeEnum
[DataMember(Name = "id", EmitDefaultValue = false)]
public string Id { get; private set; }
+ ///
+ /// The human readable reason for disabling the sweep.
+ ///
+ /// The human readable reason for disabling the sweep.
+ [DataMember(Name = "reasonDetail", EmitDefaultValue = false)]
+ public string ReasonDetail { get; private set; }
+
///
/// Your reference for the sweep configuration.
///
@@ -450,6 +457,7 @@ public override string ToString()
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Priorities: ").Append(Priorities).Append("\n");
sb.Append(" Reason: ").Append(Reason).Append("\n");
+ sb.Append(" ReasonDetail: ").Append(ReasonDetail).Append("\n");
sb.Append(" Reference: ").Append(Reference).Append("\n");
sb.Append(" ReferenceForBeneficiary: ").Append(ReferenceForBeneficiary).Append("\n");
sb.Append(" Schedule: ").Append(Schedule).Append("\n");
@@ -525,6 +533,11 @@ public bool Equals(UpdateSweepConfigurationV2 input)
this.Reason == input.Reason ||
this.Reason.Equals(input.Reason)
) &&
+ (
+ this.ReasonDetail == input.ReasonDetail ||
+ (this.ReasonDetail != null &&
+ this.ReasonDetail.Equals(input.ReasonDetail))
+ ) &&
(
this.Reference == input.Reference ||
(this.Reference != null &&
@@ -593,6 +606,10 @@ public override int GetHashCode()
}
hashCode = (hashCode * 59) + this.Priorities.GetHashCode();
hashCode = (hashCode * 59) + this.Reason.GetHashCode();
+ if (this.ReasonDetail != null)
+ {
+ hashCode = (hashCode * 59) + this.ReasonDetail.GetHashCode();
+ }
if (this.Reference != null)
{
hashCode = (hashCode * 59) + this.Reference.GetHashCode();
diff --git a/Adyen/Model/Checkout/Amount.cs b/Adyen/Model/Checkout/Amount.cs
index 088e1b607..86a10a75e 100644
--- a/Adyen/Model/Checkout/Amount.cs
+++ b/Adyen/Model/Checkout/Amount.cs
@@ -40,8 +40,8 @@ protected Amount() { }
///
/// Initializes a new instance of the class.
///
- /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). (required).
- /// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). (required).
+ /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). (required).
+ /// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). (required).
public Amount(string currency = default(string), long? value = default(long?))
{
this.Currency = currency;
@@ -49,16 +49,16 @@ protected Amount() { }
}
///
- /// 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#currency-codes).
///
- /// 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#currency-codes).
[DataMember(Name = "currency", IsRequired = false, EmitDefaultValue = false)]
public string Currency { get; set; }
///
- /// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
+ /// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
///
- /// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
+ /// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
[DataMember(Name = "value", IsRequired = false, EmitDefaultValue = false)]
public long? Value { get; set; }
diff --git a/Adyen/Model/Checkout/CheckoutPaymentMethod.cs b/Adyen/Model/Checkout/CheckoutPaymentMethod.cs
index 138676676..92b40e5ed 100644
--- a/Adyen/Model/Checkout/CheckoutPaymentMethod.cs
+++ b/Adyen/Model/Checkout/CheckoutPaymentMethod.cs
@@ -454,6 +454,18 @@ public CheckoutPaymentMethod(PaymentDetails 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 PseDetails.
+ public CheckoutPaymentMethod(PseDetails 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
@@ -764,6 +776,10 @@ public override Object ActualInstance
{
this._actualInstance = value;
}
+ else if (value.GetType() == typeof(PseDetails))
+ {
+ this._actualInstance = value;
+ }
else if (value.GetType() == typeof(RatepayDetails))
{
this._actualInstance = value;
@@ -818,7 +834,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, EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, GenericIssuerPaymentMethodDetails, GiropayDetails, GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, PayToDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, RatepayDetails, RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, TwintDetails, 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, EBankingFinlandDetails, EcontextVoucherDetails, EftDetails, GenericIssuerPaymentMethodDetails, GiropayDetails, GooglePayDetails, IdealDetails, KlarnaDetails, MasterpassDetails, MbwayDetails, MobilePayDetails, MolPayDetails, OpenInvoiceDetails, PayByBankAISDirectDebitDetails, PayByBankDetails, PayPalDetails, PayToDetails, PayUUpiDetails, PayWithGoogleDetails, PaymentDetails, PseDetails, RatepayDetails, RivertyDetails, SamsungPayDetails, SepaDirectDebitDetails, StoredPaymentMethodDetails, TwintDetails, UpiCollectDetails, UpiIntentDetails, VippsDetails, VisaCheckoutDetails, WeChatPayDetails, WeChatPayMiniProgramDetails, ZipDetails");
}
}
}
@@ -1173,6 +1189,16 @@ public PaymentDetails GetPaymentDetails()
return (PaymentDetails)this.ActualInstance;
}
+ ///
+ /// Get the actual instance of `PseDetails`. If the actual instance is not `PseDetails`,
+ /// the InvalidClassException will be thrown
+ ///
+ /// An instance of PseDetails
+ public PseDetails GetPseDetails()
+ {
+ return (PseDetails)this.ActualInstance;
+ }
+
///
/// Get the actual instance of `RatepayDetails`. If the actual instance is not `RatepayDetails`,
/// the InvalidClassException will be thrown
@@ -1594,6 +1620,13 @@ public static CheckoutPaymentMethod FromJson(string jsonString)
matchedTypes.Add("PaymentDetails");
match++;
}
+ // Check if the jsonString type enum matches the PseDetails type enums
+ if (ContainsValue(type))
+ {
+ newCheckoutPaymentMethod = new CheckoutPaymentMethod(JsonConvert.DeserializeObject(jsonString, CheckoutPaymentMethod.SerializerSettings));
+ matchedTypes.Add("PseDetails");
+ match++;
+ }
// Check if the jsonString type enum matches the RatepayDetails type enums
if (ContainsValue(type))
{
diff --git a/Adyen/Model/Checkout/PseDetails.cs b/Adyen/Model/Checkout/PseDetails.cs
new file mode 100644
index 000000000..1d09e8d45
--- /dev/null
+++ b/Adyen/Model/Checkout/PseDetails.cs
@@ -0,0 +1,240 @@
+/*
+* 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
+{
+ ///
+ /// PseDetails
+ ///
+ [DataContract(Name = "PseDetails")]
+ public partial class PseDetails : IEquatable, IValidatableObject
+ {
+ ///
+ /// The payment method type.
+ ///
+ /// The payment method type.
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum TypeEnum
+ {
+ ///
+ /// Enum PsePayulatam for value: pse_payulatam
+ ///
+ [EnumMember(Value = "pse_payulatam")]
+ PsePayulatam = 1
+
+ }
+
+
+ ///
+ /// The payment method type.
+ ///
+ /// The payment method type.
+ [DataMember(Name = "type", EmitDefaultValue = false)]
+ public TypeEnum? Type { get; set; }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected PseDetails() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The shopper's bank. (required).
+ /// The checkout attempt identifier..
+ /// The client type. (required).
+ /// The identification code. (required).
+ /// The identification type. (required).
+ /// The payment method type..
+ public PseDetails(string bank = default(string), string checkoutAttemptId = default(string), string clientType = default(string), string identification = default(string), string identificationType = default(string), TypeEnum? type = default(TypeEnum?))
+ {
+ this.Bank = bank;
+ this.ClientType = clientType;
+ this.Identification = identification;
+ this.IdentificationType = identificationType;
+ this.CheckoutAttemptId = checkoutAttemptId;
+ this.Type = type;
+ }
+
+ ///
+ /// The shopper's bank.
+ ///
+ /// The shopper's bank.
+ [DataMember(Name = "bank", IsRequired = false, EmitDefaultValue = false)]
+ public string Bank { get; set; }
+
+ ///
+ /// The checkout attempt identifier.
+ ///
+ /// The checkout attempt identifier.
+ [DataMember(Name = "checkoutAttemptId", EmitDefaultValue = false)]
+ public string CheckoutAttemptId { get; set; }
+
+ ///
+ /// The client type.
+ ///
+ /// The client type.
+ [DataMember(Name = "clientType", IsRequired = false, EmitDefaultValue = false)]
+ public string ClientType { get; set; }
+
+ ///
+ /// The identification code.
+ ///
+ /// The identification code.
+ [DataMember(Name = "identification", IsRequired = false, EmitDefaultValue = false)]
+ public string Identification { get; set; }
+
+ ///
+ /// The identification type.
+ ///
+ /// The identification type.
+ [DataMember(Name = "identificationType", IsRequired = false, EmitDefaultValue = false)]
+ public string IdentificationType { 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 PseDetails {\n");
+ sb.Append(" Bank: ").Append(Bank).Append("\n");
+ sb.Append(" CheckoutAttemptId: ").Append(CheckoutAttemptId).Append("\n");
+ sb.Append(" ClientType: ").Append(ClientType).Append("\n");
+ sb.Append(" Identification: ").Append(Identification).Append("\n");
+ sb.Append(" IdentificationType: ").Append(IdentificationType).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 PseDetails);
+ }
+
+ ///
+ /// Returns true if PseDetails instances are equal
+ ///
+ /// Instance of PseDetails to be compared
+ /// Boolean
+ public bool Equals(PseDetails input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Bank == input.Bank ||
+ (this.Bank != null &&
+ this.Bank.Equals(input.Bank))
+ ) &&
+ (
+ this.CheckoutAttemptId == input.CheckoutAttemptId ||
+ (this.CheckoutAttemptId != null &&
+ this.CheckoutAttemptId.Equals(input.CheckoutAttemptId))
+ ) &&
+ (
+ this.ClientType == input.ClientType ||
+ (this.ClientType != null &&
+ this.ClientType.Equals(input.ClientType))
+ ) &&
+ (
+ this.Identification == input.Identification ||
+ (this.Identification != null &&
+ this.Identification.Equals(input.Identification))
+ ) &&
+ (
+ this.IdentificationType == input.IdentificationType ||
+ (this.IdentificationType != null &&
+ this.IdentificationType.Equals(input.IdentificationType))
+ ) &&
+ (
+ 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.Bank != null)
+ {
+ hashCode = (hashCode * 59) + this.Bank.GetHashCode();
+ }
+ if (this.CheckoutAttemptId != null)
+ {
+ hashCode = (hashCode * 59) + this.CheckoutAttemptId.GetHashCode();
+ }
+ if (this.ClientType != null)
+ {
+ hashCode = (hashCode * 59) + this.ClientType.GetHashCode();
+ }
+ if (this.Identification != null)
+ {
+ hashCode = (hashCode * 59) + this.Identification.GetHashCode();
+ }
+ if (this.IdentificationType != null)
+ {
+ hashCode = (hashCode * 59) + this.IdentificationType.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/ConfigurationWebhooks/SweepConfigurationV2.cs b/Adyen/Model/ConfigurationWebhooks/SweepConfigurationV2.cs
index 521d80e55..c1f8485f1 100644
--- a/Adyen/Model/ConfigurationWebhooks/SweepConfigurationV2.cs
+++ b/Adyen/Model/ConfigurationWebhooks/SweepConfigurationV2.cs
@@ -343,6 +343,7 @@ protected SweepConfigurationV2() { }
/// The unique identifier of the sweep. (required).
/// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup)..
/// The reason for disabling the sweep..
+ /// The human readable reason for disabling the sweep..
/// Your reference for the sweep configuration..
/// The reference sent to or received from the counterparty. Only alphanumeric characters are allowed..
/// schedule (required).
@@ -351,7 +352,7 @@ protected SweepConfigurationV2() { }
/// targetAmount.
/// triggerAmount.
/// The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. (default to TypeEnum.Push).
- public SweepConfigurationV2(CategoryEnum? category = default(CategoryEnum?), SweepCounterparty counterparty = default(SweepCounterparty), string currency = default(string), string description = default(string), string id = default(string), List priorities = default(List), ReasonEnum? reason = default(ReasonEnum?), string reference = default(string), string referenceForBeneficiary = default(string), SweepSchedule schedule = default(SweepSchedule), StatusEnum? status = default(StatusEnum?), Amount sweepAmount = default(Amount), Amount targetAmount = default(Amount), Amount triggerAmount = default(Amount), TypeEnum? type = TypeEnum.Push)
+ public SweepConfigurationV2(CategoryEnum? category = default(CategoryEnum?), SweepCounterparty counterparty = default(SweepCounterparty), string currency = default(string), string description = default(string), string id = default(string), List priorities = default(List), ReasonEnum? reason = default(ReasonEnum?), string reasonDetail = default(string), string reference = default(string), string referenceForBeneficiary = default(string), SweepSchedule schedule = default(SweepSchedule), StatusEnum? status = default(StatusEnum?), Amount sweepAmount = default(Amount), Amount targetAmount = default(Amount), Amount triggerAmount = default(Amount), TypeEnum? type = TypeEnum.Push)
{
this.Counterparty = counterparty;
this.Currency = currency;
@@ -361,6 +362,7 @@ protected SweepConfigurationV2() { }
this.Description = description;
this.Priorities = priorities;
this.Reason = reason;
+ this.ReasonDetail = reasonDetail;
this.Reference = reference;
this.ReferenceForBeneficiary = referenceForBeneficiary;
this.Status = status;
@@ -397,6 +399,13 @@ protected SweepConfigurationV2() { }
[DataMember(Name = "id", IsRequired = false, EmitDefaultValue = false)]
public string Id { get; set; }
+ ///
+ /// The human readable reason for disabling the sweep.
+ ///
+ /// The human readable reason for disabling the sweep.
+ [DataMember(Name = "reasonDetail", EmitDefaultValue = false)]
+ public string ReasonDetail { get; set; }
+
///
/// Your reference for the sweep configuration.
///
@@ -450,6 +459,7 @@ public override string ToString()
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Priorities: ").Append(Priorities).Append("\n");
sb.Append(" Reason: ").Append(Reason).Append("\n");
+ sb.Append(" ReasonDetail: ").Append(ReasonDetail).Append("\n");
sb.Append(" Reference: ").Append(Reference).Append("\n");
sb.Append(" ReferenceForBeneficiary: ").Append(ReferenceForBeneficiary).Append("\n");
sb.Append(" Schedule: ").Append(Schedule).Append("\n");
@@ -525,6 +535,11 @@ public bool Equals(SweepConfigurationV2 input)
this.Reason == input.Reason ||
this.Reason.Equals(input.Reason)
) &&
+ (
+ this.ReasonDetail == input.ReasonDetail ||
+ (this.ReasonDetail != null &&
+ this.ReasonDetail.Equals(input.ReasonDetail))
+ ) &&
(
this.Reference == input.Reference ||
(this.Reference != null &&
@@ -593,6 +608,10 @@ public override int GetHashCode()
}
hashCode = (hashCode * 59) + this.Priorities.GetHashCode();
hashCode = (hashCode * 59) + this.Reason.GetHashCode();
+ if (this.ReasonDetail != null)
+ {
+ hashCode = (hashCode * 59) + this.ReasonDetail.GetHashCode();
+ }
if (this.Reference != null)
{
hashCode = (hashCode * 59) + this.Reference.GetHashCode();
diff --git a/Adyen/Model/DisputeWebhooks/AbstractOpenAPISchema.cs b/Adyen/Model/DisputeWebhooks/AbstractOpenAPISchema.cs
new file mode 100644
index 000000000..c98092fbb
--- /dev/null
+++ b/Adyen/Model/DisputeWebhooks/AbstractOpenAPISchema.cs
@@ -0,0 +1,81 @@
+/*
+* Dispute webhooks
+*
+*
+* 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.DisputeWebhooks
+{
+ ///
+ /// 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/DisputeWebhooks/Amount.cs b/Adyen/Model/DisputeWebhooks/Amount.cs
new file mode 100644
index 000000000..bf0aad49f
--- /dev/null
+++ b/Adyen/Model/DisputeWebhooks/Amount.cs
@@ -0,0 +1,161 @@
+/*
+* Dispute webhooks
+*
+*
+* 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.DisputeWebhooks
+{
+ ///
+ /// Amount
+ ///
+ [DataContract(Name = "Amount")]
+ public partial class Amount : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected Amount() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). (required).
+ /// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). (required).
+ public Amount(string currency = default(string), long? value = default(long?))
+ {
+ this.Currency = currency;
+ this.Value = value;
+ }
+
+ ///
+ /// 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 amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
+ ///
+ /// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
+ [DataMember(Name = "value", IsRequired = false, EmitDefaultValue = false)]
+ public long? Value { 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 Amount {\n");
+ sb.Append(" Currency: ").Append(Currency).Append("\n");
+ sb.Append(" Value: ").Append(Value).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 Amount);
+ }
+
+ ///
+ /// Returns true if Amount instances are equal
+ ///
+ /// Instance of Amount to be compared
+ /// Boolean
+ public bool Equals(Amount input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Currency == input.Currency ||
+ (this.Currency != null &&
+ this.Currency.Equals(input.Currency))
+ ) &&
+ (
+ this.Value == input.Value ||
+ this.Value.Equals(input.Value)
+ );
+ }
+
+ ///
+ /// 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();
+ }
+ hashCode = (hashCode * 59) + this.Value.GetHashCode();
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ public IEnumerable Validate(ValidationContext validationContext)
+ {
+ // Currency (string) maxLength
+ if (this.Currency != null && this.Currency.Length > 3)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be less than 3.", new [] { "Currency" });
+ }
+
+ // Currency (string) minLength
+ if (this.Currency != null && this.Currency.Length < 3)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Currency, length must be greater than 3.", new [] { "Currency" });
+ }
+
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/DisputeWebhooks/BalancePlatformNotificationResponse.cs b/Adyen/Model/DisputeWebhooks/BalancePlatformNotificationResponse.cs
new file mode 100644
index 000000000..252763740
--- /dev/null
+++ b/Adyen/Model/DisputeWebhooks/BalancePlatformNotificationResponse.cs
@@ -0,0 +1,129 @@
+/*
+* Dispute webhooks
+*
+*
+* 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.DisputeWebhooks
+{
+ ///
+ /// BalancePlatformNotificationResponse
+ ///
+ [DataContract(Name = "BalancePlatformNotificationResponse")]
+ public partial class BalancePlatformNotificationResponse : 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 BalancePlatformNotificationResponse(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 BalancePlatformNotificationResponse {\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 BalancePlatformNotificationResponse);
+ }
+
+ ///
+ /// Returns true if BalancePlatformNotificationResponse instances are equal
+ ///
+ /// Instance of BalancePlatformNotificationResponse to be compared
+ /// Boolean
+ public bool Equals(BalancePlatformNotificationResponse 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/DisputeWebhooks/DisputeEventNotification.cs b/Adyen/Model/DisputeWebhooks/DisputeEventNotification.cs
new file mode 100644
index 000000000..28f45a091
--- /dev/null
+++ b/Adyen/Model/DisputeWebhooks/DisputeEventNotification.cs
@@ -0,0 +1,316 @@
+/*
+* Dispute webhooks
+*
+*
+* 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.DisputeWebhooks
+{
+ ///
+ /// DisputeEventNotification
+ ///
+ [DataContract(Name = "DisputeEventNotification")]
+ public partial class DisputeEventNotification : IEquatable, IValidatableObject
+ {
+ ///
+ /// The type of dispute raised for the transaction.
+ ///
+ /// The type of dispute raised for the transaction.
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum TypeEnum
+ {
+ ///
+ /// Enum Fraud for value: fraud
+ ///
+ [EnumMember(Value = "fraud")]
+ Fraud = 1,
+
+ ///
+ /// Enum NotDelivered for value: notDelivered
+ ///
+ [EnumMember(Value = "notDelivered")]
+ NotDelivered = 2
+
+ }
+
+
+ ///
+ /// The type of dispute raised for the transaction.
+ ///
+ /// The type of dispute raised for the transaction.
+ [DataMember(Name = "type", EmitDefaultValue = false)]
+ public TypeEnum? Type { get; set; }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle..
+ /// The unique identifier of the balance platform..
+ /// The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**..
+ /// Contains information about the dispute..
+ /// disputedAmount.
+ /// The ID of the resource..
+ /// The current status of the dispute..
+ /// Additional information about the status of the dispute, when available..
+ /// The unique reference of the transaction for which the dispute is requested..
+ /// The type of dispute raised for the transaction..
+ public DisputeEventNotification(string arn = default(string), string balancePlatform = default(string), DateTime creationDate = default(DateTime), string description = default(string), Amount disputedAmount = default(Amount), string id = default(string), string status = default(string), string statusDetail = default(string), string transactionId = default(string), TypeEnum? type = default(TypeEnum?))
+ {
+ this.Arn = arn;
+ this.BalancePlatform = balancePlatform;
+ this.CreationDate = creationDate;
+ this.Description = description;
+ this.DisputedAmount = disputedAmount;
+ this.Id = id;
+ this.Status = status;
+ this.StatusDetail = statusDetail;
+ this.TransactionId = transactionId;
+ this.Type = type;
+ }
+
+ ///
+ /// The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle.
+ ///
+ /// The unique Acquirer Reference Number (arn) generated by the card scheme for each capture. You can use the arn to trace the transaction through its lifecycle.
+ [DataMember(Name = "arn", EmitDefaultValue = false)]
+ public string Arn { get; set; }
+
+ ///
+ /// The unique identifier of the balance platform.
+ ///
+ /// The unique identifier of the balance platform.
+ [DataMember(Name = "balancePlatform", EmitDefaultValue = false)]
+ public string BalancePlatform { get; set; }
+
+ ///
+ /// The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.
+ ///
+ /// The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.
+ [DataMember(Name = "creationDate", EmitDefaultValue = false)]
+ public DateTime CreationDate { get; set; }
+
+ ///
+ /// Contains information about the dispute.
+ ///
+ /// Contains information about the dispute.
+ [DataMember(Name = "description", EmitDefaultValue = false)]
+ public string Description { get; set; }
+
+ ///
+ /// Gets or Sets DisputedAmount
+ ///
+ [DataMember(Name = "disputedAmount", EmitDefaultValue = false)]
+ public Amount DisputedAmount { get; set; }
+
+ ///
+ /// The ID of the resource.
+ ///
+ /// The ID of the resource.
+ [DataMember(Name = "id", EmitDefaultValue = false)]
+ public string Id { get; set; }
+
+ ///
+ /// The current status of the dispute.
+ ///
+ /// The current status of the dispute.
+ [DataMember(Name = "status", EmitDefaultValue = false)]
+ public string Status { get; set; }
+
+ ///
+ /// Additional information about the status of the dispute, when available.
+ ///
+ /// Additional information about the status of the dispute, when available.
+ [DataMember(Name = "statusDetail", EmitDefaultValue = false)]
+ public string StatusDetail { get; set; }
+
+ ///
+ /// The unique reference of the transaction for which the dispute is requested.
+ ///
+ /// The unique reference of the transaction for which the dispute is requested.
+ [DataMember(Name = "transactionId", EmitDefaultValue = false)]
+ public string TransactionId { 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 DisputeEventNotification {\n");
+ sb.Append(" Arn: ").Append(Arn).Append("\n");
+ sb.Append(" BalancePlatform: ").Append(BalancePlatform).Append("\n");
+ sb.Append(" CreationDate: ").Append(CreationDate).Append("\n");
+ sb.Append(" Description: ").Append(Description).Append("\n");
+ sb.Append(" DisputedAmount: ").Append(DisputedAmount).Append("\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Status: ").Append(Status).Append("\n");
+ sb.Append(" StatusDetail: ").Append(StatusDetail).Append("\n");
+ sb.Append(" TransactionId: ").Append(TransactionId).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 DisputeEventNotification);
+ }
+
+ ///
+ /// Returns true if DisputeEventNotification instances are equal
+ ///
+ /// Instance of DisputeEventNotification to be compared
+ /// Boolean
+ public bool Equals(DisputeEventNotification input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Arn == input.Arn ||
+ (this.Arn != null &&
+ this.Arn.Equals(input.Arn))
+ ) &&
+ (
+ this.BalancePlatform == input.BalancePlatform ||
+ (this.BalancePlatform != null &&
+ this.BalancePlatform.Equals(input.BalancePlatform))
+ ) &&
+ (
+ this.CreationDate == input.CreationDate ||
+ (this.CreationDate != null &&
+ this.CreationDate.Equals(input.CreationDate))
+ ) &&
+ (
+ this.Description == input.Description ||
+ (this.Description != null &&
+ this.Description.Equals(input.Description))
+ ) &&
+ (
+ this.DisputedAmount == input.DisputedAmount ||
+ (this.DisputedAmount != null &&
+ this.DisputedAmount.Equals(input.DisputedAmount))
+ ) &&
+ (
+ this.Id == input.Id ||
+ (this.Id != null &&
+ this.Id.Equals(input.Id))
+ ) &&
+ (
+ this.Status == input.Status ||
+ (this.Status != null &&
+ this.Status.Equals(input.Status))
+ ) &&
+ (
+ this.StatusDetail == input.StatusDetail ||
+ (this.StatusDetail != null &&
+ this.StatusDetail.Equals(input.StatusDetail))
+ ) &&
+ (
+ this.TransactionId == input.TransactionId ||
+ (this.TransactionId != null &&
+ this.TransactionId.Equals(input.TransactionId))
+ ) &&
+ (
+ 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.Arn != null)
+ {
+ hashCode = (hashCode * 59) + this.Arn.GetHashCode();
+ }
+ if (this.BalancePlatform != null)
+ {
+ hashCode = (hashCode * 59) + this.BalancePlatform.GetHashCode();
+ }
+ if (this.CreationDate != null)
+ {
+ hashCode = (hashCode * 59) + this.CreationDate.GetHashCode();
+ }
+ if (this.Description != null)
+ {
+ hashCode = (hashCode * 59) + this.Description.GetHashCode();
+ }
+ if (this.DisputedAmount != null)
+ {
+ hashCode = (hashCode * 59) + this.DisputedAmount.GetHashCode();
+ }
+ if (this.Id != null)
+ {
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ }
+ if (this.Status != null)
+ {
+ hashCode = (hashCode * 59) + this.Status.GetHashCode();
+ }
+ if (this.StatusDetail != null)
+ {
+ hashCode = (hashCode * 59) + this.StatusDetail.GetHashCode();
+ }
+ if (this.TransactionId != null)
+ {
+ hashCode = (hashCode * 59) + this.TransactionId.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/DisputeWebhooks/DisputeNotificationRequest.cs b/Adyen/Model/DisputeWebhooks/DisputeNotificationRequest.cs
new file mode 100644
index 000000000..c69348b6e
--- /dev/null
+++ b/Adyen/Model/DisputeWebhooks/DisputeNotificationRequest.cs
@@ -0,0 +1,169 @@
+/*
+* Dispute webhooks
+*
+*
+* 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.DisputeWebhooks
+{
+ ///
+ /// DisputeNotificationRequest
+ ///
+ [DataContract(Name = "DisputeNotificationRequest")]
+ public partial class DisputeNotificationRequest : IEquatable, IValidatableObject
+ {
+ ///
+ /// Type of webhook.
+ ///
+ /// Type of webhook.
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum TypeEnum
+ {
+ ///
+ /// Enum Created for value: balancePlatform.dispute.created
+ ///
+ [EnumMember(Value = "balancePlatform.dispute.created")]
+ Created = 1,
+
+ ///
+ /// Enum Updated for value: balancePlatform.dispute.updated
+ ///
+ [EnumMember(Value = "balancePlatform.dispute.updated")]
+ Updated = 2
+
+ }
+
+
+ ///
+ /// Type of webhook.
+ ///
+ /// Type of webhook.
+ [DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)]
+ public TypeEnum Type { get; set; }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected DisputeNotificationRequest() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// data (required).
+ /// Type of webhook. (required).
+ public DisputeNotificationRequest(DisputeEventNotification data = default(DisputeEventNotification), TypeEnum type = default(TypeEnum))
+ {
+ this.Data = data;
+ this.Type = type;
+ }
+
+ ///
+ /// Gets or Sets Data
+ ///
+ [DataMember(Name = "data", IsRequired = false, EmitDefaultValue = false)]
+ public DisputeEventNotification Data { 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 DisputeNotificationRequest {\n");
+ sb.Append(" Data: ").Append(Data).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 DisputeNotificationRequest);
+ }
+
+ ///
+ /// Returns true if DisputeNotificationRequest instances are equal
+ ///
+ /// Instance of DisputeNotificationRequest to be compared
+ /// Boolean
+ public bool Equals(DisputeNotificationRequest input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Data == input.Data ||
+ (this.Data != null &&
+ this.Data.Equals(input.Data))
+ ) &&
+ (
+ 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.Data != null)
+ {
+ hashCode = (hashCode * 59) + this.Data.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/LegalEntityManagement/IdentificationData.cs b/Adyen/Model/LegalEntityManagement/IdentificationData.cs
index bb66881f0..4753f09fe 100644
--- a/Adyen/Model/LegalEntityManagement/IdentificationData.cs
+++ b/Adyen/Model/LegalEntityManagement/IdentificationData.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.LegalEntityManagement
public partial class IdentificationData : IEquatable, IValidatableObject
{
///
- /// Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber**
+ /// Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber**
///
- /// Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber**
+ /// Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber**
[JsonConverter(typeof(StringEnumConverter))]
public enum TypeEnum
{
@@ -67,9 +67,9 @@ public enum TypeEnum
///
- /// Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber**
+ /// Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber**
///
- /// Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber**
+ /// Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber**
[DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)]
public TypeEnum Type { get; set; }
///
@@ -86,7 +86,7 @@ protected IdentificationData() { }
/// The state or province where the document was issued (AU only)..
/// Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. To verify their identity, Adyen will require them to upload an ID document..
/// The number in the document..
- /// Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** (required).
+ /// Type of identity data. For individuals, the following types are supported. See our [onboarding guide](https://docs.adyen.com/platforms/onboard-users/onboarding-steps/?onboarding_type=custom) for other supported countries. - 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/OnboardingLinkSettings.cs b/Adyen/Model/LegalEntityManagement/OnboardingLinkSettings.cs
index 995edf311..b992af34b 100644
--- a/Adyen/Model/LegalEntityManagement/OnboardingLinkSettings.cs
+++ b/Adyen/Model/LegalEntityManagement/OnboardingLinkSettings.cs
@@ -40,6 +40,7 @@ public partial class OnboardingLinkSettings : IEquatable
/// 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 only users above the age of 18 can be onboarded..
/// Default value: **true** Indicates whether the introduction screen is hidden for the user of the individual legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process..
/// Default value: **true** Indicates whether the introduction screen is hidden for the user of the organization legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process..
/// Default value: **true** Indicates whether the introduction screen is hidden for the user of the sole proprietorship legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process..
@@ -50,13 +51,14 @@ public partial class OnboardingLinkSettings : IEquatable
/// Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **pos** sales channel type..
/// Default value: **false** Indicates if the user is required to sign a PCI questionnaires for the **posMoto** sales channel type..
/// The maximum number of transfer instruments the user can create..
- public OnboardingLinkSettings(List acceptedCountries = default(List), bool? allowBankAccountFormatSelection = default(bool?), bool? allowIntraRegionCrossBorderPayout = default(bool?), bool? changeLegalEntityType = default(bool?), bool? editPrefilledCountry = default(bool?), bool? hideOnboardingIntroductionIndividual = default(bool?), bool? hideOnboardingIntroductionOrganization = default(bool?), bool? hideOnboardingIntroductionSoleProprietor = default(bool?), bool? hideOnboardingIntroductionTrust = default(bool?), bool? instantBankVerification = default(bool?), bool? requirePciSignEcomMoto = default(bool?), bool? requirePciSignEcommerce = default(bool?), bool? requirePciSignPos = default(bool?), bool? requirePciSignPosMoto = default(bool?), int? transferInstrumentLimit = default(int?))
+ public OnboardingLinkSettings(List acceptedCountries = default(List), bool? allowBankAccountFormatSelection = default(bool?), bool? allowIntraRegionCrossBorderPayout = default(bool?), bool? changeLegalEntityType = default(bool?), bool? editPrefilledCountry = default(bool?), bool? enforceLegalAge = default(bool?), bool? hideOnboardingIntroductionIndividual = default(bool?), bool? hideOnboardingIntroductionOrganization = default(bool?), bool? hideOnboardingIntroductionSoleProprietor = default(bool?), bool? hideOnboardingIntroductionTrust = default(bool?), bool? instantBankVerification = default(bool?), bool? requirePciSignEcomMoto = default(bool?), bool? requirePciSignEcommerce = default(bool?), bool? requirePciSignPos = default(bool?), bool? requirePciSignPosMoto = default(bool?), int? transferInstrumentLimit = default(int?))
{
this.AcceptedCountries = acceptedCountries;
this.AllowBankAccountFormatSelection = allowBankAccountFormatSelection;
this.AllowIntraRegionCrossBorderPayout = allowIntraRegionCrossBorderPayout;
this.ChangeLegalEntityType = changeLegalEntityType;
this.EditPrefilledCountry = editPrefilledCountry;
+ this.EnforceLegalAge = enforceLegalAge;
this.HideOnboardingIntroductionIndividual = hideOnboardingIntroductionIndividual;
this.HideOnboardingIntroductionOrganization = hideOnboardingIntroductionOrganization;
this.HideOnboardingIntroductionSoleProprietor = hideOnboardingIntroductionSoleProprietor;
@@ -104,6 +106,13 @@ public partial class OnboardingLinkSettings : IEquatable
[DataMember(Name = "editPrefilledCountry", EmitDefaultValue = false)]
public bool? EditPrefilledCountry { get; set; }
+ ///
+ /// Default value: **false** Indicates if only users above the age of 18 can be onboarded.
+ ///
+ /// Default value: **false** Indicates if only users above the age of 18 can be onboarded.
+ [DataMember(Name = "enforceLegalAge", EmitDefaultValue = false)]
+ public bool? EnforceLegalAge { get; set; }
+
///
/// Default value: **true** Indicates whether the introduction screen is hidden for the user of the individual legal entity type. The introduction screen provides brief instructions for the subsequent steps in the hosted onboarding process.
///
@@ -187,6 +196,7 @@ public override string ToString()
sb.Append(" AllowIntraRegionCrossBorderPayout: ").Append(AllowIntraRegionCrossBorderPayout).Append("\n");
sb.Append(" ChangeLegalEntityType: ").Append(ChangeLegalEntityType).Append("\n");
sb.Append(" EditPrefilledCountry: ").Append(EditPrefilledCountry).Append("\n");
+ sb.Append(" EnforceLegalAge: ").Append(EnforceLegalAge).Append("\n");
sb.Append(" HideOnboardingIntroductionIndividual: ").Append(HideOnboardingIntroductionIndividual).Append("\n");
sb.Append(" HideOnboardingIntroductionOrganization: ").Append(HideOnboardingIntroductionOrganization).Append("\n");
sb.Append(" HideOnboardingIntroductionSoleProprietor: ").Append(HideOnboardingIntroductionSoleProprietor).Append("\n");
@@ -254,6 +264,10 @@ public bool Equals(OnboardingLinkSettings input)
this.EditPrefilledCountry == input.EditPrefilledCountry ||
this.EditPrefilledCountry.Equals(input.EditPrefilledCountry)
) &&
+ (
+ this.EnforceLegalAge == input.EnforceLegalAge ||
+ this.EnforceLegalAge.Equals(input.EnforceLegalAge)
+ ) &&
(
this.HideOnboardingIntroductionIndividual == input.HideOnboardingIntroductionIndividual ||
this.HideOnboardingIntroductionIndividual.Equals(input.HideOnboardingIntroductionIndividual)
@@ -313,6 +327,7 @@ public override int GetHashCode()
hashCode = (hashCode * 59) + this.AllowIntraRegionCrossBorderPayout.GetHashCode();
hashCode = (hashCode * 59) + this.ChangeLegalEntityType.GetHashCode();
hashCode = (hashCode * 59) + this.EditPrefilledCountry.GetHashCode();
+ hashCode = (hashCode * 59) + this.EnforceLegalAge.GetHashCode();
hashCode = (hashCode * 59) + this.HideOnboardingIntroductionIndividual.GetHashCode();
hashCode = (hashCode * 59) + this.HideOnboardingIntroductionOrganization.GetHashCode();
hashCode = (hashCode * 59) + this.HideOnboardingIntroductionSoleProprietor.GetHashCode();
diff --git a/Adyen/Model/LegalEntityManagement/PhoneNumber.cs b/Adyen/Model/LegalEntityManagement/PhoneNumber.cs
index 0d294de9c..93cf665ab 100644
--- a/Adyen/Model/LegalEntityManagement/PhoneNumber.cs
+++ b/Adyen/Model/LegalEntityManagement/PhoneNumber.cs
@@ -55,6 +55,13 @@ protected PhoneNumber() { }
[DataMember(Name = "number", IsRequired = false, EmitDefaultValue = false)]
public string Number { get; set; }
+ ///
+ /// The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code prefix of the phone number. For example, **US** or **NL**. The value of the `phoneCountryCode` is determined by the country code digit(s) of `phone.number`
+ ///
+ /// The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code prefix of the phone number. For example, **US** or **NL**. The value of the `phoneCountryCode` is determined by the country code digit(s) of `phone.number`
+ [DataMember(Name = "phoneCountryCode", EmitDefaultValue = false)]
+ public string PhoneCountryCode { get; private set; }
+
///
/// The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.**
///
@@ -71,6 +78,7 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class PhoneNumber {\n");
sb.Append(" Number: ").Append(Number).Append("\n");
+ sb.Append(" PhoneCountryCode: ").Append(PhoneCountryCode).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -112,6 +120,11 @@ public bool Equals(PhoneNumber input)
(this.Number != null &&
this.Number.Equals(input.Number))
) &&
+ (
+ this.PhoneCountryCode == input.PhoneCountryCode ||
+ (this.PhoneCountryCode != null &&
+ this.PhoneCountryCode.Equals(input.PhoneCountryCode))
+ ) &&
(
this.Type == input.Type ||
(this.Type != null &&
@@ -132,6 +145,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Number.GetHashCode();
}
+ if (this.PhoneCountryCode != null)
+ {
+ hashCode = (hashCode * 59) + this.PhoneCountryCode.GetHashCode();
+ }
if (this.Type != null)
{
hashCode = (hashCode * 59) + this.Type.GetHashCode();
diff --git a/Adyen/Model/LegalEntityManagement/Trust.cs b/Adyen/Model/LegalEntityManagement/Trust.cs
index 0d531f22e..3691d91d9 100644
--- a/Adyen/Model/LegalEntityManagement/Trust.cs
+++ b/Adyen/Model/LegalEntityManagement/Trust.cs
@@ -33,109 +33,133 @@ namespace Adyen.Model.LegalEntityManagement
public partial class Trust : IEquatable, IValidatableObject
{
///
- /// Type of trust. Possible values for Australian trusts: **cashManagementTrust**, **corporateUnitTrust**, **deceasedEstate**, **discretionaryInvestmentTrust**, **discretionaryServicesManagementTrust**, **discretionaryTradingTrust**, **firstHomeSaverAccountsTrust**, **fixedTrust**, **fixedUnitTrust**, **hybridTrust**, **listedPublicUnitTrust**, **otherTrust**, **pooledSuperannuationTrust**, **publicTradingTrust**, **unlistedPublicUnitTrust**.
+ /// Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand).
///
- /// Type of trust. Possible values for Australian trusts: **cashManagementTrust**, **corporateUnitTrust**, **deceasedEstate**, **discretionaryInvestmentTrust**, **discretionaryServicesManagementTrust**, **discretionaryTradingTrust**, **firstHomeSaverAccountsTrust**, **fixedTrust**, **fixedUnitTrust**, **hybridTrust**, **listedPublicUnitTrust**, **otherTrust**, **pooledSuperannuationTrust**, **publicTradingTrust**, **unlistedPublicUnitTrust**.
+ /// Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand).
[JsonConverter(typeof(StringEnumConverter))]
public enum TypeEnum
{
+ ///
+ /// Enum BusinessTrust for value: businessTrust
+ ///
+ [EnumMember(Value = "businessTrust")]
+ BusinessTrust = 1,
+
///
/// Enum CashManagementTrust for value: cashManagementTrust
///
[EnumMember(Value = "cashManagementTrust")]
- CashManagementTrust = 1,
+ CashManagementTrust = 2,
+
+ ///
+ /// Enum CharitableTrust for value: charitableTrust
+ ///
+ [EnumMember(Value = "charitableTrust")]
+ CharitableTrust = 3,
///
/// Enum CorporateUnitTrust for value: corporateUnitTrust
///
[EnumMember(Value = "corporateUnitTrust")]
- CorporateUnitTrust = 2,
+ CorporateUnitTrust = 4,
///
/// Enum DeceasedEstate for value: deceasedEstate
///
[EnumMember(Value = "deceasedEstate")]
- DeceasedEstate = 3,
+ DeceasedEstate = 5,
+
+ ///
+ /// Enum DiscretionaryTrust for value: discretionaryTrust
+ ///
+ [EnumMember(Value = "discretionaryTrust")]
+ DiscretionaryTrust = 6,
///
/// Enum DiscretionaryInvestmentTrust for value: discretionaryInvestmentTrust
///
[EnumMember(Value = "discretionaryInvestmentTrust")]
- DiscretionaryInvestmentTrust = 4,
+ DiscretionaryInvestmentTrust = 7,
///
/// Enum DiscretionaryServicesManagementTrust for value: discretionaryServicesManagementTrust
///
[EnumMember(Value = "discretionaryServicesManagementTrust")]
- DiscretionaryServicesManagementTrust = 5,
+ DiscretionaryServicesManagementTrust = 8,
///
/// Enum DiscretionaryTradingTrust for value: discretionaryTradingTrust
///
[EnumMember(Value = "discretionaryTradingTrust")]
- DiscretionaryTradingTrust = 6,
+ DiscretionaryTradingTrust = 9,
+
+ ///
+ /// Enum FamilyTrust for value: familyTrust
+ ///
+ [EnumMember(Value = "familyTrust")]
+ FamilyTrust = 10,
///
/// Enum FirstHomeSaverAccountsTrust for value: firstHomeSaverAccountsTrust
///
[EnumMember(Value = "firstHomeSaverAccountsTrust")]
- FirstHomeSaverAccountsTrust = 7,
+ FirstHomeSaverAccountsTrust = 11,
///
/// Enum FixedTrust for value: fixedTrust
///
[EnumMember(Value = "fixedTrust")]
- FixedTrust = 8,
+ FixedTrust = 12,
///
/// Enum FixedUnitTrust for value: fixedUnitTrust
///
[EnumMember(Value = "fixedUnitTrust")]
- FixedUnitTrust = 9,
+ FixedUnitTrust = 13,
///
/// Enum HybridTrust for value: hybridTrust
///
[EnumMember(Value = "hybridTrust")]
- HybridTrust = 10,
+ HybridTrust = 14,
///
/// Enum ListedPublicUnitTrust for value: listedPublicUnitTrust
///
[EnumMember(Value = "listedPublicUnitTrust")]
- ListedPublicUnitTrust = 11,
+ ListedPublicUnitTrust = 15,
///
/// Enum OtherTrust for value: otherTrust
///
[EnumMember(Value = "otherTrust")]
- OtherTrust = 12,
+ OtherTrust = 16,
///
/// Enum PooledSuperannuationTrust for value: pooledSuperannuationTrust
///
[EnumMember(Value = "pooledSuperannuationTrust")]
- PooledSuperannuationTrust = 13,
+ PooledSuperannuationTrust = 17,
///
/// Enum PublicTradingTrust for value: publicTradingTrust
///
[EnumMember(Value = "publicTradingTrust")]
- PublicTradingTrust = 14,
+ PublicTradingTrust = 18,
///
/// Enum UnlistedPublicUnitTrust for value: unlistedPublicUnitTrust
///
[EnumMember(Value = "unlistedPublicUnitTrust")]
- UnlistedPublicUnitTrust = 15
+ UnlistedPublicUnitTrust = 19
}
///
- /// Type of trust. Possible values for Australian trusts: **cashManagementTrust**, **corporateUnitTrust**, **deceasedEstate**, **discretionaryInvestmentTrust**, **discretionaryServicesManagementTrust**, **discretionaryTradingTrust**, **firstHomeSaverAccountsTrust**, **fixedTrust**, **fixedUnitTrust**, **hybridTrust**, **listedPublicUnitTrust**, **otherTrust**, **pooledSuperannuationTrust**, **publicTradingTrust**, **unlistedPublicUnitTrust**.
+ /// Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand).
///
- /// Type of trust. Possible values for Australian trusts: **cashManagementTrust**, **corporateUnitTrust**, **deceasedEstate**, **discretionaryInvestmentTrust**, **discretionaryServicesManagementTrust**, **discretionaryTradingTrust**, **firstHomeSaverAccountsTrust**, **fixedTrust**, **fixedUnitTrust**, **hybridTrust**, **listedPublicUnitTrust**, **otherTrust**, **pooledSuperannuationTrust**, **publicTradingTrust**, **unlistedPublicUnitTrust**.
+ /// Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand).
[DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)]
public TypeEnum Type { get; set; }
///
@@ -176,28 +200,28 @@ protected Trust() { }
///
/// The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. (required).
/// The date when the legal arrangement was incorporated in YYYY-MM-DD format..
+ /// A short description about the trust. Only applicable for charitable trusts in New Zealand..
/// The registered name, if different from the `name`..
/// The legal name. (required).
/// principalPlaceOfBusiness.
/// registeredAddress (required).
/// The registration number..
- /// The tax information is absent..
/// The tax information of the entity..
- /// Type of trust. Possible values for Australian trusts: **cashManagementTrust**, **corporateUnitTrust**, **deceasedEstate**, **discretionaryInvestmentTrust**, **discretionaryServicesManagementTrust**, **discretionaryTradingTrust**, **firstHomeSaverAccountsTrust**, **fixedTrust**, **fixedUnitTrust**, **hybridTrust**, **listedPublicUnitTrust**, **otherTrust**, **pooledSuperannuationTrust**, **publicTradingTrust**, **unlistedPublicUnitTrust**. (required).
+ /// Type of trust. See possible values for trusts in [Australia](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-australia) and [New Zealand](https://docs.adyen.com/platforms/verification-requirements/?tab=trust_3_4#trust-types-in-new-zealand). (required).
/// The undefined beneficiary information of the entity..
/// The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**..
/// The VAT number..
- public Trust(string countryOfGoverningLaw = default(string), string dateOfIncorporation = default(string), string doingBusinessAs = default(string), string name = default(string), Address principalPlaceOfBusiness = default(Address), Address registeredAddress = default(Address), string registrationNumber = default(string), bool? taxAbsent = default(bool?), List taxInformation = default(List), TypeEnum type = default(TypeEnum), List undefinedBeneficiaryInfo = default(List), VatAbsenceReasonEnum? vatAbsenceReason = default(VatAbsenceReasonEnum?), string vatNumber = default(string))
+ public Trust(string countryOfGoverningLaw = default(string), string dateOfIncorporation = default(string), string description = default(string), string doingBusinessAs = default(string), string name = default(string), Address principalPlaceOfBusiness = default(Address), Address registeredAddress = default(Address), string registrationNumber = default(string), List taxInformation = default(List), TypeEnum type = default(TypeEnum), List undefinedBeneficiaryInfo = default(List), VatAbsenceReasonEnum? vatAbsenceReason = default(VatAbsenceReasonEnum?), string vatNumber = default(string))
{
this.CountryOfGoverningLaw = countryOfGoverningLaw;
this.Name = name;
this.RegisteredAddress = registeredAddress;
this.Type = type;
this.DateOfIncorporation = dateOfIncorporation;
+ this.Description = description;
this.DoingBusinessAs = doingBusinessAs;
this.PrincipalPlaceOfBusiness = principalPlaceOfBusiness;
this.RegistrationNumber = registrationNumber;
- this.TaxAbsent = taxAbsent;
this.TaxInformation = taxInformation;
this.UndefinedBeneficiaryInfo = undefinedBeneficiaryInfo;
this.VatAbsenceReason = vatAbsenceReason;
@@ -218,6 +242,13 @@ protected Trust() { }
[DataMember(Name = "dateOfIncorporation", EmitDefaultValue = false)]
public string DateOfIncorporation { get; set; }
+ ///
+ /// A short description about the trust. Only applicable for charitable trusts in New Zealand.
+ ///
+ /// A short description about the trust. Only applicable for charitable trusts in New Zealand.
+ [DataMember(Name = "description", EmitDefaultValue = false)]
+ public string Description { get; set; }
+
///
/// The registered name, if different from the `name`.
///
@@ -251,13 +282,6 @@ protected Trust() { }
[DataMember(Name = "registrationNumber", EmitDefaultValue = false)]
public string RegistrationNumber { get; set; }
- ///
- /// The tax information is absent.
- ///
- /// The tax information is absent.
- [DataMember(Name = "taxAbsent", EmitDefaultValue = false)]
- public bool? TaxAbsent { get; set; }
-
///
/// The tax information of the entity.
///
@@ -289,12 +313,12 @@ public override string ToString()
sb.Append("class Trust {\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");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" PrincipalPlaceOfBusiness: ").Append(PrincipalPlaceOfBusiness).Append("\n");
sb.Append(" RegisteredAddress: ").Append(RegisteredAddress).Append("\n");
sb.Append(" RegistrationNumber: ").Append(RegistrationNumber).Append("\n");
- sb.Append(" TaxAbsent: ").Append(TaxAbsent).Append("\n");
sb.Append(" TaxInformation: ").Append(TaxInformation).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append(" UndefinedBeneficiaryInfo: ").Append(UndefinedBeneficiaryInfo).Append("\n");
@@ -345,6 +369,11 @@ public bool Equals(Trust input)
(this.DateOfIncorporation != null &&
this.DateOfIncorporation.Equals(input.DateOfIncorporation))
) &&
+ (
+ this.Description == input.Description ||
+ (this.Description != null &&
+ this.Description.Equals(input.Description))
+ ) &&
(
this.DoingBusinessAs == input.DoingBusinessAs ||
(this.DoingBusinessAs != null &&
@@ -370,11 +399,6 @@ public bool Equals(Trust input)
(this.RegistrationNumber != null &&
this.RegistrationNumber.Equals(input.RegistrationNumber))
) &&
- (
- this.TaxAbsent == input.TaxAbsent ||
- (this.TaxAbsent != null &&
- this.TaxAbsent.Equals(input.TaxAbsent))
- ) &&
(
this.TaxInformation == input.TaxInformation ||
this.TaxInformation != null &&
@@ -419,6 +443,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.DateOfIncorporation.GetHashCode();
}
+ if (this.Description != null)
+ {
+ hashCode = (hashCode * 59) + this.Description.GetHashCode();
+ }
if (this.DoingBusinessAs != null)
{
hashCode = (hashCode * 59) + this.DoingBusinessAs.GetHashCode();
@@ -439,10 +467,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.RegistrationNumber.GetHashCode();
}
- if (this.TaxAbsent != null)
- {
- hashCode = (hashCode * 59) + this.TaxAbsent.GetHashCode();
- }
if (this.TaxInformation != null)
{
hashCode = (hashCode * 59) + this.TaxInformation.GetHashCode();
diff --git a/Adyen/Model/Management/AmexInfo.cs b/Adyen/Model/Management/AmexInfo.cs
index 921a373e7..4fbaf77b3 100644
--- a/Adyen/Model/Management/AmexInfo.cs
+++ b/Adyen/Model/Management/AmexInfo.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.Management
public partial class AmexInfo : IEquatable, IValidatableObject
{
///
- /// Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with American Express. * **gatewayContract** — American Express receives the settlement and handles disputes. They then pay out to the merchant directly. * **paymentDesignatorContract** — Adyen receives the settlement and handles disputes. Adyen then pays out to the merchant.
+ /// Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts.
///
- /// Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with American Express. * **gatewayContract** — American Express receives the settlement and handles disputes. They then pay out to the merchant directly. * **paymentDesignatorContract** — Adyen receives the settlement and handles disputes. Adyen then pays out to the merchant.
+ /// Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts.
[JsonConverter(typeof(StringEnumConverter))]
public enum ServiceLevelEnum
{
@@ -61,9 +61,9 @@ public enum ServiceLevelEnum
///
- /// Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with American Express. * **gatewayContract** — American Express receives the settlement and handles disputes. They then pay out to the merchant directly. * **paymentDesignatorContract** — Adyen receives the settlement and handles disputes. Adyen then pays out to the merchant.
+ /// Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts.
///
- /// Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with American Express. * **gatewayContract** — American Express receives the settlement and handles disputes. They then pay out to the merchant directly. * **paymentDesignatorContract** — Adyen receives the settlement and handles disputes. Adyen then pays out to the merchant.
+ /// Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts.
[DataMember(Name = "serviceLevel", IsRequired = false, EmitDefaultValue = false)]
public ServiceLevelEnum ServiceLevel { get; set; }
///
@@ -74,9 +74,9 @@ protected AmexInfo() { }
///
/// Initializes a new instance of the class.
///
- /// MID (Merchant ID) number. Format: 10 numeric characters. Must be provided only when requesting `gatewayContract` or `paymentDesignatorContract` service levels..
- /// Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is `false`. (default to false).
- /// Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with American Express. * **gatewayContract** — American Express receives the settlement and handles disputes. They then pay out to the merchant directly. * **paymentDesignatorContract** — Adyen receives the settlement and handles disputes. Adyen then pays out to the merchant. (required).
+ /// Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels..
+ /// Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**. (default to false).
+ /// Specifies the service level (settlement type) of this payment method. Possible values: * **noContract**: Adyen holds the contract with American Express. * **gatewayContract**: American Express receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. * **paymentDesignatorContract**: Adyen receives the settlement, and handles disputes and payouts. (required).
public AmexInfo(string midNumber = default(string), bool? reuseMidNumber = false, ServiceLevelEnum serviceLevel = default(ServiceLevelEnum))
{
this.ServiceLevel = serviceLevel;
@@ -85,16 +85,16 @@ protected AmexInfo() { }
}
///
- /// MID (Merchant ID) number. Format: 10 numeric characters. Must be provided only when requesting `gatewayContract` or `paymentDesignatorContract` service levels.
+ /// Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels.
///
- /// MID (Merchant ID) number. Format: 10 numeric characters. Must be provided only when requesting `gatewayContract` or `paymentDesignatorContract` service levels.
+ /// Merchant ID (MID) number. Format: 10 numeric characters. You must provide this field when you request `gatewayContract` or `paymentDesignatorContract` service levels.
[DataMember(Name = "midNumber", EmitDefaultValue = false)]
public string MidNumber { get; set; }
///
- /// Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is `false`.
+ /// Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**.
///
- /// Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is `false`.
+ /// Indicates whether the Amex Merchant ID is reused from a previously setup Amex payment method. This is only applicable for `gatewayContract` and `paymentDesignatorContract` service levels. The default value is **false**.
[DataMember(Name = "reuseMidNumber", EmitDefaultValue = false)]
public bool? ReuseMidNumber { get; set; }
@@ -184,6 +184,12 @@ public override int GetHashCode()
/// Validation Result
public IEnumerable Validate(ValidationContext validationContext)
{
+ // MidNumber (string) maxLength
+ if (this.MidNumber != null && this.MidNumber.Length > 10)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MidNumber, length must be less than 10.", new [] { "MidNumber" });
+ }
+
yield break;
}
}
diff --git a/Adyen/Model/Management/DinersInfo.cs b/Adyen/Model/Management/DinersInfo.cs
new file mode 100644
index 000000000..2042a2181
--- /dev/null
+++ b/Adyen/Model/Management/DinersInfo.cs
@@ -0,0 +1,209 @@
+/*
+* 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
+{
+ ///
+ /// DinersInfo
+ ///
+ [DataContract(Name = "DinersInfo")]
+ public partial class DinersInfo : IEquatable, IValidatableObject
+ {
+ ///
+ /// Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly.
+ ///
+ /// Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly.
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum ServiceLevelEnum
+ {
+ ///
+ /// Enum NoContract for value: noContract
+ ///
+ [EnumMember(Value = "noContract")]
+ NoContract = 1,
+
+ ///
+ /// Enum GatewayContract for value: gatewayContract
+ ///
+ [EnumMember(Value = "gatewayContract")]
+ GatewayContract = 2
+
+ }
+
+
+ ///
+ /// Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly.
+ ///
+ /// Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly.
+ [DataMember(Name = "serviceLevel", EmitDefaultValue = false)]
+ public ServiceLevelEnum? ServiceLevel { get; set; }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected DinersInfo() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric characters..
+ /// Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment method. The default value is **false**. For merchants operating in Japan, this field is required and must be set to **true**. (required) (default to false).
+ /// Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly..
+ /// transactionDescription.
+ public DinersInfo(string midNumber = default(string), bool? reuseMidNumber = false, ServiceLevelEnum? serviceLevel = default(ServiceLevelEnum?), TransactionDescriptionInfo transactionDescription = default(TransactionDescriptionInfo))
+ {
+ this.ReuseMidNumber = reuseMidNumber;
+ this.MidNumber = midNumber;
+ this.ServiceLevel = serviceLevel;
+ this.TransactionDescription = transactionDescription;
+ }
+
+ ///
+ /// MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric characters.
+ ///
+ /// MID (Merchant ID) number. Required for merchants operating in Japan. Format: 14 numeric characters.
+ [DataMember(Name = "midNumber", EmitDefaultValue = false)]
+ public string MidNumber { get; set; }
+
+ ///
+ /// Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment method. The default value is **false**. For merchants operating in Japan, this field is required and must be set to **true**.
+ ///
+ /// Indicates whether the JCB Merchant ID is reused from a previously configured JCB payment method. The default value is **false**. For merchants operating in Japan, this field is required and must be set to **true**.
+ [DataMember(Name = "reuseMidNumber", IsRequired = false, EmitDefaultValue = false)]
+ public bool? ReuseMidNumber { get; set; }
+
+ ///
+ /// Gets or Sets TransactionDescription
+ ///
+ [DataMember(Name = "transactionDescription", EmitDefaultValue = false)]
+ public TransactionDescriptionInfo TransactionDescription { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class DinersInfo {\n");
+ sb.Append(" MidNumber: ").Append(MidNumber).Append("\n");
+ sb.Append(" ReuseMidNumber: ").Append(ReuseMidNumber).Append("\n");
+ sb.Append(" ServiceLevel: ").Append(ServiceLevel).Append("\n");
+ sb.Append(" TransactionDescription: ").Append(TransactionDescription).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as DinersInfo);
+ }
+
+ ///
+ /// Returns true if DinersInfo instances are equal
+ ///
+ /// Instance of DinersInfo to be compared
+ /// Boolean
+ public bool Equals(DinersInfo input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.MidNumber == input.MidNumber ||
+ (this.MidNumber != null &&
+ this.MidNumber.Equals(input.MidNumber))
+ ) &&
+ (
+ this.ReuseMidNumber == input.ReuseMidNumber ||
+ this.ReuseMidNumber.Equals(input.ReuseMidNumber)
+ ) &&
+ (
+ this.ServiceLevel == input.ServiceLevel ||
+ this.ServiceLevel.Equals(input.ServiceLevel)
+ ) &&
+ (
+ this.TransactionDescription == input.TransactionDescription ||
+ (this.TransactionDescription != null &&
+ this.TransactionDescription.Equals(input.TransactionDescription))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.MidNumber != null)
+ {
+ hashCode = (hashCode * 59) + this.MidNumber.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.ReuseMidNumber.GetHashCode();
+ hashCode = (hashCode * 59) + this.ServiceLevel.GetHashCode();
+ if (this.TransactionDescription != null)
+ {
+ hashCode = (hashCode * 59) + this.TransactionDescription.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ public IEnumerable Validate(ValidationContext validationContext)
+ {
+ // MidNumber (string) maxLength
+ if (this.MidNumber != null && this.MidNumber.Length > 14)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MidNumber, length must be less than 14.", new [] { "MidNumber" });
+ }
+
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/Management/JCBInfo.cs b/Adyen/Model/Management/JCBInfo.cs
index a52a9d370..98c8125f5 100644
--- a/Adyen/Model/Management/JCBInfo.cs
+++ b/Adyen/Model/Management/JCBInfo.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.Management
public partial class JCBInfo : IEquatable, IValidatableObject
{
///
- /// Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with JCB. * **gatewayContract** — JCB receives the settlement and handles disputes. They then pay out to the merchant directly.
+ /// Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly.
///
- /// Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with JCB. * **gatewayContract** — JCB receives the settlement and handles disputes. They then pay out to the merchant directly.
+ /// Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly.
[JsonConverter(typeof(StringEnumConverter))]
public enum ServiceLevelEnum
{
@@ -55,42 +55,37 @@ public enum ServiceLevelEnum
///
- /// Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with JCB. * **gatewayContract** — JCB receives the settlement and handles disputes. They then pay out to the merchant directly.
+ /// Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly.
///
- /// Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with JCB. * **gatewayContract** — JCB receives the settlement and handles disputes. They then pay out to the merchant directly.
- [DataMember(Name = "serviceLevel", IsRequired = false, EmitDefaultValue = false)]
- public ServiceLevelEnum ServiceLevel { get; set; }
+ /// Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly.
+ [DataMember(Name = "serviceLevel", EmitDefaultValue = false)]
+ public ServiceLevelEnum? ServiceLevel { get; set; }
///
/// Initializes a new instance of the class.
///
- [JsonConstructorAttribute]
- protected JCBInfo() { }
- ///
- /// Initializes a new instance of the class.
- ///
- /// MID (Merchant ID) number. Format: 10 numeric characters. Must be provided for both `noContract` and `gatewayContract` service levels..
- /// Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. This is applicable for both `noContract` and `gatewayContract` service levels. The default value is `false`. (default to false).
- /// Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with JCB. * **gatewayContract** — JCB receives the settlement and handles disputes. They then pay out to the merchant directly. (required).
+ /// MID (Merchant ID) number. Required for merchants operating in Japan.Format: 14 numeric characters..
+ /// Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The default value is **false**.For merchants operating in Japan, this field is required and must be set to **true**. (default to false).
+ /// Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly..
/// transactionDescription.
- public JCBInfo(string midNumber = default(string), bool? reuseMidNumber = false, ServiceLevelEnum serviceLevel = default(ServiceLevelEnum), TransactionDescriptionInfo transactionDescription = default(TransactionDescriptionInfo))
+ public JCBInfo(string midNumber = default(string), bool? reuseMidNumber = false, ServiceLevelEnum? serviceLevel = default(ServiceLevelEnum?), TransactionDescriptionInfo transactionDescription = default(TransactionDescriptionInfo))
{
- this.ServiceLevel = serviceLevel;
this.MidNumber = midNumber;
this.ReuseMidNumber = reuseMidNumber;
+ this.ServiceLevel = serviceLevel;
this.TransactionDescription = transactionDescription;
}
///
- /// MID (Merchant ID) number. Format: 10 numeric characters. Must be provided for both `noContract` and `gatewayContract` service levels.
+ /// MID (Merchant ID) number. Required for merchants operating in Japan.Format: 14 numeric characters.
///
- /// MID (Merchant ID) number. Format: 10 numeric characters. Must be provided for both `noContract` and `gatewayContract` service levels.
+ /// MID (Merchant ID) number. Required for merchants operating in Japan.Format: 14 numeric characters.
[DataMember(Name = "midNumber", EmitDefaultValue = false)]
public string MidNumber { get; set; }
///
- /// Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. This is applicable for both `noContract` and `gatewayContract` service levels. The default value is `false`.
+ /// Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The default value is **false**.For merchants operating in Japan, this field is required and must be set to **true**.
///
- /// Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. This is applicable for both `noContract` and `gatewayContract` service levels. The default value is `false`.
+ /// Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. The default value is **false**.For merchants operating in Japan, this field is required and must be set to **true**.
[DataMember(Name = "reuseMidNumber", EmitDefaultValue = false)]
public bool? ReuseMidNumber { get; set; }
@@ -196,6 +191,12 @@ public override int GetHashCode()
/// Validation Result
public IEnumerable Validate(ValidationContext validationContext)
{
+ // MidNumber (string) maxLength
+ if (this.MidNumber != null && this.MidNumber.Length > 14)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MidNumber, length must be less than 14.", new [] { "MidNumber" });
+ }
+
yield break;
}
}
diff --git a/Adyen/Model/Management/PaymentMethod.cs b/Adyen/Model/Management/PaymentMethod.cs
index b264b1b5d..ff5b31bde 100644
--- a/Adyen/Model/Management/PaymentMethod.cs
+++ b/Adyen/Model/Management/PaymentMethod.cs
@@ -127,7 +127,7 @@ protected PaymentMethod() { }
/// visa.
/// wechatpay.
/// wechatpayPos.
- public PaymentMethod(AccelInfo accel = default(AccelInfo), AfterpayTouchInfo afterpayTouch = default(AfterpayTouchInfo), bool? allowed = default(bool?), AmexInfo amex = default(AmexInfo), ApplePayInfo applePay = default(ApplePayInfo), BcmcInfo bcmc = default(BcmcInfo), string businessLineId = default(string), CartesBancairesInfo cartesBancaires = default(CartesBancairesInfo), ClearpayInfo clearpay = default(ClearpayInfo), List countries = default(List), GenericPmWithTdiInfo cup = default(GenericPmWithTdiInfo), List currencies = default(List), List customRoutingFlags = default(List), GenericPmWithTdiInfo diners = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo discover = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo eftposAustralia = default(GenericPmWithTdiInfo), bool? enabled = default(bool?), GiroPayInfo giroPay = default(GiroPayInfo), GenericPmWithTdiInfo girocard = default(GenericPmWithTdiInfo), GooglePayInfo googlePay = default(GooglePayInfo), string id = default(string), GenericPmWithTdiInfo ideal = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo interacCard = default(GenericPmWithTdiInfo), JCBInfo jcb = default(JCBInfo), KlarnaInfo klarna = default(KlarnaInfo), GenericPmWithTdiInfo maestro = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo mc = default(GenericPmWithTdiInfo), MealVoucherFRInfo mealVoucherFR = default(MealVoucherFRInfo), NyceInfo nyce = default(NyceInfo), PayMeInfo payme = default(PayMeInfo), PayPalInfo paypal = default(PayPalInfo), PulseInfo pulse = default(PulseInfo), string reference = default(string), string shopperInteraction = default(string), SodexoInfo sodexo = default(SodexoInfo), SofortInfo sofort = default(SofortInfo), StarInfo star = default(StarInfo), List storeIds = default(List), SwishInfo swish = default(SwishInfo), TicketInfo ticket = default(TicketInfo), TwintInfo twint = default(TwintInfo), string type = default(string), VerificationStatusEnum? verificationStatus = default(VerificationStatusEnum?), VippsInfo vipps = default(VippsInfo), GenericPmWithTdiInfo visa = default(GenericPmWithTdiInfo), WeChatPayInfo wechatpay = default(WeChatPayInfo), WeChatPayPosInfo wechatpayPos = default(WeChatPayPosInfo))
+ public PaymentMethod(AccelInfo accel = default(AccelInfo), AfterpayTouchInfo afterpayTouch = default(AfterpayTouchInfo), bool? allowed = default(bool?), AmexInfo amex = default(AmexInfo), ApplePayInfo applePay = default(ApplePayInfo), BcmcInfo bcmc = default(BcmcInfo), string businessLineId = default(string), CartesBancairesInfo cartesBancaires = default(CartesBancairesInfo), ClearpayInfo clearpay = default(ClearpayInfo), List countries = default(List), GenericPmWithTdiInfo cup = default(GenericPmWithTdiInfo), List currencies = default(List), List customRoutingFlags = default(List), DinersInfo diners = default(DinersInfo), 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), JCBInfo jcb = default(JCBInfo), KlarnaInfo klarna = default(KlarnaInfo), GenericPmWithTdiInfo maestro = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo mc = default(GenericPmWithTdiInfo), MealVoucherFRInfo mealVoucherFR = default(MealVoucherFRInfo), NyceInfo nyce = default(NyceInfo), PayMeInfo payme = default(PayMeInfo), PayPalInfo paypal = default(PayPalInfo), PulseInfo pulse = default(PulseInfo), string reference = default(string), string shopperInteraction = default(string), SodexoInfo sodexo = default(SodexoInfo), SofortInfo sofort = default(SofortInfo), StarInfo star = default(StarInfo), List storeIds = default(List), SwishInfo swish = default(SwishInfo), TicketInfo ticket = default(TicketInfo), TwintInfo twint = default(TwintInfo), string type = default(string), VerificationStatusEnum? verificationStatus = default(VerificationStatusEnum?), VippsInfo vipps = default(VippsInfo), GenericPmWithTdiInfo visa = default(GenericPmWithTdiInfo), WeChatPayInfo wechatpay = default(WeChatPayInfo), WeChatPayPosInfo wechatpayPos = default(WeChatPayPosInfo))
{
this.Id = id;
this.Accel = accel;
@@ -265,7 +265,7 @@ protected PaymentMethod() { }
/// Gets or Sets Diners
///
[DataMember(Name = "diners", EmitDefaultValue = false)]
- public GenericPmWithTdiInfo Diners { get; set; }
+ public DinersInfo Diners { get; set; }
///
/// Gets or Sets Discover
diff --git a/Adyen/Model/Management/PaymentMethodResponse.cs b/Adyen/Model/Management/PaymentMethodResponse.cs
index 3ac483db1..033ff3b3d 100644
--- a/Adyen/Model/Management/PaymentMethodResponse.cs
+++ b/Adyen/Model/Management/PaymentMethodResponse.cs
@@ -44,431 +44,437 @@ public enum TypesWithErrorsEnum
[EnumMember(Value = "accel")]
Accel = 1,
+ ///
+ /// Enum Affirm for value: affirm
+ ///
+ [EnumMember(Value = "affirm")]
+ Affirm = 2,
+
///
/// Enum Afterpaytouch for value: afterpaytouch
///
[EnumMember(Value = "afterpaytouch")]
- Afterpaytouch = 2,
+ Afterpaytouch = 3,
///
/// Enum Alelo for value: alelo
///
[EnumMember(Value = "alelo")]
- Alelo = 3,
+ Alelo = 4,
///
/// Enum Alipay for value: alipay
///
[EnumMember(Value = "alipay")]
- Alipay = 4,
+ Alipay = 5,
///
/// Enum AlipayHk for value: alipay_hk
///
[EnumMember(Value = "alipay_hk")]
- AlipayHk = 5,
+ AlipayHk = 6,
///
/// Enum Amex for value: amex
///
[EnumMember(Value = "amex")]
- Amex = 6,
+ Amex = 7,
///
/// Enum Applepay for value: applepay
///
[EnumMember(Value = "applepay")]
- Applepay = 7,
+ Applepay = 8,
///
/// Enum BaneseCard for value: banese_card
///
[EnumMember(Value = "banese_card")]
- BaneseCard = 8,
+ BaneseCard = 9,
///
/// Enum BaneseCardCredit for value: banese_card_credit
///
[EnumMember(Value = "banese_card_credit")]
- BaneseCardCredit = 9,
+ BaneseCardCredit = 10,
///
/// Enum BaneseCardDebit for value: banese_card_debit
///
[EnumMember(Value = "banese_card_debit")]
- BaneseCardDebit = 10,
+ BaneseCardDebit = 11,
///
/// Enum BaneseCardPrepaid for value: banese_card_prepaid
///
[EnumMember(Value = "banese_card_prepaid")]
- BaneseCardPrepaid = 11,
+ BaneseCardPrepaid = 12,
///
/// Enum Bcmc for value: bcmc
///
[EnumMember(Value = "bcmc")]
- Bcmc = 12,
+ Bcmc = 13,
///
/// Enum Blik for value: blik
///
[EnumMember(Value = "blik")]
- Blik = 13,
+ Blik = 14,
///
/// Enum Cartebancaire for value: cartebancaire
///
[EnumMember(Value = "cartebancaire")]
- Cartebancaire = 14,
+ Cartebancaire = 15,
///
/// Enum Clearpay for value: clearpay
///
[EnumMember(Value = "clearpay")]
- Clearpay = 15,
+ Clearpay = 16,
///
/// Enum Clicktopay for value: clicktopay
///
[EnumMember(Value = "clicktopay")]
- Clicktopay = 16,
+ Clicktopay = 17,
///
/// Enum Credtodos for value: credtodos
///
[EnumMember(Value = "credtodos")]
- Credtodos = 17,
+ Credtodos = 18,
///
/// Enum CredtodosPrivateCredit for value: credtodos_private_credit
///
[EnumMember(Value = "credtodos_private_credit")]
- CredtodosPrivateCredit = 18,
+ CredtodosPrivateCredit = 19,
///
/// Enum CredtodosPrivateDebit for value: credtodos_private_debit
///
[EnumMember(Value = "credtodos_private_debit")]
- CredtodosPrivateDebit = 19,
+ CredtodosPrivateDebit = 20,
///
/// Enum Cup for value: cup
///
[EnumMember(Value = "cup")]
- Cup = 20,
+ Cup = 21,
///
/// Enum Diners for value: diners
///
[EnumMember(Value = "diners")]
- Diners = 21,
+ Diners = 22,
///
/// Enum DirectdebitGB for value: directdebit_GB
///
[EnumMember(Value = "directdebit_GB")]
- DirectdebitGB = 22,
+ DirectdebitGB = 23,
///
/// Enum Discover for value: discover
///
[EnumMember(Value = "discover")]
- Discover = 23,
+ Discover = 24,
///
/// Enum EbankingFI for value: ebanking_FI
///
[EnumMember(Value = "ebanking_FI")]
- EbankingFI = 24,
+ EbankingFI = 25,
///
/// Enum EftposAustralia for value: eftpos_australia
///
[EnumMember(Value = "eftpos_australia")]
- EftposAustralia = 25,
+ EftposAustralia = 26,
///
/// Enum Elo for value: elo
///
[EnumMember(Value = "elo")]
- Elo = 26,
+ Elo = 27,
///
/// Enum Elocredit for value: elocredit
///
[EnumMember(Value = "elocredit")]
- Elocredit = 27,
+ Elocredit = 28,
///
/// Enum Elodebit for value: elodebit
///
[EnumMember(Value = "elodebit")]
- Elodebit = 28,
+ Elodebit = 29,
///
/// Enum Girocard for value: girocard
///
[EnumMember(Value = "girocard")]
- Girocard = 29,
+ Girocard = 30,
///
/// Enum Googlepay for value: googlepay
///
[EnumMember(Value = "googlepay")]
- Googlepay = 30,
+ Googlepay = 31,
///
/// Enum Hiper for value: hiper
///
[EnumMember(Value = "hiper")]
- Hiper = 31,
+ Hiper = 32,
///
/// Enum Hipercard for value: hipercard
///
[EnumMember(Value = "hipercard")]
- Hipercard = 32,
+ Hipercard = 33,
///
/// Enum Ideal for value: ideal
///
[EnumMember(Value = "ideal")]
- Ideal = 33,
+ Ideal = 34,
///
/// Enum InteracCard for value: interac_card
///
[EnumMember(Value = "interac_card")]
- InteracCard = 34,
+ InteracCard = 35,
///
/// Enum Jcb for value: jcb
///
[EnumMember(Value = "jcb")]
- Jcb = 35,
+ Jcb = 36,
///
/// Enum Klarna for value: klarna
///
[EnumMember(Value = "klarna")]
- Klarna = 36,
+ Klarna = 37,
///
/// Enum KlarnaAccount for value: klarna_account
///
[EnumMember(Value = "klarna_account")]
- KlarnaAccount = 37,
+ KlarnaAccount = 38,
///
/// Enum KlarnaPaynow for value: klarna_paynow
///
[EnumMember(Value = "klarna_paynow")]
- KlarnaPaynow = 38,
+ KlarnaPaynow = 39,
///
/// Enum Maestro for value: maestro
///
[EnumMember(Value = "maestro")]
- Maestro = 39,
+ Maestro = 40,
///
/// Enum Mbway for value: mbway
///
[EnumMember(Value = "mbway")]
- Mbway = 40,
+ Mbway = 41,
///
/// Enum Mc for value: mc
///
[EnumMember(Value = "mc")]
- Mc = 41,
+ Mc = 42,
///
/// Enum Mcdebit for value: mcdebit
///
[EnumMember(Value = "mcdebit")]
- Mcdebit = 42,
+ Mcdebit = 43,
///
/// Enum MealVoucherFR for value: mealVoucher_FR
///
[EnumMember(Value = "mealVoucher_FR")]
- MealVoucherFR = 43,
+ MealVoucherFR = 44,
///
/// Enum Mobilepay for value: mobilepay
///
[EnumMember(Value = "mobilepay")]
- Mobilepay = 44,
+ Mobilepay = 45,
///
/// Enum Multibanco for value: multibanco
///
[EnumMember(Value = "multibanco")]
- Multibanco = 45,
+ Multibanco = 46,
///
/// Enum Nyce for value: nyce
///
[EnumMember(Value = "nyce")]
- Nyce = 46,
+ Nyce = 47,
///
/// Enum OnlineBankingPL for value: onlineBanking_PL
///
[EnumMember(Value = "onlineBanking_PL")]
- OnlineBankingPL = 47,
+ OnlineBankingPL = 48,
///
/// Enum Paybybank for value: paybybank
///
[EnumMember(Value = "paybybank")]
- Paybybank = 48,
+ Paybybank = 49,
///
/// Enum Payme for value: payme
///
[EnumMember(Value = "payme")]
- Payme = 49,
+ Payme = 50,
///
/// Enum PaymePos for value: payme_pos
///
[EnumMember(Value = "payme_pos")]
- PaymePos = 50,
+ PaymePos = 51,
///
/// Enum Paynow for value: paynow
///
[EnumMember(Value = "paynow")]
- Paynow = 51,
+ Paynow = 52,
///
/// Enum PaynowPos for value: paynow_pos
///
[EnumMember(Value = "paynow_pos")]
- PaynowPos = 52,
+ PaynowPos = 53,
///
/// Enum Paypal for value: paypal
///
[EnumMember(Value = "paypal")]
- Paypal = 53,
+ Paypal = 54,
///
/// Enum Payshop for value: payshop
///
[EnumMember(Value = "payshop")]
- Payshop = 54,
+ Payshop = 55,
///
/// Enum Pulse for value: pulse
///
[EnumMember(Value = "pulse")]
- Pulse = 55,
+ Pulse = 56,
///
/// Enum Sodexo for value: sodexo
///
[EnumMember(Value = "sodexo")]
- Sodexo = 56,
+ Sodexo = 57,
///
/// Enum Star for value: star
///
[EnumMember(Value = "star")]
- Star = 57,
+ Star = 58,
///
/// Enum Swish for value: swish
///
[EnumMember(Value = "swish")]
- Swish = 58,
+ Swish = 59,
///
/// Enum Ticket for value: ticket
///
[EnumMember(Value = "ticket")]
- Ticket = 59,
+ Ticket = 60,
///
/// Enum TodoGiftcard for value: todo_giftcard
///
[EnumMember(Value = "todo_giftcard")]
- TodoGiftcard = 60,
+ TodoGiftcard = 61,
///
/// Enum Trustly for value: trustly
///
[EnumMember(Value = "trustly")]
- Trustly = 61,
+ Trustly = 62,
///
/// Enum Twint for value: twint
///
[EnumMember(Value = "twint")]
- Twint = 62,
+ Twint = 63,
///
/// Enum TwintPos for value: twint_pos
///
[EnumMember(Value = "twint_pos")]
- TwintPos = 63,
+ TwintPos = 64,
///
/// Enum UpBrazilCredit for value: up_brazil_credit
///
[EnumMember(Value = "up_brazil_credit")]
- UpBrazilCredit = 64,
+ UpBrazilCredit = 65,
///
/// Enum ValeRefeicao for value: vale_refeicao
///
[EnumMember(Value = "vale_refeicao")]
- ValeRefeicao = 65,
+ ValeRefeicao = 66,
///
/// Enum ValeRefeicaoPrepaid for value: vale_refeicao_prepaid
///
[EnumMember(Value = "vale_refeicao_prepaid")]
- ValeRefeicaoPrepaid = 66,
+ ValeRefeicaoPrepaid = 67,
///
/// Enum Vipps for value: vipps
///
[EnumMember(Value = "vipps")]
- Vipps = 67,
+ Vipps = 68,
///
/// Enum Visa for value: visa
///
[EnumMember(Value = "visa")]
- Visa = 68,
+ Visa = 69,
///
/// Enum Visadebit for value: visadebit
///
[EnumMember(Value = "visadebit")]
- Visadebit = 69,
+ Visadebit = 70,
///
/// Enum Vpay for value: vpay
///
[EnumMember(Value = "vpay")]
- Vpay = 70,
+ Vpay = 71,
///
/// Enum Wechatpay for value: wechatpay
///
[EnumMember(Value = "wechatpay")]
- Wechatpay = 71,
+ Wechatpay = 72,
///
/// Enum WechatpayPos for value: wechatpay_pos
///
[EnumMember(Value = "wechatpay_pos")]
- WechatpayPos = 72
+ WechatpayPos = 73
}
diff --git a/Adyen/Model/Management/PaymentMethodSetupInfo.cs b/Adyen/Model/Management/PaymentMethodSetupInfo.cs
index d0501a533..a91ff287a 100644
--- a/Adyen/Model/Management/PaymentMethodSetupInfo.cs
+++ b/Adyen/Model/Management/PaymentMethodSetupInfo.cs
@@ -85,431 +85,437 @@ public enum TypeEnum
[EnumMember(Value = "accel")]
Accel = 1,
+ ///
+ /// Enum Affirm for value: affirm
+ ///
+ [EnumMember(Value = "affirm")]
+ Affirm = 2,
+
///
/// Enum Afterpaytouch for value: afterpaytouch
///
[EnumMember(Value = "afterpaytouch")]
- Afterpaytouch = 2,
+ Afterpaytouch = 3,
///
/// Enum Alelo for value: alelo
///
[EnumMember(Value = "alelo")]
- Alelo = 3,
+ Alelo = 4,
///
/// Enum Alipay for value: alipay
///
[EnumMember(Value = "alipay")]
- Alipay = 4,
+ Alipay = 5,
///
/// Enum AlipayHk for value: alipay_hk
///
[EnumMember(Value = "alipay_hk")]
- AlipayHk = 5,
+ AlipayHk = 6,
///
/// Enum Amex for value: amex
///
[EnumMember(Value = "amex")]
- Amex = 6,
+ Amex = 7,
///
/// Enum Applepay for value: applepay
///
[EnumMember(Value = "applepay")]
- Applepay = 7,
+ Applepay = 8,
///
/// Enum BaneseCard for value: banese_card
///
[EnumMember(Value = "banese_card")]
- BaneseCard = 8,
+ BaneseCard = 9,
///
/// Enum BaneseCardCredit for value: banese_card_credit
///
[EnumMember(Value = "banese_card_credit")]
- BaneseCardCredit = 9,
+ BaneseCardCredit = 10,
///
/// Enum BaneseCardDebit for value: banese_card_debit
///
[EnumMember(Value = "banese_card_debit")]
- BaneseCardDebit = 10,
+ BaneseCardDebit = 11,
///
/// Enum BaneseCardPrepaid for value: banese_card_prepaid
///
[EnumMember(Value = "banese_card_prepaid")]
- BaneseCardPrepaid = 11,
+ BaneseCardPrepaid = 12,
///
/// Enum Bcmc for value: bcmc
///
[EnumMember(Value = "bcmc")]
- Bcmc = 12,
+ Bcmc = 13,
///
/// Enum Blik for value: blik
///
[EnumMember(Value = "blik")]
- Blik = 13,
+ Blik = 14,
///
/// Enum Cartebancaire for value: cartebancaire
///
[EnumMember(Value = "cartebancaire")]
- Cartebancaire = 14,
+ Cartebancaire = 15,
///
/// Enum Clearpay for value: clearpay
///
[EnumMember(Value = "clearpay")]
- Clearpay = 15,
+ Clearpay = 16,
///
/// Enum Clicktopay for value: clicktopay
///
[EnumMember(Value = "clicktopay")]
- Clicktopay = 16,
+ Clicktopay = 17,
///
/// Enum Credtodos for value: credtodos
///
[EnumMember(Value = "credtodos")]
- Credtodos = 17,
+ Credtodos = 18,
///
/// Enum CredtodosPrivateCredit for value: credtodos_private_credit
///
[EnumMember(Value = "credtodos_private_credit")]
- CredtodosPrivateCredit = 18,
+ CredtodosPrivateCredit = 19,
///
/// Enum CredtodosPrivateDebit for value: credtodos_private_debit
///
[EnumMember(Value = "credtodos_private_debit")]
- CredtodosPrivateDebit = 19,
+ CredtodosPrivateDebit = 20,
///
/// Enum Cup for value: cup
///
[EnumMember(Value = "cup")]
- Cup = 20,
+ Cup = 21,
///
/// Enum Diners for value: diners
///
[EnumMember(Value = "diners")]
- Diners = 21,
+ Diners = 22,
///
/// Enum DirectdebitGB for value: directdebit_GB
///
[EnumMember(Value = "directdebit_GB")]
- DirectdebitGB = 22,
+ DirectdebitGB = 23,
///
/// Enum Discover for value: discover
///
[EnumMember(Value = "discover")]
- Discover = 23,
+ Discover = 24,
///
/// Enum EbankingFI for value: ebanking_FI
///
[EnumMember(Value = "ebanking_FI")]
- EbankingFI = 24,
+ EbankingFI = 25,
///
/// Enum EftposAustralia for value: eftpos_australia
///
[EnumMember(Value = "eftpos_australia")]
- EftposAustralia = 25,
+ EftposAustralia = 26,
///
/// Enum Elo for value: elo
///
[EnumMember(Value = "elo")]
- Elo = 26,
+ Elo = 27,
///
/// Enum Elocredit for value: elocredit
///
[EnumMember(Value = "elocredit")]
- Elocredit = 27,
+ Elocredit = 28,
///
/// Enum Elodebit for value: elodebit
///
[EnumMember(Value = "elodebit")]
- Elodebit = 28,
+ Elodebit = 29,
///
/// Enum Girocard for value: girocard
///
[EnumMember(Value = "girocard")]
- Girocard = 29,
+ Girocard = 30,
///
/// Enum Googlepay for value: googlepay
///
[EnumMember(Value = "googlepay")]
- Googlepay = 30,
+ Googlepay = 31,
///
/// Enum Hiper for value: hiper
///
[EnumMember(Value = "hiper")]
- Hiper = 31,
+ Hiper = 32,
///
/// Enum Hipercard for value: hipercard
///
[EnumMember(Value = "hipercard")]
- Hipercard = 32,
+ Hipercard = 33,
///
/// Enum Ideal for value: ideal
///
[EnumMember(Value = "ideal")]
- Ideal = 33,
+ Ideal = 34,
///
/// Enum InteracCard for value: interac_card
///
[EnumMember(Value = "interac_card")]
- InteracCard = 34,
+ InteracCard = 35,
///
/// Enum Jcb for value: jcb
///
[EnumMember(Value = "jcb")]
- Jcb = 35,
+ Jcb = 36,
///
/// Enum Klarna for value: klarna
///
[EnumMember(Value = "klarna")]
- Klarna = 36,
+ Klarna = 37,
///
/// Enum KlarnaAccount for value: klarna_account
///
[EnumMember(Value = "klarna_account")]
- KlarnaAccount = 37,
+ KlarnaAccount = 38,
///
/// Enum KlarnaPaynow for value: klarna_paynow
///
[EnumMember(Value = "klarna_paynow")]
- KlarnaPaynow = 38,
+ KlarnaPaynow = 39,
///
/// Enum Maestro for value: maestro
///
[EnumMember(Value = "maestro")]
- Maestro = 39,
+ Maestro = 40,
///
/// Enum Mbway for value: mbway
///
[EnumMember(Value = "mbway")]
- Mbway = 40,
+ Mbway = 41,
///
/// Enum Mc for value: mc
///
[EnumMember(Value = "mc")]
- Mc = 41,
+ Mc = 42,
///
/// Enum Mcdebit for value: mcdebit
///
[EnumMember(Value = "mcdebit")]
- Mcdebit = 42,
+ Mcdebit = 43,
///
/// Enum MealVoucherFR for value: mealVoucher_FR
///
[EnumMember(Value = "mealVoucher_FR")]
- MealVoucherFR = 43,
+ MealVoucherFR = 44,
///
/// Enum Mobilepay for value: mobilepay
///
[EnumMember(Value = "mobilepay")]
- Mobilepay = 44,
+ Mobilepay = 45,
///
/// Enum Multibanco for value: multibanco
///
[EnumMember(Value = "multibanco")]
- Multibanco = 45,
+ Multibanco = 46,
///
/// Enum Nyce for value: nyce
///
[EnumMember(Value = "nyce")]
- Nyce = 46,
+ Nyce = 47,
///
/// Enum OnlineBankingPL for value: onlineBanking_PL
///
[EnumMember(Value = "onlineBanking_PL")]
- OnlineBankingPL = 47,
+ OnlineBankingPL = 48,
///
/// Enum Paybybank for value: paybybank
///
[EnumMember(Value = "paybybank")]
- Paybybank = 48,
+ Paybybank = 49,
///
/// Enum Payme for value: payme
///
[EnumMember(Value = "payme")]
- Payme = 49,
+ Payme = 50,
///
/// Enum PaymePos for value: payme_pos
///
[EnumMember(Value = "payme_pos")]
- PaymePos = 50,
+ PaymePos = 51,
///
/// Enum Paynow for value: paynow
///
[EnumMember(Value = "paynow")]
- Paynow = 51,
+ Paynow = 52,
///
/// Enum PaynowPos for value: paynow_pos
///
[EnumMember(Value = "paynow_pos")]
- PaynowPos = 52,
+ PaynowPos = 53,
///
/// Enum Paypal for value: paypal
///
[EnumMember(Value = "paypal")]
- Paypal = 53,
+ Paypal = 54,
///
/// Enum Payshop for value: payshop
///
[EnumMember(Value = "payshop")]
- Payshop = 54,
+ Payshop = 55,
///
/// Enum Pulse for value: pulse
///
[EnumMember(Value = "pulse")]
- Pulse = 55,
+ Pulse = 56,
///
/// Enum Sodexo for value: sodexo
///
[EnumMember(Value = "sodexo")]
- Sodexo = 56,
+ Sodexo = 57,
///
/// Enum Star for value: star
///
[EnumMember(Value = "star")]
- Star = 57,
+ Star = 58,
///
/// Enum Swish for value: swish
///
[EnumMember(Value = "swish")]
- Swish = 58,
+ Swish = 59,
///
/// Enum Ticket for value: ticket
///
[EnumMember(Value = "ticket")]
- Ticket = 59,
+ Ticket = 60,
///
/// Enum TodoGiftcard for value: todo_giftcard
///
[EnumMember(Value = "todo_giftcard")]
- TodoGiftcard = 60,
+ TodoGiftcard = 61,
///
/// Enum Trustly for value: trustly
///
[EnumMember(Value = "trustly")]
- Trustly = 61,
+ Trustly = 62,
///
/// Enum Twint for value: twint
///
[EnumMember(Value = "twint")]
- Twint = 62,
+ Twint = 63,
///
/// Enum TwintPos for value: twint_pos
///
[EnumMember(Value = "twint_pos")]
- TwintPos = 63,
+ TwintPos = 64,
///
/// Enum UpBrazilCredit for value: up_brazil_credit
///
[EnumMember(Value = "up_brazil_credit")]
- UpBrazilCredit = 64,
+ UpBrazilCredit = 65,
///
/// Enum ValeRefeicao for value: vale_refeicao
///
[EnumMember(Value = "vale_refeicao")]
- ValeRefeicao = 65,
+ ValeRefeicao = 66,
///
/// Enum ValeRefeicaoPrepaid for value: vale_refeicao_prepaid
///
[EnumMember(Value = "vale_refeicao_prepaid")]
- ValeRefeicaoPrepaid = 66,
+ ValeRefeicaoPrepaid = 67,
///
/// Enum Vipps for value: vipps
///
[EnumMember(Value = "vipps")]
- Vipps = 67,
+ Vipps = 68,
///
/// Enum Visa for value: visa
///
[EnumMember(Value = "visa")]
- Visa = 68,
+ Visa = 69,
///
/// Enum Visadebit for value: visadebit
///
[EnumMember(Value = "visadebit")]
- Visadebit = 69,
+ Visadebit = 70,
///
/// Enum Vpay for value: vpay
///
[EnumMember(Value = "vpay")]
- Vpay = 70,
+ Vpay = 71,
///
/// Enum Wechatpay for value: wechatpay
///
[EnumMember(Value = "wechatpay")]
- Wechatpay = 71,
+ Wechatpay = 72,
///
/// Enum WechatpayPos for value: wechatpay_pos
///
[EnumMember(Value = "wechatpay_pos")]
- WechatpayPos = 72
+ WechatpayPos = 73
}
@@ -571,7 +577,7 @@ protected PaymentMethodSetupInfo() { }
/// visa.
/// wechatpay.
/// wechatpayPos.
- public PaymentMethodSetupInfo(AccelInfo accel = default(AccelInfo), AfterpayTouchInfo afterpayTouch = default(AfterpayTouchInfo), AmexInfo amex = default(AmexInfo), ApplePayInfo applePay = default(ApplePayInfo), BcmcInfo bcmc = default(BcmcInfo), string businessLineId = default(string), CartesBancairesInfo cartesBancaires = default(CartesBancairesInfo), ClearpayInfo clearpay = default(ClearpayInfo), List countries = default(List), GenericPmWithTdiInfo cup = default(GenericPmWithTdiInfo), List currencies = default(List), List customRoutingFlags = default(List), GenericPmWithTdiInfo diners = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo discover = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo eftposAustralia = default(GenericPmWithTdiInfo), GiroPayInfo giroPay = default(GiroPayInfo), GenericPmWithTdiInfo girocard = default(GenericPmWithTdiInfo), GooglePayInfo googlePay = default(GooglePayInfo), GenericPmWithTdiInfo ideal = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo interacCard = default(GenericPmWithTdiInfo), JCBInfo jcb = default(JCBInfo), KlarnaInfo klarna = default(KlarnaInfo), GenericPmWithTdiInfo maestro = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo mc = default(GenericPmWithTdiInfo), MealVoucherFRInfo mealVoucherFR = default(MealVoucherFRInfo), NyceInfo nyce = default(NyceInfo), PayMeInfo payme = default(PayMeInfo), PayPalInfo paypal = default(PayPalInfo), PulseInfo pulse = default(PulseInfo), string reference = default(string), ShopperInteractionEnum? shopperInteraction = default(ShopperInteractionEnum?), SodexoInfo sodexo = default(SodexoInfo), SofortInfo sofort = default(SofortInfo), StarInfo star = default(StarInfo), List storeIds = default(List), SwishInfo swish = default(SwishInfo), TicketInfo ticket = default(TicketInfo), TwintInfo twint = default(TwintInfo), TypeEnum type = default(TypeEnum), VippsInfo vipps = default(VippsInfo), GenericPmWithTdiInfo visa = default(GenericPmWithTdiInfo), WeChatPayInfo wechatpay = default(WeChatPayInfo), WeChatPayPosInfo wechatpayPos = default(WeChatPayPosInfo))
+ public PaymentMethodSetupInfo(AccelInfo accel = default(AccelInfo), AfterpayTouchInfo afterpayTouch = default(AfterpayTouchInfo), AmexInfo amex = default(AmexInfo), ApplePayInfo applePay = default(ApplePayInfo), BcmcInfo bcmc = default(BcmcInfo), string businessLineId = default(string), CartesBancairesInfo cartesBancaires = default(CartesBancairesInfo), ClearpayInfo clearpay = default(ClearpayInfo), List countries = default(List), GenericPmWithTdiInfo cup = default(GenericPmWithTdiInfo), List currencies = default(List), List customRoutingFlags = default(List), DinersInfo diners = default(DinersInfo), 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), JCBInfo jcb = default(JCBInfo), KlarnaInfo klarna = default(KlarnaInfo), GenericPmWithTdiInfo maestro = default(GenericPmWithTdiInfo), GenericPmWithTdiInfo mc = default(GenericPmWithTdiInfo), MealVoucherFRInfo mealVoucherFR = default(MealVoucherFRInfo), NyceInfo nyce = default(NyceInfo), PayMeInfo payme = default(PayMeInfo), PayPalInfo paypal = default(PayPalInfo), PulseInfo pulse = default(PulseInfo), string reference = default(string), ShopperInteractionEnum? shopperInteraction = default(ShopperInteractionEnum?), SodexoInfo sodexo = default(SodexoInfo), SofortInfo sofort = default(SofortInfo), StarInfo star = default(StarInfo), List storeIds = default(List), SwishInfo swish = default(SwishInfo), TicketInfo ticket = default(TicketInfo), TwintInfo twint = default(TwintInfo), TypeEnum type = default(TypeEnum), VippsInfo vipps = default(VippsInfo), GenericPmWithTdiInfo visa = default(GenericPmWithTdiInfo), WeChatPayInfo wechatpay = default(WeChatPayInfo), WeChatPayPosInfo wechatpayPos = default(WeChatPayPosInfo))
{
this.Type = type;
this.Accel = accel;
@@ -698,7 +704,7 @@ protected PaymentMethodSetupInfo() { }
/// Gets or Sets Diners
///
[DataMember(Name = "diners", EmitDefaultValue = false)]
- public GenericPmWithTdiInfo Diners { get; set; }
+ public DinersInfo Diners { get; set; }
///
/// Gets or Sets Discover