diff --git a/Adyen/Model/BalancePlatform/AULocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/AULocalAccountIdentification.cs
index 8e913060d..c278244f4 100644
--- a/Adyen/Model/BalancePlatform/AULocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/AULocalAccountIdentification.cs
@@ -64,12 +64,15 @@ protected AULocalAccountIdentification() { }
///
/// The bank account number, without separators or whitespace. (required).
/// The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. (required).
+ /// The form factor of bank account. (default to "physical").
/// **auLocal** (required) (default to TypeEnum.AuLocal).
- public AULocalAccountIdentification(string accountNumber = default(string), string bsbCode = default(string), TypeEnum type = TypeEnum.AuLocal)
+ public AULocalAccountIdentification(string accountNumber = default(string), string bsbCode = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.AuLocal)
{
this.AccountNumber = accountNumber;
this.BsbCode = bsbCode;
this.Type = type;
+ // use default value if no "formFactor" provided
+ this.FormFactor = formFactor ?? "physical";
}
///
@@ -86,6 +89,13 @@ protected AULocalAccountIdentification() { }
[DataMember(Name = "bsbCode", IsRequired = false, EmitDefaultValue = false)]
public string BsbCode { get; set; }
+ ///
+ /// The form factor of bank account.
+ ///
+ /// The form factor of bank account.
+ [DataMember(Name = "formFactor", EmitDefaultValue = false)]
+ public string FormFactor { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -96,6 +106,7 @@ public override string ToString()
sb.Append("class AULocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" BsbCode: ").Append(BsbCode).Append("\n");
+ sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -142,6 +153,11 @@ public bool Equals(AULocalAccountIdentification input)
(this.BsbCode != null &&
this.BsbCode.Equals(input.BsbCode))
) &&
+ (
+ this.FormFactor == input.FormFactor ||
+ (this.FormFactor != null &&
+ this.FormFactor.Equals(input.FormFactor))
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -165,6 +181,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.BsbCode.GetHashCode();
}
+ if (this.FormFactor != null)
+ {
+ hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/BRLocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/BRLocalAccountIdentification.cs
index cd96b5b53..d86ae0898 100644
--- a/Adyen/Model/BalancePlatform/BRLocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/BRLocalAccountIdentification.cs
@@ -65,13 +65,16 @@ protected BRLocalAccountIdentification() { }
/// The bank account number, without separators or whitespace. (required).
/// The 3-digit bank code, with leading zeros. (required).
/// The bank account branch number, without separators or whitespace. (required).
+ /// The form factor of bank account. (default to "physical").
/// **brLocal** (required) (default to TypeEnum.BrLocal).
- public BRLocalAccountIdentification(string accountNumber = default(string), string bankCode = default(string), string branchNumber = default(string), TypeEnum type = TypeEnum.BrLocal)
+ public BRLocalAccountIdentification(string accountNumber = default(string), string bankCode = default(string), string branchNumber = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.BrLocal)
{
this.AccountNumber = accountNumber;
this.BankCode = bankCode;
this.BranchNumber = branchNumber;
this.Type = type;
+ // use default value if no "formFactor" provided
+ this.FormFactor = formFactor ?? "physical";
}
///
@@ -95,6 +98,13 @@ protected BRLocalAccountIdentification() { }
[DataMember(Name = "branchNumber", IsRequired = false, EmitDefaultValue = false)]
public string BranchNumber { get; set; }
+ ///
+ /// The form factor of bank account.
+ ///
+ /// The form factor of bank account.
+ [DataMember(Name = "formFactor", EmitDefaultValue = false)]
+ public string FormFactor { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -106,6 +116,7 @@ public override string ToString()
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" BankCode: ").Append(BankCode).Append("\n");
sb.Append(" BranchNumber: ").Append(BranchNumber).Append("\n");
+ sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -157,6 +168,11 @@ public bool Equals(BRLocalAccountIdentification input)
(this.BranchNumber != null &&
this.BranchNumber.Equals(input.BranchNumber))
) &&
+ (
+ this.FormFactor == input.FormFactor ||
+ (this.FormFactor != null &&
+ this.FormFactor.Equals(input.FormFactor))
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -184,6 +200,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.BranchNumber.GetHashCode();
}
+ if (this.FormFactor != null)
+ {
+ hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/BankIdentification.cs b/Adyen/Model/BalancePlatform/BankIdentification.cs
index fb74922cf..6463ab065 100644
--- a/Adyen/Model/BalancePlatform/BankIdentification.cs
+++ b/Adyen/Model/BalancePlatform/BankIdentification.cs
@@ -33,8 +33,9 @@ namespace Adyen.Model.BalancePlatform
public partial class BankIdentification : IEquatable, IValidatableObject
{
///
- /// Defines IdentificationType
+ /// The type of the identification. Possible values: **iban**, **routingNumber**.
///
+ /// The type of the identification. Possible values: **iban**, **routingNumber**.
[JsonConverter(typeof(StringEnumConverter))]
public enum IdentificationTypeEnum
{
@@ -54,16 +55,17 @@ public enum IdentificationTypeEnum
///
- /// Gets or Sets IdentificationType
+ /// The type of the identification. Possible values: **iban**, **routingNumber**.
///
+ /// The type of the identification. Possible values: **iban**, **routingNumber**.
[DataMember(Name = "identificationType", EmitDefaultValue = false)]
public IdentificationTypeEnum? IdentificationType { get; set; }
///
/// Initializes a new instance of the class.
///
- /// country.
- /// identification.
- /// identificationType.
+ /// Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code..
+ /// The bank identification code..
+ /// The type of the identification. Possible values: **iban**, **routingNumber**..
public BankIdentification(string country = default(string), string identification = default(string), IdentificationTypeEnum? identificationType = default(IdentificationTypeEnum?))
{
this.Country = country;
@@ -72,14 +74,16 @@ public enum IdentificationTypeEnum
}
///
- /// Gets or Sets Country
+ /// Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.
///
+ /// Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.
[DataMember(Name = "country", EmitDefaultValue = false)]
public string Country { get; set; }
///
- /// Gets or Sets Identification
+ /// The bank identification code.
///
+ /// The bank identification code.
[DataMember(Name = "identification", EmitDefaultValue = false)]
public string Identification { get; set; }
diff --git a/Adyen/Model/BalancePlatform/CALocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/CALocalAccountIdentification.cs
index 706a50142..7720ff3cf 100644
--- a/Adyen/Model/BalancePlatform/CALocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/CALocalAccountIdentification.cs
@@ -92,16 +92,19 @@ protected CALocalAccountIdentification() { }
///
/// The 5- to 12-digit bank account number, without separators or whitespace. (required).
/// The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. (default to AccountTypeEnum.Checking).
+ /// The form factor of bank account. (default to "physical").
/// The 3-digit institution number, without separators or whitespace. (required).
/// The 5-digit transit number, without separators or whitespace. (required).
/// **caLocal** (required) (default to TypeEnum.CaLocal).
- public CALocalAccountIdentification(string accountNumber = default(string), AccountTypeEnum? accountType = AccountTypeEnum.Checking, string institutionNumber = default(string), string transitNumber = default(string), TypeEnum type = TypeEnum.CaLocal)
+ public CALocalAccountIdentification(string accountNumber = default(string), AccountTypeEnum? accountType = AccountTypeEnum.Checking, string formFactor = "physical", string institutionNumber = default(string), string transitNumber = default(string), TypeEnum type = TypeEnum.CaLocal)
{
this.AccountNumber = accountNumber;
this.InstitutionNumber = institutionNumber;
this.TransitNumber = transitNumber;
this.Type = type;
this.AccountType = accountType;
+ // use default value if no "formFactor" provided
+ this.FormFactor = formFactor ?? "physical";
}
///
@@ -111,6 +114,13 @@ protected CALocalAccountIdentification() { }
[DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
public string AccountNumber { get; set; }
+ ///
+ /// The form factor of bank account.
+ ///
+ /// The form factor of bank account.
+ [DataMember(Name = "formFactor", EmitDefaultValue = false)]
+ public string FormFactor { get; set; }
+
///
/// The 3-digit institution number, without separators or whitespace.
///
@@ -135,6 +145,7 @@ public override string ToString()
sb.Append("class CALocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" AccountType: ").Append(AccountType).Append("\n");
+ sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" InstitutionNumber: ").Append(InstitutionNumber).Append("\n");
sb.Append(" TransitNumber: ").Append(TransitNumber).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
@@ -182,6 +193,11 @@ public bool Equals(CALocalAccountIdentification input)
this.AccountType == input.AccountType ||
this.AccountType.Equals(input.AccountType)
) &&
+ (
+ this.FormFactor == input.FormFactor ||
+ (this.FormFactor != null &&
+ this.FormFactor.Equals(input.FormFactor))
+ ) &&
(
this.InstitutionNumber == input.InstitutionNumber ||
(this.InstitutionNumber != null &&
@@ -212,6 +228,10 @@ public override int GetHashCode()
hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
}
hashCode = (hashCode * 59) + this.AccountType.GetHashCode();
+ if (this.FormFactor != null)
+ {
+ hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
+ }
if (this.InstitutionNumber != null)
{
hashCode = (hashCode * 59) + this.InstitutionNumber.GetHashCode();
diff --git a/Adyen/Model/BalancePlatform/CZLocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/CZLocalAccountIdentification.cs
index 61a40a2c7..4930259b7 100644
--- a/Adyen/Model/BalancePlatform/CZLocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/CZLocalAccountIdentification.cs
@@ -64,12 +64,15 @@ protected CZLocalAccountIdentification() { }
///
/// The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) (required).
/// The 4-digit bank code (Kód banky), without separators or whitespace. (required).
+ /// The form factor of bank account. (default to "physical").
/// **czLocal** (required) (default to TypeEnum.CzLocal).
- public CZLocalAccountIdentification(string accountNumber = default(string), string bankCode = default(string), TypeEnum type = TypeEnum.CzLocal)
+ public CZLocalAccountIdentification(string accountNumber = default(string), string bankCode = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.CzLocal)
{
this.AccountNumber = accountNumber;
this.BankCode = bankCode;
this.Type = type;
+ // use default value if no "formFactor" provided
+ this.FormFactor = formFactor ?? "physical";
}
///
@@ -86,6 +89,13 @@ protected CZLocalAccountIdentification() { }
[DataMember(Name = "bankCode", IsRequired = false, EmitDefaultValue = false)]
public string BankCode { get; set; }
+ ///
+ /// The form factor of bank account.
+ ///
+ /// The form factor of bank account.
+ [DataMember(Name = "formFactor", EmitDefaultValue = false)]
+ public string FormFactor { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -96,6 +106,7 @@ public override string ToString()
sb.Append("class CZLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" BankCode: ").Append(BankCode).Append("\n");
+ sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -142,6 +153,11 @@ public bool Equals(CZLocalAccountIdentification input)
(this.BankCode != null &&
this.BankCode.Equals(input.BankCode))
) &&
+ (
+ this.FormFactor == input.FormFactor ||
+ (this.FormFactor != null &&
+ this.FormFactor.Equals(input.FormFactor))
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -165,6 +181,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.BankCode.GetHashCode();
}
+ if (this.FormFactor != null)
+ {
+ hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/DKLocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/DKLocalAccountIdentification.cs
index fafd717cb..d58cca7e8 100644
--- a/Adyen/Model/BalancePlatform/DKLocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/DKLocalAccountIdentification.cs
@@ -64,12 +64,15 @@ protected DKLocalAccountIdentification() { }
///
/// The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). (required).
/// The 4-digit bank code (Registreringsnummer) (without separators or whitespace). (required).
+ /// The form factor of bank account. (default to "physical").
/// **dkLocal** (required) (default to TypeEnum.DkLocal).
- public DKLocalAccountIdentification(string accountNumber = default(string), string bankCode = default(string), TypeEnum type = TypeEnum.DkLocal)
+ public DKLocalAccountIdentification(string accountNumber = default(string), string bankCode = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.DkLocal)
{
this.AccountNumber = accountNumber;
this.BankCode = bankCode;
this.Type = type;
+ // use default value if no "formFactor" provided
+ this.FormFactor = formFactor ?? "physical";
}
///
@@ -86,6 +89,13 @@ protected DKLocalAccountIdentification() { }
[DataMember(Name = "bankCode", IsRequired = false, EmitDefaultValue = false)]
public string BankCode { get; set; }
+ ///
+ /// The form factor of bank account.
+ ///
+ /// The form factor of bank account.
+ [DataMember(Name = "formFactor", EmitDefaultValue = false)]
+ public string FormFactor { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -96,6 +106,7 @@ public override string ToString()
sb.Append("class DKLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" BankCode: ").Append(BankCode).Append("\n");
+ sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -142,6 +153,11 @@ public bool Equals(DKLocalAccountIdentification input)
(this.BankCode != null &&
this.BankCode.Equals(input.BankCode))
) &&
+ (
+ this.FormFactor == input.FormFactor ||
+ (this.FormFactor != null &&
+ this.FormFactor.Equals(input.FormFactor))
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -165,6 +181,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.BankCode.GetHashCode();
}
+ if (this.FormFactor != null)
+ {
+ hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/HKLocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/HKLocalAccountIdentification.cs
index faff07257..c7243d21e 100644
--- a/Adyen/Model/BalancePlatform/HKLocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/HKLocalAccountIdentification.cs
@@ -64,12 +64,15 @@ protected HKLocalAccountIdentification() { }
///
/// The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. (required).
/// The 3-digit clearing code, without separators or whitespace. (required).
+ /// The form factor of bank account. (default to "physical").
/// **hkLocal** (required) (default to TypeEnum.HkLocal).
- public HKLocalAccountIdentification(string accountNumber = default(string), string clearingCode = default(string), TypeEnum type = TypeEnum.HkLocal)
+ public HKLocalAccountIdentification(string accountNumber = default(string), string clearingCode = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.HkLocal)
{
this.AccountNumber = accountNumber;
this.ClearingCode = clearingCode;
this.Type = type;
+ // use default value if no "formFactor" provided
+ this.FormFactor = formFactor ?? "physical";
}
///
@@ -86,6 +89,13 @@ protected HKLocalAccountIdentification() { }
[DataMember(Name = "clearingCode", IsRequired = false, EmitDefaultValue = false)]
public string ClearingCode { get; set; }
+ ///
+ /// The form factor of bank account.
+ ///
+ /// The form factor of bank account.
+ [DataMember(Name = "formFactor", EmitDefaultValue = false)]
+ public string FormFactor { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -96,6 +106,7 @@ public override string ToString()
sb.Append("class HKLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" ClearingCode: ").Append(ClearingCode).Append("\n");
+ sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -142,6 +153,11 @@ public bool Equals(HKLocalAccountIdentification input)
(this.ClearingCode != null &&
this.ClearingCode.Equals(input.ClearingCode))
) &&
+ (
+ this.FormFactor == input.FormFactor ||
+ (this.FormFactor != null &&
+ this.FormFactor.Equals(input.FormFactor))
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -165,6 +181,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.ClearingCode.GetHashCode();
}
+ if (this.FormFactor != null)
+ {
+ hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/HULocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/HULocalAccountIdentification.cs
index 6ef4724d2..1c4c32ba7 100644
--- a/Adyen/Model/BalancePlatform/HULocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/HULocalAccountIdentification.cs
@@ -63,11 +63,14 @@ protected HULocalAccountIdentification() { }
/// Initializes a new instance of the class.
///
/// The 24-digit bank account number, without separators or whitespace. (required).
+ /// The form factor of bank account. (default to "physical").
/// **huLocal** (required) (default to TypeEnum.HuLocal).
- public HULocalAccountIdentification(string accountNumber = default(string), TypeEnum type = TypeEnum.HuLocal)
+ public HULocalAccountIdentification(string accountNumber = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.HuLocal)
{
this.AccountNumber = accountNumber;
this.Type = type;
+ // use default value if no "formFactor" provided
+ this.FormFactor = formFactor ?? "physical";
}
///
@@ -77,6 +80,13 @@ protected HULocalAccountIdentification() { }
[DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
public string AccountNumber { get; set; }
+ ///
+ /// The form factor of bank account.
+ ///
+ /// The form factor of bank account.
+ [DataMember(Name = "formFactor", EmitDefaultValue = false)]
+ public string FormFactor { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -86,6 +96,7 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class HULocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
+ sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -127,6 +138,11 @@ public bool Equals(HULocalAccountIdentification input)
(this.AccountNumber != null &&
this.AccountNumber.Equals(input.AccountNumber))
) &&
+ (
+ this.FormFactor == input.FormFactor ||
+ (this.FormFactor != null &&
+ this.FormFactor.Equals(input.FormFactor))
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -146,6 +162,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
}
+ if (this.FormFactor != null)
+ {
+ hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/IbanAccountIdentification.cs b/Adyen/Model/BalancePlatform/IbanAccountIdentification.cs
index 414943838..34a1c630f 100644
--- a/Adyen/Model/BalancePlatform/IbanAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/IbanAccountIdentification.cs
@@ -62,14 +62,24 @@ protected IbanAccountIdentification() { }
///
/// Initializes a new instance of the class.
///
+ /// The form factor of bank account. (default to "physical").
/// The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. (required).
/// **iban** (required) (default to TypeEnum.Iban).
- public IbanAccountIdentification(string iban = default(string), TypeEnum type = TypeEnum.Iban)
+ public IbanAccountIdentification(string formFactor = "physical", string iban = default(string), TypeEnum type = TypeEnum.Iban)
{
this.Iban = iban;
this.Type = type;
+ // use default value if no "formFactor" provided
+ this.FormFactor = formFactor ?? "physical";
}
+ ///
+ /// The form factor of bank account.
+ ///
+ /// The form factor of bank account.
+ [DataMember(Name = "formFactor", EmitDefaultValue = false)]
+ public string FormFactor { get; set; }
+
///
/// The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard.
///
@@ -85,6 +95,7 @@ public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class IbanAccountIdentification {\n");
+ sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Iban: ").Append(Iban).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
@@ -122,6 +133,11 @@ public bool Equals(IbanAccountIdentification input)
return false;
}
return
+ (
+ this.FormFactor == input.FormFactor ||
+ (this.FormFactor != null &&
+ this.FormFactor.Equals(input.FormFactor))
+ ) &&
(
this.Iban == input.Iban ||
(this.Iban != null &&
@@ -142,6 +158,10 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
+ if (this.FormFactor != null)
+ {
+ hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
+ }
if (this.Iban != null)
{
hashCode = (hashCode * 59) + this.Iban.GetHashCode();
diff --git a/Adyen/Model/BalancePlatform/NOLocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/NOLocalAccountIdentification.cs
index 9c21c9461..45a1eea6d 100644
--- a/Adyen/Model/BalancePlatform/NOLocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/NOLocalAccountIdentification.cs
@@ -63,11 +63,14 @@ protected NOLocalAccountIdentification() { }
/// Initializes a new instance of the class.
///
/// The 11-digit bank account number, without separators or whitespace. (required).
+ /// The form factor of bank account. (default to "physical").
/// **noLocal** (required) (default to TypeEnum.NoLocal).
- public NOLocalAccountIdentification(string accountNumber = default(string), TypeEnum type = TypeEnum.NoLocal)
+ public NOLocalAccountIdentification(string accountNumber = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.NoLocal)
{
this.AccountNumber = accountNumber;
this.Type = type;
+ // use default value if no "formFactor" provided
+ this.FormFactor = formFactor ?? "physical";
}
///
@@ -77,6 +80,13 @@ protected NOLocalAccountIdentification() { }
[DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
public string AccountNumber { get; set; }
+ ///
+ /// The form factor of bank account.
+ ///
+ /// The form factor of bank account.
+ [DataMember(Name = "formFactor", EmitDefaultValue = false)]
+ public string FormFactor { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -86,6 +96,7 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class NOLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
+ sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -127,6 +138,11 @@ public bool Equals(NOLocalAccountIdentification input)
(this.AccountNumber != null &&
this.AccountNumber.Equals(input.AccountNumber))
) &&
+ (
+ this.FormFactor == input.FormFactor ||
+ (this.FormFactor != null &&
+ this.FormFactor.Equals(input.FormFactor))
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -146,6 +162,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
}
+ if (this.FormFactor != null)
+ {
+ hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/NZLocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/NZLocalAccountIdentification.cs
index ee6c75e8b..5b5a4de9f 100644
--- a/Adyen/Model/BalancePlatform/NZLocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/NZLocalAccountIdentification.cs
@@ -63,11 +63,14 @@ protected NZLocalAccountIdentification() { }
/// Initializes a new instance of the class.
///
/// The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. (required).
+ /// The form factor of bank account. (default to "physical").
/// **nzLocal** (required) (default to TypeEnum.NzLocal).
- public NZLocalAccountIdentification(string accountNumber = default(string), TypeEnum type = TypeEnum.NzLocal)
+ public NZLocalAccountIdentification(string accountNumber = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.NzLocal)
{
this.AccountNumber = accountNumber;
this.Type = type;
+ // use default value if no "formFactor" provided
+ this.FormFactor = formFactor ?? "physical";
}
///
@@ -77,6 +80,13 @@ protected NZLocalAccountIdentification() { }
[DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
public string AccountNumber { get; set; }
+ ///
+ /// The form factor of bank account.
+ ///
+ /// The form factor of bank account.
+ [DataMember(Name = "formFactor", EmitDefaultValue = false)]
+ public string FormFactor { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -86,6 +96,7 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class NZLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
+ sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -127,6 +138,11 @@ public bool Equals(NZLocalAccountIdentification input)
(this.AccountNumber != null &&
this.AccountNumber.Equals(input.AccountNumber))
) &&
+ (
+ this.FormFactor == input.FormFactor ||
+ (this.FormFactor != null &&
+ this.FormFactor.Equals(input.FormFactor))
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -146,6 +162,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
}
+ if (this.FormFactor != null)
+ {
+ hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/Name.cs b/Adyen/Model/BalancePlatform/Name.cs
index f42c03fb8..ca103b299 100644
--- a/Adyen/Model/BalancePlatform/Name.cs
+++ b/Adyen/Model/BalancePlatform/Name.cs
@@ -146,6 +146,18 @@ public override int GetHashCode()
/// Validation Result
public IEnumerable Validate(ValidationContext validationContext)
{
+ // FirstName (string) maxLength
+ if (this.FirstName != null && this.FirstName.Length > 80)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than 80.", new [] { "FirstName" });
+ }
+
+ // LastName (string) maxLength
+ if (this.LastName != null && this.LastName.Length > 80)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than 80.", new [] { "LastName" });
+ }
+
yield break;
}
}
diff --git a/Adyen/Model/BalancePlatform/NumberAndBicAccountIdentification.cs b/Adyen/Model/BalancePlatform/NumberAndBicAccountIdentification.cs
index 4a1bfe1b2..b498a9b48 100644
--- a/Adyen/Model/BalancePlatform/NumberAndBicAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/NumberAndBicAccountIdentification.cs
@@ -65,13 +65,16 @@ protected NumberAndBicAccountIdentification() { }
/// The bank account number, without separators or whitespace. The length and format depends on the bank or country. (required).
/// additionalBankIdentification.
/// The bank's 8- or 11-character BIC or SWIFT code. (required).
+ /// The form factor of bank account. (default to "physical").
/// **numberAndBic** (required) (default to TypeEnum.NumberAndBic).
- public NumberAndBicAccountIdentification(string accountNumber = default(string), AdditionalBankIdentification additionalBankIdentification = default(AdditionalBankIdentification), string bic = default(string), TypeEnum type = TypeEnum.NumberAndBic)
+ public NumberAndBicAccountIdentification(string accountNumber = default(string), AdditionalBankIdentification additionalBankIdentification = default(AdditionalBankIdentification), string bic = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.NumberAndBic)
{
this.AccountNumber = accountNumber;
this.Bic = bic;
this.Type = type;
this.AdditionalBankIdentification = additionalBankIdentification;
+ // use default value if no "formFactor" provided
+ this.FormFactor = formFactor ?? "physical";
}
///
@@ -94,6 +97,13 @@ protected NumberAndBicAccountIdentification() { }
[DataMember(Name = "bic", IsRequired = false, EmitDefaultValue = false)]
public string Bic { get; set; }
+ ///
+ /// The form factor of bank account.
+ ///
+ /// The form factor of bank account.
+ [DataMember(Name = "formFactor", EmitDefaultValue = false)]
+ public string FormFactor { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -105,6 +115,7 @@ public override string ToString()
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" AdditionalBankIdentification: ").Append(AdditionalBankIdentification).Append("\n");
sb.Append(" Bic: ").Append(Bic).Append("\n");
+ sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -156,6 +167,11 @@ public bool Equals(NumberAndBicAccountIdentification input)
(this.Bic != null &&
this.Bic.Equals(input.Bic))
) &&
+ (
+ this.FormFactor == input.FormFactor ||
+ (this.FormFactor != null &&
+ this.FormFactor.Equals(input.FormFactor))
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -183,6 +199,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Bic.GetHashCode();
}
+ if (this.FormFactor != null)
+ {
+ hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/PLLocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/PLLocalAccountIdentification.cs
index 25417331a..b7bbd6d8f 100644
--- a/Adyen/Model/BalancePlatform/PLLocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/PLLocalAccountIdentification.cs
@@ -63,11 +63,14 @@ protected PLLocalAccountIdentification() { }
/// Initializes a new instance of the class.
///
/// The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. (required).
+ /// The form factor of bank account. (default to "physical").
/// **plLocal** (required) (default to TypeEnum.PlLocal).
- public PLLocalAccountIdentification(string accountNumber = default(string), TypeEnum type = TypeEnum.PlLocal)
+ public PLLocalAccountIdentification(string accountNumber = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.PlLocal)
{
this.AccountNumber = accountNumber;
this.Type = type;
+ // use default value if no "formFactor" provided
+ this.FormFactor = formFactor ?? "physical";
}
///
@@ -77,6 +80,13 @@ protected PLLocalAccountIdentification() { }
[DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
public string AccountNumber { get; set; }
+ ///
+ /// The form factor of bank account.
+ ///
+ /// The form factor of bank account.
+ [DataMember(Name = "formFactor", EmitDefaultValue = false)]
+ public string FormFactor { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -86,6 +96,7 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class PLLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
+ sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -127,6 +138,11 @@ public bool Equals(PLLocalAccountIdentification input)
(this.AccountNumber != null &&
this.AccountNumber.Equals(input.AccountNumber))
) &&
+ (
+ this.FormFactor == input.FormFactor ||
+ (this.FormFactor != null &&
+ this.FormFactor.Equals(input.FormFactor))
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -146,6 +162,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
}
+ if (this.FormFactor != null)
+ {
+ hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/PaymentInstrumentRequirement.cs b/Adyen/Model/BalancePlatform/PaymentInstrumentRequirement.cs
index 8eab514df..bc5073f4b 100644
--- a/Adyen/Model/BalancePlatform/PaymentInstrumentRequirement.cs
+++ b/Adyen/Model/BalancePlatform/PaymentInstrumentRequirement.cs
@@ -92,14 +92,16 @@ protected PaymentInstrumentRequirement() { }
///
/// Specifies the requirements for the payment instrument that need to be included in the request for a particular route..
/// The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**..
+ /// The two-character ISO-3166-1 alpha-2 country code list for payment instruments..
/// Specifies if the requirement only applies to transfers to another balance platform..
/// The type of the payment instrument. For example, \"BankAccount\" or \"Card\"..
/// **paymentInstrumentRequirement** (required) (default to TypeEnum.PaymentInstrumentRequirement).
- public PaymentInstrumentRequirement(string description = default(string), string issuingCountryCode = default(string), bool? onlyForCrossBalancePlatform = default(bool?), PaymentInstrumentTypeEnum? paymentInstrumentType = default(PaymentInstrumentTypeEnum?), TypeEnum type = TypeEnum.PaymentInstrumentRequirement)
+ public PaymentInstrumentRequirement(string description = default(string), string issuingCountryCode = default(string), List issuingCountryCodes = default(List), bool? onlyForCrossBalancePlatform = default(bool?), PaymentInstrumentTypeEnum? paymentInstrumentType = default(PaymentInstrumentTypeEnum?), TypeEnum type = TypeEnum.PaymentInstrumentRequirement)
{
this.Type = type;
this.Description = description;
this.IssuingCountryCode = issuingCountryCode;
+ this.IssuingCountryCodes = issuingCountryCodes;
this.OnlyForCrossBalancePlatform = onlyForCrossBalancePlatform;
this.PaymentInstrumentType = paymentInstrumentType;
}
@@ -118,6 +120,13 @@ protected PaymentInstrumentRequirement() { }
[DataMember(Name = "issuingCountryCode", EmitDefaultValue = false)]
public string IssuingCountryCode { get; set; }
+ ///
+ /// The two-character ISO-3166-1 alpha-2 country code list for payment instruments.
+ ///
+ /// The two-character ISO-3166-1 alpha-2 country code list for payment instruments.
+ [DataMember(Name = "issuingCountryCodes", EmitDefaultValue = false)]
+ public List IssuingCountryCodes { get; set; }
+
///
/// Specifies if the requirement only applies to transfers to another balance platform.
///
@@ -135,6 +144,7 @@ public override string ToString()
sb.Append("class PaymentInstrumentRequirement {\n");
sb.Append(" Description: ").Append(Description).Append("\n");
sb.Append(" IssuingCountryCode: ").Append(IssuingCountryCode).Append("\n");
+ sb.Append(" IssuingCountryCodes: ").Append(IssuingCountryCodes).Append("\n");
sb.Append(" OnlyForCrossBalancePlatform: ").Append(OnlyForCrossBalancePlatform).Append("\n");
sb.Append(" PaymentInstrumentType: ").Append(PaymentInstrumentType).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
@@ -183,6 +193,12 @@ public bool Equals(PaymentInstrumentRequirement input)
(this.IssuingCountryCode != null &&
this.IssuingCountryCode.Equals(input.IssuingCountryCode))
) &&
+ (
+ this.IssuingCountryCodes == input.IssuingCountryCodes ||
+ this.IssuingCountryCodes != null &&
+ input.IssuingCountryCodes != null &&
+ this.IssuingCountryCodes.SequenceEqual(input.IssuingCountryCodes)
+ ) &&
(
this.OnlyForCrossBalancePlatform == input.OnlyForCrossBalancePlatform ||
this.OnlyForCrossBalancePlatform.Equals(input.OnlyForCrossBalancePlatform)
@@ -214,6 +230,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.IssuingCountryCode.GetHashCode();
}
+ if (this.IssuingCountryCodes != null)
+ {
+ hashCode = (hashCode * 59) + this.IssuingCountryCodes.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.OnlyForCrossBalancePlatform.GetHashCode();
hashCode = (hashCode * 59) + this.PaymentInstrumentType.GetHashCode();
hashCode = (hashCode * 59) + this.Type.GetHashCode();
diff --git a/Adyen/Model/BalancePlatform/PaymentInstrumentRevealRequest.cs b/Adyen/Model/BalancePlatform/PaymentInstrumentRevealRequest.cs
new file mode 100644
index 000000000..8ad9b0ffa
--- /dev/null
+++ b/Adyen/Model/BalancePlatform/PaymentInstrumentRevealRequest.cs
@@ -0,0 +1,153 @@
+/*
+* Configuration API
+*
+*
+* The version of the OpenAPI document: 2
+*
+* 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.BalancePlatform
+{
+ ///
+ /// PaymentInstrumentRevealRequest
+ ///
+ [DataContract(Name = "PaymentInstrumentRevealRequest")]
+ public partial class PaymentInstrumentRevealRequest : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected PaymentInstrumentRevealRequest() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. (required).
+ /// The unique identifier of the payment instrument, which is the card for which you are managing the PIN. (required).
+ public PaymentInstrumentRevealRequest(string encryptedKey = default(string), string paymentInstrumentId = default(string))
+ {
+ this.EncryptedKey = encryptedKey;
+ this.PaymentInstrumentId = paymentInstrumentId;
+ }
+
+ ///
+ /// The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.
+ ///
+ /// The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.
+ [DataMember(Name = "encryptedKey", IsRequired = false, EmitDefaultValue = false)]
+ public string EncryptedKey { get; set; }
+
+ ///
+ /// The unique identifier of the payment instrument, which is the card for which you are managing the PIN.
+ ///
+ /// The unique identifier of the payment instrument, which is the card for which you are managing the PIN.
+ [DataMember(Name = "paymentInstrumentId", IsRequired = false, EmitDefaultValue = false)]
+ public string PaymentInstrumentId { 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 PaymentInstrumentRevealRequest {\n");
+ sb.Append(" EncryptedKey: ").Append(EncryptedKey).Append("\n");
+ sb.Append(" PaymentInstrumentId: ").Append(PaymentInstrumentId).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 PaymentInstrumentRevealRequest);
+ }
+
+ ///
+ /// Returns true if PaymentInstrumentRevealRequest instances are equal
+ ///
+ /// Instance of PaymentInstrumentRevealRequest to be compared
+ /// Boolean
+ public bool Equals(PaymentInstrumentRevealRequest input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.EncryptedKey == input.EncryptedKey ||
+ (this.EncryptedKey != null &&
+ this.EncryptedKey.Equals(input.EncryptedKey))
+ ) &&
+ (
+ this.PaymentInstrumentId == input.PaymentInstrumentId ||
+ (this.PaymentInstrumentId != null &&
+ this.PaymentInstrumentId.Equals(input.PaymentInstrumentId))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.EncryptedKey != null)
+ {
+ hashCode = (hashCode * 59) + this.EncryptedKey.GetHashCode();
+ }
+ if (this.PaymentInstrumentId != null)
+ {
+ hashCode = (hashCode * 59) + this.PaymentInstrumentId.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/BalancePlatform/PaymentInstrumentRevealResponse.cs b/Adyen/Model/BalancePlatform/PaymentInstrumentRevealResponse.cs
new file mode 100644
index 000000000..e3e26362c
--- /dev/null
+++ b/Adyen/Model/BalancePlatform/PaymentInstrumentRevealResponse.cs
@@ -0,0 +1,134 @@
+/*
+* Configuration API
+*
+*
+* The version of the OpenAPI document: 2
+*
+* 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.BalancePlatform
+{
+ ///
+ /// PaymentInstrumentRevealResponse
+ ///
+ [DataContract(Name = "PaymentInstrumentRevealResponse")]
+ public partial class PaymentInstrumentRevealResponse : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected PaymentInstrumentRevealResponse() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The data encrypted using the `encryptedKey`. (required).
+ public PaymentInstrumentRevealResponse(string encryptedData = default(string))
+ {
+ this.EncryptedData = encryptedData;
+ }
+
+ ///
+ /// The data encrypted using the `encryptedKey`.
+ ///
+ /// The data encrypted using the `encryptedKey`.
+ [DataMember(Name = "encryptedData", IsRequired = false, EmitDefaultValue = false)]
+ public string EncryptedData { 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 PaymentInstrumentRevealResponse {\n");
+ sb.Append(" EncryptedData: ").Append(EncryptedData).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 PaymentInstrumentRevealResponse);
+ }
+
+ ///
+ /// Returns true if PaymentInstrumentRevealResponse instances are equal
+ ///
+ /// Instance of PaymentInstrumentRevealResponse to be compared
+ /// Boolean
+ public bool Equals(PaymentInstrumentRevealResponse input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.EncryptedData == input.EncryptedData ||
+ (this.EncryptedData != null &&
+ this.EncryptedData.Equals(input.EncryptedData))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.EncryptedData != null)
+ {
+ hashCode = (hashCode * 59) + this.EncryptedData.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/BalancePlatform/PinChangeRequest.cs b/Adyen/Model/BalancePlatform/PinChangeRequest.cs
index 788864215..d22fb8013 100644
--- a/Adyen/Model/BalancePlatform/PinChangeRequest.cs
+++ b/Adyen/Model/BalancePlatform/PinChangeRequest.cs
@@ -40,10 +40,10 @@ protected PinChangeRequest() { }
///
/// Initializes a new instance of the class.
///
- /// Symmetric session key encrypted under the public key. (required).
- /// The encrypted PIN block (required).
- /// The unique identifier of the payment instrument. (required).
- /// The token which is used to construct the pinblock. (required).
+ /// The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. (required).
+ /// The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). (required).
+ /// The unique identifier of the payment instrument, which is the card for which you are managing the PIN. (required).
+ /// The 16-digit token that you used to generate the `encryptedPinBlock`. (required).
public PinChangeRequest(string encryptedKey = default(string), string encryptedPinBlock = default(string), string paymentInstrumentId = default(string), string token = default(string))
{
this.EncryptedKey = encryptedKey;
@@ -53,30 +53,30 @@ protected PinChangeRequest() { }
}
///
- /// Symmetric session key encrypted under the public key.
+ /// The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.
///
- /// Symmetric session key encrypted under the public key.
+ /// The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.
[DataMember(Name = "encryptedKey", IsRequired = false, EmitDefaultValue = false)]
public string EncryptedKey { get; set; }
///
- /// The encrypted PIN block
+ /// The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block).
///
- /// The encrypted PIN block
+ /// The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block).
[DataMember(Name = "encryptedPinBlock", IsRequired = false, EmitDefaultValue = false)]
public string EncryptedPinBlock { get; set; }
///
- /// The unique identifier of the payment instrument.
+ /// The unique identifier of the payment instrument, which is the card for which you are managing the PIN.
///
- /// The unique identifier of the payment instrument.
+ /// The unique identifier of the payment instrument, which is the card for which you are managing the PIN.
[DataMember(Name = "paymentInstrumentId", IsRequired = false, EmitDefaultValue = false)]
public string PaymentInstrumentId { get; set; }
///
- /// The token which is used to construct the pinblock.
+ /// The 16-digit token that you used to generate the `encryptedPinBlock`.
///
- /// The token which is used to construct the pinblock.
+ /// The 16-digit token that you used to generate the `encryptedPinBlock`.
[DataMember(Name = "token", IsRequired = false, EmitDefaultValue = false)]
public string Token { get; set; }
diff --git a/Adyen/Model/BalancePlatform/PinChangeResponse.cs b/Adyen/Model/BalancePlatform/PinChangeResponse.cs
index 18f0afc3e..78aa8c4d1 100644
--- a/Adyen/Model/BalancePlatform/PinChangeResponse.cs
+++ b/Adyen/Model/BalancePlatform/PinChangeResponse.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.BalancePlatform
public partial class PinChangeResponse : IEquatable, IValidatableObject
{
///
- /// The pin change status.
+ /// The status of the request for PIN change. Possible values: **completed**, **pending**, **unavailable**.
///
- /// The pin change status.
+ /// The status of the request for PIN change. Possible values: **completed**, **pending**, **unavailable**.
[JsonConverter(typeof(StringEnumConverter))]
public enum StatusEnum
{
@@ -61,9 +61,9 @@ public enum StatusEnum
///
- /// The pin change status.
+ /// The status of the request for PIN change. Possible values: **completed**, **pending**, **unavailable**.
///
- /// The pin change status.
+ /// The status of the request for PIN change. Possible values: **completed**, **pending**, **unavailable**.
[DataMember(Name = "status", IsRequired = false, EmitDefaultValue = false)]
public StatusEnum Status { get; set; }
///
@@ -74,7 +74,7 @@ protected PinChangeResponse() { }
///
/// Initializes a new instance of the class.
///
- /// The pin change status. (required).
+ /// The status of the request for PIN change. Possible values: **completed**, **pending**, **unavailable**. (required).
public PinChangeResponse(StatusEnum status = default(StatusEnum))
{
this.Status = status;
diff --git a/Adyen/Model/BalancePlatform/PublicKeyResponse.cs b/Adyen/Model/BalancePlatform/PublicKeyResponse.cs
index 9c9e19272..0c9e33d1b 100644
--- a/Adyen/Model/BalancePlatform/PublicKeyResponse.cs
+++ b/Adyen/Model/BalancePlatform/PublicKeyResponse.cs
@@ -40,7 +40,7 @@ protected PublicKeyResponse() { }
///
/// Initializes a new instance of the class.
///
- /// The public key to be used for encrypting the symmetric session key. (required).
+ /// The public key you need for encrypting a symmetric session key. (required).
/// The expiry date of the public key. (required).
public PublicKeyResponse(string publicKey = default(string), string publicKeyExpiryDate = default(string))
{
@@ -49,9 +49,9 @@ protected PublicKeyResponse() { }
}
///
- /// The public key to be used for encrypting the symmetric session key.
+ /// The public key you need for encrypting a symmetric session key.
///
- /// The public key to be used for encrypting the symmetric session key.
+ /// The public key you need for encrypting a symmetric session key.
[DataMember(Name = "publicKey", IsRequired = false, EmitDefaultValue = false)]
public string PublicKey { get; set; }
diff --git a/Adyen/Model/BalancePlatform/RevealPinRequest.cs b/Adyen/Model/BalancePlatform/RevealPinRequest.cs
index 539be80c8..f6bf986d1 100644
--- a/Adyen/Model/BalancePlatform/RevealPinRequest.cs
+++ b/Adyen/Model/BalancePlatform/RevealPinRequest.cs
@@ -40,8 +40,8 @@ protected RevealPinRequest() { }
///
/// Initializes a new instance of the class.
///
- /// Symmetric session key encrypted under the public key. (required).
- /// The unique identifier of the payment instrument. (required).
+ /// The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. (required).
+ /// The unique identifier of the payment instrument, which is the card for which you are managing the PIN. (required).
public RevealPinRequest(string encryptedKey = default(string), string paymentInstrumentId = default(string))
{
this.EncryptedKey = encryptedKey;
@@ -49,16 +49,16 @@ protected RevealPinRequest() { }
}
///
- /// Symmetric session key encrypted under the public key.
+ /// The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.
///
- /// Symmetric session key encrypted under the public key.
+ /// The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.
[DataMember(Name = "encryptedKey", IsRequired = false, EmitDefaultValue = false)]
public string EncryptedKey { get; set; }
///
- /// The unique identifier of the payment instrument.
+ /// The unique identifier of the payment instrument, which is the card for which you are managing the PIN.
///
- /// The unique identifier of the payment instrument.
+ /// The unique identifier of the payment instrument, which is the card for which you are managing the PIN.
[DataMember(Name = "paymentInstrumentId", IsRequired = false, EmitDefaultValue = false)]
public string PaymentInstrumentId { get; set; }
diff --git a/Adyen/Model/BalancePlatform/RevealPinResponse.cs b/Adyen/Model/BalancePlatform/RevealPinResponse.cs
index 8c5b0a977..4fa154b5b 100644
--- a/Adyen/Model/BalancePlatform/RevealPinResponse.cs
+++ b/Adyen/Model/BalancePlatform/RevealPinResponse.cs
@@ -40,8 +40,8 @@ protected RevealPinResponse() { }
///
/// Initializes a new instance of the class.
///
- /// The encrypted PIN block. (required).
- /// The encrypted PIN block extraction token. (required).
+ /// The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). (required).
+ /// The 16-digit token that you need to extract the `encryptedPinBlock`. (required).
public RevealPinResponse(string encryptedPinBlock = default(string), string token = default(string))
{
this.EncryptedPinBlock = encryptedPinBlock;
@@ -49,16 +49,16 @@ protected RevealPinResponse() { }
}
///
- /// The encrypted PIN block.
+ /// The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block).
///
- /// The encrypted PIN block.
+ /// The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block).
[DataMember(Name = "encryptedPinBlock", IsRequired = false, EmitDefaultValue = false)]
public string EncryptedPinBlock { get; set; }
///
- /// The encrypted PIN block extraction token.
+ /// The 16-digit token that you need to extract the `encryptedPinBlock`.
///
- /// The encrypted PIN block extraction token.
+ /// The 16-digit token that you need to extract the `encryptedPinBlock`.
[DataMember(Name = "token", IsRequired = false, EmitDefaultValue = false)]
public string Token { get; set; }
diff --git a/Adyen/Model/BalancePlatform/SELocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/SELocalAccountIdentification.cs
index 711040b83..de1d9edda 100644
--- a/Adyen/Model/BalancePlatform/SELocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/SELocalAccountIdentification.cs
@@ -64,12 +64,15 @@ protected SELocalAccountIdentification() { }
///
/// The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. (required).
/// The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. (required).
+ /// The form factor of bank account. (default to "physical").
/// **seLocal** (required) (default to TypeEnum.SeLocal).
- public SELocalAccountIdentification(string accountNumber = default(string), string clearingNumber = default(string), TypeEnum type = TypeEnum.SeLocal)
+ public SELocalAccountIdentification(string accountNumber = default(string), string clearingNumber = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.SeLocal)
{
this.AccountNumber = accountNumber;
this.ClearingNumber = clearingNumber;
this.Type = type;
+ // use default value if no "formFactor" provided
+ this.FormFactor = formFactor ?? "physical";
}
///
@@ -86,6 +89,13 @@ protected SELocalAccountIdentification() { }
[DataMember(Name = "clearingNumber", IsRequired = false, EmitDefaultValue = false)]
public string ClearingNumber { get; set; }
+ ///
+ /// The form factor of bank account.
+ ///
+ /// The form factor of bank account.
+ [DataMember(Name = "formFactor", EmitDefaultValue = false)]
+ public string FormFactor { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -96,6 +106,7 @@ public override string ToString()
sb.Append("class SELocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" ClearingNumber: ").Append(ClearingNumber).Append("\n");
+ sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -142,6 +153,11 @@ public bool Equals(SELocalAccountIdentification input)
(this.ClearingNumber != null &&
this.ClearingNumber.Equals(input.ClearingNumber))
) &&
+ (
+ this.FormFactor == input.FormFactor ||
+ (this.FormFactor != null &&
+ this.FormFactor.Equals(input.FormFactor))
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -165,6 +181,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.ClearingNumber.GetHashCode();
}
+ if (this.FormFactor != null)
+ {
+ hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/SGLocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/SGLocalAccountIdentification.cs
index 0d8d793c1..59496905a 100644
--- a/Adyen/Model/BalancePlatform/SGLocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/SGLocalAccountIdentification.cs
@@ -64,11 +64,14 @@ protected SGLocalAccountIdentification() { }
///
/// The 4- to 19-digit bank account number, without separators or whitespace. (required).
/// The bank's 8- or 11-character BIC or SWIFT code. (required).
+ /// The form factor of bank account. (default to "physical").
/// **sgLocal** (default to TypeEnum.SgLocal).
- public SGLocalAccountIdentification(string accountNumber = default(string), string bic = default(string), TypeEnum? type = TypeEnum.SgLocal)
+ public SGLocalAccountIdentification(string accountNumber = default(string), string bic = default(string), string formFactor = "physical", TypeEnum? type = TypeEnum.SgLocal)
{
this.AccountNumber = accountNumber;
this.Bic = bic;
+ // use default value if no "formFactor" provided
+ this.FormFactor = formFactor ?? "physical";
this.Type = type;
}
@@ -86,6 +89,13 @@ protected SGLocalAccountIdentification() { }
[DataMember(Name = "bic", IsRequired = false, EmitDefaultValue = false)]
public string Bic { get; set; }
+ ///
+ /// The form factor of bank account.
+ ///
+ /// The form factor of bank account.
+ [DataMember(Name = "formFactor", EmitDefaultValue = false)]
+ public string FormFactor { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -96,6 +106,7 @@ public override string ToString()
sb.Append("class SGLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" Bic: ").Append(Bic).Append("\n");
+ sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -142,6 +153,11 @@ public bool Equals(SGLocalAccountIdentification input)
(this.Bic != null &&
this.Bic.Equals(input.Bic))
) &&
+ (
+ this.FormFactor == input.FormFactor ||
+ (this.FormFactor != null &&
+ this.FormFactor.Equals(input.FormFactor))
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -165,6 +181,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Bic.GetHashCode();
}
+ if (this.FormFactor != null)
+ {
+ hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/TransferRoute.cs b/Adyen/Model/BalancePlatform/TransferRoute.cs
index accf98e17..a888fc5a6 100644
--- a/Adyen/Model/BalancePlatform/TransferRoute.cs
+++ b/Adyen/Model/BalancePlatform/TransferRoute.cs
@@ -161,8 +161,8 @@ public enum PriorityEnum
/// The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**..
/// The three-character ISO currency code of transfer. For example, **USD** or **EUR**..
/// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN)..
- /// requirements.
- public TransferRoute(CategoryEnum? category = default(CategoryEnum?), string country = default(string), string currency = default(string), PriorityEnum? priority = default(PriorityEnum?), TransferRouteRequirements requirements = default(TransferRouteRequirements))
+ /// A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`..
+ public TransferRoute(CategoryEnum? category = default(CategoryEnum?), string country = default(string), string currency = default(string), PriorityEnum? priority = default(PriorityEnum?), List requirements = default(List))
{
this.Category = category;
this.Country = country;
@@ -186,10 +186,11 @@ public enum PriorityEnum
public string Currency { get; set; }
///
- /// Gets or Sets Requirements
+ /// A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`.
///
+ /// A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`.
[DataMember(Name = "requirements", EmitDefaultValue = false)]
- public TransferRouteRequirements Requirements { get; set; }
+ public List Requirements { get; set; }
///
/// Returns the string presentation of the object
@@ -259,8 +260,9 @@ public bool Equals(TransferRoute input)
) &&
(
this.Requirements == input.Requirements ||
- (this.Requirements != null &&
- this.Requirements.Equals(input.Requirements))
+ this.Requirements != null &&
+ input.Requirements != null &&
+ this.Requirements.SequenceEqual(input.Requirements)
);
}
diff --git a/Adyen/Model/BalancePlatform/TransferRouteRequirements.cs b/Adyen/Model/BalancePlatform/TransferRouteRequirementsInner.cs
similarity index 82%
rename from Adyen/Model/BalancePlatform/TransferRouteRequirements.cs
rename to Adyen/Model/BalancePlatform/TransferRouteRequirementsInner.cs
index 0e6dd6e31..7b30b98da 100644
--- a/Adyen/Model/BalancePlatform/TransferRouteRequirements.cs
+++ b/Adyen/Model/BalancePlatform/TransferRouteRequirementsInner.cs
@@ -28,18 +28,18 @@
namespace Adyen.Model.BalancePlatform
{
///
- /// A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`.
+ /// TransferRouteRequirementsInner
///
- [JsonConverter(typeof(TransferRouteRequirementsJsonConverter))]
- [DataContract(Name = "TransferRoute_requirements")]
- public partial class TransferRouteRequirements : AbstractOpenAPISchema, IEquatable, IValidatableObject
+ [JsonConverter(typeof(TransferRouteRequirementsInnerJsonConverter))]
+ [DataContract(Name = "TransferRoute_requirements_inner")]
+ public partial class TransferRouteRequirementsInner : AbstractOpenAPISchema, IEquatable, IValidatableObject
{
///
- /// Initializes a new instance of the class
+ /// Initializes a new instance of the class
/// with the class
///
/// An instance of AddressRequirement.
- public TransferRouteRequirements(AddressRequirement actualInstance)
+ public TransferRouteRequirementsInner(AddressRequirement actualInstance)
{
this.IsNullable = false;
this.SchemaType= "oneOf";
@@ -47,11 +47,11 @@ public TransferRouteRequirements(AddressRequirement actualInstance)
}
///
- /// Initializes a new instance of the class
+ /// Initializes a new instance of the class
/// with the class
///
/// An instance of AmountMinMaxRequirement.
- public TransferRouteRequirements(AmountMinMaxRequirement actualInstance)
+ public TransferRouteRequirementsInner(AmountMinMaxRequirement actualInstance)
{
this.IsNullable = false;
this.SchemaType= "oneOf";
@@ -59,11 +59,11 @@ public TransferRouteRequirements(AmountMinMaxRequirement actualInstance)
}
///
- /// Initializes a new instance of the class
+ /// Initializes a new instance of the class
/// with the class
///
/// An instance of BankAccountIdentificationTypeRequirement.
- public TransferRouteRequirements(BankAccountIdentificationTypeRequirement actualInstance)
+ public TransferRouteRequirementsInner(BankAccountIdentificationTypeRequirement actualInstance)
{
this.IsNullable = false;
this.SchemaType= "oneOf";
@@ -71,11 +71,11 @@ public TransferRouteRequirements(BankAccountIdentificationTypeRequirement actual
}
///
- /// Initializes a new instance of the class
+ /// Initializes a new instance of the class
/// with the class
///
/// An instance of PaymentInstrumentRequirement.
- public TransferRouteRequirements(PaymentInstrumentRequirement actualInstance)
+ public TransferRouteRequirementsInner(PaymentInstrumentRequirement actualInstance)
{
this.IsNullable = false;
this.SchemaType= "oneOf";
@@ -166,7 +166,7 @@ public PaymentInstrumentRequirement GetPaymentInstrumentRequirement()
public override string ToString()
{
var sb = new StringBuilder();
- sb.Append("class TransferRouteRequirements {\n");
+ sb.Append("class TransferRouteRequirementsInner {\n");
sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -178,21 +178,21 @@ public override string ToString()
/// JSON string presentation of the object
public override string ToJson()
{
- return JsonConvert.SerializeObject(this.ActualInstance, TransferRouteRequirements.SerializerSettings);
+ return JsonConvert.SerializeObject(this.ActualInstance, TransferRouteRequirementsInner.SerializerSettings);
}
///
- /// Converts the JSON string into an instance of TransferRouteRequirements
+ /// Converts the JSON string into an instance of TransferRouteRequirementsInner
///
/// JSON string
- /// An instance of TransferRouteRequirements
- public static TransferRouteRequirements FromJson(string jsonString)
+ /// An instance of TransferRouteRequirementsInner
+ public static TransferRouteRequirementsInner FromJson(string jsonString)
{
- TransferRouteRequirements newTransferRouteRequirements = null;
+ TransferRouteRequirementsInner newTransferRouteRequirementsInner = null;
if (string.IsNullOrEmpty(jsonString))
{
- return newTransferRouteRequirements;
+ return newTransferRouteRequirementsInner;
}
int match = 0;
List matchedTypes = new List();
@@ -208,28 +208,28 @@ public static TransferRouteRequirements FromJson(string jsonString)
// Check if the jsonString type enum matches the AddressRequirement type enums
if (ContainsValue(type))
{
- newTransferRouteRequirements = new TransferRouteRequirements(JsonConvert.DeserializeObject(jsonString, TransferRouteRequirements.SerializerSettings));
+ newTransferRouteRequirementsInner = new TransferRouteRequirementsInner(JsonConvert.DeserializeObject(jsonString, TransferRouteRequirementsInner.SerializerSettings));
matchedTypes.Add("AddressRequirement");
match++;
}
// Check if the jsonString type enum matches the AmountMinMaxRequirement type enums
if (ContainsValue(type))
{
- newTransferRouteRequirements = new TransferRouteRequirements(JsonConvert.DeserializeObject(jsonString, TransferRouteRequirements.SerializerSettings));
+ newTransferRouteRequirementsInner = new TransferRouteRequirementsInner(JsonConvert.DeserializeObject(jsonString, TransferRouteRequirementsInner.SerializerSettings));
matchedTypes.Add("AmountMinMaxRequirement");
match++;
}
// Check if the jsonString type enum matches the BankAccountIdentificationTypeRequirement type enums
if (ContainsValue(type))
{
- newTransferRouteRequirements = new TransferRouteRequirements(JsonConvert.DeserializeObject(jsonString, TransferRouteRequirements.SerializerSettings));
+ newTransferRouteRequirementsInner = new TransferRouteRequirementsInner(JsonConvert.DeserializeObject(jsonString, TransferRouteRequirementsInner.SerializerSettings));
matchedTypes.Add("BankAccountIdentificationTypeRequirement");
match++;
}
// Check if the jsonString type enum matches the PaymentInstrumentRequirement type enums
if (ContainsValue(type))
{
- newTransferRouteRequirements = new TransferRouteRequirements(JsonConvert.DeserializeObject(jsonString, TransferRouteRequirements.SerializerSettings));
+ newTransferRouteRequirementsInner = new TransferRouteRequirementsInner(JsonConvert.DeserializeObject(jsonString, TransferRouteRequirementsInner.SerializerSettings));
matchedTypes.Add("PaymentInstrumentRequirement");
match++;
}
@@ -248,7 +248,7 @@ public static TransferRouteRequirements FromJson(string jsonString)
}
// deserialization is considered successful at this point if no exception has been thrown.
- return newTransferRouteRequirements;
+ return newTransferRouteRequirementsInner;
}
///
@@ -258,15 +258,15 @@ public static TransferRouteRequirements FromJson(string jsonString)
/// Boolean
public override bool Equals(object input)
{
- return this.Equals(input as TransferRouteRequirements);
+ return this.Equals(input as TransferRouteRequirementsInner);
}
///
- /// Returns true if TransferRouteRequirements instances are equal
+ /// Returns true if TransferRouteRequirementsInner instances are equal
///
- /// Instance of TransferRouteRequirements to be compared
+ /// Instance of TransferRouteRequirementsInner to be compared
/// Boolean
- public bool Equals(TransferRouteRequirements input)
+ public bool Equals(TransferRouteRequirementsInner input)
{
if (input == null)
return false;
@@ -301,9 +301,9 @@ public override int GetHashCode()
}
///
- /// Custom JSON converter for TransferRouteRequirements
+ /// Custom JSON converter for TransferRouteRequirementsInner
///
- public class TransferRouteRequirementsJsonConverter : JsonConverter
+ public class TransferRouteRequirementsInnerJsonConverter : JsonConverter
{
///
/// To write the JSON string
@@ -313,7 +313,7 @@ public class TransferRouteRequirementsJsonConverter : JsonConverter
/// JSON Serializer
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
- writer.WriteRawValue((string)(typeof(TransferRouteRequirements).GetMethod("ToJson").Invoke(value, null)));
+ writer.WriteRawValue((string)(typeof(TransferRouteRequirementsInner).GetMethod("ToJson").Invoke(value, null)));
}
///
@@ -328,7 +328,7 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist
{
if(reader.TokenType != JsonToken.Null)
{
- return TransferRouteRequirements.FromJson(JObject.Load(reader).ToString(Formatting.None));
+ return TransferRouteRequirementsInner.FromJson(JObject.Load(reader).ToString(Formatting.None));
}
return null;
}
diff --git a/Adyen/Model/BalancePlatform/UKLocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/UKLocalAccountIdentification.cs
index 2be74cb47..acbdbeaad 100644
--- a/Adyen/Model/BalancePlatform/UKLocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/UKLocalAccountIdentification.cs
@@ -63,13 +63,16 @@ protected UKLocalAccountIdentification() { }
/// Initializes a new instance of the class.
///
/// The 8-digit bank account number, without separators or whitespace. (required).
+ /// The form factor of bank account. (default to "physical").
/// The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. (required).
/// **ukLocal** (required) (default to TypeEnum.UkLocal).
- public UKLocalAccountIdentification(string accountNumber = default(string), string sortCode = default(string), TypeEnum type = TypeEnum.UkLocal)
+ public UKLocalAccountIdentification(string accountNumber = default(string), string formFactor = "physical", string sortCode = default(string), TypeEnum type = TypeEnum.UkLocal)
{
this.AccountNumber = accountNumber;
this.SortCode = sortCode;
this.Type = type;
+ // use default value if no "formFactor" provided
+ this.FormFactor = formFactor ?? "physical";
}
///
@@ -79,6 +82,13 @@ protected UKLocalAccountIdentification() { }
[DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
public string AccountNumber { get; set; }
+ ///
+ /// The form factor of bank account.
+ ///
+ /// The form factor of bank account.
+ [DataMember(Name = "formFactor", EmitDefaultValue = false)]
+ public string FormFactor { get; set; }
+
///
/// The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace.
///
@@ -95,6 +105,7 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class UKLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
+ sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" SortCode: ").Append(SortCode).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
@@ -137,6 +148,11 @@ public bool Equals(UKLocalAccountIdentification input)
(this.AccountNumber != null &&
this.AccountNumber.Equals(input.AccountNumber))
) &&
+ (
+ this.FormFactor == input.FormFactor ||
+ (this.FormFactor != null &&
+ this.FormFactor.Equals(input.FormFactor))
+ ) &&
(
this.SortCode == input.SortCode ||
(this.SortCode != null &&
@@ -161,6 +177,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
}
+ if (this.FormFactor != null)
+ {
+ hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
+ }
if (this.SortCode != null)
{
hashCode = (hashCode * 59) + this.SortCode.GetHashCode();
diff --git a/Adyen/Model/BalancePlatform/USLocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/USLocalAccountIdentification.cs
index 43e05c8f9..d70e0ed9c 100644
--- a/Adyen/Model/BalancePlatform/USLocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/USLocalAccountIdentification.cs
@@ -92,14 +92,17 @@ protected USLocalAccountIdentification() { }
///
/// The bank account number, without separators or whitespace. (required).
/// The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. (default to AccountTypeEnum.Checking).
+ /// The form factor of bank account. (default to "physical").
/// The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. (required).
/// **usLocal** (required) (default to TypeEnum.UsLocal).
- public USLocalAccountIdentification(string accountNumber = default(string), AccountTypeEnum? accountType = AccountTypeEnum.Checking, string routingNumber = default(string), TypeEnum type = TypeEnum.UsLocal)
+ public USLocalAccountIdentification(string accountNumber = default(string), AccountTypeEnum? accountType = AccountTypeEnum.Checking, string formFactor = "physical", string routingNumber = default(string), TypeEnum type = TypeEnum.UsLocal)
{
this.AccountNumber = accountNumber;
this.RoutingNumber = routingNumber;
this.Type = type;
this.AccountType = accountType;
+ // use default value if no "formFactor" provided
+ this.FormFactor = formFactor ?? "physical";
}
///
@@ -109,6 +112,13 @@ protected USLocalAccountIdentification() { }
[DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
public string AccountNumber { get; set; }
+ ///
+ /// The form factor of bank account.
+ ///
+ /// The form factor of bank account.
+ [DataMember(Name = "formFactor", EmitDefaultValue = false)]
+ public string FormFactor { get; set; }
+
///
/// The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.
///
@@ -126,6 +136,7 @@ public override string ToString()
sb.Append("class USLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" AccountType: ").Append(AccountType).Append("\n");
+ sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" RoutingNumber: ").Append(RoutingNumber).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
@@ -172,6 +183,11 @@ public bool Equals(USLocalAccountIdentification input)
this.AccountType == input.AccountType ||
this.AccountType.Equals(input.AccountType)
) &&
+ (
+ this.FormFactor == input.FormFactor ||
+ (this.FormFactor != null &&
+ this.FormFactor.Equals(input.FormFactor))
+ ) &&
(
this.RoutingNumber == input.RoutingNumber ||
(this.RoutingNumber != null &&
@@ -197,6 +213,10 @@ public override int GetHashCode()
hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
}
hashCode = (hashCode * 59) + this.AccountType.GetHashCode();
+ if (this.FormFactor != null)
+ {
+ hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
+ }
if (this.RoutingNumber != null)
{
hashCode = (hashCode * 59) + this.RoutingNumber.GetHashCode();
diff --git a/Adyen/Model/Checkout/Split.cs b/Adyen/Model/Checkout/Split.cs
index 6740e744b..78b801e49 100644
--- a/Adyen/Model/Checkout/Split.cs
+++ b/Adyen/Model/Checkout/Split.cs
@@ -39,59 +39,95 @@ public partial class Split : IEquatable, IValidatableObject
[JsonConverter(typeof(StringEnumConverter))]
public enum TypeEnum
{
+ ///
+ /// Enum AcquiringFees for value: AcquiringFees
+ ///
+ [EnumMember(Value = "AcquiringFees")]
+ AcquiringFees = 1,
+
+ ///
+ /// Enum AdyenCommission for value: AdyenCommission
+ ///
+ [EnumMember(Value = "AdyenCommission")]
+ AdyenCommission = 2,
+
+ ///
+ /// Enum AdyenFees for value: AdyenFees
+ ///
+ [EnumMember(Value = "AdyenFees")]
+ AdyenFees = 3,
+
+ ///
+ /// Enum AdyenMarkup for value: AdyenMarkup
+ ///
+ [EnumMember(Value = "AdyenMarkup")]
+ AdyenMarkup = 4,
+
///
/// Enum BalanceAccount for value: BalanceAccount
///
[EnumMember(Value = "BalanceAccount")]
- BalanceAccount = 1,
+ BalanceAccount = 5,
///
/// Enum Commission for value: Commission
///
[EnumMember(Value = "Commission")]
- Commission = 2,
+ Commission = 6,
///
/// Enum Default for value: Default
///
[EnumMember(Value = "Default")]
- Default = 3,
+ Default = 7,
+
+ ///
+ /// Enum Interchange for value: Interchange
+ ///
+ [EnumMember(Value = "Interchange")]
+ Interchange = 8,
///
/// Enum MarketPlace for value: MarketPlace
///
[EnumMember(Value = "MarketPlace")]
- MarketPlace = 4,
+ MarketPlace = 9,
///
/// Enum PaymentFee for value: PaymentFee
///
[EnumMember(Value = "PaymentFee")]
- PaymentFee = 5,
+ PaymentFee = 10,
///
/// Enum Remainder for value: Remainder
///
[EnumMember(Value = "Remainder")]
- Remainder = 6,
+ Remainder = 11,
+
+ ///
+ /// Enum SchemeFee for value: SchemeFee
+ ///
+ [EnumMember(Value = "SchemeFee")]
+ SchemeFee = 12,
///
/// Enum Surcharge for value: Surcharge
///
[EnumMember(Value = "Surcharge")]
- Surcharge = 7,
+ Surcharge = 13,
///
/// Enum Tip for value: Tip
///
[EnumMember(Value = "Tip")]
- Tip = 8,
+ Tip = 14,
///
/// Enum VAT for value: VAT
///
[EnumMember(Value = "VAT")]
- VAT = 9
+ VAT = 15
}
diff --git a/Adyen/Model/ConfigurationWebhooks/IbanAccountIdentification.cs b/Adyen/Model/ConfigurationWebhooks/IbanAccountIdentification.cs
index 23f2bd264..7488b3f0f 100644
--- a/Adyen/Model/ConfigurationWebhooks/IbanAccountIdentification.cs
+++ b/Adyen/Model/ConfigurationWebhooks/IbanAccountIdentification.cs
@@ -62,14 +62,24 @@ protected IbanAccountIdentification() { }
///
/// Initializes a new instance of the class.
///
+ /// The form factor of bank account. (default to "physical").
/// The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. (required).
/// **iban** (required) (default to TypeEnum.Iban).
- public IbanAccountIdentification(string iban = default(string), TypeEnum type = TypeEnum.Iban)
+ public IbanAccountIdentification(string formFactor = "physical", string iban = default(string), TypeEnum type = TypeEnum.Iban)
{
this.Iban = iban;
this.Type = type;
+ // use default value if no "formFactor" provided
+ this.FormFactor = formFactor ?? "physical";
}
+ ///
+ /// The form factor of bank account.
+ ///
+ /// The form factor of bank account.
+ [DataMember(Name = "formFactor", EmitDefaultValue = false)]
+ public string FormFactor { get; set; }
+
///
/// The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard.
///
@@ -85,6 +95,7 @@ public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class IbanAccountIdentification {\n");
+ sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Iban: ").Append(Iban).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
@@ -122,6 +133,11 @@ public bool Equals(IbanAccountIdentification input)
return false;
}
return
+ (
+ this.FormFactor == input.FormFactor ||
+ (this.FormFactor != null &&
+ this.FormFactor.Equals(input.FormFactor))
+ ) &&
(
this.Iban == input.Iban ||
(this.Iban != null &&
@@ -142,6 +158,10 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
+ if (this.FormFactor != null)
+ {
+ hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
+ }
if (this.Iban != null)
{
hashCode = (hashCode * 59) + this.Iban.GetHashCode();
diff --git a/Adyen/Model/ConfigurationWebhooks/Name.cs b/Adyen/Model/ConfigurationWebhooks/Name.cs
index 174cebdd7..e102cc5a1 100644
--- a/Adyen/Model/ConfigurationWebhooks/Name.cs
+++ b/Adyen/Model/ConfigurationWebhooks/Name.cs
@@ -146,6 +146,18 @@ public override int GetHashCode()
/// Validation Result
public IEnumerable Validate(ValidationContext validationContext)
{
+ // FirstName (string) maxLength
+ if (this.FirstName != null && this.FirstName.Length > 80)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than 80.", new [] { "FirstName" });
+ }
+
+ // LastName (string) maxLength
+ if (this.LastName != null && this.LastName.Length > 80)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than 80.", new [] { "LastName" });
+ }
+
yield break;
}
}
diff --git a/Adyen/Model/ConfigurationWebhooks/USLocalAccountIdentification.cs b/Adyen/Model/ConfigurationWebhooks/USLocalAccountIdentification.cs
index c9b84d92d..c064ada97 100644
--- a/Adyen/Model/ConfigurationWebhooks/USLocalAccountIdentification.cs
+++ b/Adyen/Model/ConfigurationWebhooks/USLocalAccountIdentification.cs
@@ -92,14 +92,17 @@ protected USLocalAccountIdentification() { }
///
/// The bank account number, without separators or whitespace. (required).
/// The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. (default to AccountTypeEnum.Checking).
+ /// The form factor of bank account. (default to "physical").
/// The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. (required).
/// **usLocal** (required) (default to TypeEnum.UsLocal).
- public USLocalAccountIdentification(string accountNumber = default(string), AccountTypeEnum? accountType = AccountTypeEnum.Checking, string routingNumber = default(string), TypeEnum type = TypeEnum.UsLocal)
+ public USLocalAccountIdentification(string accountNumber = default(string), AccountTypeEnum? accountType = AccountTypeEnum.Checking, string formFactor = "physical", string routingNumber = default(string), TypeEnum type = TypeEnum.UsLocal)
{
this.AccountNumber = accountNumber;
this.RoutingNumber = routingNumber;
this.Type = type;
this.AccountType = accountType;
+ // use default value if no "formFactor" provided
+ this.FormFactor = formFactor ?? "physical";
}
///
@@ -109,6 +112,13 @@ protected USLocalAccountIdentification() { }
[DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
public string AccountNumber { get; set; }
+ ///
+ /// The form factor of bank account.
+ ///
+ /// The form factor of bank account.
+ [DataMember(Name = "formFactor", EmitDefaultValue = false)]
+ public string FormFactor { get; set; }
+
///
/// The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.
///
@@ -126,6 +136,7 @@ public override string ToString()
sb.Append("class USLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" AccountType: ").Append(AccountType).Append("\n");
+ sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" RoutingNumber: ").Append(RoutingNumber).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
@@ -172,6 +183,11 @@ public bool Equals(USLocalAccountIdentification input)
this.AccountType == input.AccountType ||
this.AccountType.Equals(input.AccountType)
) &&
+ (
+ this.FormFactor == input.FormFactor ||
+ (this.FormFactor != null &&
+ this.FormFactor.Equals(input.FormFactor))
+ ) &&
(
this.RoutingNumber == input.RoutingNumber ||
(this.RoutingNumber != null &&
@@ -197,6 +213,10 @@ public override int GetHashCode()
hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
}
hashCode = (hashCode * 59) + this.AccountType.GetHashCode();
+ if (this.FormFactor != null)
+ {
+ hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
+ }
if (this.RoutingNumber != null)
{
hashCode = (hashCode * 59) + this.RoutingNumber.GetHashCode();
diff --git a/Adyen/Model/Management/Name.cs b/Adyen/Model/Management/Name.cs
index e2851c136..be2ca717f 100644
--- a/Adyen/Model/Management/Name.cs
+++ b/Adyen/Model/Management/Name.cs
@@ -146,6 +146,18 @@ public override int GetHashCode()
/// Validation Result
public IEnumerable Validate(ValidationContext validationContext)
{
+ // FirstName (string) maxLength
+ if (this.FirstName != null && this.FirstName.Length > 80)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than 80.", new [] { "FirstName" });
+ }
+
+ // LastName (string) maxLength
+ if (this.LastName != null && this.LastName.Length > 80)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than 80.", new [] { "LastName" });
+ }
+
yield break;
}
}
diff --git a/Adyen/Model/Management/Name2.cs b/Adyen/Model/Management/Name2.cs
index ce800a8f7..3516997e0 100644
--- a/Adyen/Model/Management/Name2.cs
+++ b/Adyen/Model/Management/Name2.cs
@@ -141,6 +141,18 @@ public override int GetHashCode()
/// Validation Result
public IEnumerable Validate(ValidationContext validationContext)
{
+ // FirstName (string) maxLength
+ if (this.FirstName != null && this.FirstName.Length > 80)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than 80.", new [] { "FirstName" });
+ }
+
+ // LastName (string) maxLength
+ if (this.LastName != null && this.LastName.Length > 80)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than 80.", new [] { "LastName" });
+ }
+
yield break;
}
}
diff --git a/Adyen/Model/Management/Notification.cs b/Adyen/Model/Management/Notification.cs
index a77694dc7..9789da044 100644
--- a/Adyen/Model/Management/Notification.cs
+++ b/Adyen/Model/Management/Notification.cs
@@ -49,7 +49,13 @@ public enum CategoryEnum
/// Enum KeyPressed for value: KeyPressed
///
[EnumMember(Value = "KeyPressed")]
- KeyPressed = 2
+ KeyPressed = 2,
+
+ ///
+ /// Enum Empty for value:
+ ///
+ [EnumMember(Value = "")]
+ Empty = 3
}
diff --git a/Adyen/Model/Management/TerminalInstructions.cs b/Adyen/Model/Management/TerminalInstructions.cs
new file mode 100644
index 000000000..3f2c33779
--- /dev/null
+++ b/Adyen/Model/Management/TerminalInstructions.cs
@@ -0,0 +1,125 @@
+/*
+* 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
+{
+ ///
+ /// TerminalInstructions
+ ///
+ [DataContract(Name = "TerminalInstructions")]
+ public partial class TerminalInstructions : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Indicates whether the Adyen app on the payment terminal restarts automatically when the configuration is updated..
+ public TerminalInstructions(bool? adyenAppRestart = default(bool?))
+ {
+ this.AdyenAppRestart = adyenAppRestart;
+ }
+
+ ///
+ /// Indicates whether the Adyen app on the payment terminal restarts automatically when the configuration is updated.
+ ///
+ /// Indicates whether the Adyen app on the payment terminal restarts automatically when the configuration is updated.
+ [DataMember(Name = "adyenAppRestart", EmitDefaultValue = false)]
+ public bool? AdyenAppRestart { 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 TerminalInstructions {\n");
+ sb.Append(" AdyenAppRestart: ").Append(AdyenAppRestart).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 TerminalInstructions);
+ }
+
+ ///
+ /// Returns true if TerminalInstructions instances are equal
+ ///
+ /// Instance of TerminalInstructions to be compared
+ /// Boolean
+ public bool Equals(TerminalInstructions input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.AdyenAppRestart == input.AdyenAppRestart ||
+ this.AdyenAppRestart.Equals(input.AdyenAppRestart)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.AdyenAppRestart.GetHashCode();
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ public IEnumerable Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/Management/TerminalSettings.cs b/Adyen/Model/Management/TerminalSettings.cs
index c267fdb27..aaa34c656 100644
--- a/Adyen/Model/Management/TerminalSettings.cs
+++ b/Adyen/Model/Management/TerminalSettings.cs
@@ -53,9 +53,10 @@ public partial class TerminalSettings : IEquatable, IValidatab
/// standalone.
/// surcharge.
/// tapToPay.
+ /// terminalInstructions.
/// timeouts.
/// wifiProfiles.
- public TerminalSettings(CardholderReceipt cardholderReceipt = default(CardholderReceipt), Connectivity connectivity = default(Connectivity), List gratuities = default(List), Hardware hardware = default(Hardware), Localization localization = default(Localization), Nexo nexo = default(Nexo), OfflineProcessing offlineProcessing = default(OfflineProcessing), Opi opi = default(Opi), Passcodes passcodes = default(Passcodes), PayAtTable payAtTable = default(PayAtTable), Payment payment = default(Payment), ReceiptOptions receiptOptions = default(ReceiptOptions), ReceiptPrinting receiptPrinting = default(ReceiptPrinting), Refunds refunds = default(Refunds), Signature signature = default(Signature), Standalone standalone = default(Standalone), Surcharge surcharge = default(Surcharge), TapToPay tapToPay = default(TapToPay), Timeouts timeouts = default(Timeouts), WifiProfiles wifiProfiles = default(WifiProfiles))
+ public TerminalSettings(CardholderReceipt cardholderReceipt = default(CardholderReceipt), Connectivity connectivity = default(Connectivity), List gratuities = default(List), Hardware hardware = default(Hardware), Localization localization = default(Localization), Nexo nexo = default(Nexo), OfflineProcessing offlineProcessing = default(OfflineProcessing), Opi opi = default(Opi), Passcodes passcodes = default(Passcodes), PayAtTable payAtTable = default(PayAtTable), Payment payment = default(Payment), ReceiptOptions receiptOptions = default(ReceiptOptions), ReceiptPrinting receiptPrinting = default(ReceiptPrinting), Refunds refunds = default(Refunds), Signature signature = default(Signature), Standalone standalone = default(Standalone), Surcharge surcharge = default(Surcharge), TapToPay tapToPay = default(TapToPay), TerminalInstructions terminalInstructions = default(TerminalInstructions), Timeouts timeouts = default(Timeouts), WifiProfiles wifiProfiles = default(WifiProfiles))
{
this.CardholderReceipt = cardholderReceipt;
this.Connectivity = connectivity;
@@ -75,6 +76,7 @@ public partial class TerminalSettings : IEquatable, IValidatab
this.Standalone = standalone;
this.Surcharge = surcharge;
this.TapToPay = tapToPay;
+ this.TerminalInstructions = terminalInstructions;
this.Timeouts = timeouts;
this.WifiProfiles = wifiProfiles;
}
@@ -188,6 +190,12 @@ public partial class TerminalSettings : IEquatable, IValidatab
[DataMember(Name = "tapToPay", EmitDefaultValue = false)]
public TapToPay TapToPay { get; set; }
+ ///
+ /// Gets or Sets TerminalInstructions
+ ///
+ [DataMember(Name = "terminalInstructions", EmitDefaultValue = false)]
+ public TerminalInstructions TerminalInstructions { get; set; }
+
///
/// Gets or Sets Timeouts
///
@@ -226,6 +234,7 @@ public override string ToString()
sb.Append(" Standalone: ").Append(Standalone).Append("\n");
sb.Append(" Surcharge: ").Append(Surcharge).Append("\n");
sb.Append(" TapToPay: ").Append(TapToPay).Append("\n");
+ sb.Append(" TerminalInstructions: ").Append(TerminalInstructions).Append("\n");
sb.Append(" Timeouts: ").Append(Timeouts).Append("\n");
sb.Append(" WifiProfiles: ").Append(WifiProfiles).Append("\n");
sb.Append("}\n");
@@ -354,6 +363,11 @@ public bool Equals(TerminalSettings input)
(this.TapToPay != null &&
this.TapToPay.Equals(input.TapToPay))
) &&
+ (
+ this.TerminalInstructions == input.TerminalInstructions ||
+ (this.TerminalInstructions != null &&
+ this.TerminalInstructions.Equals(input.TerminalInstructions))
+ ) &&
(
this.Timeouts == input.Timeouts ||
(this.Timeouts != null &&
@@ -447,6 +461,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.TapToPay.GetHashCode();
}
+ if (this.TerminalInstructions != null)
+ {
+ hashCode = (hashCode * 59) + this.TerminalInstructions.GetHashCode();
+ }
if (this.Timeouts != null)
{
hashCode = (hashCode * 59) + this.Timeouts.GetHashCode();
diff --git a/Adyen/Service/BalancePlatform/PINFunctionalityService.cs b/Adyen/Service/BalancePlatform/ManageCardPINService.cs
similarity index 55%
rename from Adyen/Service/BalancePlatform/PINFunctionalityService.cs
rename to Adyen/Service/BalancePlatform/ManageCardPINService.cs
index 343c05202..01b16f43d 100644
--- a/Adyen/Service/BalancePlatform/PINFunctionalityService.cs
+++ b/Adyen/Service/BalancePlatform/ManageCardPINService.cs
@@ -20,111 +20,111 @@
namespace Adyen.Service.BalancePlatform
{
///
- /// PINFunctionalityService Interface
+ /// ManageCardPINService Interface
///
- public interface IPINFunctionalityService
+ public interface IManageCardPINService
{
///
- /// Change Pin
+ /// Change a card PIN
///
/// -
/// - Additional request options.
/// .
- Model.BalancePlatform.PinChangeResponse ChangePin(PinChangeRequest pinChangeRequest = default, RequestOptions requestOptions = default);
+ Model.BalancePlatform.PinChangeResponse ChangeCardPin(PinChangeRequest pinChangeRequest = default, RequestOptions requestOptions = default);
///
- /// Change Pin
+ /// Change a card PIN
///
/// -
/// - Additional request options.
/// A CancellationToken enables cooperative cancellation between threads, thread pool work items, or Task objects.
/// Task of .
- Task ChangePinAsync(PinChangeRequest pinChangeRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default);
+ Task ChangeCardPinAsync(PinChangeRequest pinChangeRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default);
///
- /// Get RSA publicKey
+ /// Get an RSA public key
///
- /// - Purpose of publicKey.
- /// - Format of publicKey.
+ /// - The purpose of the public key. Possible values: **pinChange**, **pinReveal**, **panReveal**. Default value: **pinReveal**.
+ /// - The encoding format of public key. Possible values: **jwk**, **pem**. Default value: **pem**.
/// - Additional request options.
/// .
- Model.BalancePlatform.PublicKeyResponse GetRsaPublickey(string purpose = default, string format = default, RequestOptions requestOptions = default);
+ Model.BalancePlatform.PublicKeyResponse PublicKey(string purpose = default, string format = default, RequestOptions requestOptions = default);
///
- /// Get RSA publicKey
+ /// Get an RSA public key
///
- /// - Purpose of publicKey.
- /// - Format of publicKey.
+ /// - The purpose of the public key. Possible values: **pinChange**, **pinReveal**, **panReveal**. Default value: **pinReveal**.
+ /// - The encoding format of public key. Possible values: **jwk**, **pem**. Default value: **pem**.
/// - Additional request options.
/// A CancellationToken enables cooperative cancellation between threads, thread pool work items, or Task objects.
/// Task of .
- Task GetRsaPublickeyAsync(string purpose = default, string format = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default);
+ Task PublicKeyAsync(string purpose = default, string format = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default);
///
- /// Reveal Pin
+ /// Reveal a card PIN
///
/// -
/// - Additional request options.
/// .
- Model.BalancePlatform.RevealPinResponse RevealPin(RevealPinRequest revealPinRequest = default, RequestOptions requestOptions = default);
+ Model.BalancePlatform.RevealPinResponse RevealCardPin(RevealPinRequest revealPinRequest = default, RequestOptions requestOptions = default);
///
- /// Reveal Pin
+ /// Reveal a card PIN
///
/// -
/// - Additional request options.
/// A CancellationToken enables cooperative cancellation between threads, thread pool work items, or Task objects.
/// Task of .
- Task RevealPinAsync(RevealPinRequest revealPinRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default);
+ Task RevealCardPinAsync(RevealPinRequest revealPinRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default);
}
///
- /// Represents a collection of functions to interact with the PINFunctionalityService API endpoints
+ /// Represents a collection of functions to interact with the ManageCardPINService API endpoints
///
- public class PINFunctionalityService : AbstractService, IPINFunctionalityService
+ public class ManageCardPINService : AbstractService, IManageCardPINService
{
private readonly string _baseUrl;
- public PINFunctionalityService(Client client) : base(client)
+ public ManageCardPINService(Client client) : base(client)
{
_baseUrl = CreateBaseUrl("https://balanceplatform-api-test.adyen.com/bcl/v2");
}
- public Model.BalancePlatform.PinChangeResponse ChangePin(PinChangeRequest pinChangeRequest = default, RequestOptions requestOptions = default)
+ public Model.BalancePlatform.PinChangeResponse ChangeCardPin(PinChangeRequest pinChangeRequest = default, RequestOptions requestOptions = default)
{
- return ChangePinAsync(pinChangeRequest, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult();
+ return ChangeCardPinAsync(pinChangeRequest, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult();
}
- public async Task ChangePinAsync(PinChangeRequest pinChangeRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default)
+ public async Task ChangeCardPinAsync(PinChangeRequest pinChangeRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default)
{
var endpoint = _baseUrl + "/pins/change";
var resource = new ServiceResource(this, endpoint);
return await resource.RequestAsync(pinChangeRequest.ToJson(), requestOptions, new HttpMethod("POST"), cancellationToken).ConfigureAwait(false);
}
- public Model.BalancePlatform.PublicKeyResponse GetRsaPublickey(string purpose = default, string format = default, RequestOptions requestOptions = default)
+ public Model.BalancePlatform.PublicKeyResponse PublicKey(string purpose = default, string format = default, RequestOptions requestOptions = default)
{
- return GetRsaPublickeyAsync(purpose, format, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult();
+ return PublicKeyAsync(purpose, format, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult();
}
- public async Task GetRsaPublickeyAsync(string purpose = default, string format = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default)
+ public async Task PublicKeyAsync(string purpose = default, string format = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default)
{
// Build the query string
var queryParams = new Dictionary();
if (purpose != null) queryParams.Add("purpose", purpose);
if (format != null) queryParams.Add("format", format);
- var endpoint = _baseUrl + "/pins/publicKey" + ToQueryString(queryParams);
+ var endpoint = _baseUrl + "/publicKey" + ToQueryString(queryParams);
var resource = new ServiceResource(this, endpoint);
return await resource.RequestAsync(null, requestOptions, new HttpMethod("GET"), cancellationToken).ConfigureAwait(false);
}
- public Model.BalancePlatform.RevealPinResponse RevealPin(RevealPinRequest revealPinRequest = default, RequestOptions requestOptions = default)
+ public Model.BalancePlatform.RevealPinResponse RevealCardPin(RevealPinRequest revealPinRequest = default, RequestOptions requestOptions = default)
{
- return RevealPinAsync(revealPinRequest, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult();
+ return RevealCardPinAsync(revealPinRequest, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult();
}
- public async Task RevealPinAsync(RevealPinRequest revealPinRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default)
+ public async Task RevealCardPinAsync(RevealPinRequest revealPinRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default)
{
var endpoint = _baseUrl + "/pins/reveal";
var resource = new ServiceResource(this, endpoint);
diff --git a/Adyen/Service/BalancePlatform/PaymentInstrumentsService.cs b/Adyen/Service/BalancePlatform/PaymentInstrumentsService.cs
index 042bb844b..fa5fb9f7c 100644
--- a/Adyen/Service/BalancePlatform/PaymentInstrumentsService.cs
+++ b/Adyen/Service/BalancePlatform/PaymentInstrumentsService.cs
@@ -109,6 +109,23 @@ public interface IPaymentInstrumentsService
/// Task of .
Task ListNetworkTokensAsync(string id, RequestOptions requestOptions = default, CancellationToken cancellationToken = default);
+ ///
+ /// Reveal the data of a payment instrument
+ ///
+ /// -
+ /// - Additional request options.
+ /// .
+ Model.BalancePlatform.PaymentInstrumentRevealResponse RevealDataOfPaymentInstrument(PaymentInstrumentRevealRequest paymentInstrumentRevealRequest = default, RequestOptions requestOptions = default);
+
+ ///
+ /// Reveal the data of a payment instrument
+ ///
+ /// -
+ /// - Additional request options.
+ /// A CancellationToken enables cooperative cancellation between threads, thread pool work items, or Task objects.
+ /// Task of .
+ Task RevealDataOfPaymentInstrumentAsync(PaymentInstrumentRevealRequest paymentInstrumentRevealRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default);
+
///
/// Update a payment instrument
///
@@ -202,6 +219,18 @@ public Model.BalancePlatform.ListNetworkTokensResponse ListNetworkTokens(string
return await resource.RequestAsync(null, requestOptions, new HttpMethod("GET"), cancellationToken).ConfigureAwait(false);
}
+ public Model.BalancePlatform.PaymentInstrumentRevealResponse RevealDataOfPaymentInstrument(PaymentInstrumentRevealRequest paymentInstrumentRevealRequest = default, RequestOptions requestOptions = default)
+ {
+ return RevealDataOfPaymentInstrumentAsync(paymentInstrumentRevealRequest, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult();
+ }
+
+ public async Task RevealDataOfPaymentInstrumentAsync(PaymentInstrumentRevealRequest paymentInstrumentRevealRequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default)
+ {
+ var endpoint = _baseUrl + "/paymentInstruments/reveal";
+ var resource = new ServiceResource(this, endpoint);
+ return await resource.RequestAsync(paymentInstrumentRevealRequest.ToJson(), requestOptions, new HttpMethod("POST"), cancellationToken).ConfigureAwait(false);
+ }
+
public Model.BalancePlatform.UpdatePaymentInstrument UpdatePaymentInstrument(string id, PaymentInstrumentUpdateRequest paymentInstrumentUpdateRequest = default, RequestOptions requestOptions = default)
{
return UpdatePaymentInstrumentAsync(id, paymentInstrumentUpdateRequest, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult();