diff --git a/Adyen/Model/Checkout/PaymentDetails.cs b/Adyen/Model/Checkout/PaymentDetails.cs
index 9804ae54a..c88c86715 100644
--- a/Adyen/Model/Checkout/PaymentDetails.cs
+++ b/Adyen/Model/Checkout/PaymentDetails.cs
@@ -375,197 +375,191 @@ public enum TypeEnum
[EnumMember(Value = "gopay_wallet")]
GopayWallet = 56,
- ///
- /// Enum Poli for value: poli
- ///
- [EnumMember(Value = "poli")]
- Poli = 57,
-
///
/// Enum KcpNaverpay for value: kcp_naverpay
///
[EnumMember(Value = "kcp_naverpay")]
- KcpNaverpay = 58,
+ KcpNaverpay = 57,
///
/// Enum OnlinebankingIN for value: onlinebanking_IN
///
[EnumMember(Value = "onlinebanking_IN")]
- OnlinebankingIN = 59,
+ OnlinebankingIN = 58,
///
/// Enum Fawry for value: fawry
///
[EnumMember(Value = "fawry")]
- Fawry = 60,
+ Fawry = 59,
///
/// Enum Atome for value: atome
///
[EnumMember(Value = "atome")]
- Atome = 61,
+ Atome = 60,
///
/// Enum Moneybookers for value: moneybookers
///
[EnumMember(Value = "moneybookers")]
- Moneybookers = 62,
+ Moneybookers = 61,
///
/// Enum Naps for value: naps
///
[EnumMember(Value = "naps")]
- Naps = 63,
+ Naps = 62,
///
/// Enum Nordea for value: nordea
///
[EnumMember(Value = "nordea")]
- Nordea = 64,
+ Nordea = 63,
///
/// Enum BoletobancarioBradesco for value: boletobancario_bradesco
///
[EnumMember(Value = "boletobancario_bradesco")]
- BoletobancarioBradesco = 65,
+ BoletobancarioBradesco = 64,
///
/// Enum BoletobancarioItau for value: boletobancario_itau
///
[EnumMember(Value = "boletobancario_itau")]
- BoletobancarioItau = 66,
+ BoletobancarioItau = 65,
///
/// Enum BoletobancarioSantander for value: boletobancario_santander
///
[EnumMember(Value = "boletobancario_santander")]
- BoletobancarioSantander = 67,
+ BoletobancarioSantander = 66,
///
/// Enum BoletobancarioBancodobrasil for value: boletobancario_bancodobrasil
///
[EnumMember(Value = "boletobancario_bancodobrasil")]
- BoletobancarioBancodobrasil = 68,
+ BoletobancarioBancodobrasil = 67,
///
/// Enum BoletobancarioHsbc for value: boletobancario_hsbc
///
[EnumMember(Value = "boletobancario_hsbc")]
- BoletobancarioHsbc = 69,
+ BoletobancarioHsbc = 68,
///
/// Enum MolpayMaybank2u for value: molpay_maybank2u
///
[EnumMember(Value = "molpay_maybank2u")]
- MolpayMaybank2u = 70,
+ MolpayMaybank2u = 69,
///
/// Enum MolpayCimb for value: molpay_cimb
///
[EnumMember(Value = "molpay_cimb")]
- MolpayCimb = 71,
+ MolpayCimb = 70,
///
/// Enum MolpayRhb for value: molpay_rhb
///
[EnumMember(Value = "molpay_rhb")]
- MolpayRhb = 72,
+ MolpayRhb = 71,
///
/// Enum MolpayAmb for value: molpay_amb
///
[EnumMember(Value = "molpay_amb")]
- MolpayAmb = 73,
+ MolpayAmb = 72,
///
/// Enum MolpayHlb for value: molpay_hlb
///
[EnumMember(Value = "molpay_hlb")]
- MolpayHlb = 74,
+ MolpayHlb = 73,
///
/// Enum MolpayAffinEpg for value: molpay_affin_epg
///
[EnumMember(Value = "molpay_affin_epg")]
- MolpayAffinEpg = 75,
+ MolpayAffinEpg = 74,
///
/// Enum MolpayBankislam for value: molpay_bankislam
///
[EnumMember(Value = "molpay_bankislam")]
- MolpayBankislam = 76,
+ MolpayBankislam = 75,
///
/// Enum MolpayPublicbank for value: molpay_publicbank
///
[EnumMember(Value = "molpay_publicbank")]
- MolpayPublicbank = 77,
+ MolpayPublicbank = 76,
///
/// Enum FpxAgrobank for value: fpx_agrobank
///
[EnumMember(Value = "fpx_agrobank")]
- FpxAgrobank = 78,
+ FpxAgrobank = 77,
///
/// Enum Touchngo for value: touchngo
///
[EnumMember(Value = "touchngo")]
- Touchngo = 79,
+ Touchngo = 78,
///
/// Enum Maybank2uMae for value: maybank2u_mae
///
[EnumMember(Value = "maybank2u_mae")]
- Maybank2uMae = 80,
+ Maybank2uMae = 79,
///
/// Enum Duitnow for value: duitnow
///
[EnumMember(Value = "duitnow")]
- Duitnow = 81,
+ Duitnow = 80,
///
/// Enum Promptpay for value: promptpay
///
[EnumMember(Value = "promptpay")]
- Promptpay = 82,
+ Promptpay = 81,
///
/// Enum TwintPos for value: twint_pos
///
[EnumMember(Value = "twint_pos")]
- TwintPos = 83,
+ TwintPos = 82,
///
/// Enum AlipayHk for value: alipay_hk
///
[EnumMember(Value = "alipay_hk")]
- AlipayHk = 84,
+ AlipayHk = 83,
///
/// Enum AlipayHkWeb for value: alipay_hk_web
///
[EnumMember(Value = "alipay_hk_web")]
- AlipayHkWeb = 85,
+ AlipayHkWeb = 84,
///
/// Enum AlipayHkWap for value: alipay_hk_wap
///
[EnumMember(Value = "alipay_hk_wap")]
- AlipayHkWap = 86,
+ AlipayHkWap = 85,
///
/// Enum AlipayWap for value: alipay_wap
///
[EnumMember(Value = "alipay_wap")]
- AlipayWap = 87,
+ AlipayWap = 86,
///
/// Enum Balanceplatform for value: balanceplatform
///
[EnumMember(Value = "balanceplatform")]
- Balanceplatform = 88
+ Balanceplatform = 87
}
diff --git a/Adyen/Model/Checkout/ThreeDSRequestData.cs b/Adyen/Model/Checkout/ThreeDSRequestData.cs
index 229e1817a..b31ef4c1e 100644
--- a/Adyen/Model/Checkout/ThreeDSRequestData.cs
+++ b/Adyen/Model/Checkout/ThreeDSRequestData.cs
@@ -136,15 +136,15 @@ public enum NativeThreeDSEnum
public enum ThreeDSVersionEnum
{
///
- /// Enum _10 for value: V_2_1_0
+ /// Enum _10 for value: 2.1.0
///
- [EnumMember(Value = "V_2_1_0")]
+ [EnumMember(Value = "2.1.0")]
_10 = 1,
///
- /// Enum _20 for value: V_2_2_0
+ /// Enum _20 for value: 2.2.0
///
- [EnumMember(Value = "V_2_2_0")]
+ [EnumMember(Value = "2.2.0")]
_20 = 2
}
diff --git a/Adyen/Model/PlatformsFund/AccountHolderTransactionListResponse.cs b/Adyen/Model/PlatformsFund/AccountHolderTransactionListResponse.cs
index 4aa03ef98..6720a3f02 100644
--- a/Adyen/Model/PlatformsFund/AccountHolderTransactionListResponse.cs
+++ b/Adyen/Model/PlatformsFund/AccountHolderTransactionListResponse.cs
@@ -39,7 +39,7 @@ public partial class AccountHolderTransactionListResponse : IEquatableContains field validation errors that would prevent requests from being processed..
/// The reference of a request. Can be used to uniquely identify the request..
/// The result code..
- public AccountHolderTransactionListResponse(List accountTransactionLists = default(List), List invalidFields = default(List), string pspReference = default(string), string resultCode = default(string))
+ public AccountHolderTransactionListResponse(List accountTransactionLists = default(List), List invalidFields = default(List), string pspReference = default(string), string resultCode = default(string))
{
this.AccountTransactionLists = accountTransactionLists;
this.InvalidFields = invalidFields;
@@ -52,7 +52,7 @@ public partial class AccountHolderTransactionListResponse : IEquatable
/// A list of the transactions.
[DataMember(Name = "accountTransactionLists", EmitDefaultValue = false)]
- public List AccountTransactionLists { get; set; }
+ public List AccountTransactionLists { get; set; }
///
/// Contains field validation errors that would prevent requests from being processed.
diff --git a/Adyen/Model/TransferWebhooks/HKLocalAccountIdentification.cs b/Adyen/Model/TransferWebhooks/HKLocalAccountIdentification.cs
index c6bad7e63..4ce0d44f3 100644
--- a/Adyen/Model/TransferWebhooks/HKLocalAccountIdentification.cs
+++ b/Adyen/Model/TransferWebhooks/HKLocalAccountIdentification.cs
@@ -62,29 +62,29 @@ protected HKLocalAccountIdentification() { }
///
/// Initializes a new instance of the class.
///
- /// The 6- to 19-character bank account number (alphanumeric), without separators or whitespace. (required).
- /// The 6-digit bank code including the 3-digit bank code and 3-digit branch code, without separators or whitespace. (required).
+ /// The 9- to 12-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).
/// **hkLocal** (required) (default to TypeEnum.HkLocal).
- 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;
}
///
- /// 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.
///
- /// 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.
[DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
public string AccountNumber { get; set; }
///
- /// 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.
///
- /// The 6-digit bank code including the 3-digit bank code and 3-digit branch code, without separators or whitespace.
- [DataMember(Name = "bankCode", IsRequired = false, EmitDefaultValue = false)]
- public string BankCode { get; set; }
+ /// The 3-digit clearing code, without separators or whitespace.
+ [DataMember(Name = "clearingCode", IsRequired = false, EmitDefaultValue = false)]
+ public string ClearingCode { get; set; }
///
/// Returns the string presentation of the object
@@ -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();
@@ -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 ||
@@ -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;
@@ -177,27 +177,27 @@ public override int GetHashCode()
public IEnumerable 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;
diff --git a/Adyen/Model/TransferWebhooks/MerchantData.cs b/Adyen/Model/TransferWebhooks/MerchantData.cs
index 412ee4781..18981a27e 100644
--- a/Adyen/Model/TransferWebhooks/MerchantData.cs
+++ b/Adyen/Model/TransferWebhooks/MerchantData.cs
@@ -35,18 +35,27 @@ public partial class MerchantData : IEquatable, IValidatableObject
///
/// Initializes a new instance of the class.
///
+ /// The unique identifier of the merchant's acquirer..
/// The merchant category code..
/// The merchant identifier..
/// nameLocation.
/// The merchant postal code..
- public MerchantData(string mcc = default(string), string merchantId = default(string), NameLocation nameLocation = default(NameLocation), string postalCode = default(string))
+ public MerchantData(string acquirerId = default(string), string mcc = default(string), string merchantId = default(string), NameLocation nameLocation = default(NameLocation), string postalCode = default(string))
{
+ this.AcquirerId = acquirerId;
this.Mcc = mcc;
this.MerchantId = merchantId;
this.NameLocation = nameLocation;
this.PostalCode = postalCode;
}
+ ///
+ /// The unique identifier of the merchant's acquirer.
+ ///
+ /// The unique identifier of the merchant's acquirer.
+ [DataMember(Name = "acquirerId", EmitDefaultValue = false)]
+ public string AcquirerId { get; set; }
+
///
/// The merchant category code.
///
@@ -82,6 +91,7 @@ public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class MerchantData {\n");
+ sb.Append(" AcquirerId: ").Append(AcquirerId).Append("\n");
sb.Append(" Mcc: ").Append(Mcc).Append("\n");
sb.Append(" MerchantId: ").Append(MerchantId).Append("\n");
sb.Append(" NameLocation: ").Append(NameLocation).Append("\n");
@@ -121,6 +131,11 @@ public bool Equals(MerchantData input)
return false;
}
return
+ (
+ this.AcquirerId == input.AcquirerId ||
+ (this.AcquirerId != null &&
+ this.AcquirerId.Equals(input.AcquirerId))
+ ) &&
(
this.Mcc == input.Mcc ||
(this.Mcc != null &&
@@ -152,6 +167,10 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
+ if (this.AcquirerId != null)
+ {
+ hashCode = (hashCode * 59) + this.AcquirerId.GetHashCode();
+ }
if (this.Mcc != null)
{
hashCode = (hashCode * 59) + this.Mcc.GetHashCode();
diff --git a/Adyen/Model/TransferWebhooks/Modification.cs b/Adyen/Model/TransferWebhooks/Modification.cs
new file mode 100644
index 000000000..6513d5f35
--- /dev/null
+++ b/Adyen/Model/TransferWebhooks/Modification.cs
@@ -0,0 +1,594 @@
+/*
+* Transfer webhooks
+*
+*
+* The version of the OpenAPI document: 3
+*
+* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+* https://openapi-generator.tech
+* Do not edit the class manually.
+*/
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
+
+namespace Adyen.Model.TransferWebhooks
+{
+ ///
+ /// Modification
+ ///
+ [DataContract(Name = "Modification")]
+ public partial class Modification : IEquatable, IValidatableObject
+ {
+ ///
+ /// The status of the transfer event.
+ ///
+ /// The status of the transfer event.
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum StatusEnum
+ {
+ ///
+ /// Enum ApprovalPending for value: approvalPending
+ ///
+ [EnumMember(Value = "approvalPending")]
+ ApprovalPending = 1,
+
+ ///
+ /// Enum AtmWithdrawal for value: atmWithdrawal
+ ///
+ [EnumMember(Value = "atmWithdrawal")]
+ AtmWithdrawal = 2,
+
+ ///
+ /// Enum AtmWithdrawalReversalPending for value: atmWithdrawalReversalPending
+ ///
+ [EnumMember(Value = "atmWithdrawalReversalPending")]
+ AtmWithdrawalReversalPending = 3,
+
+ ///
+ /// Enum AtmWithdrawalReversed for value: atmWithdrawalReversed
+ ///
+ [EnumMember(Value = "atmWithdrawalReversed")]
+ AtmWithdrawalReversed = 4,
+
+ ///
+ /// Enum AuthAdjustmentAuthorised for value: authAdjustmentAuthorised
+ ///
+ [EnumMember(Value = "authAdjustmentAuthorised")]
+ AuthAdjustmentAuthorised = 5,
+
+ ///
+ /// Enum AuthAdjustmentError for value: authAdjustmentError
+ ///
+ [EnumMember(Value = "authAdjustmentError")]
+ AuthAdjustmentError = 6,
+
+ ///
+ /// Enum AuthAdjustmentRefused for value: authAdjustmentRefused
+ ///
+ [EnumMember(Value = "authAdjustmentRefused")]
+ AuthAdjustmentRefused = 7,
+
+ ///
+ /// Enum Authorised for value: authorised
+ ///
+ [EnumMember(Value = "authorised")]
+ Authorised = 8,
+
+ ///
+ /// Enum BankTransfer for value: bankTransfer
+ ///
+ [EnumMember(Value = "bankTransfer")]
+ BankTransfer = 9,
+
+ ///
+ /// Enum BankTransferPending for value: bankTransferPending
+ ///
+ [EnumMember(Value = "bankTransferPending")]
+ BankTransferPending = 10,
+
+ ///
+ /// Enum Booked for value: booked
+ ///
+ [EnumMember(Value = "booked")]
+ Booked = 11,
+
+ ///
+ /// Enum BookingPending for value: bookingPending
+ ///
+ [EnumMember(Value = "bookingPending")]
+ BookingPending = 12,
+
+ ///
+ /// Enum Cancelled for value: cancelled
+ ///
+ [EnumMember(Value = "cancelled")]
+ Cancelled = 13,
+
+ ///
+ /// Enum CapturePending for value: capturePending
+ ///
+ [EnumMember(Value = "capturePending")]
+ CapturePending = 14,
+
+ ///
+ /// Enum CaptureReversalPending for value: captureReversalPending
+ ///
+ [EnumMember(Value = "captureReversalPending")]
+ CaptureReversalPending = 15,
+
+ ///
+ /// Enum CaptureReversed for value: captureReversed
+ ///
+ [EnumMember(Value = "captureReversed")]
+ CaptureReversed = 16,
+
+ ///
+ /// Enum Captured for value: captured
+ ///
+ [EnumMember(Value = "captured")]
+ Captured = 17,
+
+ ///
+ /// Enum CapturedExternally for value: capturedExternally
+ ///
+ [EnumMember(Value = "capturedExternally")]
+ CapturedExternally = 18,
+
+ ///
+ /// Enum Chargeback for value: chargeback
+ ///
+ [EnumMember(Value = "chargeback")]
+ Chargeback = 19,
+
+ ///
+ /// Enum ChargebackExternally for value: chargebackExternally
+ ///
+ [EnumMember(Value = "chargebackExternally")]
+ ChargebackExternally = 20,
+
+ ///
+ /// Enum ChargebackPending for value: chargebackPending
+ ///
+ [EnumMember(Value = "chargebackPending")]
+ ChargebackPending = 21,
+
+ ///
+ /// Enum ChargebackReversalPending for value: chargebackReversalPending
+ ///
+ [EnumMember(Value = "chargebackReversalPending")]
+ ChargebackReversalPending = 22,
+
+ ///
+ /// Enum ChargebackReversed for value: chargebackReversed
+ ///
+ [EnumMember(Value = "chargebackReversed")]
+ ChargebackReversed = 23,
+
+ ///
+ /// Enum Credited for value: credited
+ ///
+ [EnumMember(Value = "credited")]
+ Credited = 24,
+
+ ///
+ /// Enum DepositCorrection for value: depositCorrection
+ ///
+ [EnumMember(Value = "depositCorrection")]
+ DepositCorrection = 25,
+
+ ///
+ /// Enum DepositCorrectionPending for value: depositCorrectionPending
+ ///
+ [EnumMember(Value = "depositCorrectionPending")]
+ DepositCorrectionPending = 26,
+
+ ///
+ /// Enum Dispute for value: dispute
+ ///
+ [EnumMember(Value = "dispute")]
+ Dispute = 27,
+
+ ///
+ /// Enum DisputeClosed for value: disputeClosed
+ ///
+ [EnumMember(Value = "disputeClosed")]
+ DisputeClosed = 28,
+
+ ///
+ /// Enum DisputeExpired for value: disputeExpired
+ ///
+ [EnumMember(Value = "disputeExpired")]
+ DisputeExpired = 29,
+
+ ///
+ /// Enum DisputeNeedsReview for value: disputeNeedsReview
+ ///
+ [EnumMember(Value = "disputeNeedsReview")]
+ DisputeNeedsReview = 30,
+
+ ///
+ /// Enum Error for value: error
+ ///
+ [EnumMember(Value = "error")]
+ Error = 31,
+
+ ///
+ /// Enum Expired for value: expired
+ ///
+ [EnumMember(Value = "expired")]
+ Expired = 32,
+
+ ///
+ /// Enum Failed for value: failed
+ ///
+ [EnumMember(Value = "failed")]
+ Failed = 33,
+
+ ///
+ /// Enum Fee for value: fee
+ ///
+ [EnumMember(Value = "fee")]
+ Fee = 34,
+
+ ///
+ /// Enum FeePending for value: feePending
+ ///
+ [EnumMember(Value = "feePending")]
+ FeePending = 35,
+
+ ///
+ /// Enum InternalTransfer for value: internalTransfer
+ ///
+ [EnumMember(Value = "internalTransfer")]
+ InternalTransfer = 36,
+
+ ///
+ /// Enum InternalTransferPending for value: internalTransferPending
+ ///
+ [EnumMember(Value = "internalTransferPending")]
+ InternalTransferPending = 37,
+
+ ///
+ /// Enum InvoiceDeduction for value: invoiceDeduction
+ ///
+ [EnumMember(Value = "invoiceDeduction")]
+ InvoiceDeduction = 38,
+
+ ///
+ /// Enum InvoiceDeductionPending for value: invoiceDeductionPending
+ ///
+ [EnumMember(Value = "invoiceDeductionPending")]
+ InvoiceDeductionPending = 39,
+
+ ///
+ /// Enum ManualCorrectionPending for value: manualCorrectionPending
+ ///
+ [EnumMember(Value = "manualCorrectionPending")]
+ ManualCorrectionPending = 40,
+
+ ///
+ /// Enum ManuallyCorrected for value: manuallyCorrected
+ ///
+ [EnumMember(Value = "manuallyCorrected")]
+ ManuallyCorrected = 41,
+
+ ///
+ /// Enum MatchedStatement for value: matchedStatement
+ ///
+ [EnumMember(Value = "matchedStatement")]
+ MatchedStatement = 42,
+
+ ///
+ /// Enum MatchedStatementPending for value: matchedStatementPending
+ ///
+ [EnumMember(Value = "matchedStatementPending")]
+ MatchedStatementPending = 43,
+
+ ///
+ /// Enum MerchantPayin for value: merchantPayin
+ ///
+ [EnumMember(Value = "merchantPayin")]
+ MerchantPayin = 44,
+
+ ///
+ /// Enum MerchantPayinPending for value: merchantPayinPending
+ ///
+ [EnumMember(Value = "merchantPayinPending")]
+ MerchantPayinPending = 45,
+
+ ///
+ /// Enum MerchantPayinReversed for value: merchantPayinReversed
+ ///
+ [EnumMember(Value = "merchantPayinReversed")]
+ MerchantPayinReversed = 46,
+
+ ///
+ /// Enum MerchantPayinReversedPending for value: merchantPayinReversedPending
+ ///
+ [EnumMember(Value = "merchantPayinReversedPending")]
+ MerchantPayinReversedPending = 47,
+
+ ///
+ /// Enum MiscCost for value: miscCost
+ ///
+ [EnumMember(Value = "miscCost")]
+ MiscCost = 48,
+
+ ///
+ /// Enum MiscCostPending for value: miscCostPending
+ ///
+ [EnumMember(Value = "miscCostPending")]
+ MiscCostPending = 49,
+
+ ///
+ /// Enum PaymentCost for value: paymentCost
+ ///
+ [EnumMember(Value = "paymentCost")]
+ PaymentCost = 50,
+
+ ///
+ /// Enum PaymentCostPending for value: paymentCostPending
+ ///
+ [EnumMember(Value = "paymentCostPending")]
+ PaymentCostPending = 51,
+
+ ///
+ /// Enum Received for value: received
+ ///
+ [EnumMember(Value = "received")]
+ Received = 52,
+
+ ///
+ /// Enum RefundPending for value: refundPending
+ ///
+ [EnumMember(Value = "refundPending")]
+ RefundPending = 53,
+
+ ///
+ /// Enum RefundReversalPending for value: refundReversalPending
+ ///
+ [EnumMember(Value = "refundReversalPending")]
+ RefundReversalPending = 54,
+
+ ///
+ /// Enum RefundReversed for value: refundReversed
+ ///
+ [EnumMember(Value = "refundReversed")]
+ RefundReversed = 55,
+
+ ///
+ /// Enum Refunded for value: refunded
+ ///
+ [EnumMember(Value = "refunded")]
+ Refunded = 56,
+
+ ///
+ /// Enum RefundedExternally for value: refundedExternally
+ ///
+ [EnumMember(Value = "refundedExternally")]
+ RefundedExternally = 57,
+
+ ///
+ /// Enum Refused for value: refused
+ ///
+ [EnumMember(Value = "refused")]
+ Refused = 58,
+
+ ///
+ /// Enum ReserveAdjustment for value: reserveAdjustment
+ ///
+ [EnumMember(Value = "reserveAdjustment")]
+ ReserveAdjustment = 59,
+
+ ///
+ /// Enum ReserveAdjustmentPending for value: reserveAdjustmentPending
+ ///
+ [EnumMember(Value = "reserveAdjustmentPending")]
+ ReserveAdjustmentPending = 60,
+
+ ///
+ /// Enum Returned for value: returned
+ ///
+ [EnumMember(Value = "returned")]
+ Returned = 61,
+
+ ///
+ /// Enum SecondChargeback for value: secondChargeback
+ ///
+ [EnumMember(Value = "secondChargeback")]
+ SecondChargeback = 62,
+
+ ///
+ /// Enum SecondChargebackPending for value: secondChargebackPending
+ ///
+ [EnumMember(Value = "secondChargebackPending")]
+ SecondChargebackPending = 63,
+
+ ///
+ /// Enum Undefined for value: undefined
+ ///
+ [EnumMember(Value = "undefined")]
+ Undefined = 64
+
+ }
+
+
+ ///
+ /// The status of the transfer event.
+ ///
+ /// The status of the transfer event.
+ [DataMember(Name = "status", EmitDefaultValue = false)]
+ public StatusEnum? Status { get; set; }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The direction of the money movement..
+ /// Our reference for the modification..
+ /// Your reference for the modification, used internally within your platform..
+ /// The status of the transfer event..
+ /// The type of transfer modification..
+ public Modification(string direction = default(string), string id = default(string), string reference = default(string), StatusEnum? status = default(StatusEnum?), string type = default(string))
+ {
+ this.Direction = direction;
+ this.Id = id;
+ this.Reference = reference;
+ this.Status = status;
+ this.Type = type;
+ }
+
+ ///
+ /// The direction of the money movement.
+ ///
+ /// The direction of the money movement.
+ [DataMember(Name = "direction", EmitDefaultValue = false)]
+ public string Direction { get; set; }
+
+ ///
+ /// Our reference for the modification.
+ ///
+ /// Our reference for the modification.
+ [DataMember(Name = "id", EmitDefaultValue = false)]
+ public string Id { get; set; }
+
+ ///
+ /// Your reference for the modification, used internally within your platform.
+ ///
+ /// Your reference for the modification, used internally within your platform.
+ [DataMember(Name = "reference", EmitDefaultValue = false)]
+ public string Reference { get; set; }
+
+ ///
+ /// The type of transfer modification.
+ ///
+ /// The type of transfer modification.
+ [DataMember(Name = "type", EmitDefaultValue = false)]
+ public string Type { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class Modification {\n");
+ sb.Append(" Direction: ").Append(Direction).Append("\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Reference: ").Append(Reference).Append("\n");
+ sb.Append(" Status: ").Append(Status).Append("\n");
+ sb.Append(" Type: ").Append(Type).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as Modification);
+ }
+
+ ///
+ /// Returns true if Modification instances are equal
+ ///
+ /// Instance of Modification to be compared
+ /// Boolean
+ public bool Equals(Modification input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Direction == input.Direction ||
+ (this.Direction != null &&
+ this.Direction.Equals(input.Direction))
+ ) &&
+ (
+ this.Id == input.Id ||
+ (this.Id != null &&
+ this.Id.Equals(input.Id))
+ ) &&
+ (
+ this.Reference == input.Reference ||
+ (this.Reference != null &&
+ this.Reference.Equals(input.Reference))
+ ) &&
+ (
+ this.Status == input.Status ||
+ this.Status.Equals(input.Status)
+ ) &&
+ (
+ this.Type == input.Type ||
+ (this.Type != null &&
+ this.Type.Equals(input.Type))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.Direction != null)
+ {
+ hashCode = (hashCode * 59) + this.Direction.GetHashCode();
+ }
+ if (this.Id != null)
+ {
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ }
+ if (this.Reference != null)
+ {
+ hashCode = (hashCode * 59) + this.Reference.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.Status.GetHashCode();
+ if (this.Type != null)
+ {
+ hashCode = (hashCode * 59) + this.Type.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ public IEnumerable Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/TransferWebhooks/NZLocalAccountIdentification.cs b/Adyen/Model/TransferWebhooks/NZLocalAccountIdentification.cs
index a40c1c57c..2b9c32c4d 100644
--- a/Adyen/Model/TransferWebhooks/NZLocalAccountIdentification.cs
+++ b/Adyen/Model/TransferWebhooks/NZLocalAccountIdentification.cs
@@ -62,39 +62,21 @@ protected NZLocalAccountIdentification() { }
///
/// Initializes a new instance of the class.
///
- /// The 7-digit bank account number, without separators or whitespace. (required).
- /// The 2- to 3-digit account suffix, without separators or whitespace. (required).
- /// The 6-digit bank code including the 2-digit bank code and 4-digit branch code, without separators or whitespace. (required).
+ /// 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).
/// **nzLocal** (required) (default to TypeEnum.NzLocal).
- public NZLocalAccountIdentification(string accountNumber = default(string), string accountSuffix = default(string), string bankCode = default(string), TypeEnum type = TypeEnum.NzLocal)
+ public NZLocalAccountIdentification(string accountNumber = default(string), TypeEnum type = TypeEnum.NzLocal)
{
this.AccountNumber = accountNumber;
- this.AccountSuffix = accountSuffix;
- this.BankCode = bankCode;
this.Type = type;
}
///
- /// The 7-digit bank account number, without separators or whitespace.
+ /// 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.
///
- /// The 7-digit bank account number, without separators or whitespace.
+ /// 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.
[DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
public string AccountNumber { get; set; }
- ///
- /// The 2- to 3-digit account suffix, without separators or whitespace.
- ///
- /// The 2- to 3-digit account suffix, without separators or whitespace.
- [DataMember(Name = "accountSuffix", IsRequired = false, EmitDefaultValue = false)]
- public string AccountSuffix { get; set; }
-
- ///
- /// The 6-digit bank code including the 2-digit bank code and 4-digit branch code, without separators or whitespace.
- ///
- /// The 6-digit bank code including the 2-digit bank code and 4-digit branch code, without separators or whitespace.
- [DataMember(Name = "bankCode", IsRequired = false, EmitDefaultValue = false)]
- public string BankCode { get; set; }
-
///
/// Returns the string presentation of the object
///
@@ -104,8 +86,6 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class NZLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
- sb.Append(" AccountSuffix: ").Append(AccountSuffix).Append("\n");
- sb.Append(" BankCode: ").Append(BankCode).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -147,16 +127,6 @@ public bool Equals(NZLocalAccountIdentification input)
(this.AccountNumber != null &&
this.AccountNumber.Equals(input.AccountNumber))
) &&
- (
- this.AccountSuffix == input.AccountSuffix ||
- (this.AccountSuffix != null &&
- this.AccountSuffix.Equals(input.AccountSuffix))
- ) &&
- (
- this.BankCode == input.BankCode ||
- (this.BankCode != null &&
- this.BankCode.Equals(input.BankCode))
- ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -176,14 +146,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
}
- if (this.AccountSuffix != null)
- {
- hashCode = (hashCode * 59) + this.AccountSuffix.GetHashCode();
- }
- if (this.BankCode != null)
- {
- hashCode = (hashCode * 59) + this.BankCode.GetHashCode();
- }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
@@ -196,39 +158,15 @@ public override int GetHashCode()
public IEnumerable Validate(ValidationContext validationContext)
{
// AccountNumber (string) maxLength
- if (this.AccountNumber != null && this.AccountNumber.Length > 7)
+ if (this.AccountNumber != null && this.AccountNumber.Length > 16)
{
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountNumber, length must be less than 7.", new [] { "AccountNumber" });
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountNumber, length must be less than 16.", new [] { "AccountNumber" });
}
// AccountNumber (string) minLength
- if (this.AccountNumber != null && this.AccountNumber.Length < 7)
- {
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountNumber, length must be greater than 7.", new [] { "AccountNumber" });
- }
-
- // AccountSuffix (string) maxLength
- if (this.AccountSuffix != null && this.AccountSuffix.Length > 3)
- {
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountSuffix, length must be less than 3.", new [] { "AccountSuffix" });
- }
-
- // AccountSuffix (string) minLength
- if (this.AccountSuffix != null && this.AccountSuffix.Length < 2)
- {
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountSuffix, length must be greater than 2.", new [] { "AccountSuffix" });
- }
-
- // BankCode (string) maxLength
- if (this.BankCode != null && this.BankCode.Length > 6)
- {
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BankCode, length must be less than 6.", new [] { "BankCode" });
- }
-
- // BankCode (string) minLength
- if (this.BankCode != null && this.BankCode.Length < 6)
+ if (this.AccountNumber != null && this.AccountNumber.Length < 15)
{
- 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 AccountNumber, length must be greater than 15.", new [] { "AccountNumber" });
}
yield break;
diff --git a/Adyen/Model/TransferWebhooks/TransferData.cs b/Adyen/Model/TransferWebhooks/TransferData.cs
index 307dc20e6..322429383 100644
--- a/Adyen/Model/TransferWebhooks/TransferData.cs
+++ b/Adyen/Model/TransferWebhooks/TransferData.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.TransferWebhooks
public partial class TransferData : IEquatable, IValidatableObject
{
///
- /// The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.
+ /// The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.
///
- /// The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.
+ /// The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.
[JsonConverter(typeof(StringEnumConverter))]
public enum CategoryEnum
{
@@ -67,9 +67,9 @@ public enum CategoryEnum
///
- /// The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.
+ /// The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.
///
- /// The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.
+ /// The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.
[DataMember(Name = "category", IsRequired = false, EmitDefaultValue = false)]
public CategoryEnum Category { get; set; }
///
@@ -160,56 +160,104 @@ public enum PanEntryModeEnum
[Obsolete]
public PanEntryModeEnum? PanEntryMode { get; set; }
///
- /// The type of the related split.
+ /// Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the [Balance Platform Accounting Report](https://docs.adyen.com/marketplaces-and-platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **BalanceAccount**: for the sale amount of the transaction. * **Commission**: for your platform's commission on the transaction. * **PaymentFee**: for the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **VAT**: for the Value Added Tax.
///
- /// The type of the related split.
+ /// Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the [Balance Platform Accounting Report](https://docs.adyen.com/marketplaces-and-platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **BalanceAccount**: for the sale amount of the transaction. * **Commission**: for your platform's commission on the transaction. * **PaymentFee**: for the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **VAT**: for the Value Added Tax.
[JsonConverter(typeof(StringEnumConverter))]
public enum PlatformPaymentTypeEnum
{
+ ///
+ /// 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 PaymentFee for value: PaymentFee
///
[EnumMember(Value = "PaymentFee")]
- PaymentFee = 4,
+ PaymentFee = 9,
+
+ ///
+ /// Enum Remainder for value: Remainder
+ ///
+ [EnumMember(Value = "Remainder")]
+ Remainder = 10,
+
+ ///
+ /// Enum SchemeFee for value: SchemeFee
+ ///
+ [EnumMember(Value = "SchemeFee")]
+ SchemeFee = 11,
+
+ ///
+ /// Enum TopUp for value: TopUp
+ ///
+ [EnumMember(Value = "TopUp")]
+ TopUp = 12,
///
/// Enum VAT for value: VAT
///
[EnumMember(Value = "VAT")]
- VAT = 5
+ VAT = 13
}
///
- /// The type of the related split.
+ /// Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the [Balance Platform Accounting Report](https://docs.adyen.com/marketplaces-and-platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **BalanceAccount**: for the sale amount of the transaction. * **Commission**: for your platform's commission on the transaction. * **PaymentFee**: for the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **VAT**: for the Value Added Tax.
///
- /// The type of the related split.
+ /// Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the [Balance Platform Accounting Report](https://docs.adyen.com/marketplaces-and-platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **BalanceAccount**: for the sale amount of the transaction. * **Commission**: for your platform's commission on the transaction. * **PaymentFee**: for the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **VAT**: for the Value Added Tax.
[DataMember(Name = "platformPaymentType", EmitDefaultValue = false)]
[Obsolete]
public PlatformPaymentTypeEnum? PlatformPaymentType { get; set; }
///
- /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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).
+ /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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). This will be removed in v4 and replaced with a new field.
///
- /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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).
+ /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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). This will be removed in v4 and replaced with a new field.
[JsonConverter(typeof(StringEnumConverter))]
public enum PriorityEnum
{
@@ -259,9 +307,9 @@ public enum PriorityEnum
///
- /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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).
+ /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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). This will be removed in v4 and replaced with a new field.
///
- /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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).
+ /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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). This will be removed in v4 and replaced with a new field.
[DataMember(Name = "priority", EmitDefaultValue = false)]
public PriorityEnum? Priority { get; set; }
///
@@ -348,71 +396,89 @@ public enum ReasonEnum
[EnumMember(Value = "approved")]
Approved = 2,
+ ///
+ /// Enum BalanceAccountTemporarilyBlockedByTransactionRule for value: balanceAccountTemporarilyBlockedByTransactionRule
+ ///
+ [EnumMember(Value = "balanceAccountTemporarilyBlockedByTransactionRule")]
+ BalanceAccountTemporarilyBlockedByTransactionRule = 3,
+
///
/// Enum CounterpartyAccountBlocked for value: counterpartyAccountBlocked
///
[EnumMember(Value = "counterpartyAccountBlocked")]
- CounterpartyAccountBlocked = 3,
+ CounterpartyAccountBlocked = 4,
///
/// Enum CounterpartyAccountClosed for value: counterpartyAccountClosed
///
[EnumMember(Value = "counterpartyAccountClosed")]
- CounterpartyAccountClosed = 4,
+ CounterpartyAccountClosed = 5,
///
/// Enum CounterpartyAccountNotFound for value: counterpartyAccountNotFound
///
[EnumMember(Value = "counterpartyAccountNotFound")]
- CounterpartyAccountNotFound = 5,
+ CounterpartyAccountNotFound = 6,
///
/// Enum CounterpartyAddressRequired for value: counterpartyAddressRequired
///
[EnumMember(Value = "counterpartyAddressRequired")]
- CounterpartyAddressRequired = 6,
+ CounterpartyAddressRequired = 7,
///
/// Enum CounterpartyBankTimedOut for value: counterpartyBankTimedOut
///
[EnumMember(Value = "counterpartyBankTimedOut")]
- CounterpartyBankTimedOut = 7,
+ CounterpartyBankTimedOut = 8,
///
/// Enum CounterpartyBankUnavailable for value: counterpartyBankUnavailable
///
[EnumMember(Value = "counterpartyBankUnavailable")]
- CounterpartyBankUnavailable = 8,
+ CounterpartyBankUnavailable = 9,
+
+ ///
+ /// Enum DeclinedByTransactionRule for value: declinedByTransactionRule
+ ///
+ [EnumMember(Value = "declinedByTransactionRule")]
+ DeclinedByTransactionRule = 10,
///
/// Enum Error for value: error
///
[EnumMember(Value = "error")]
- Error = 9,
+ Error = 11,
///
/// Enum NotEnoughBalance for value: notEnoughBalance
///
[EnumMember(Value = "notEnoughBalance")]
- NotEnoughBalance = 10,
+ NotEnoughBalance = 12,
///
/// Enum RefusedByCounterpartyBank for value: refusedByCounterpartyBank
///
[EnumMember(Value = "refusedByCounterpartyBank")]
- RefusedByCounterpartyBank = 11,
+ RefusedByCounterpartyBank = 13,
///
/// Enum RouteNotFound for value: routeNotFound
///
[EnumMember(Value = "routeNotFound")]
- RouteNotFound = 12,
+ RouteNotFound = 14,
+
+ ///
+ /// Enum ScaFailed for value: scaFailed
+ ///
+ [EnumMember(Value = "scaFailed")]
+ ScaFailed = 15,
///
/// Enum Unknown for value: unknown
///
[EnumMember(Value = "unknown")]
- Unknown = 13
+ Unknown = 16
}
@@ -724,119 +790,95 @@ public enum StatusEnum
[EnumMember(Value = "miscCostPending")]
MiscCostPending = 49,
- ///
- /// Enum OperationAuthorized for value: operationAuthorized
- ///
- [EnumMember(Value = "operationAuthorized")]
- OperationAuthorized = 50,
-
- ///
- /// Enum OperationBooked for value: operationBooked
- ///
- [EnumMember(Value = "operationBooked")]
- OperationBooked = 51,
-
- ///
- /// Enum OperationPending for value: operationPending
- ///
- [EnumMember(Value = "operationPending")]
- OperationPending = 52,
-
- ///
- /// Enum OperationReceived for value: operationReceived
- ///
- [EnumMember(Value = "operationReceived")]
- OperationReceived = 53,
-
///
/// Enum PaymentCost for value: paymentCost
///
[EnumMember(Value = "paymentCost")]
- PaymentCost = 54,
+ PaymentCost = 50,
///
/// Enum PaymentCostPending for value: paymentCostPending
///
[EnumMember(Value = "paymentCostPending")]
- PaymentCostPending = 55,
+ PaymentCostPending = 51,
///
/// Enum Received for value: received
///
[EnumMember(Value = "received")]
- Received = 56,
+ Received = 52,
///
/// Enum RefundPending for value: refundPending
///
[EnumMember(Value = "refundPending")]
- RefundPending = 57,
+ RefundPending = 53,
///
/// Enum RefundReversalPending for value: refundReversalPending
///
[EnumMember(Value = "refundReversalPending")]
- RefundReversalPending = 58,
+ RefundReversalPending = 54,
///
/// Enum RefundReversed for value: refundReversed
///
[EnumMember(Value = "refundReversed")]
- RefundReversed = 59,
+ RefundReversed = 55,
///
/// Enum Refunded for value: refunded
///
[EnumMember(Value = "refunded")]
- Refunded = 60,
+ Refunded = 56,
///
/// Enum RefundedExternally for value: refundedExternally
///
[EnumMember(Value = "refundedExternally")]
- RefundedExternally = 61,
+ RefundedExternally = 57,
///
/// Enum Refused for value: refused
///
[EnumMember(Value = "refused")]
- Refused = 62,
+ Refused = 58,
///
/// Enum ReserveAdjustment for value: reserveAdjustment
///
[EnumMember(Value = "reserveAdjustment")]
- ReserveAdjustment = 63,
+ ReserveAdjustment = 59,
///
/// Enum ReserveAdjustmentPending for value: reserveAdjustmentPending
///
[EnumMember(Value = "reserveAdjustmentPending")]
- ReserveAdjustmentPending = 64,
+ ReserveAdjustmentPending = 60,
///
/// Enum Returned for value: returned
///
[EnumMember(Value = "returned")]
- Returned = 65,
+ Returned = 61,
///
/// Enum SecondChargeback for value: secondChargeback
///
[EnumMember(Value = "secondChargeback")]
- SecondChargeback = 66,
+ SecondChargeback = 62,
///
/// Enum SecondChargebackPending for value: secondChargebackPending
///
[EnumMember(Value = "secondChargebackPending")]
- SecondChargebackPending = 67,
+ SecondChargebackPending = 63,
///
/// Enum Undefined for value: undefined
///
[EnumMember(Value = "undefined")]
- Undefined = 68
+ Undefined = 64
}
@@ -872,149 +914,191 @@ public enum TypeEnum
[EnumMember(Value = "balanceAdjustment")]
BalanceAdjustment = 3,
+ ///
+ /// Enum BalanceMigration for value: balanceMigration
+ ///
+ [EnumMember(Value = "balanceMigration")]
+ BalanceMigration = 4,
+
///
/// Enum BalanceRollover for value: balanceRollover
///
[EnumMember(Value = "balanceRollover")]
- BalanceRollover = 4,
+ BalanceRollover = 5,
///
/// Enum BankTransfer for value: bankTransfer
///
[EnumMember(Value = "bankTransfer")]
- BankTransfer = 5,
+ BankTransfer = 6,
///
/// Enum Capture for value: capture
///
[EnumMember(Value = "capture")]
- Capture = 6,
+ Capture = 7,
///
/// Enum CaptureReversal for value: captureReversal
///
[EnumMember(Value = "captureReversal")]
- CaptureReversal = 7,
+ CaptureReversal = 8,
///
/// Enum CardTransfer for value: cardTransfer
///
[EnumMember(Value = "cardTransfer")]
- CardTransfer = 8,
+ CardTransfer = 9,
+
+ ///
+ /// Enum CashOutFee for value: cashOutFee
+ ///
+ [EnumMember(Value = "cashOutFee")]
+ CashOutFee = 10,
+
+ ///
+ /// Enum CashOutFunding for value: cashOutFunding
+ ///
+ [EnumMember(Value = "cashOutFunding")]
+ CashOutFunding = 11,
+
+ ///
+ /// Enum CashOutInstruction for value: cashOutInstruction
+ ///
+ [EnumMember(Value = "cashOutInstruction")]
+ CashOutInstruction = 12,
///
/// Enum Chargeback for value: chargeback
///
[EnumMember(Value = "chargeback")]
- Chargeback = 9,
+ Chargeback = 13,
+
+ ///
+ /// Enum ChargebackCorrection for value: chargebackCorrection
+ ///
+ [EnumMember(Value = "chargebackCorrection")]
+ ChargebackCorrection = 14,
///
/// Enum ChargebackReversal for value: chargebackReversal
///
[EnumMember(Value = "chargebackReversal")]
- ChargebackReversal = 10,
+ ChargebackReversal = 15,
+
+ ///
+ /// Enum ChargebackReversalCorrection for value: chargebackReversalCorrection
+ ///
+ [EnumMember(Value = "chargebackReversalCorrection")]
+ ChargebackReversalCorrection = 16,
///
/// Enum DepositCorrection for value: depositCorrection
///
[EnumMember(Value = "depositCorrection")]
- DepositCorrection = 11,
+ DepositCorrection = 17,
///
/// Enum Fee for value: fee
///
[EnumMember(Value = "fee")]
- Fee = 12,
+ Fee = 18,
///
/// Enum Grant for value: grant
///
[EnumMember(Value = "grant")]
- Grant = 13,
+ Grant = 19,
///
/// Enum Installment for value: installment
///
[EnumMember(Value = "installment")]
- Installment = 14,
+ Installment = 20,
///
/// Enum InstallmentReversal for value: installmentReversal
///
[EnumMember(Value = "installmentReversal")]
- InstallmentReversal = 15,
+ InstallmentReversal = 21,
///
/// Enum InternalTransfer for value: internalTransfer
///
[EnumMember(Value = "internalTransfer")]
- InternalTransfer = 16,
+ InternalTransfer = 22,
///
/// Enum InvoiceDeduction for value: invoiceDeduction
///
[EnumMember(Value = "invoiceDeduction")]
- InvoiceDeduction = 17,
+ InvoiceDeduction = 23,
///
/// Enum Leftover for value: leftover
///
[EnumMember(Value = "leftover")]
- Leftover = 18,
+ Leftover = 24,
///
/// Enum ManualCorrection for value: manualCorrection
///
[EnumMember(Value = "manualCorrection")]
- ManualCorrection = 19,
+ ManualCorrection = 25,
///
/// Enum MiscCost for value: miscCost
///
[EnumMember(Value = "miscCost")]
- MiscCost = 20,
+ MiscCost = 26,
///
/// Enum Payment for value: payment
///
[EnumMember(Value = "payment")]
- Payment = 21,
+ Payment = 27,
///
/// Enum PaymentCost for value: paymentCost
///
[EnumMember(Value = "paymentCost")]
- PaymentCost = 22,
+ PaymentCost = 28,
///
/// Enum Refund for value: refund
///
[EnumMember(Value = "refund")]
- Refund = 23,
+ Refund = 29,
///
/// Enum RefundReversal for value: refundReversal
///
[EnumMember(Value = "refundReversal")]
- RefundReversal = 24,
+ RefundReversal = 30,
///
/// Enum Repayment for value: repayment
///
[EnumMember(Value = "repayment")]
- Repayment = 25,
+ Repayment = 31,
///
/// Enum ReserveAdjustment for value: reserveAdjustment
///
[EnumMember(Value = "reserveAdjustment")]
- ReserveAdjustment = 26,
+ ReserveAdjustment = 32,
///
/// Enum SecondChargeback for value: secondChargeback
///
[EnumMember(Value = "secondChargeback")]
- SecondChargeback = 27
+ SecondChargeback = 33,
+
+ ///
+ /// Enum SecondChargebackCorrection for value: secondChargebackCorrection
+ ///
+ [EnumMember(Value = "secondChargebackCorrection")]
+ SecondChargebackCorrection = 34
}
@@ -1039,7 +1123,7 @@ protected TransferData() { }
/// The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id)..
/// The unique identifier of the balance platform..
/// The list of the latest balance statuses in the transfer..
- /// The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. (required).
+ /// The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. (required).
/// counterparty.
/// The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**..
/// Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?**.
@@ -1052,8 +1136,8 @@ protected TransferData() { }
/// paymentInstrument.
/// The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) used in the transfer..
/// The payment's merchant reference included in the transfer..
- /// The type of the related split..
- /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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)..
+ /// Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the [Balance Platform Accounting Report](https://docs.adyen.com/marketplaces-and-platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **BalanceAccount**: for the sale amount of the transaction. * **Commission**: for your platform's commission on the transaction. * **PaymentFee**: for the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **VAT**: for the Value Added Tax..
+ /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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). This will be removed in v4 and replaced with a new field..
/// Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments..
/// The payment reference included in the transfer..
/// Additional information about the status of the transfer..
diff --git a/Adyen/Model/TransferWebhooks/TransferEvent.cs b/Adyen/Model/TransferWebhooks/TransferEvent.cs
index 60a415ae8..60231aa72 100644
--- a/Adyen/Model/TransferWebhooks/TransferEvent.cs
+++ b/Adyen/Model/TransferWebhooks/TransferEvent.cs
@@ -51,71 +51,89 @@ public enum ReasonEnum
[EnumMember(Value = "approved")]
Approved = 2,
+ ///
+ /// Enum BalanceAccountTemporarilyBlockedByTransactionRule for value: balanceAccountTemporarilyBlockedByTransactionRule
+ ///
+ [EnumMember(Value = "balanceAccountTemporarilyBlockedByTransactionRule")]
+ BalanceAccountTemporarilyBlockedByTransactionRule = 3,
+
///
/// Enum CounterpartyAccountBlocked for value: counterpartyAccountBlocked
///
[EnumMember(Value = "counterpartyAccountBlocked")]
- CounterpartyAccountBlocked = 3,
+ CounterpartyAccountBlocked = 4,
///
/// Enum CounterpartyAccountClosed for value: counterpartyAccountClosed
///
[EnumMember(Value = "counterpartyAccountClosed")]
- CounterpartyAccountClosed = 4,
+ CounterpartyAccountClosed = 5,
///
/// Enum CounterpartyAccountNotFound for value: counterpartyAccountNotFound
///
[EnumMember(Value = "counterpartyAccountNotFound")]
- CounterpartyAccountNotFound = 5,
+ CounterpartyAccountNotFound = 6,
///
/// Enum CounterpartyAddressRequired for value: counterpartyAddressRequired
///
[EnumMember(Value = "counterpartyAddressRequired")]
- CounterpartyAddressRequired = 6,
+ CounterpartyAddressRequired = 7,
///
/// Enum CounterpartyBankTimedOut for value: counterpartyBankTimedOut
///
[EnumMember(Value = "counterpartyBankTimedOut")]
- CounterpartyBankTimedOut = 7,
+ CounterpartyBankTimedOut = 8,
///
/// Enum CounterpartyBankUnavailable for value: counterpartyBankUnavailable
///
[EnumMember(Value = "counterpartyBankUnavailable")]
- CounterpartyBankUnavailable = 8,
+ CounterpartyBankUnavailable = 9,
+
+ ///
+ /// Enum DeclinedByTransactionRule for value: declinedByTransactionRule
+ ///
+ [EnumMember(Value = "declinedByTransactionRule")]
+ DeclinedByTransactionRule = 10,
///
/// Enum Error for value: error
///
[EnumMember(Value = "error")]
- Error = 9,
+ Error = 11,
///
/// Enum NotEnoughBalance for value: notEnoughBalance
///
[EnumMember(Value = "notEnoughBalance")]
- NotEnoughBalance = 10,
+ NotEnoughBalance = 12,
///
/// Enum RefusedByCounterpartyBank for value: refusedByCounterpartyBank
///
[EnumMember(Value = "refusedByCounterpartyBank")]
- RefusedByCounterpartyBank = 11,
+ RefusedByCounterpartyBank = 13,
///
/// Enum RouteNotFound for value: routeNotFound
///
[EnumMember(Value = "routeNotFound")]
- RouteNotFound = 12,
+ RouteNotFound = 14,
+
+ ///
+ /// Enum ScaFailed for value: scaFailed
+ ///
+ [EnumMember(Value = "scaFailed")]
+ ScaFailed = 15,
///
/// Enum Unknown for value: unknown
///
[EnumMember(Value = "unknown")]
- Unknown = 13
+ Unknown = 16
}
@@ -427,119 +445,95 @@ public enum StatusEnum
[EnumMember(Value = "miscCostPending")]
MiscCostPending = 49,
- ///
- /// Enum OperationAuthorized for value: operationAuthorized
- ///
- [EnumMember(Value = "operationAuthorized")]
- OperationAuthorized = 50,
-
- ///
- /// Enum OperationBooked for value: operationBooked
- ///
- [EnumMember(Value = "operationBooked")]
- OperationBooked = 51,
-
- ///
- /// Enum OperationPending for value: operationPending
- ///
- [EnumMember(Value = "operationPending")]
- OperationPending = 52,
-
- ///
- /// Enum OperationReceived for value: operationReceived
- ///
- [EnumMember(Value = "operationReceived")]
- OperationReceived = 53,
-
///
/// Enum PaymentCost for value: paymentCost
///
[EnumMember(Value = "paymentCost")]
- PaymentCost = 54,
+ PaymentCost = 50,
///
/// Enum PaymentCostPending for value: paymentCostPending
///
[EnumMember(Value = "paymentCostPending")]
- PaymentCostPending = 55,
+ PaymentCostPending = 51,
///
/// Enum Received for value: received
///
[EnumMember(Value = "received")]
- Received = 56,
+ Received = 52,
///
/// Enum RefundPending for value: refundPending
///
[EnumMember(Value = "refundPending")]
- RefundPending = 57,
+ RefundPending = 53,
///
/// Enum RefundReversalPending for value: refundReversalPending
///
[EnumMember(Value = "refundReversalPending")]
- RefundReversalPending = 58,
+ RefundReversalPending = 54,
///
/// Enum RefundReversed for value: refundReversed
///
[EnumMember(Value = "refundReversed")]
- RefundReversed = 59,
+ RefundReversed = 55,
///
/// Enum Refunded for value: refunded
///
[EnumMember(Value = "refunded")]
- Refunded = 60,
+ Refunded = 56,
///
/// Enum RefundedExternally for value: refundedExternally
///
[EnumMember(Value = "refundedExternally")]
- RefundedExternally = 61,
+ RefundedExternally = 57,
///
/// Enum Refused for value: refused
///
[EnumMember(Value = "refused")]
- Refused = 62,
+ Refused = 58,
///
/// Enum ReserveAdjustment for value: reserveAdjustment
///
[EnumMember(Value = "reserveAdjustment")]
- ReserveAdjustment = 63,
+ ReserveAdjustment = 59,
///
/// Enum ReserveAdjustmentPending for value: reserveAdjustmentPending
///
[EnumMember(Value = "reserveAdjustmentPending")]
- ReserveAdjustmentPending = 64,
+ ReserveAdjustmentPending = 60,
///
/// Enum Returned for value: returned
///
[EnumMember(Value = "returned")]
- Returned = 65,
+ Returned = 61,
///
/// Enum SecondChargeback for value: secondChargeback
///
[EnumMember(Value = "secondChargeback")]
- SecondChargeback = 66,
+ SecondChargeback = 62,
///
/// Enum SecondChargebackPending for value: secondChargebackPending
///
[EnumMember(Value = "secondChargebackPending")]
- SecondChargebackPending = 67,
+ SecondChargebackPending = 63,
///
/// Enum Undefined for value: undefined
///
[EnumMember(Value = "undefined")]
- Undefined = 68
+ Undefined = 64
}
@@ -586,28 +580,32 @@ public enum TypeEnum
/// The date when the transfer request was sent..
/// The estimated time the beneficiary should have access to the funds..
/// The unique identifier of the transfer event..
+ /// modification.
/// The list of the balance mutation per event..
/// originalAmount.
/// The reason for the transfer status..
+ /// SchemeTraceID retrieved from scheme..
+ /// SchemeUniqueTransactionID retrieved from scheme..
/// The status of the transfer event..
/// The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes..
- /// transferOperation.
/// The type of the transfer event. Possible values: **accounting**, **tracking**..
/// The date when the tracking status was updated..
/// A future date, when the funds are expected to be deducted from or credited to the balance account..
- public TransferEvent(Amount amount = default(Amount), List amountAdjustments = default(List), DateTime bookingDate = default(DateTime), DateTime estimatedArrivalTime = default(DateTime), string id = default(string), List mutations = default(List), Amount originalAmount = default(Amount), ReasonEnum? reason = default(ReasonEnum?), StatusEnum? status = default(StatusEnum?), string transactionId = default(string), TransferOperation transferOperation = default(TransferOperation), TypeEnum? type = default(TypeEnum?), DateTime updateDate = default(DateTime), DateTime valueDate = default(DateTime))
+ public TransferEvent(Amount amount = default(Amount), List amountAdjustments = default(List), DateTime bookingDate = default(DateTime), DateTime estimatedArrivalTime = default(DateTime), string id = default(string), Modification modification = default(Modification), List mutations = default(List), Amount originalAmount = default(Amount), ReasonEnum? reason = default(ReasonEnum?), string schemeTraceID = default(string), string schemeUniqueTransactionID = default(string), StatusEnum? status = default(StatusEnum?), string transactionId = default(string), TypeEnum? type = default(TypeEnum?), DateTime updateDate = default(DateTime), DateTime valueDate = default(DateTime))
{
this.Amount = amount;
this.AmountAdjustments = amountAdjustments;
this.BookingDate = bookingDate;
this.EstimatedArrivalTime = estimatedArrivalTime;
this.Id = id;
+ this.Modification = modification;
this.Mutations = mutations;
this.OriginalAmount = originalAmount;
this.Reason = reason;
+ this.SchemeTraceID = schemeTraceID;
+ this.SchemeUniqueTransactionID = schemeUniqueTransactionID;
this.Status = status;
this.TransactionId = transactionId;
- this.TransferOperation = transferOperation;
this.Type = type;
this.UpdateDate = updateDate;
this.ValueDate = valueDate;
@@ -647,6 +645,12 @@ public enum TypeEnum
[DataMember(Name = "id", EmitDefaultValue = false)]
public string Id { get; set; }
+ ///
+ /// Gets or Sets Modification
+ ///
+ [DataMember(Name = "modification", EmitDefaultValue = false)]
+ public Modification Modification { get; set; }
+
///
/// The list of the balance mutation per event.
///
@@ -660,6 +664,20 @@ public enum TypeEnum
[DataMember(Name = "originalAmount", EmitDefaultValue = false)]
public Amount OriginalAmount { get; set; }
+ ///
+ /// SchemeTraceID retrieved from scheme.
+ ///
+ /// SchemeTraceID retrieved from scheme.
+ [DataMember(Name = "schemeTraceID", EmitDefaultValue = false)]
+ public string SchemeTraceID { get; set; }
+
+ ///
+ /// SchemeUniqueTransactionID retrieved from scheme.
+ ///
+ /// SchemeUniqueTransactionID retrieved from scheme.
+ [DataMember(Name = "schemeUniqueTransactionID", EmitDefaultValue = false)]
+ public string SchemeUniqueTransactionID { get; set; }
+
///
/// The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes.
///
@@ -667,12 +685,6 @@ public enum TypeEnum
[DataMember(Name = "transactionId", EmitDefaultValue = false)]
public string TransactionId { get; set; }
- ///
- /// Gets or Sets TransferOperation
- ///
- [DataMember(Name = "transferOperation", EmitDefaultValue = false)]
- public TransferOperation TransferOperation { get; set; }
-
///
/// The date when the tracking status was updated.
///
@@ -700,12 +712,14 @@ public override string ToString()
sb.Append(" BookingDate: ").Append(BookingDate).Append("\n");
sb.Append(" EstimatedArrivalTime: ").Append(EstimatedArrivalTime).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Modification: ").Append(Modification).Append("\n");
sb.Append(" Mutations: ").Append(Mutations).Append("\n");
sb.Append(" OriginalAmount: ").Append(OriginalAmount).Append("\n");
sb.Append(" Reason: ").Append(Reason).Append("\n");
+ sb.Append(" SchemeTraceID: ").Append(SchemeTraceID).Append("\n");
+ sb.Append(" SchemeUniqueTransactionID: ").Append(SchemeUniqueTransactionID).Append("\n");
sb.Append(" Status: ").Append(Status).Append("\n");
sb.Append(" TransactionId: ").Append(TransactionId).Append("\n");
- sb.Append(" TransferOperation: ").Append(TransferOperation).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append(" UpdateDate: ").Append(UpdateDate).Append("\n");
sb.Append(" ValueDate: ").Append(ValueDate).Append("\n");
@@ -770,6 +784,11 @@ public bool Equals(TransferEvent input)
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
+ (
+ this.Modification == input.Modification ||
+ (this.Modification != null &&
+ this.Modification.Equals(input.Modification))
+ ) &&
(
this.Mutations == input.Mutations ||
this.Mutations != null &&
@@ -785,6 +804,16 @@ public bool Equals(TransferEvent input)
this.Reason == input.Reason ||
this.Reason.Equals(input.Reason)
) &&
+ (
+ this.SchemeTraceID == input.SchemeTraceID ||
+ (this.SchemeTraceID != null &&
+ this.SchemeTraceID.Equals(input.SchemeTraceID))
+ ) &&
+ (
+ this.SchemeUniqueTransactionID == input.SchemeUniqueTransactionID ||
+ (this.SchemeUniqueTransactionID != null &&
+ this.SchemeUniqueTransactionID.Equals(input.SchemeUniqueTransactionID))
+ ) &&
(
this.Status == input.Status ||
this.Status.Equals(input.Status)
@@ -794,11 +823,6 @@ public bool Equals(TransferEvent input)
(this.TransactionId != null &&
this.TransactionId.Equals(input.TransactionId))
) &&
- (
- this.TransferOperation == input.TransferOperation ||
- (this.TransferOperation != null &&
- this.TransferOperation.Equals(input.TransferOperation))
- ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -844,6 +868,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Id.GetHashCode();
}
+ if (this.Modification != null)
+ {
+ hashCode = (hashCode * 59) + this.Modification.GetHashCode();
+ }
if (this.Mutations != null)
{
hashCode = (hashCode * 59) + this.Mutations.GetHashCode();
@@ -853,15 +881,19 @@ public override int GetHashCode()
hashCode = (hashCode * 59) + this.OriginalAmount.GetHashCode();
}
hashCode = (hashCode * 59) + this.Reason.GetHashCode();
+ if (this.SchemeTraceID != null)
+ {
+ hashCode = (hashCode * 59) + this.SchemeTraceID.GetHashCode();
+ }
+ if (this.SchemeUniqueTransactionID != null)
+ {
+ hashCode = (hashCode * 59) + this.SchemeUniqueTransactionID.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.Status.GetHashCode();
if (this.TransactionId != null)
{
hashCode = (hashCode * 59) + this.TransactionId.GetHashCode();
}
- if (this.TransferOperation != null)
- {
- hashCode = (hashCode * 59) + this.TransferOperation.GetHashCode();
- }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
if (this.UpdateDate != null)
{
diff --git a/Adyen/Model/TransferWebhooks/TransferOperation.cs b/Adyen/Model/TransferWebhooks/TransferOperation.cs
deleted file mode 100644
index 267251a28..000000000
--- a/Adyen/Model/TransferWebhooks/TransferOperation.cs
+++ /dev/null
@@ -1,167 +0,0 @@
-/*
-* Transfer webhooks
-*
-*
-* The version of the OpenAPI document: 3
-*
-* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
-* https://openapi-generator.tech
-* Do not edit the class manually.
-*/
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Linq;
-using System.IO;
-using System.Runtime.Serialization;
-using System.Text;
-using System.Text.RegularExpressions;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Converters;
-using Newtonsoft.Json.Linq;
-using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
-
-namespace Adyen.Model.TransferWebhooks
-{
- ///
- /// TransferOperation
- ///
- [DataContract(Name = "TransferOperation")]
- public partial class TransferOperation : IEquatable, IValidatableObject
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// The direction of the money movement..
- /// The reference returned when the amend was initiated..
- /// The type of amend for the transfer..
- public TransferOperation(string direction = default(string), string reference = default(string), string type = default(string))
- {
- this.Direction = direction;
- this.Reference = reference;
- this.Type = type;
- }
-
- ///
- /// The direction of the money movement.
- ///
- /// The direction of the money movement.
- [DataMember(Name = "direction", EmitDefaultValue = false)]
- public string Direction { get; set; }
-
- ///
- /// The reference returned when the amend was initiated.
- ///
- /// The reference returned when the amend was initiated.
- [DataMember(Name = "reference", EmitDefaultValue = false)]
- public string Reference { get; set; }
-
- ///
- /// The type of amend for the transfer.
- ///
- /// The type of amend for the transfer.
- [DataMember(Name = "type", EmitDefaultValue = false)]
- public string Type { get; set; }
-
- ///
- /// Returns the string presentation of the object
- ///
- /// String presentation of the object
- public override string ToString()
- {
- StringBuilder sb = new StringBuilder();
- sb.Append("class TransferOperation {\n");
- sb.Append(" Direction: ").Append(Direction).Append("\n");
- sb.Append(" Reference: ").Append(Reference).Append("\n");
- sb.Append(" Type: ").Append(Type).Append("\n");
- sb.Append("}\n");
- return sb.ToString();
- }
-
- ///
- /// Returns the JSON string presentation of the object
- ///
- /// JSON string presentation of the object
- public virtual string ToJson()
- {
- return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
- }
-
- ///
- /// Returns true if objects are equal
- ///
- /// Object to be compared
- /// Boolean
- public override bool Equals(object input)
- {
- return this.Equals(input as TransferOperation);
- }
-
- ///
- /// Returns true if TransferOperation instances are equal
- ///
- /// Instance of TransferOperation to be compared
- /// Boolean
- public bool Equals(TransferOperation input)
- {
- if (input == null)
- {
- return false;
- }
- return
- (
- this.Direction == input.Direction ||
- (this.Direction != null &&
- this.Direction.Equals(input.Direction))
- ) &&
- (
- this.Reference == input.Reference ||
- (this.Reference != null &&
- this.Reference.Equals(input.Reference))
- ) &&
- (
- this.Type == input.Type ||
- (this.Type != null &&
- this.Type.Equals(input.Type))
- );
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.Direction != null)
- {
- hashCode = (hashCode * 59) + this.Direction.GetHashCode();
- }
- if (this.Reference != null)
- {
- hashCode = (hashCode * 59) + this.Reference.GetHashCode();
- }
- if (this.Type != null)
- {
- hashCode = (hashCode * 59) + this.Type.GetHashCode();
- }
- return hashCode;
- }
- }
- ///
- /// To validate all properties of the instance
- ///
- /// Validation context
- /// Validation Result
- public IEnumerable Validate(ValidationContext validationContext)
- {
- yield break;
- }
- }
-
-}
diff --git a/Adyen/Model/Transfers/HKLocalAccountIdentification.cs b/Adyen/Model/Transfers/HKLocalAccountIdentification.cs
index 1324e0a4c..90a7f32df 100644
--- a/Adyen/Model/Transfers/HKLocalAccountIdentification.cs
+++ b/Adyen/Model/Transfers/HKLocalAccountIdentification.cs
@@ -62,29 +62,29 @@ protected HKLocalAccountIdentification() { }
///
/// Initializes a new instance of the class.
///
- /// The 6- to 19-character bank account number (alphanumeric), without separators or whitespace. (required).
- /// The 6-digit bank code including the 3-digit bank code and 3-digit branch code, without separators or whitespace. (required).
+ /// The 9- to 12-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).
/// **hkLocal** (required) (default to TypeEnum.HkLocal).
- 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;
}
///
- /// 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.
///
- /// 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.
[DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
public string AccountNumber { get; set; }
///
- /// 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.
///
- /// The 6-digit bank code including the 3-digit bank code and 3-digit branch code, without separators or whitespace.
- [DataMember(Name = "bankCode", IsRequired = false, EmitDefaultValue = false)]
- public string BankCode { get; set; }
+ /// The 3-digit clearing code, without separators or whitespace.
+ [DataMember(Name = "clearingCode", IsRequired = false, EmitDefaultValue = false)]
+ public string ClearingCode { get; set; }
///
/// Returns the string presentation of the object
@@ -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();
@@ -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 ||
@@ -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;
@@ -177,27 +177,27 @@ public override int GetHashCode()
public IEnumerable 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;
diff --git a/Adyen/Model/Transfers/MerchantData.cs b/Adyen/Model/Transfers/MerchantData.cs
index afbf0c589..1fc555296 100644
--- a/Adyen/Model/Transfers/MerchantData.cs
+++ b/Adyen/Model/Transfers/MerchantData.cs
@@ -35,18 +35,27 @@ public partial class MerchantData : IEquatable, IValidatableObject
///
/// Initializes a new instance of the class.
///
+ /// The unique identifier of the merchant's acquirer..
/// The merchant category code..
/// The merchant identifier..
/// nameLocation.
/// The merchant postal code..
- public MerchantData(string mcc = default(string), string merchantId = default(string), NameLocation nameLocation = default(NameLocation), string postalCode = default(string))
+ public MerchantData(string acquirerId = default(string), string mcc = default(string), string merchantId = default(string), NameLocation nameLocation = default(NameLocation), string postalCode = default(string))
{
+ this.AcquirerId = acquirerId;
this.Mcc = mcc;
this.MerchantId = merchantId;
this.NameLocation = nameLocation;
this.PostalCode = postalCode;
}
+ ///
+ /// The unique identifier of the merchant's acquirer.
+ ///
+ /// The unique identifier of the merchant's acquirer.
+ [DataMember(Name = "acquirerId", EmitDefaultValue = false)]
+ public string AcquirerId { get; set; }
+
///
/// The merchant category code.
///
@@ -82,6 +91,7 @@ public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class MerchantData {\n");
+ sb.Append(" AcquirerId: ").Append(AcquirerId).Append("\n");
sb.Append(" Mcc: ").Append(Mcc).Append("\n");
sb.Append(" MerchantId: ").Append(MerchantId).Append("\n");
sb.Append(" NameLocation: ").Append(NameLocation).Append("\n");
@@ -121,6 +131,11 @@ public bool Equals(MerchantData input)
return false;
}
return
+ (
+ this.AcquirerId == input.AcquirerId ||
+ (this.AcquirerId != null &&
+ this.AcquirerId.Equals(input.AcquirerId))
+ ) &&
(
this.Mcc == input.Mcc ||
(this.Mcc != null &&
@@ -152,6 +167,10 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
+ if (this.AcquirerId != null)
+ {
+ hashCode = (hashCode * 59) + this.AcquirerId.GetHashCode();
+ }
if (this.Mcc != null)
{
hashCode = (hashCode * 59) + this.Mcc.GetHashCode();
diff --git a/Adyen/Model/Transfers/NZLocalAccountIdentification.cs b/Adyen/Model/Transfers/NZLocalAccountIdentification.cs
index 8a9955f34..b505f7743 100644
--- a/Adyen/Model/Transfers/NZLocalAccountIdentification.cs
+++ b/Adyen/Model/Transfers/NZLocalAccountIdentification.cs
@@ -62,39 +62,21 @@ protected NZLocalAccountIdentification() { }
///
/// Initializes a new instance of the class.
///
- /// The 7-digit bank account number, without separators or whitespace. (required).
- /// The 2- to 3-digit account suffix, without separators or whitespace. (required).
- /// The 6-digit bank code including the 2-digit bank code and 4-digit branch code, without separators or whitespace. (required).
+ /// 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).
/// **nzLocal** (required) (default to TypeEnum.NzLocal).
- public NZLocalAccountIdentification(string accountNumber = default(string), string accountSuffix = default(string), string bankCode = default(string), TypeEnum type = TypeEnum.NzLocal)
+ public NZLocalAccountIdentification(string accountNumber = default(string), TypeEnum type = TypeEnum.NzLocal)
{
this.AccountNumber = accountNumber;
- this.AccountSuffix = accountSuffix;
- this.BankCode = bankCode;
this.Type = type;
}
///
- /// The 7-digit bank account number, without separators or whitespace.
+ /// 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.
///
- /// The 7-digit bank account number, without separators or whitespace.
+ /// 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.
[DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
public string AccountNumber { get; set; }
- ///
- /// The 2- to 3-digit account suffix, without separators or whitespace.
- ///
- /// The 2- to 3-digit account suffix, without separators or whitespace.
- [DataMember(Name = "accountSuffix", IsRequired = false, EmitDefaultValue = false)]
- public string AccountSuffix { get; set; }
-
- ///
- /// The 6-digit bank code including the 2-digit bank code and 4-digit branch code, without separators or whitespace.
- ///
- /// The 6-digit bank code including the 2-digit bank code and 4-digit branch code, without separators or whitespace.
- [DataMember(Name = "bankCode", IsRequired = false, EmitDefaultValue = false)]
- public string BankCode { get; set; }
-
///
/// Returns the string presentation of the object
///
@@ -104,8 +86,6 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class NZLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
- sb.Append(" AccountSuffix: ").Append(AccountSuffix).Append("\n");
- sb.Append(" BankCode: ").Append(BankCode).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -147,16 +127,6 @@ public bool Equals(NZLocalAccountIdentification input)
(this.AccountNumber != null &&
this.AccountNumber.Equals(input.AccountNumber))
) &&
- (
- this.AccountSuffix == input.AccountSuffix ||
- (this.AccountSuffix != null &&
- this.AccountSuffix.Equals(input.AccountSuffix))
- ) &&
- (
- this.BankCode == input.BankCode ||
- (this.BankCode != null &&
- this.BankCode.Equals(input.BankCode))
- ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -176,14 +146,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
}
- if (this.AccountSuffix != null)
- {
- hashCode = (hashCode * 59) + this.AccountSuffix.GetHashCode();
- }
- if (this.BankCode != null)
- {
- hashCode = (hashCode * 59) + this.BankCode.GetHashCode();
- }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
@@ -196,39 +158,15 @@ public override int GetHashCode()
public IEnumerable Validate(ValidationContext validationContext)
{
// AccountNumber (string) maxLength
- if (this.AccountNumber != null && this.AccountNumber.Length > 7)
+ if (this.AccountNumber != null && this.AccountNumber.Length > 16)
{
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountNumber, length must be less than 7.", new [] { "AccountNumber" });
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountNumber, length must be less than 16.", new [] { "AccountNumber" });
}
// AccountNumber (string) minLength
- if (this.AccountNumber != null && this.AccountNumber.Length < 7)
- {
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountNumber, length must be greater than 7.", new [] { "AccountNumber" });
- }
-
- // AccountSuffix (string) maxLength
- if (this.AccountSuffix != null && this.AccountSuffix.Length > 3)
- {
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountSuffix, length must be less than 3.", new [] { "AccountSuffix" });
- }
-
- // AccountSuffix (string) minLength
- if (this.AccountSuffix != null && this.AccountSuffix.Length < 2)
- {
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountSuffix, length must be greater than 2.", new [] { "AccountSuffix" });
- }
-
- // BankCode (string) maxLength
- if (this.BankCode != null && this.BankCode.Length > 6)
- {
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BankCode, length must be less than 6.", new [] { "BankCode" });
- }
-
- // BankCode (string) minLength
- if (this.BankCode != null && this.BankCode.Length < 6)
+ if (this.AccountNumber != null && this.AccountNumber.Length < 15)
{
- 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 AccountNumber, length must be greater than 15.", new [] { "AccountNumber" });
}
yield break;
diff --git a/Adyen/Model/Transfers/ServiceError.cs b/Adyen/Model/Transfers/ServiceError.cs
new file mode 100644
index 000000000..ea34c68e3
--- /dev/null
+++ b/Adyen/Model/Transfers/ServiceError.cs
@@ -0,0 +1,201 @@
+/*
+* Transfers 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.Transfers
+{
+ ///
+ /// ServiceError
+ ///
+ [DataContract(Name = "ServiceError")]
+ public partial class ServiceError : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The error code mapped to the error message..
+ /// The category of the error..
+ /// A short explanation of the issue..
+ /// The PSP reference of the payment..
+ /// The HTTP response status..
+ public ServiceError(string errorCode = default(string), string errorType = default(string), string message = default(string), string pspReference = default(string), int? status = default(int?))
+ {
+ this.ErrorCode = errorCode;
+ this.ErrorType = errorType;
+ this.Message = message;
+ this.PspReference = pspReference;
+ this.Status = status;
+ }
+
+ ///
+ /// The error code mapped to the error message.
+ ///
+ /// The error code mapped to the error message.
+ [DataMember(Name = "errorCode", EmitDefaultValue = false)]
+ public string ErrorCode { get; set; }
+
+ ///
+ /// The category of the error.
+ ///
+ /// The category of the error.
+ [DataMember(Name = "errorType", EmitDefaultValue = false)]
+ public string ErrorType { get; set; }
+
+ ///
+ /// A short explanation of the issue.
+ ///
+ /// A short explanation of the issue.
+ [DataMember(Name = "message", EmitDefaultValue = false)]
+ public string Message { get; set; }
+
+ ///
+ /// The PSP reference of the payment.
+ ///
+ /// The PSP reference of the payment.
+ [DataMember(Name = "pspReference", EmitDefaultValue = false)]
+ public string PspReference { get; set; }
+
+ ///
+ /// The HTTP response status.
+ ///
+ /// The HTTP response status.
+ [DataMember(Name = "status", EmitDefaultValue = false)]
+ public int? Status { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class ServiceError {\n");
+ sb.Append(" ErrorCode: ").Append(ErrorCode).Append("\n");
+ sb.Append(" ErrorType: ").Append(ErrorType).Append("\n");
+ sb.Append(" Message: ").Append(Message).Append("\n");
+ sb.Append(" PspReference: ").Append(PspReference).Append("\n");
+ sb.Append(" Status: ").Append(Status).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as ServiceError);
+ }
+
+ ///
+ /// Returns true if ServiceError instances are equal
+ ///
+ /// Instance of ServiceError to be compared
+ /// Boolean
+ public bool Equals(ServiceError input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.ErrorCode == input.ErrorCode ||
+ (this.ErrorCode != null &&
+ this.ErrorCode.Equals(input.ErrorCode))
+ ) &&
+ (
+ this.ErrorType == input.ErrorType ||
+ (this.ErrorType != null &&
+ this.ErrorType.Equals(input.ErrorType))
+ ) &&
+ (
+ this.Message == input.Message ||
+ (this.Message != null &&
+ this.Message.Equals(input.Message))
+ ) &&
+ (
+ this.PspReference == input.PspReference ||
+ (this.PspReference != null &&
+ this.PspReference.Equals(input.PspReference))
+ ) &&
+ (
+ this.Status == input.Status ||
+ this.Status.Equals(input.Status)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.ErrorCode != null)
+ {
+ hashCode = (hashCode * 59) + this.ErrorCode.GetHashCode();
+ }
+ if (this.ErrorType != null)
+ {
+ hashCode = (hashCode * 59) + this.ErrorType.GetHashCode();
+ }
+ if (this.Message != null)
+ {
+ hashCode = (hashCode * 59) + this.Message.GetHashCode();
+ }
+ if (this.PspReference != null)
+ {
+ hashCode = (hashCode * 59) + this.PspReference.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.Status.GetHashCode();
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ public IEnumerable Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/Transfers/Transaction.cs b/Adyen/Model/Transfers/TransactionData.cs
similarity index 86%
rename from Adyen/Model/Transfers/Transaction.cs
rename to Adyen/Model/Transfers/TransactionData.cs
index 02cc670c0..aa9167e8b 100644
--- a/Adyen/Model/Transfers/Transaction.cs
+++ b/Adyen/Model/Transfers/TransactionData.cs
@@ -27,10 +27,10 @@
namespace Adyen.Model.Transfers
{
///
- /// Transaction
+ /// TransactionData
///
- [DataContract(Name = "Transaction")]
- public partial class Transaction : IEquatable, IValidatableObject
+ [DataContract(Name = "TransactionData")]
+ public partial class TransactionData : IEquatable, IValidatableObject
{
///
/// The category of the transaction indicating the type of activity. Possible values: * **platformPayment**: The transaction is a payment or payment modification made with an Adyen merchant account. * **internal**: The transaction resulted from an internal adjustment such as a deposit correction or invoice deduction. * **bank**: The transaction is a bank-related activity, such as sending a payout or receiving funds. * **issuedCard**: The transaction is a card-related activity, such as using an Adyen-issued card to pay online.
@@ -79,7 +79,13 @@ public enum CategoryEnum
/// Enum PlatformPayment for value: platformPayment
///
[EnumMember(Value = "platformPayment")]
- PlatformPayment = 7
+ PlatformPayment = 7,
+
+ ///
+ /// Enum Upgrade for value: upgrade
+ ///
+ [EnumMember(Value = "upgrade")]
+ Upgrade = 8
}
@@ -143,149 +149,191 @@ public enum TypeEnum
[EnumMember(Value = "balanceAdjustment")]
BalanceAdjustment = 3,
+ ///
+ /// Enum BalanceMigration for value: balanceMigration
+ ///
+ [EnumMember(Value = "balanceMigration")]
+ BalanceMigration = 4,
+
///
/// Enum BalanceRollover for value: balanceRollover
///
[EnumMember(Value = "balanceRollover")]
- BalanceRollover = 4,
+ BalanceRollover = 5,
///
/// Enum BankTransfer for value: bankTransfer
///
[EnumMember(Value = "bankTransfer")]
- BankTransfer = 5,
+ BankTransfer = 6,
///
/// Enum Capture for value: capture
///
[EnumMember(Value = "capture")]
- Capture = 6,
+ Capture = 7,
///
/// Enum CaptureReversal for value: captureReversal
///
[EnumMember(Value = "captureReversal")]
- CaptureReversal = 7,
+ CaptureReversal = 8,
///
/// Enum CardTransfer for value: cardTransfer
///
[EnumMember(Value = "cardTransfer")]
- CardTransfer = 8,
+ CardTransfer = 9,
+
+ ///
+ /// Enum CashOutFee for value: cashOutFee
+ ///
+ [EnumMember(Value = "cashOutFee")]
+ CashOutFee = 10,
+
+ ///
+ /// Enum CashOutFunding for value: cashOutFunding
+ ///
+ [EnumMember(Value = "cashOutFunding")]
+ CashOutFunding = 11,
+
+ ///
+ /// Enum CashOutInstruction for value: cashOutInstruction
+ ///
+ [EnumMember(Value = "cashOutInstruction")]
+ CashOutInstruction = 12,
///
/// Enum Chargeback for value: chargeback
///
[EnumMember(Value = "chargeback")]
- Chargeback = 9,
+ Chargeback = 13,
+
+ ///
+ /// Enum ChargebackCorrection for value: chargebackCorrection
+ ///
+ [EnumMember(Value = "chargebackCorrection")]
+ ChargebackCorrection = 14,
///
/// Enum ChargebackReversal for value: chargebackReversal
///
[EnumMember(Value = "chargebackReversal")]
- ChargebackReversal = 10,
+ ChargebackReversal = 15,
+
+ ///
+ /// Enum ChargebackReversalCorrection for value: chargebackReversalCorrection
+ ///
+ [EnumMember(Value = "chargebackReversalCorrection")]
+ ChargebackReversalCorrection = 16,
///
/// Enum DepositCorrection for value: depositCorrection
///
[EnumMember(Value = "depositCorrection")]
- DepositCorrection = 11,
+ DepositCorrection = 17,
///
/// Enum Fee for value: fee
///
[EnumMember(Value = "fee")]
- Fee = 12,
+ Fee = 18,
///
/// Enum Grant for value: grant
///
[EnumMember(Value = "grant")]
- Grant = 13,
+ Grant = 19,
///
/// Enum Installment for value: installment
///
[EnumMember(Value = "installment")]
- Installment = 14,
+ Installment = 20,
///
/// Enum InstallmentReversal for value: installmentReversal
///
[EnumMember(Value = "installmentReversal")]
- InstallmentReversal = 15,
+ InstallmentReversal = 21,
///
/// Enum InternalTransfer for value: internalTransfer
///
[EnumMember(Value = "internalTransfer")]
- InternalTransfer = 16,
+ InternalTransfer = 22,
///
/// Enum InvoiceDeduction for value: invoiceDeduction
///
[EnumMember(Value = "invoiceDeduction")]
- InvoiceDeduction = 17,
+ InvoiceDeduction = 23,
///
/// Enum Leftover for value: leftover
///
[EnumMember(Value = "leftover")]
- Leftover = 18,
+ Leftover = 24,
///
/// Enum ManualCorrection for value: manualCorrection
///
[EnumMember(Value = "manualCorrection")]
- ManualCorrection = 19,
+ ManualCorrection = 25,
///
/// Enum MiscCost for value: miscCost
///
[EnumMember(Value = "miscCost")]
- MiscCost = 20,
+ MiscCost = 26,
///
/// Enum Payment for value: payment
///
[EnumMember(Value = "payment")]
- Payment = 21,
+ Payment = 27,
///
/// Enum PaymentCost for value: paymentCost
///
[EnumMember(Value = "paymentCost")]
- PaymentCost = 22,
+ PaymentCost = 28,
///
/// Enum Refund for value: refund
///
[EnumMember(Value = "refund")]
- Refund = 23,
+ Refund = 29,
///
/// Enum RefundReversal for value: refundReversal
///
[EnumMember(Value = "refundReversal")]
- RefundReversal = 24,
+ RefundReversal = 30,
///
/// Enum Repayment for value: repayment
///
[EnumMember(Value = "repayment")]
- Repayment = 25,
+ Repayment = 31,
///
/// Enum ReserveAdjustment for value: reserveAdjustment
///
[EnumMember(Value = "reserveAdjustment")]
- ReserveAdjustment = 26,
+ ReserveAdjustment = 32,
///
/// Enum SecondChargeback for value: secondChargeback
///
[EnumMember(Value = "secondChargeback")]
- SecondChargeback = 27
+ SecondChargeback = 33,
+
+ ///
+ /// Enum SecondChargebackCorrection for value: secondChargebackCorrection
+ ///
+ [EnumMember(Value = "secondChargebackCorrection")]
+ SecondChargebackCorrection = 34
}
@@ -297,34 +345,34 @@ public enum TypeEnum
[DataMember(Name = "type", EmitDefaultValue = false)]
public TypeEnum? Type { get; set; }
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
[JsonConstructorAttribute]
- protected Transaction() { }
+ protected TransactionData() { }
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
/// Unique identifier of the account holder. (required).
/// amount (required).
/// Unique identifier of the balance account. (required).
- /// Unique identifier of the balance platform. (required).
- /// The date the transaction was booked to the balance account. (required).
+ /// The unique identifier of the balance platform. (required).
+ /// The date the transaction was booked into the balance account. (required).
/// The category of the transaction indicating the type of activity. Possible values: * **platformPayment**: The transaction is a payment or payment modification made with an Adyen merchant account. * **internal**: The transaction resulted from an internal adjustment such as a deposit correction or invoice deduction. * **bank**: The transaction is a bank-related activity, such as sending a payout or receiving funds. * **issuedCard**: The transaction is a card-related activity, such as using an Adyen-issued card to pay online. .
/// counterparty (required).
/// The date the transaction was created. (required).
/// The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**..
/// The `description` from the `/transfers` request..
- /// The PSP reference in the journal..
- /// Unique identifier of the transaction. (required).
+ /// The PSP reference of the transaction in the journal..
+ /// The unique identifier of the transaction. (required).
/// instructedAmount.
- /// Unique identifier of the payment instrument that was used for the transaction..
+ /// The unique identifier of the payment instrument that was used for the transaction..
/// The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference. (required).
/// The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender..
/// The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. (required).
/// Unique identifier of the related transfer..
/// The type of the transaction. Possible values: **payment**, **capture**, **captureReversal**, **refund** **refundReversal**, **chargeback**, **chargebackReversal**, **secondChargeback**, **atmWithdrawal**, **atmWithdrawalReversal**, **internalTransfer**, **manualCorrection**, **invoiceDeduction**, **depositCorrection**, **bankTransfer**, **miscCost**, **paymentCost**, **fee**.
/// The date the transfer amount becomes available in the balance account. (required).
- public Transaction(string accountHolderId = default(string), Amount amount = default(Amount), string balanceAccountId = default(string), string balancePlatform = default(string), DateTime bookingDate = default(DateTime), CategoryEnum? category = default(CategoryEnum?), CounterpartyV3 counterparty = default(CounterpartyV3), DateTime createdAt = default(DateTime), DateTime creationDate = default(DateTime), string description = default(string), string eventId = default(string), string id = default(string), Amount instructedAmount = default(Amount), string paymentInstrumentId = default(string), string reference = default(string), string referenceForBeneficiary = default(string), StatusEnum status = default(StatusEnum), string transferId = default(string), TypeEnum? type = default(TypeEnum?), DateTime valueDate = default(DateTime))
+ public TransactionData(string accountHolderId = default(string), Amount amount = default(Amount), string balanceAccountId = default(string), string balancePlatform = default(string), DateTime bookingDate = default(DateTime), CategoryEnum? category = default(CategoryEnum?), CounterpartyV3 counterparty = default(CounterpartyV3), DateTime createdAt = default(DateTime), DateTime creationDate = default(DateTime), string description = default(string), string eventId = default(string), string id = default(string), Amount instructedAmount = default(Amount), string paymentInstrumentId = default(string), string reference = default(string), string referenceForBeneficiary = default(string), StatusEnum status = default(StatusEnum), string transferId = default(string), TypeEnum? type = default(TypeEnum?), DateTime valueDate = default(DateTime))
{
this.AccountHolderId = accountHolderId;
this.Amount = amount;
@@ -369,16 +417,16 @@ protected Transaction() { }
public string BalanceAccountId { get; set; }
///
- /// Unique identifier of the balance platform.
+ /// The unique identifier of the balance platform.
///
- /// Unique identifier of the balance platform.
+ /// The unique identifier of the balance platform.
[DataMember(Name = "balancePlatform", IsRequired = false, EmitDefaultValue = false)]
public string BalancePlatform { get; set; }
///
- /// The date the transaction was booked to the balance account.
+ /// The date the transaction was booked into the balance account.
///
- /// The date the transaction was booked to the balance account.
+ /// The date the transaction was booked into the balance account.
[DataMember(Name = "bookingDate", IsRequired = false, EmitDefaultValue = false)]
public DateTime BookingDate { get; set; }
@@ -410,16 +458,16 @@ protected Transaction() { }
public string Description { get; set; }
///
- /// The PSP reference in the journal.
+ /// The PSP reference of the transaction in the journal.
///
- /// The PSP reference in the journal.
+ /// The PSP reference of the transaction in the journal.
[DataMember(Name = "eventId", EmitDefaultValue = false)]
public string EventId { get; set; }
///
- /// Unique identifier of the transaction.
+ /// The unique identifier of the transaction.
///
- /// Unique identifier of the transaction.
+ /// The unique identifier of the transaction.
[DataMember(Name = "id", IsRequired = false, EmitDefaultValue = false)]
public string Id { get; set; }
@@ -430,9 +478,9 @@ protected Transaction() { }
public Amount InstructedAmount { get; set; }
///
- /// Unique identifier of the payment instrument that was used for the transaction.
+ /// The unique identifier of the payment instrument that was used for the transaction.
///
- /// Unique identifier of the payment instrument that was used for the transaction.
+ /// The unique identifier of the payment instrument that was used for the transaction.
[DataMember(Name = "paymentInstrumentId", EmitDefaultValue = false)]
public string PaymentInstrumentId { get; set; }
@@ -471,7 +519,7 @@ protected Transaction() { }
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class Transaction {\n");
+ sb.Append("class TransactionData {\n");
sb.Append(" AccountHolderId: ").Append(AccountHolderId).Append("\n");
sb.Append(" Amount: ").Append(Amount).Append("\n");
sb.Append(" BalanceAccountId: ").Append(BalanceAccountId).Append("\n");
@@ -512,15 +560,15 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object input)
{
- return this.Equals(input as Transaction);
+ return this.Equals(input as TransactionData);
}
///
- /// Returns true if Transaction instances are equal
+ /// Returns true if TransactionData instances are equal
///
- /// Instance of Transaction to be compared
+ /// Instance of TransactionData to be compared
/// Boolean
- public bool Equals(Transaction input)
+ public bool Equals(TransactionData input)
{
if (input == null)
{
diff --git a/Adyen/Model/Transfers/TransactionSearchResponse.cs b/Adyen/Model/Transfers/TransactionSearchResponse.cs
index b7c9be341..ce7cdef76 100644
--- a/Adyen/Model/Transfers/TransactionSearchResponse.cs
+++ b/Adyen/Model/Transfers/TransactionSearchResponse.cs
@@ -37,7 +37,7 @@ public partial class TransactionSearchResponse : IEquatable
/// links.
/// Contains the transactions that match the query parameters..
- public TransactionSearchResponse(Links links = default(Links), List data = default(List))
+ public TransactionSearchResponse(Links links = default(Links), List data = default(List))
{
this.Links = links;
this.Data = data;
@@ -54,7 +54,7 @@ public partial class TransactionSearchResponse : IEquatable
/// Contains the transactions that match the query parameters.
[DataMember(Name = "data", EmitDefaultValue = false)]
- public List Data { get; set; }
+ public List Data { get; set; }
///
/// Returns the string presentation of the object
diff --git a/Adyen/Model/Transfers/Transfer.cs b/Adyen/Model/Transfers/Transfer.cs
index 5e9ebb039..0f7ce4c72 100644
--- a/Adyen/Model/Transfers/Transfer.cs
+++ b/Adyen/Model/Transfers/Transfer.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.Transfers
public partial class Transfer : IEquatable, IValidatableObject
{
///
- /// The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.
+ /// The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.
///
- /// The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.
+ /// The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.
[JsonConverter(typeof(StringEnumConverter))]
public enum CategoryEnum
{
@@ -67,9 +67,9 @@ public enum CategoryEnum
///
- /// The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.
+ /// The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.
///
- /// The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.
+ /// The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.
[DataMember(Name = "category", IsRequired = false, EmitDefaultValue = false)]
public CategoryEnum Category { get; set; }
///
@@ -101,9 +101,9 @@ public enum DirectionEnum
[DataMember(Name = "direction", EmitDefaultValue = false)]
public DirectionEnum? Direction { get; set; }
///
- /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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).
+ /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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). This will be removed in v4 and replaced with a new field.
///
- /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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).
+ /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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). This will be removed in v4 and replaced with a new field.
[JsonConverter(typeof(StringEnumConverter))]
public enum PriorityEnum
{
@@ -153,9 +153,9 @@ public enum PriorityEnum
///
- /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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).
+ /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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). This will be removed in v4 and replaced with a new field.
///
- /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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).
+ /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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). This will be removed in v4 and replaced with a new field.
[DataMember(Name = "priority", EmitDefaultValue = false)]
public PriorityEnum? Priority { get; set; }
///
@@ -177,71 +177,89 @@ public enum ReasonEnum
[EnumMember(Value = "approved")]
Approved = 2,
+ ///
+ /// Enum BalanceAccountTemporarilyBlockedByTransactionRule for value: balanceAccountTemporarilyBlockedByTransactionRule
+ ///
+ [EnumMember(Value = "balanceAccountTemporarilyBlockedByTransactionRule")]
+ BalanceAccountTemporarilyBlockedByTransactionRule = 3,
+
///
/// Enum CounterpartyAccountBlocked for value: counterpartyAccountBlocked
///
[EnumMember(Value = "counterpartyAccountBlocked")]
- CounterpartyAccountBlocked = 3,
+ CounterpartyAccountBlocked = 4,
///
/// Enum CounterpartyAccountClosed for value: counterpartyAccountClosed
///
[EnumMember(Value = "counterpartyAccountClosed")]
- CounterpartyAccountClosed = 4,
+ CounterpartyAccountClosed = 5,
///
/// Enum CounterpartyAccountNotFound for value: counterpartyAccountNotFound
///
[EnumMember(Value = "counterpartyAccountNotFound")]
- CounterpartyAccountNotFound = 5,
+ CounterpartyAccountNotFound = 6,
///
/// Enum CounterpartyAddressRequired for value: counterpartyAddressRequired
///
[EnumMember(Value = "counterpartyAddressRequired")]
- CounterpartyAddressRequired = 6,
+ CounterpartyAddressRequired = 7,
///
/// Enum CounterpartyBankTimedOut for value: counterpartyBankTimedOut
///
[EnumMember(Value = "counterpartyBankTimedOut")]
- CounterpartyBankTimedOut = 7,
+ CounterpartyBankTimedOut = 8,
///
/// Enum CounterpartyBankUnavailable for value: counterpartyBankUnavailable
///
[EnumMember(Value = "counterpartyBankUnavailable")]
- CounterpartyBankUnavailable = 8,
+ CounterpartyBankUnavailable = 9,
+
+ ///
+ /// Enum DeclinedByTransactionRule for value: declinedByTransactionRule
+ ///
+ [EnumMember(Value = "declinedByTransactionRule")]
+ DeclinedByTransactionRule = 10,
///
/// Enum Error for value: error
///
[EnumMember(Value = "error")]
- Error = 9,
+ Error = 11,
///
/// Enum NotEnoughBalance for value: notEnoughBalance
///
[EnumMember(Value = "notEnoughBalance")]
- NotEnoughBalance = 10,
+ NotEnoughBalance = 12,
///
/// Enum RefusedByCounterpartyBank for value: refusedByCounterpartyBank
///
[EnumMember(Value = "refusedByCounterpartyBank")]
- RefusedByCounterpartyBank = 11,
+ RefusedByCounterpartyBank = 13,
///
/// Enum RouteNotFound for value: routeNotFound
///
[EnumMember(Value = "routeNotFound")]
- RouteNotFound = 12,
+ RouteNotFound = 14,
+
+ ///
+ /// Enum ScaFailed for value: scaFailed
+ ///
+ [EnumMember(Value = "scaFailed")]
+ ScaFailed = 15,
///
/// Enum Unknown for value: unknown
///
[EnumMember(Value = "unknown")]
- Unknown = 13
+ Unknown = 16
}
@@ -553,119 +571,95 @@ public enum StatusEnum
[EnumMember(Value = "miscCostPending")]
MiscCostPending = 49,
- ///
- /// Enum OperationAuthorized for value: operationAuthorized
- ///
- [EnumMember(Value = "operationAuthorized")]
- OperationAuthorized = 50,
-
- ///
- /// Enum OperationBooked for value: operationBooked
- ///
- [EnumMember(Value = "operationBooked")]
- OperationBooked = 51,
-
- ///
- /// Enum OperationPending for value: operationPending
- ///
- [EnumMember(Value = "operationPending")]
- OperationPending = 52,
-
- ///
- /// Enum OperationReceived for value: operationReceived
- ///
- [EnumMember(Value = "operationReceived")]
- OperationReceived = 53,
-
///
/// Enum PaymentCost for value: paymentCost
///
[EnumMember(Value = "paymentCost")]
- PaymentCost = 54,
+ PaymentCost = 50,
///
/// Enum PaymentCostPending for value: paymentCostPending
///
[EnumMember(Value = "paymentCostPending")]
- PaymentCostPending = 55,
+ PaymentCostPending = 51,
///
/// Enum Received for value: received
///
[EnumMember(Value = "received")]
- Received = 56,
+ Received = 52,
///
/// Enum RefundPending for value: refundPending
///
[EnumMember(Value = "refundPending")]
- RefundPending = 57,
+ RefundPending = 53,
///
/// Enum RefundReversalPending for value: refundReversalPending
///
[EnumMember(Value = "refundReversalPending")]
- RefundReversalPending = 58,
+ RefundReversalPending = 54,
///
/// Enum RefundReversed for value: refundReversed
///
[EnumMember(Value = "refundReversed")]
- RefundReversed = 59,
+ RefundReversed = 55,
///
/// Enum Refunded for value: refunded
///
[EnumMember(Value = "refunded")]
- Refunded = 60,
+ Refunded = 56,
///
/// Enum RefundedExternally for value: refundedExternally
///
[EnumMember(Value = "refundedExternally")]
- RefundedExternally = 61,
+ RefundedExternally = 57,
///
/// Enum Refused for value: refused
///
[EnumMember(Value = "refused")]
- Refused = 62,
+ Refused = 58,
///
/// Enum ReserveAdjustment for value: reserveAdjustment
///
[EnumMember(Value = "reserveAdjustment")]
- ReserveAdjustment = 63,
+ ReserveAdjustment = 59,
///
/// Enum ReserveAdjustmentPending for value: reserveAdjustmentPending
///
[EnumMember(Value = "reserveAdjustmentPending")]
- ReserveAdjustmentPending = 64,
+ ReserveAdjustmentPending = 60,
///
/// Enum Returned for value: returned
///
[EnumMember(Value = "returned")]
- Returned = 65,
+ Returned = 61,
///
/// Enum SecondChargeback for value: secondChargeback
///
[EnumMember(Value = "secondChargeback")]
- SecondChargeback = 66,
+ SecondChargeback = 62,
///
/// Enum SecondChargebackPending for value: secondChargebackPending
///
[EnumMember(Value = "secondChargebackPending")]
- SecondChargebackPending = 67,
+ SecondChargebackPending = 63,
///
/// Enum Undefined for value: undefined
///
[EnumMember(Value = "undefined")]
- Undefined = 68
+ Undefined = 64
}
@@ -688,7 +682,7 @@ protected Transfer() { }
/// amount (required).
/// balanceAccount.
/// The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id)..
- /// The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. (required).
+ /// The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. (required).
/// counterparty (required).
/// The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**..
/// Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?**.
@@ -696,7 +690,7 @@ protected Transfer() { }
/// The ID of the resource..
/// paymentInstrument.
/// The unique identifier of the [payment instrument](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) used in the transfer..
- /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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)..
+ /// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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). This will be removed in v4 and replaced with a new field..
/// Additional information about the status of the transfer..
/// Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference..
/// A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others..
diff --git a/Adyen/Model/Transfers/TransferInfo.cs b/Adyen/Model/Transfers/TransferInfo.cs
index 2312dfb11..aa386c516 100644
--- a/Adyen/Model/Transfers/TransferInfo.cs
+++ b/Adyen/Model/Transfers/TransferInfo.cs
@@ -149,20 +149,18 @@ protected TransferInfo() { }
/// The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. (required).
/// counterparty (required).
/// Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , ' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ ' \" ! ?**.
- /// The ID of the resource..
/// The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/paymentInstruments__resParam_id)..
/// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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)..
/// Your reference for the transfer, used internally within your platform. If you don't provide this in the request, Adyen generates a unique reference..
/// A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others..
/// ultimateParty.
- public TransferInfo(Amount amount = default(Amount), string balanceAccountId = default(string), CategoryEnum category = default(CategoryEnum), CounterpartyInfoV3 counterparty = default(CounterpartyInfoV3), string description = default(string), string id = default(string), string paymentInstrumentId = default(string), PriorityEnum? priority = default(PriorityEnum?), string reference = default(string), string referenceForBeneficiary = default(string), UltimatePartyIdentification ultimateParty = default(UltimatePartyIdentification))
+ public TransferInfo(Amount amount = default(Amount), string balanceAccountId = default(string), CategoryEnum category = default(CategoryEnum), CounterpartyInfoV3 counterparty = default(CounterpartyInfoV3), string description = default(string), string paymentInstrumentId = default(string), PriorityEnum? priority = default(PriorityEnum?), string reference = default(string), string referenceForBeneficiary = default(string), UltimatePartyIdentification ultimateParty = default(UltimatePartyIdentification))
{
this.Amount = amount;
this.Category = category;
this.Counterparty = counterparty;
this.BalanceAccountId = balanceAccountId;
this.Description = description;
- this.Id = id;
this.PaymentInstrumentId = paymentInstrumentId;
this.Priority = priority;
this.Reference = reference;
@@ -196,13 +194,6 @@ protected TransferInfo() { }
[DataMember(Name = "description", EmitDefaultValue = false)]
public string Description { get; set; }
- ///
- /// The ID of the resource.
- ///
- /// The ID of the resource.
- [DataMember(Name = "id", EmitDefaultValue = false)]
- public string Id { get; set; }
-
///
/// The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/paymentInstruments__resParam_id).
///
@@ -243,7 +234,6 @@ public override string ToString()
sb.Append(" Category: ").Append(Category).Append("\n");
sb.Append(" Counterparty: ").Append(Counterparty).Append("\n");
sb.Append(" Description: ").Append(Description).Append("\n");
- sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" PaymentInstrumentId: ").Append(PaymentInstrumentId).Append("\n");
sb.Append(" Priority: ").Append(Priority).Append("\n");
sb.Append(" Reference: ").Append(Reference).Append("\n");
@@ -308,11 +298,6 @@ public bool Equals(TransferInfo input)
(this.Description != null &&
this.Description.Equals(input.Description))
) &&
- (
- this.Id == input.Id ||
- (this.Id != null &&
- this.Id.Equals(input.Id))
- ) &&
(
this.PaymentInstrumentId == input.PaymentInstrumentId ||
(this.PaymentInstrumentId != null &&
@@ -365,10 +350,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Description.GetHashCode();
}
- if (this.Id != null)
- {
- hashCode = (hashCode * 59) + this.Id.GetHashCode();
- }
if (this.PaymentInstrumentId != null)
{
hashCode = (hashCode * 59) + this.PaymentInstrumentId.GetHashCode();