Skip to content

Commit

Permalink
[create-pull-request] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
AdyenAutomationBot committed Sep 27, 2023
1 parent 806d2bd commit ee186bf
Show file tree
Hide file tree
Showing 18 changed files with 1,376 additions and 701 deletions.
68 changes: 31 additions & 37 deletions Adyen/Model/Checkout/PaymentDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -375,197 +375,191 @@ public enum TypeEnum
[EnumMember(Value = "gopay_wallet")]
GopayWallet = 56,

/// <summary>
/// Enum Poli for value: poli
/// </summary>
[EnumMember(Value = "poli")]
Poli = 57,

/// <summary>
/// Enum KcpNaverpay for value: kcp_naverpay
/// </summary>
[EnumMember(Value = "kcp_naverpay")]
KcpNaverpay = 58,
KcpNaverpay = 57,

/// <summary>
/// Enum OnlinebankingIN for value: onlinebanking_IN
/// </summary>
[EnumMember(Value = "onlinebanking_IN")]
OnlinebankingIN = 59,
OnlinebankingIN = 58,

/// <summary>
/// Enum Fawry for value: fawry
/// </summary>
[EnumMember(Value = "fawry")]
Fawry = 60,
Fawry = 59,

/// <summary>
/// Enum Atome for value: atome
/// </summary>
[EnumMember(Value = "atome")]
Atome = 61,
Atome = 60,

/// <summary>
/// Enum Moneybookers for value: moneybookers
/// </summary>
[EnumMember(Value = "moneybookers")]
Moneybookers = 62,
Moneybookers = 61,

/// <summary>
/// Enum Naps for value: naps
/// </summary>
[EnumMember(Value = "naps")]
Naps = 63,
Naps = 62,

/// <summary>
/// Enum Nordea for value: nordea
/// </summary>
[EnumMember(Value = "nordea")]
Nordea = 64,
Nordea = 63,

/// <summary>
/// Enum BoletobancarioBradesco for value: boletobancario_bradesco
/// </summary>
[EnumMember(Value = "boletobancario_bradesco")]
BoletobancarioBradesco = 65,
BoletobancarioBradesco = 64,

/// <summary>
/// Enum BoletobancarioItau for value: boletobancario_itau
/// </summary>
[EnumMember(Value = "boletobancario_itau")]
BoletobancarioItau = 66,
BoletobancarioItau = 65,

/// <summary>
/// Enum BoletobancarioSantander for value: boletobancario_santander
/// </summary>
[EnumMember(Value = "boletobancario_santander")]
BoletobancarioSantander = 67,
BoletobancarioSantander = 66,

/// <summary>
/// Enum BoletobancarioBancodobrasil for value: boletobancario_bancodobrasil
/// </summary>
[EnumMember(Value = "boletobancario_bancodobrasil")]
BoletobancarioBancodobrasil = 68,
BoletobancarioBancodobrasil = 67,

/// <summary>
/// Enum BoletobancarioHsbc for value: boletobancario_hsbc
/// </summary>
[EnumMember(Value = "boletobancario_hsbc")]
BoletobancarioHsbc = 69,
BoletobancarioHsbc = 68,

/// <summary>
/// Enum MolpayMaybank2u for value: molpay_maybank2u
/// </summary>
[EnumMember(Value = "molpay_maybank2u")]
MolpayMaybank2u = 70,
MolpayMaybank2u = 69,

/// <summary>
/// Enum MolpayCimb for value: molpay_cimb
/// </summary>
[EnumMember(Value = "molpay_cimb")]
MolpayCimb = 71,
MolpayCimb = 70,

/// <summary>
/// Enum MolpayRhb for value: molpay_rhb
/// </summary>
[EnumMember(Value = "molpay_rhb")]
MolpayRhb = 72,
MolpayRhb = 71,

/// <summary>
/// Enum MolpayAmb for value: molpay_amb
/// </summary>
[EnumMember(Value = "molpay_amb")]
MolpayAmb = 73,
MolpayAmb = 72,

/// <summary>
/// Enum MolpayHlb for value: molpay_hlb
/// </summary>
[EnumMember(Value = "molpay_hlb")]
MolpayHlb = 74,
MolpayHlb = 73,

/// <summary>
/// Enum MolpayAffinEpg for value: molpay_affin_epg
/// </summary>
[EnumMember(Value = "molpay_affin_epg")]
MolpayAffinEpg = 75,
MolpayAffinEpg = 74,

/// <summary>
/// Enum MolpayBankislam for value: molpay_bankislam
/// </summary>
[EnumMember(Value = "molpay_bankislam")]
MolpayBankislam = 76,
MolpayBankislam = 75,

/// <summary>
/// Enum MolpayPublicbank for value: molpay_publicbank
/// </summary>
[EnumMember(Value = "molpay_publicbank")]
MolpayPublicbank = 77,
MolpayPublicbank = 76,

/// <summary>
/// Enum FpxAgrobank for value: fpx_agrobank
/// </summary>
[EnumMember(Value = "fpx_agrobank")]
FpxAgrobank = 78,
FpxAgrobank = 77,

/// <summary>
/// Enum Touchngo for value: touchngo
/// </summary>
[EnumMember(Value = "touchngo")]
Touchngo = 79,
Touchngo = 78,

/// <summary>
/// Enum Maybank2uMae for value: maybank2u_mae
/// </summary>
[EnumMember(Value = "maybank2u_mae")]
Maybank2uMae = 80,
Maybank2uMae = 79,

/// <summary>
/// Enum Duitnow for value: duitnow
/// </summary>
[EnumMember(Value = "duitnow")]
Duitnow = 81,
Duitnow = 80,

/// <summary>
/// Enum Promptpay for value: promptpay
/// </summary>
[EnumMember(Value = "promptpay")]
Promptpay = 82,
Promptpay = 81,

/// <summary>
/// Enum TwintPos for value: twint_pos
/// </summary>
[EnumMember(Value = "twint_pos")]
TwintPos = 83,
TwintPos = 82,

/// <summary>
/// Enum AlipayHk for value: alipay_hk
/// </summary>
[EnumMember(Value = "alipay_hk")]
AlipayHk = 84,
AlipayHk = 83,

/// <summary>
/// Enum AlipayHkWeb for value: alipay_hk_web
/// </summary>
[EnumMember(Value = "alipay_hk_web")]
AlipayHkWeb = 85,
AlipayHkWeb = 84,

/// <summary>
/// Enum AlipayHkWap for value: alipay_hk_wap
/// </summary>
[EnumMember(Value = "alipay_hk_wap")]
AlipayHkWap = 86,
AlipayHkWap = 85,

/// <summary>
/// Enum AlipayWap for value: alipay_wap
/// </summary>
[EnumMember(Value = "alipay_wap")]
AlipayWap = 87,
AlipayWap = 86,

/// <summary>
/// Enum Balanceplatform for value: balanceplatform
/// </summary>
[EnumMember(Value = "balanceplatform")]
Balanceplatform = 88
Balanceplatform = 87

}

Expand Down
8 changes: 4 additions & 4 deletions Adyen/Model/Checkout/ThreeDSRequestData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ public enum NativeThreeDSEnum
public enum ThreeDSVersionEnum
{
/// <summary>
/// Enum _10 for value: V_2_1_0
/// Enum _10 for value: 2.1.0
/// </summary>
[EnumMember(Value = "V_2_1_0")]
[EnumMember(Value = "2.1.0")]
_10 = 1,

/// <summary>
/// Enum _20 for value: V_2_2_0
/// Enum _20 for value: 2.2.0
/// </summary>
[EnumMember(Value = "V_2_2_0")]
[EnumMember(Value = "2.2.0")]
_20 = 2

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public partial class AccountHolderTransactionListResponse : IEquatable<AccountHo
/// <param name="invalidFields">Contains field validation errors that would prevent requests from being processed..</param>
/// <param name="pspReference">The reference of a request. Can be used to uniquely identify the request..</param>
/// <param name="resultCode">The result code..</param>
public AccountHolderTransactionListResponse(List<AccountTransactionList> accountTransactionLists = default(List<AccountTransactionList>), List<ErrorFieldType> invalidFields = default(List<ErrorFieldType>), string pspReference = default(string), string resultCode = default(string))
public AccountHolderTransactionListResponse(List<AccountTransactionAccountTransactionList> accountTransactionLists = default(List<AccountTransactionAccountTransactionList>), List<ErrorFieldType> invalidFields = default(List<ErrorFieldType>), string pspReference = default(string), string resultCode = default(string))
{
this.AccountTransactionLists = accountTransactionLists;
this.InvalidFields = invalidFields;
Expand All @@ -52,7 +52,7 @@ public partial class AccountHolderTransactionListResponse : IEquatable<AccountHo
/// </summary>
/// <value>A list of the transactions.</value>
[DataMember(Name = "accountTransactionLists", EmitDefaultValue = false)]
public List<AccountTransactionList> AccountTransactionLists { get; set; }
public List<AccountTransactionAccountTransactionList> AccountTransactionLists { get; set; }

/// <summary>
/// Contains field validation errors that would prevent requests from being processed.
Expand Down
52 changes: 26 additions & 26 deletions Adyen/Model/TransferWebhooks/HKLocalAccountIdentification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,29 +62,29 @@ protected HKLocalAccountIdentification() { }
/// <summary>
/// Initializes a new instance of the <see cref="HKLocalAccountIdentification" /> class.
/// </summary>
/// <param name="accountNumber">The 6- to 19-character bank account number (alphanumeric), without separators or whitespace. (required).</param>
/// <param name="bankCode">The 6-digit bank code including the 3-digit bank code and 3-digit branch code, without separators or whitespace. (required).</param>
/// <param name="accountNumber">The 9- to 12-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. (required).</param>
/// <param name="clearingCode">The 3-digit clearing code, without separators or whitespace. (required).</param>
/// <param name="type">**hkLocal** (required) (default to TypeEnum.HkLocal).</param>
public HKLocalAccountIdentification(string accountNumber = default(string), string bankCode = default(string), TypeEnum type = TypeEnum.HkLocal)
public HKLocalAccountIdentification(string accountNumber = default(string), string clearingCode = default(string), TypeEnum type = TypeEnum.HkLocal)
{
this.AccountNumber = accountNumber;
this.BankCode = bankCode;
this.ClearingCode = clearingCode;
this.Type = type;
}

/// <summary>
/// The 6- to 19-character bank account number (alphanumeric), without separators or whitespace.
/// The 9- to 12-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code.
/// </summary>
/// <value>The 6- to 19-character bank account number (alphanumeric), without separators or whitespace.</value>
/// <value>The 9- to 12-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code.</value>
[DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
public string AccountNumber { get; set; }

/// <summary>
/// The 6-digit bank code including the 3-digit bank code and 3-digit branch code, without separators or whitespace.
/// The 3-digit clearing code, without separators or whitespace.
/// </summary>
/// <value>The 6-digit bank code including the 3-digit bank code and 3-digit branch code, without separators or whitespace.</value>
[DataMember(Name = "bankCode", IsRequired = false, EmitDefaultValue = false)]
public string BankCode { get; set; }
/// <value>The 3-digit clearing code, without separators or whitespace.</value>
[DataMember(Name = "clearingCode", IsRequired = false, EmitDefaultValue = false)]
public string ClearingCode { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand All @@ -95,7 +95,7 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class HKLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" BankCode: ").Append(BankCode).Append("\n");
sb.Append(" ClearingCode: ").Append(ClearingCode).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
Expand Down Expand Up @@ -138,9 +138,9 @@ public bool Equals(HKLocalAccountIdentification input)
this.AccountNumber.Equals(input.AccountNumber))
) &&
(
this.BankCode == input.BankCode ||
(this.BankCode != null &&
this.BankCode.Equals(input.BankCode))
this.ClearingCode == input.ClearingCode ||
(this.ClearingCode != null &&
this.ClearingCode.Equals(input.ClearingCode))
) &&
(
this.Type == input.Type ||
Expand All @@ -161,9 +161,9 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
}
if (this.BankCode != null)
if (this.ClearingCode != null)
{
hashCode = (hashCode * 59) + this.BankCode.GetHashCode();
hashCode = (hashCode * 59) + this.ClearingCode.GetHashCode();
}
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
Expand All @@ -177,27 +177,27 @@ public override int GetHashCode()
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
{
// AccountNumber (string) maxLength
if (this.AccountNumber != null && this.AccountNumber.Length > 19)
if (this.AccountNumber != null && this.AccountNumber.Length > 12)
{
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountNumber, length must be less than 19.", new [] { "AccountNumber" });
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountNumber, length must be less than 12.", new [] { "AccountNumber" });
}

// AccountNumber (string) minLength
if (this.AccountNumber != null && this.AccountNumber.Length < 6)
if (this.AccountNumber != null && this.AccountNumber.Length < 9)
{
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountNumber, length must be greater than 6.", new [] { "AccountNumber" });
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountNumber, length must be greater than 9.", new [] { "AccountNumber" });
}

// BankCode (string) maxLength
if (this.BankCode != null && this.BankCode.Length > 6)
// ClearingCode (string) maxLength
if (this.ClearingCode != null && this.ClearingCode.Length > 3)
{
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BankCode, length must be less than 6.", new [] { "BankCode" });
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ClearingCode, length must be less than 3.", new [] { "ClearingCode" });
}

// BankCode (string) minLength
if (this.BankCode != null && this.BankCode.Length < 6)
// ClearingCode (string) minLength
if (this.ClearingCode != null && this.ClearingCode.Length < 3)
{
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BankCode, length must be greater than 6.", new [] { "BankCode" });
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ClearingCode, length must be greater than 3.", new [] { "ClearingCode" });
}

yield break;
Expand Down
Loading

0 comments on commit ee186bf

Please sign in to comment.