From ec5fe767151c1450d2a8d9f93bc93fdecbf21a65 Mon Sep 17 00:00:00 2001
From: AdyenAutomationBot
<38424300+AdyenAutomationBot@users.noreply.github.com>
Date: Thu, 2 May 2024 12:57:38 +0200
Subject: [PATCH] false[adyen-sdk-automation] automated change (#1013)
---
.../AULocalAccountIdentification.cs | 22 +-
Adyen/Model/BalancePlatform/AccountHolder.cs | 30 +-
.../BalancePlatform/AccountHolderInfo.cs | 12 +-
.../AccountHolderUpdateRequest.cs | 30 +-
.../BRLocalAccountIdentification.cs | 22 +-
Adyen/Model/BalancePlatform/Balance.cs | 24 +-
.../BalanceAccountUpdateRequest.cs | 22 +-
.../Model/BalancePlatform/BalancePlatform.cs | 6 +-
Adyen/Model/BalancePlatform/BankAccountDTO.cs | 250 ++++++++++++++
.../Model/BalancePlatform/BankAccountModel.cs | 12 +-
.../BalancePlatform/BankIdentification.cs | 18 +-
.../CALocalAccountIdentification.cs | 22 +-
.../CZLocalAccountIdentification.cs | 22 +-
Adyen/Model/BalancePlatform/Counterparty.cs | 6 +-
.../CreateSweepConfigurationV2.cs | 72 +++-
.../DKLocalAccountIdentification.cs | 22 +-
.../DelegatedAuthenticationData.cs | 140 ++++++++
.../Model/BalancePlatform/DeliveryAddress.cs | 24 +-
.../Model/BalancePlatform/DeliveryContact.cs | 21 +-
Adyen/Model/BalancePlatform/Device.cs | 209 ++++++++++++
.../HKLocalAccountIdentification.cs | 22 +-
.../HULocalAccountIdentification.cs | 22 +-
.../Href.cs} | 54 ++-
.../IbanAccountIdentification.cs | 22 +-
Adyen/Model/BalancePlatform/Link.cs | 200 +++++++++++
.../NOLocalAccountIdentification.cs | 22 +-
.../NZLocalAccountIdentification.cs | 22 +-
.../NumberAndBicAccountIdentification.cs | 22 +-
.../PLLocalAccountIdentification.cs | 22 +-
.../BalancePlatform/PaymentInstrument.cs | 5 +-
.../PaymentInstrumentBankAccount.cs | 314 ------------------
.../BalancePlatform/PaymentInstrumentGroup.cs | 12 +-
.../PaymentInstrumentGroupInfo.cs | 12 +-
.../PlatformPaymentConfiguration.cs | 12 +-
.../RegisterSCAFinalResponse.cs | 125 +++++++
.../BalancePlatform/RegisterSCARequest.cs | 152 +++++++++
.../BalancePlatform/RegisterSCAResponse.cs | 188 +++++++++++
Adyen/Model/BalancePlatform/RiskScores.cs | 140 ++++++++
.../BalancePlatform/RiskScoresRestriction.cs | 152 +++++++++
.../SELocalAccountIdentification.cs | 22 +-
.../SGLocalAccountIdentification.cs | 22 +-
.../SearchRegisteredDevicesResponse.cs | 178 ++++++++++
.../BalancePlatform/SweepConfigurationV2.cs | 72 +++-
.../BalancePlatform/SweepCounterparty.cs | 6 +-
.../Model/BalancePlatform/TransactionRule.cs | 20 +-
.../BalancePlatform/TransactionRuleInfo.cs | 20 +-
.../TransactionRuleInterval.cs | 10 +-
.../TransactionRuleRestrictions.cs | 20 +-
.../UKLocalAccountIdentification.cs | 22 +-
.../USLocalAccountIdentification.cs | 22 +-
.../UpdatePaymentInstrument.cs | 5 +-
.../UpdateSweepConfigurationV2.cs | 72 +++-
.../AbstractOpenAPISchema.cs | 2 +-
.../ConfigurationWebhooks/AccountHolder.cs | 44 ++-
.../AccountHolderCapability.cs | 2 +-
.../AccountHolderNotificationData.cs | 2 +-
.../AccountHolderNotificationRequest.cs | 2 +-
.../AccountSupportingEntityCapability.cs | 2 +-
Adyen/Model/ConfigurationWebhooks/Address.cs | 2 +-
Adyen/Model/ConfigurationWebhooks/Amount.cs | 2 +-
.../ConfigurationWebhooks/Authentication.cs | 2 +-
Adyen/Model/ConfigurationWebhooks/Balance.cs | 26 +-
.../ConfigurationWebhooks/BalanceAccount.cs | 50 +--
.../BalanceAccountNotificationData.cs | 2 +-
.../BalanceAccountNotificationRequest.cs | 2 +-
.../BalancePlatformNotificationResponse.cs | 2 +-
...untIdentification.cs => BankAccountDTO.cs} | 197 +++++------
.../ConfigurationWebhooks/BulkAddress.cs | 2 +-
.../CapabilityProblem.cs | 2 +-
.../CapabilityProblemEntity.cs | 2 +-
.../CapabilityProblemEntityRecursive.cs | 2 +-
.../CapabilitySettings.cs | 2 +-
Adyen/Model/ConfigurationWebhooks/Card.cs | 6 +-
.../CardConfiguration.cs | 2 +-
.../ConfigurationWebhooks/CardOrderItem.cs | 2 +-
.../CardOrderItemDeliveryStatus.cs | 2 +-
.../CardOrderNotificationRequest.cs | 2 +-
.../ConfigurationWebhooks/ContactDetails.cs | 2 +-
.../ConfigurationWebhooks/DeliveryAddress.cs | 248 ++++++++++++++
.../{Contact.cs => DeliveryContact.cs} | 94 +++---
Adyen/Model/ConfigurationWebhooks/Expiry.cs | 2 +-
.../IbanAccountIdentification.cs | 24 +-
Adyen/Model/ConfigurationWebhooks/Name.cs | 2 +-
.../PaymentInstrument.cs | 117 +++++--
...ditionalBankAccountIdentificationsInner.cs | 2 +-
.../PaymentInstrumentBankAccount.cs | 314 ------------------
.../PaymentInstrumentNotificationData.cs | 2 +-
.../PaymentNotificationRequest.cs | 2 +-
.../ConfigurationWebhooks/PersonalData.cs | 179 ----------
Adyen/Model/ConfigurationWebhooks/Phone.cs | 10 +-
.../ConfigurationWebhooks/PhoneNumber.cs | 2 +-
.../PlatformPaymentConfiguration.cs | 14 +-
.../RemediatingAction.cs | 2 +-
Adyen/Model/ConfigurationWebhooks/Resource.cs | 2 +-
.../SweepConfigurationNotificationData.cs | 2 +-
.../SweepConfigurationNotificationRequest.cs | 2 +-
.../SweepConfigurationV2.cs | 170 +++++++++-
.../SweepCounterparty.cs | 8 +-
.../ConfigurationWebhooks/SweepSchedule.cs | 2 +-
.../UKLocalAccountIdentification.cs | 227 -------------
.../VerificationDeadline.cs | 2 +-
.../VerificationError.cs | 2 +-
.../VerificationErrorRecursive.cs | 2 +-
Adyen/Model/Payment/FundDestination.cs | 21 +-
.../ManageSCADevicesService.cs | 171 ++++++++++
105 files changed, 3083 insertions(+), 1904 deletions(-)
create mode 100644 Adyen/Model/BalancePlatform/BankAccountDTO.cs
create mode 100644 Adyen/Model/BalancePlatform/DelegatedAuthenticationData.cs
create mode 100644 Adyen/Model/BalancePlatform/Device.cs
rename Adyen/Model/{ConfigurationWebhooks/PaymentInstrumentReference.cs => BalancePlatform/Href.cs} (61%)
create mode 100644 Adyen/Model/BalancePlatform/Link.cs
delete mode 100644 Adyen/Model/BalancePlatform/PaymentInstrumentBankAccount.cs
create mode 100644 Adyen/Model/BalancePlatform/RegisterSCAFinalResponse.cs
create mode 100644 Adyen/Model/BalancePlatform/RegisterSCARequest.cs
create mode 100644 Adyen/Model/BalancePlatform/RegisterSCAResponse.cs
create mode 100644 Adyen/Model/BalancePlatform/RiskScores.cs
create mode 100644 Adyen/Model/BalancePlatform/RiskScoresRestriction.cs
create mode 100644 Adyen/Model/BalancePlatform/SearchRegisteredDevicesResponse.cs
rename Adyen/Model/ConfigurationWebhooks/{USLocalAccountIdentification.cs => BankAccountDTO.cs} (50%)
create mode 100644 Adyen/Model/ConfigurationWebhooks/DeliveryAddress.cs
rename Adyen/Model/ConfigurationWebhooks/{Contact.cs => DeliveryContact.cs} (67%)
delete mode 100644 Adyen/Model/ConfigurationWebhooks/PaymentInstrumentBankAccount.cs
delete mode 100644 Adyen/Model/ConfigurationWebhooks/PersonalData.cs
delete mode 100644 Adyen/Model/ConfigurationWebhooks/UKLocalAccountIdentification.cs
create mode 100644 Adyen/Service/BalancePlatform/ManageSCADevicesService.cs
diff --git a/Adyen/Model/BalancePlatform/AULocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/AULocalAccountIdentification.cs
index 4b44d0521..8e913060d 100644
--- a/Adyen/Model/BalancePlatform/AULocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/AULocalAccountIdentification.cs
@@ -64,15 +64,12 @@ protected AULocalAccountIdentification() { }
///
/// The bank account number, without separators or whitespace. (required).
/// The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. (required).
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**. (default to "physical").
/// **auLocal** (required) (default to TypeEnum.AuLocal).
- public AULocalAccountIdentification(string accountNumber = default(string), string bsbCode = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.AuLocal)
+ public AULocalAccountIdentification(string accountNumber = default(string), string bsbCode = default(string), TypeEnum type = TypeEnum.AuLocal)
{
this.AccountNumber = accountNumber;
this.BsbCode = bsbCode;
this.Type = type;
- // use default value if no "formFactor" provided
- this.FormFactor = formFactor ?? "physical";
}
///
@@ -89,13 +86,6 @@ protected AULocalAccountIdentification() { }
[DataMember(Name = "bsbCode", IsRequired = false, EmitDefaultValue = false)]
public string BsbCode { get; set; }
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- [DataMember(Name = "formFactor", EmitDefaultValue = false)]
- public string FormFactor { get; set; }
-
///
/// Returns the string presentation of the object
///
@@ -106,7 +96,6 @@ public override string ToString()
sb.Append("class AULocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" BsbCode: ").Append(BsbCode).Append("\n");
- sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -153,11 +142,6 @@ public bool Equals(AULocalAccountIdentification input)
(this.BsbCode != null &&
this.BsbCode.Equals(input.BsbCode))
) &&
- (
- this.FormFactor == input.FormFactor ||
- (this.FormFactor != null &&
- this.FormFactor.Equals(input.FormFactor))
- ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -181,10 +165,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.BsbCode.GetHashCode();
}
- if (this.FormFactor != null)
- {
- hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
- }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/AccountHolder.cs b/Adyen/Model/BalancePlatform/AccountHolder.cs
index 9c0bc1a51..566ff56c7 100644
--- a/Adyen/Model/BalancePlatform/AccountHolder.cs
+++ b/Adyen/Model/BalancePlatform/AccountHolder.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.BalancePlatform
public partial class AccountHolder : IEquatable, IValidatableObject
{
///
- /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
+ /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
///
- /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
+ /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
[JsonConverter(typeof(StringEnumConverter))]
public enum StatusEnum
{
@@ -51,25 +51,19 @@ public enum StatusEnum
[EnumMember(Value = "closed")]
Closed = 2,
- ///
- /// Enum Inactive for value: inactive
- ///
- [EnumMember(Value = "inactive")]
- Inactive = 3,
-
///
/// Enum Suspended for value: suspended
///
[EnumMember(Value = "suspended")]
- Suspended = 4
+ Suspended = 3
}
///
- /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
+ /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
///
- /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
+ /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
[DataMember(Name = "status", EmitDefaultValue = false)]
public StatusEnum? Status { get; set; }
///
@@ -83,12 +77,12 @@ protected AccountHolder() { }
/// The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms..
/// Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability..
/// contactDetails.
- /// Your description for the account holder, maximum 300 characters..
+ /// Your description for the account holder..
/// The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. (required).
/// A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs..
/// The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request..
- /// Your reference for the account holder, maximum 150 characters..
- /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone..
+ /// Your reference for the account holder..
+ /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone..
/// The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)..
public AccountHolder(string balancePlatform = default(string), Dictionary capabilities = default(Dictionary), ContactDetails contactDetails = default(ContactDetails), string description = default(string), string legalEntityId = default(string), Dictionary metadata = default(Dictionary), string primaryBalanceAccount = default(string), string reference = default(string), StatusEnum? status = default(StatusEnum?), string timeZone = default(string))
{
@@ -125,9 +119,9 @@ protected AccountHolder() { }
public ContactDetails ContactDetails { get; set; }
///
- /// Your description for the account holder, maximum 300 characters.
+ /// Your description for the account holder.
///
- /// Your description for the account holder, maximum 300 characters.
+ /// Your description for the account holder.
[DataMember(Name = "description", EmitDefaultValue = false)]
public string Description { get; set; }
@@ -167,9 +161,9 @@ protected AccountHolder() { }
public string PrimaryBalanceAccount { get; set; }
///
- /// Your reference for the account holder, maximum 150 characters.
+ /// Your reference for the account holder.
///
- /// Your reference for the account holder, maximum 150 characters.
+ /// Your reference for the account holder.
[DataMember(Name = "reference", EmitDefaultValue = false)]
public string Reference { get; set; }
diff --git a/Adyen/Model/BalancePlatform/AccountHolderInfo.cs b/Adyen/Model/BalancePlatform/AccountHolderInfo.cs
index 2d86db6f0..26cf8080f 100644
--- a/Adyen/Model/BalancePlatform/AccountHolderInfo.cs
+++ b/Adyen/Model/BalancePlatform/AccountHolderInfo.cs
@@ -43,10 +43,10 @@ protected AccountHolderInfo() { }
/// The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms..
/// Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability..
/// contactDetails.
- /// Your description for the account holder, maximum 300 characters..
+ /// Your description for the account holder..
/// The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. (required).
/// A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs..
- /// Your reference for the account holder, maximum 150 characters..
+ /// Your reference for the account holder..
/// The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)..
public AccountHolderInfo(string balancePlatform = default(string), Dictionary capabilities = default(Dictionary), ContactDetails contactDetails = default(ContactDetails), string description = default(string), string legalEntityId = default(string), Dictionary metadata = default(Dictionary), string reference = default(string), string timeZone = default(string))
{
@@ -81,9 +81,9 @@ protected AccountHolderInfo() { }
public ContactDetails ContactDetails { get; set; }
///
- /// Your description for the account holder, maximum 300 characters.
+ /// Your description for the account holder.
///
- /// Your description for the account holder, maximum 300 characters.
+ /// Your description for the account holder.
[DataMember(Name = "description", EmitDefaultValue = false)]
public string Description { get; set; }
@@ -109,9 +109,9 @@ protected AccountHolderInfo() { }
public string MigratedAccountHolderCode { get; private set; }
///
- /// Your reference for the account holder, maximum 150 characters.
+ /// Your reference for the account holder.
///
- /// Your reference for the account holder, maximum 150 characters.
+ /// Your reference for the account holder.
[DataMember(Name = "reference", EmitDefaultValue = false)]
public string Reference { get; set; }
diff --git a/Adyen/Model/BalancePlatform/AccountHolderUpdateRequest.cs b/Adyen/Model/BalancePlatform/AccountHolderUpdateRequest.cs
index 7df580233..8a6c65e62 100644
--- a/Adyen/Model/BalancePlatform/AccountHolderUpdateRequest.cs
+++ b/Adyen/Model/BalancePlatform/AccountHolderUpdateRequest.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.BalancePlatform
public partial class AccountHolderUpdateRequest : IEquatable, IValidatableObject
{
///
- /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
+ /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
///
- /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
+ /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
[JsonConverter(typeof(StringEnumConverter))]
public enum StatusEnum
{
@@ -51,25 +51,19 @@ public enum StatusEnum
[EnumMember(Value = "closed")]
Closed = 2,
- ///
- /// Enum Inactive for value: inactive
- ///
- [EnumMember(Value = "inactive")]
- Inactive = 3,
-
///
/// Enum Suspended for value: suspended
///
[EnumMember(Value = "suspended")]
- Suspended = 4
+ Suspended = 3
}
///
- /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
+ /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
///
- /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
+ /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
[DataMember(Name = "status", EmitDefaultValue = false)]
public StatusEnum? Status { get; set; }
///
@@ -78,11 +72,11 @@ public enum StatusEnum
/// The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms..
/// Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability..
/// contactDetails.
- /// Your description for the account holder, maximum 300 characters..
+ /// Your description for the account holder..
/// A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs..
/// The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request..
- /// Your reference for the account holder, maximum 150 characters..
- /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone..
+ /// Your reference for the account holder..
+ /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone..
/// The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)..
public AccountHolderUpdateRequest(string balancePlatform = default(string), Dictionary capabilities = default(Dictionary), ContactDetails contactDetails = default(ContactDetails), string description = default(string), Dictionary metadata = default(Dictionary), string primaryBalanceAccount = default(string), string reference = default(string), StatusEnum? status = default(StatusEnum?), string timeZone = default(string))
{
@@ -118,9 +112,9 @@ public enum StatusEnum
public ContactDetails ContactDetails { get; set; }
///
- /// Your description for the account holder, maximum 300 characters.
+ /// Your description for the account holder.
///
- /// Your description for the account holder, maximum 300 characters.
+ /// Your description for the account holder.
[DataMember(Name = "description", EmitDefaultValue = false)]
public string Description { get; set; }
@@ -146,9 +140,9 @@ public enum StatusEnum
public string PrimaryBalanceAccount { get; set; }
///
- /// Your reference for the account holder, maximum 150 characters.
+ /// Your reference for the account holder.
///
- /// Your reference for the account holder, maximum 150 characters.
+ /// Your reference for the account holder.
[DataMember(Name = "reference", EmitDefaultValue = false)]
public string Reference { get; set; }
diff --git a/Adyen/Model/BalancePlatform/BRLocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/BRLocalAccountIdentification.cs
index 17b6fc453..cd96b5b53 100644
--- a/Adyen/Model/BalancePlatform/BRLocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/BRLocalAccountIdentification.cs
@@ -65,16 +65,13 @@ protected BRLocalAccountIdentification() { }
/// The bank account number, without separators or whitespace. (required).
/// The 3-digit bank code, with leading zeros. (required).
/// The bank account branch number, without separators or whitespace. (required).
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**. (default to "physical").
/// **brLocal** (required) (default to TypeEnum.BrLocal).
- public BRLocalAccountIdentification(string accountNumber = default(string), string bankCode = default(string), string branchNumber = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.BrLocal)
+ public BRLocalAccountIdentification(string accountNumber = default(string), string bankCode = default(string), string branchNumber = default(string), TypeEnum type = TypeEnum.BrLocal)
{
this.AccountNumber = accountNumber;
this.BankCode = bankCode;
this.BranchNumber = branchNumber;
this.Type = type;
- // use default value if no "formFactor" provided
- this.FormFactor = formFactor ?? "physical";
}
///
@@ -98,13 +95,6 @@ protected BRLocalAccountIdentification() { }
[DataMember(Name = "branchNumber", IsRequired = false, EmitDefaultValue = false)]
public string BranchNumber { get; set; }
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- [DataMember(Name = "formFactor", EmitDefaultValue = false)]
- public string FormFactor { get; set; }
-
///
/// Returns the string presentation of the object
///
@@ -116,7 +106,6 @@ public override string ToString()
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" BankCode: ").Append(BankCode).Append("\n");
sb.Append(" BranchNumber: ").Append(BranchNumber).Append("\n");
- sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -168,11 +157,6 @@ public bool Equals(BRLocalAccountIdentification input)
(this.BranchNumber != null &&
this.BranchNumber.Equals(input.BranchNumber))
) &&
- (
- this.FormFactor == input.FormFactor ||
- (this.FormFactor != null &&
- this.FormFactor.Equals(input.FormFactor))
- ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -200,10 +184,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.BranchNumber.GetHashCode();
}
- if (this.FormFactor != null)
- {
- hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
- }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/Balance.cs b/Adyen/Model/BalancePlatform/Balance.cs
index d9d8344d3..0800182ad 100644
--- a/Adyen/Model/BalancePlatform/Balance.cs
+++ b/Adyen/Model/BalancePlatform/Balance.cs
@@ -40,11 +40,11 @@ protected Balance() { }
///
/// Initializes a new instance of the class.
///
- /// The remaining amount available for spending. (required).
- /// The total amount in the balance. (required).
+ /// The current balance minus any reserved balance. (required).
+ /// The current balance of funds in the balance account. These are the funds from all transactions with a value date in the past that have not yet been paid out. (required).
/// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. (required).
- /// The amount pending to be paid out but not yet available in the balance..
- /// The amount reserved for payments that have been authorised, but have not been captured yet. (required).
+ /// The amount of funds that Adyen has processed for this account, but will be settled in a future date. For more information, see how to settle funds for users in your [platform](https://docs.adyen.com/platforms/settle-funds) and [marketplace](https://docs.adyen.com/marketplaces/settle-funds)..
+ /// The amount reserved for payments that have been [authorised](https://docs.adyen.com/issuing/payment-stages/#authorised), but not yet [captured](https://docs.adyen.com/issuing/payment-stages/#captured) by the merchant. Applies only to [Adyen-issued cards](https://docs.adyen.com/issuing). (required).
public Balance(long? available = default(long?), long? balance = default(long?), string currency = default(string), long? pending = default(long?), long? reserved = default(long?))
{
this.Available = available;
@@ -55,16 +55,16 @@ protected Balance() { }
}
///
- /// The remaining amount available for spending.
+ /// The current balance minus any reserved balance.
///
- /// The remaining amount available for spending.
+ /// The current balance minus any reserved balance.
[DataMember(Name = "available", IsRequired = false, EmitDefaultValue = false)]
public long? Available { get; set; }
///
- /// The total amount in the balance.
+ /// The current balance of funds in the balance account. These are the funds from all transactions with a value date in the past that have not yet been paid out.
///
- /// The total amount in the balance.
+ /// The current balance of funds in the balance account. These are the funds from all transactions with a value date in the past that have not yet been paid out.
[DataMember(Name = "balance", IsRequired = false, EmitDefaultValue = false)]
public long? _Balance { get; set; }
@@ -76,16 +76,16 @@ protected Balance() { }
public string Currency { get; set; }
///
- /// The amount pending to be paid out but not yet available in the balance.
+ /// The amount of funds that Adyen has processed for this account, but will be settled in a future date. For more information, see how to settle funds for users in your [platform](https://docs.adyen.com/platforms/settle-funds) and [marketplace](https://docs.adyen.com/marketplaces/settle-funds).
///
- /// The amount pending to be paid out but not yet available in the balance.
+ /// The amount of funds that Adyen has processed for this account, but will be settled in a future date. For more information, see how to settle funds for users in your [platform](https://docs.adyen.com/platforms/settle-funds) and [marketplace](https://docs.adyen.com/marketplaces/settle-funds).
[DataMember(Name = "pending", EmitDefaultValue = false)]
public long? Pending { get; set; }
///
- /// The amount reserved for payments that have been authorised, but have not been captured yet.
+ /// The amount reserved for payments that have been [authorised](https://docs.adyen.com/issuing/payment-stages/#authorised), but not yet [captured](https://docs.adyen.com/issuing/payment-stages/#captured) by the merchant. Applies only to [Adyen-issued cards](https://docs.adyen.com/issuing).
///
- /// The amount reserved for payments that have been authorised, but have not been captured yet.
+ /// The amount reserved for payments that have been [authorised](https://docs.adyen.com/issuing/payment-stages/#authorised), but not yet [captured](https://docs.adyen.com/issuing/payment-stages/#captured) by the merchant. Applies only to [Adyen-issued cards](https://docs.adyen.com/issuing).
[DataMember(Name = "reserved", IsRequired = false, EmitDefaultValue = false)]
public long? Reserved { get; set; }
diff --git a/Adyen/Model/BalancePlatform/BalanceAccountUpdateRequest.cs b/Adyen/Model/BalancePlatform/BalanceAccountUpdateRequest.cs
index ae215f9ac..a72102b94 100644
--- a/Adyen/Model/BalancePlatform/BalanceAccountUpdateRequest.cs
+++ b/Adyen/Model/BalancePlatform/BalanceAccountUpdateRequest.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.BalancePlatform
public partial class BalanceAccountUpdateRequest : IEquatable, IValidatableObject
{
///
- /// The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **inactive**, **closed**, **suspended**.
+ /// The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**.
///
- /// The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **inactive**, **closed**, **suspended**.
+ /// The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**.
[JsonConverter(typeof(StringEnumConverter))]
public enum StatusEnum
{
@@ -67,20 +67,20 @@ public enum StatusEnum
///
- /// The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **inactive**, **closed**, **suspended**.
+ /// The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**.
///
- /// The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **inactive**, **closed**, **suspended**.
+ /// The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**.
[DataMember(Name = "status", EmitDefaultValue = false)]
public StatusEnum? Status { get; set; }
///
/// Initializes a new instance of the class.
///
/// The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account..
- /// A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder..
+ /// A human-readable description of the balance account. You can use this parameter to distinguish between multiple balance accounts under an account holder..
/// A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs..
/// platformPaymentConfiguration.
- /// Your reference to the balance account, maximum 150 characters..
- /// The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **inactive**, **closed**, **suspended**..
+ /// Your reference to the balance account..
+ /// The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**..
/// The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)..
public BalanceAccountUpdateRequest(string accountHolderId = default(string), string description = default(string), Dictionary metadata = default(Dictionary), PlatformPaymentConfiguration platformPaymentConfiguration = default(PlatformPaymentConfiguration), string reference = default(string), StatusEnum? status = default(StatusEnum?), string timeZone = default(string))
{
@@ -101,9 +101,9 @@ public enum StatusEnum
public string AccountHolderId { get; set; }
///
- /// A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder.
+ /// A human-readable description of the balance account. You can use this parameter to distinguish between multiple balance accounts under an account holder.
///
- /// A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder.
+ /// A human-readable description of the balance account. You can use this parameter to distinguish between multiple balance accounts under an account holder.
[DataMember(Name = "description", EmitDefaultValue = false)]
public string Description { get; set; }
@@ -121,9 +121,9 @@ public enum StatusEnum
public PlatformPaymentConfiguration PlatformPaymentConfiguration { get; set; }
///
- /// Your reference to the balance account, maximum 150 characters.
+ /// Your reference to the balance account.
///
- /// Your reference to the balance account, maximum 150 characters.
+ /// Your reference to the balance account.
[DataMember(Name = "reference", EmitDefaultValue = false)]
public string Reference { get; set; }
diff --git a/Adyen/Model/BalancePlatform/BalancePlatform.cs b/Adyen/Model/BalancePlatform/BalancePlatform.cs
index 2a632de93..e22ab8dee 100644
--- a/Adyen/Model/BalancePlatform/BalancePlatform.cs
+++ b/Adyen/Model/BalancePlatform/BalancePlatform.cs
@@ -40,7 +40,7 @@ protected BalancePlatform() { }
///
/// Initializes a new instance of the class.
///
- /// Your description of the balance platform, maximum 300 characters..
+ /// Your description of the balance platform..
/// The unique identifier of the balance platform. (required).
/// The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, **Suspended**..
public BalancePlatform(string description = default(string), string id = default(string), string status = default(string))
@@ -51,9 +51,9 @@ protected BalancePlatform() { }
}
///
- /// Your description of the balance platform, maximum 300 characters.
+ /// Your description of the balance platform.
///
- /// Your description of the balance platform, maximum 300 characters.
+ /// Your description of the balance platform.
[DataMember(Name = "description", EmitDefaultValue = false)]
public string Description { get; set; }
diff --git a/Adyen/Model/BalancePlatform/BankAccountDTO.cs b/Adyen/Model/BalancePlatform/BankAccountDTO.cs
new file mode 100644
index 000000000..9badf42bb
--- /dev/null
+++ b/Adyen/Model/BalancePlatform/BankAccountDTO.cs
@@ -0,0 +1,250 @@
+/*
+* Configuration API
+*
+*
+* The version of the OpenAPI document: 2
+*
+* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+* https://openapi-generator.tech
+* Do not edit the class manually.
+*/
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
+
+namespace Adyen.Model.BalancePlatform
+{
+ ///
+ /// BankAccountDTO
+ ///
+ [DataContract(Name = "BankAccountDTO")]
+ public partial class BankAccountDTO : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected BankAccountDTO() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The bank account number, without separators or whitespace..
+ /// The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. (default to "checking").
+ /// Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. (default to "physical").
+ /// The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard..
+ /// The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace..
+ /// The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace..
+ /// **iban** or **usLocal** or **ukLocal** (required) (default to "iban").
+ public BankAccountDTO(string accountNumber = default(string), string accountType = "checking", string formFactor = "physical", string iban = default(string), string routingNumber = default(string), string sortCode = default(string), string type = "iban")
+ {
+ this.Type = type;
+ this.AccountNumber = accountNumber;
+ // use default value if no "accountType" provided
+ this.AccountType = accountType ?? "checking";
+ // use default value if no "formFactor" provided
+ this.FormFactor = formFactor ?? "physical";
+ this.Iban = iban;
+ this.RoutingNumber = routingNumber;
+ this.SortCode = sortCode;
+ }
+
+ ///
+ /// The bank account number, without separators or whitespace.
+ ///
+ /// The bank account number, without separators or whitespace.
+ [DataMember(Name = "accountNumber", EmitDefaultValue = false)]
+ public string AccountNumber { get; set; }
+
+ ///
+ /// The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**.
+ ///
+ /// The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**.
+ [DataMember(Name = "accountType", EmitDefaultValue = false)]
+ public string AccountType { get; set; }
+
+ ///
+ /// Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL.
+ ///
+ /// Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL.
+ [DataMember(Name = "formFactor", EmitDefaultValue = false)]
+ public string FormFactor { get; set; }
+
+ ///
+ /// The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard.
+ ///
+ /// The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard.
+ [DataMember(Name = "iban", EmitDefaultValue = false)]
+ public string Iban { get; set; }
+
+ ///
+ /// The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.
+ ///
+ /// The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.
+ [DataMember(Name = "routingNumber", EmitDefaultValue = false)]
+ public string RoutingNumber { get; set; }
+
+ ///
+ /// The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace.
+ ///
+ /// The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace.
+ [DataMember(Name = "sortCode", EmitDefaultValue = false)]
+ public string SortCode { get; set; }
+
+ ///
+ /// **iban** or **usLocal** or **ukLocal**
+ ///
+ /// **iban** or **usLocal** or **ukLocal**
+ [DataMember(Name = "type", IsRequired = false, 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 BankAccountDTO {\n");
+ sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
+ sb.Append(" AccountType: ").Append(AccountType).Append("\n");
+ sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
+ sb.Append(" Iban: ").Append(Iban).Append("\n");
+ sb.Append(" RoutingNumber: ").Append(RoutingNumber).Append("\n");
+ sb.Append(" SortCode: ").Append(SortCode).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 BankAccountDTO);
+ }
+
+ ///
+ /// Returns true if BankAccountDTO instances are equal
+ ///
+ /// Instance of BankAccountDTO to be compared
+ /// Boolean
+ public bool Equals(BankAccountDTO input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.AccountNumber == input.AccountNumber ||
+ (this.AccountNumber != null &&
+ this.AccountNumber.Equals(input.AccountNumber))
+ ) &&
+ (
+ this.AccountType == input.AccountType ||
+ (this.AccountType != null &&
+ this.AccountType.Equals(input.AccountType))
+ ) &&
+ (
+ this.FormFactor == input.FormFactor ||
+ (this.FormFactor != null &&
+ this.FormFactor.Equals(input.FormFactor))
+ ) &&
+ (
+ this.Iban == input.Iban ||
+ (this.Iban != null &&
+ this.Iban.Equals(input.Iban))
+ ) &&
+ (
+ this.RoutingNumber == input.RoutingNumber ||
+ (this.RoutingNumber != null &&
+ this.RoutingNumber.Equals(input.RoutingNumber))
+ ) &&
+ (
+ this.SortCode == input.SortCode ||
+ (this.SortCode != null &&
+ this.SortCode.Equals(input.SortCode))
+ ) &&
+ (
+ 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.AccountNumber != null)
+ {
+ hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
+ }
+ if (this.AccountType != null)
+ {
+ hashCode = (hashCode * 59) + this.AccountType.GetHashCode();
+ }
+ if (this.FormFactor != null)
+ {
+ hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
+ }
+ if (this.Iban != null)
+ {
+ hashCode = (hashCode * 59) + this.Iban.GetHashCode();
+ }
+ if (this.RoutingNumber != null)
+ {
+ hashCode = (hashCode * 59) + this.RoutingNumber.GetHashCode();
+ }
+ if (this.SortCode != null)
+ {
+ hashCode = (hashCode * 59) + this.SortCode.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/BalancePlatform/BankAccountModel.cs b/Adyen/Model/BalancePlatform/BankAccountModel.cs
index 8391c27eb..820f13e56 100644
--- a/Adyen/Model/BalancePlatform/BankAccountModel.cs
+++ b/Adyen/Model/BalancePlatform/BankAccountModel.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.BalancePlatform
public partial class BankAccountModel : IEquatable, IValidatableObject
{
///
- /// Form factor of the bank account - **virtual** or **physical** (default)
+ /// Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL.
///
- /// Form factor of the bank account - **virtual** or **physical** (default)
+ /// Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL.
[JsonConverter(typeof(StringEnumConverter))]
public enum FormFactorEnum
{
@@ -61,16 +61,16 @@ public enum FormFactorEnum
///
- /// Form factor of the bank account - **virtual** or **physical** (default)
+ /// Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL.
///
- /// Form factor of the bank account - **virtual** or **physical** (default)
+ /// Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL.
[DataMember(Name = "formFactor", EmitDefaultValue = false)]
public FormFactorEnum? FormFactor { get; set; }
///
/// Initializes a new instance of the class.
///
- /// Form factor of the bank account - **virtual** or **physical** (default).
- public BankAccountModel(FormFactorEnum? formFactor = default(FormFactorEnum?))
+ /// Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. (default to FormFactorEnum.Physical).
+ public BankAccountModel(FormFactorEnum? formFactor = FormFactorEnum.Physical)
{
this.FormFactor = formFactor;
}
diff --git a/Adyen/Model/BalancePlatform/BankIdentification.cs b/Adyen/Model/BalancePlatform/BankIdentification.cs
index 6463ab065..bf45d0b79 100644
--- a/Adyen/Model/BalancePlatform/BankIdentification.cs
+++ b/Adyen/Model/BalancePlatform/BankIdentification.cs
@@ -33,9 +33,9 @@ namespace Adyen.Model.BalancePlatform
public partial class BankIdentification : IEquatable, IValidatableObject
{
///
- /// The type of the identification. Possible values: **iban**, **routingNumber**.
+ /// The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**.
///
- /// The type of the identification. Possible values: **iban**, **routingNumber**.
+ /// The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**.
[JsonConverter(typeof(StringEnumConverter))]
public enum IdentificationTypeEnum
{
@@ -49,15 +49,21 @@ public enum IdentificationTypeEnum
/// Enum RoutingNumber for value: routingNumber
///
[EnumMember(Value = "routingNumber")]
- RoutingNumber = 2
+ RoutingNumber = 2,
+
+ ///
+ /// Enum SortCode for value: sortCode
+ ///
+ [EnumMember(Value = "sortCode")]
+ SortCode = 3
}
///
- /// The type of the identification. Possible values: **iban**, **routingNumber**.
+ /// The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**.
///
- /// The type of the identification. Possible values: **iban**, **routingNumber**.
+ /// The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**.
[DataMember(Name = "identificationType", EmitDefaultValue = false)]
public IdentificationTypeEnum? IdentificationType { get; set; }
///
@@ -65,7 +71,7 @@ public enum IdentificationTypeEnum
///
/// Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code..
/// The bank identification code..
- /// The type of the identification. Possible values: **iban**, **routingNumber**..
+ /// The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**..
public BankIdentification(string country = default(string), string identification = default(string), IdentificationTypeEnum? identificationType = default(IdentificationTypeEnum?))
{
this.Country = country;
diff --git a/Adyen/Model/BalancePlatform/CALocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/CALocalAccountIdentification.cs
index 6540b05cb..706a50142 100644
--- a/Adyen/Model/BalancePlatform/CALocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/CALocalAccountIdentification.cs
@@ -92,19 +92,16 @@ protected CALocalAccountIdentification() { }
///
/// The 5- to 12-digit bank account number, without separators or whitespace. (required).
/// The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. (default to AccountTypeEnum.Checking).
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**. (default to "physical").
/// The 3-digit institution number, without separators or whitespace. (required).
/// The 5-digit transit number, without separators or whitespace. (required).
/// **caLocal** (required) (default to TypeEnum.CaLocal).
- public CALocalAccountIdentification(string accountNumber = default(string), AccountTypeEnum? accountType = AccountTypeEnum.Checking, string formFactor = "physical", string institutionNumber = default(string), string transitNumber = default(string), TypeEnum type = TypeEnum.CaLocal)
+ public CALocalAccountIdentification(string accountNumber = default(string), AccountTypeEnum? accountType = AccountTypeEnum.Checking, string institutionNumber = default(string), string transitNumber = default(string), TypeEnum type = TypeEnum.CaLocal)
{
this.AccountNumber = accountNumber;
this.InstitutionNumber = institutionNumber;
this.TransitNumber = transitNumber;
this.Type = type;
this.AccountType = accountType;
- // use default value if no "formFactor" provided
- this.FormFactor = formFactor ?? "physical";
}
///
@@ -114,13 +111,6 @@ protected CALocalAccountIdentification() { }
[DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
public string AccountNumber { get; set; }
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- [DataMember(Name = "formFactor", EmitDefaultValue = false)]
- public string FormFactor { get; set; }
-
///
/// The 3-digit institution number, without separators or whitespace.
///
@@ -145,7 +135,6 @@ public override string ToString()
sb.Append("class CALocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" AccountType: ").Append(AccountType).Append("\n");
- sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" InstitutionNumber: ").Append(InstitutionNumber).Append("\n");
sb.Append(" TransitNumber: ").Append(TransitNumber).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
@@ -193,11 +182,6 @@ public bool Equals(CALocalAccountIdentification input)
this.AccountType == input.AccountType ||
this.AccountType.Equals(input.AccountType)
) &&
- (
- this.FormFactor == input.FormFactor ||
- (this.FormFactor != null &&
- this.FormFactor.Equals(input.FormFactor))
- ) &&
(
this.InstitutionNumber == input.InstitutionNumber ||
(this.InstitutionNumber != null &&
@@ -228,10 +212,6 @@ public override int GetHashCode()
hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
}
hashCode = (hashCode * 59) + this.AccountType.GetHashCode();
- if (this.FormFactor != null)
- {
- hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
- }
if (this.InstitutionNumber != null)
{
hashCode = (hashCode * 59) + this.InstitutionNumber.GetHashCode();
diff --git a/Adyen/Model/BalancePlatform/CZLocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/CZLocalAccountIdentification.cs
index 30f70ba07..61a40a2c7 100644
--- a/Adyen/Model/BalancePlatform/CZLocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/CZLocalAccountIdentification.cs
@@ -64,15 +64,12 @@ protected CZLocalAccountIdentification() { }
///
/// The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) (required).
/// The 4-digit bank code (Kód banky), without separators or whitespace. (required).
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**. (default to "physical").
/// **czLocal** (required) (default to TypeEnum.CzLocal).
- public CZLocalAccountIdentification(string accountNumber = default(string), string bankCode = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.CzLocal)
+ public CZLocalAccountIdentification(string accountNumber = default(string), string bankCode = default(string), TypeEnum type = TypeEnum.CzLocal)
{
this.AccountNumber = accountNumber;
this.BankCode = bankCode;
this.Type = type;
- // use default value if no "formFactor" provided
- this.FormFactor = formFactor ?? "physical";
}
///
@@ -89,13 +86,6 @@ protected CZLocalAccountIdentification() { }
[DataMember(Name = "bankCode", IsRequired = false, EmitDefaultValue = false)]
public string BankCode { get; set; }
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- [DataMember(Name = "formFactor", EmitDefaultValue = false)]
- public string FormFactor { get; set; }
-
///
/// Returns the string presentation of the object
///
@@ -106,7 +96,6 @@ public override string ToString()
sb.Append("class CZLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" BankCode: ").Append(BankCode).Append("\n");
- sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -153,11 +142,6 @@ public bool Equals(CZLocalAccountIdentification input)
(this.BankCode != null &&
this.BankCode.Equals(input.BankCode))
) &&
- (
- this.FormFactor == input.FormFactor ||
- (this.FormFactor != null &&
- this.FormFactor.Equals(input.FormFactor))
- ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -181,10 +165,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.BankCode.GetHashCode();
}
- if (this.FormFactor != null)
- {
- hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
- }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/Counterparty.cs b/Adyen/Model/BalancePlatform/Counterparty.cs
index 76cb994c9..4339f5fcb 100644
--- a/Adyen/Model/BalancePlatform/Counterparty.cs
+++ b/Adyen/Model/BalancePlatform/Counterparty.cs
@@ -36,7 +36,7 @@ public partial class Counterparty : IEquatable, IValidatableObject
/// Initializes a new instance of the class.
///
/// bankAccount.
- /// Unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id)..
+ /// The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id)..
public Counterparty(BankAccount bankAccount = default(BankAccount), string transferInstrumentId = default(string))
{
this.BankAccount = bankAccount;
@@ -50,9 +50,9 @@ public partial class Counterparty : IEquatable, IValidatableObject
public BankAccount BankAccount { get; set; }
///
- /// Unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
+ /// The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
///
- /// Unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
+ /// The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
[DataMember(Name = "transferInstrumentId", EmitDefaultValue = false)]
public string TransferInstrumentId { get; set; }
diff --git a/Adyen/Model/BalancePlatform/CreateSweepConfigurationV2.cs b/Adyen/Model/BalancePlatform/CreateSweepConfigurationV2.cs
index e560e437a..a2d3f1326 100644
--- a/Adyen/Model/BalancePlatform/CreateSweepConfigurationV2.cs
+++ b/Adyen/Model/BalancePlatform/CreateSweepConfigurationV2.cs
@@ -113,9 +113,9 @@ public enum PrioritiesEnum
///
- /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority listed first, and if that's not possible, it moves on to the next option in the order of provided priorities. 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). Set `category` to **bank**. For more details, see [optional priorities setup](https://docs.adyen.com/marketplaces-and-platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
+ /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: For normal, low-value transactions. * **fast**: 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). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
///
- /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority listed first, and if that's not possible, it moves on to the next option in the order of provided priorities. 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). Set `category` to **bank**. For more details, see [optional priorities setup](https://docs.adyen.com/marketplaces-and-platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
+ /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: For normal, low-value transactions. * **fast**: 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). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
[DataMember(Name = "priorities", EmitDefaultValue = false)]
public List Priorities { get; set; }
///
@@ -197,29 +197,35 @@ public enum ReasonEnum
[EnumMember(Value = "notEnoughBalance")]
NotEnoughBalance = 12,
+ ///
+ /// Enum PendingApproval for value: pendingApproval
+ ///
+ [EnumMember(Value = "pendingApproval")]
+ PendingApproval = 13,
+
///
/// Enum RefusedByCounterpartyBank for value: refusedByCounterpartyBank
///
[EnumMember(Value = "refusedByCounterpartyBank")]
- RefusedByCounterpartyBank = 13,
+ RefusedByCounterpartyBank = 14,
///
/// Enum RouteNotFound for value: routeNotFound
///
[EnumMember(Value = "routeNotFound")]
- RouteNotFound = 14,
+ RouteNotFound = 15,
///
/// Enum ScaFailed for value: scaFailed
///
[EnumMember(Value = "scaFailed")]
- ScaFailed = 15,
+ ScaFailed = 16,
///
/// Enum Unknown for value: unknown
///
[EnumMember(Value = "unknown")]
- Unknown = 16
+ Unknown = 17
}
@@ -307,14 +313,16 @@ protected CreateSweepConfigurationV2() { }
/// counterparty (required).
/// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). (required).
/// The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters..
- /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority listed first, and if that's not possible, it moves on to the next option in the order of provided priorities. 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). Set `category` to **bank**. For more details, see [optional priorities setup](https://docs.adyen.com/marketplaces-and-platforms/payout-to-users/scheduled-payouts#optional-priorities-setup)..
+ /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: For normal, low-value transactions. * **fast**: 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). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup)..
+ /// Your reference for the sweep configuration..
+ /// The reference sent to or received from the counterparty. Only alphanumeric characters are allowed..
/// schedule (required).
/// The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. .
/// sweepAmount.
/// targetAmount.
/// triggerAmount.
/// The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. (default to TypeEnum.Push).
- public CreateSweepConfigurationV2(CategoryEnum? category = default(CategoryEnum?), SweepCounterparty counterparty = default(SweepCounterparty), string currency = default(string), string description = default(string), List priorities = default(List), SweepSchedule schedule = default(SweepSchedule), StatusEnum? status = default(StatusEnum?), Amount sweepAmount = default(Amount), Amount targetAmount = default(Amount), Amount triggerAmount = default(Amount), TypeEnum? type = TypeEnum.Push)
+ public CreateSweepConfigurationV2(CategoryEnum? category = default(CategoryEnum?), SweepCounterparty counterparty = default(SweepCounterparty), string currency = default(string), string description = default(string), List priorities = default(List), string reference = default(string), string referenceForBeneficiary = default(string), SweepSchedule schedule = default(SweepSchedule), StatusEnum? status = default(StatusEnum?), Amount sweepAmount = default(Amount), Amount targetAmount = default(Amount), Amount triggerAmount = default(Amount), TypeEnum? type = TypeEnum.Push)
{
this.Counterparty = counterparty;
this.Currency = currency;
@@ -322,6 +330,8 @@ protected CreateSweepConfigurationV2() { }
this.Category = category;
this.Description = description;
this.Priorities = priorities;
+ this.Reference = reference;
+ this.ReferenceForBeneficiary = referenceForBeneficiary;
this.Status = status;
this.SweepAmount = sweepAmount;
this.TargetAmount = targetAmount;
@@ -349,6 +359,20 @@ protected CreateSweepConfigurationV2() { }
[DataMember(Name = "description", EmitDefaultValue = false)]
public string Description { get; set; }
+ ///
+ /// Your reference for the sweep configuration.
+ ///
+ /// Your reference for the sweep configuration.
+ [DataMember(Name = "reference", EmitDefaultValue = false)]
+ public string Reference { get; set; }
+
+ ///
+ /// The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.
+ ///
+ /// The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.
+ [DataMember(Name = "referenceForBeneficiary", EmitDefaultValue = false)]
+ public string ReferenceForBeneficiary { get; set; }
+
///
/// Gets or Sets Schedule
///
@@ -387,6 +411,8 @@ public override string ToString()
sb.Append(" Description: ").Append(Description).Append("\n");
sb.Append(" Priorities: ").Append(Priorities).Append("\n");
sb.Append(" Reason: ").Append(Reason).Append("\n");
+ sb.Append(" Reference: ").Append(Reference).Append("\n");
+ sb.Append(" ReferenceForBeneficiary: ").Append(ReferenceForBeneficiary).Append("\n");
sb.Append(" Schedule: ").Append(Schedule).Append("\n");
sb.Append(" Status: ").Append(Status).Append("\n");
sb.Append(" SweepAmount: ").Append(SweepAmount).Append("\n");
@@ -455,6 +481,16 @@ public bool Equals(CreateSweepConfigurationV2 input)
this.Reason == input.Reason ||
this.Reason.Equals(input.Reason)
) &&
+ (
+ this.Reference == input.Reference ||
+ (this.Reference != null &&
+ this.Reference.Equals(input.Reference))
+ ) &&
+ (
+ this.ReferenceForBeneficiary == input.ReferenceForBeneficiary ||
+ (this.ReferenceForBeneficiary != null &&
+ this.ReferenceForBeneficiary.Equals(input.ReferenceForBeneficiary))
+ ) &&
(
this.Schedule == input.Schedule ||
(this.Schedule != null &&
@@ -509,6 +545,14 @@ public override int GetHashCode()
}
hashCode = (hashCode * 59) + this.Priorities.GetHashCode();
hashCode = (hashCode * 59) + this.Reason.GetHashCode();
+ if (this.Reference != null)
+ {
+ hashCode = (hashCode * 59) + this.Reference.GetHashCode();
+ }
+ if (this.ReferenceForBeneficiary != null)
+ {
+ hashCode = (hashCode * 59) + this.ReferenceForBeneficiary.GetHashCode();
+ }
if (this.Schedule != null)
{
hashCode = (hashCode * 59) + this.Schedule.GetHashCode();
@@ -537,6 +581,18 @@ public override int GetHashCode()
/// Validation Result
public IEnumerable Validate(ValidationContext validationContext)
{
+ // Reference (string) maxLength
+ if (this.Reference != null && this.Reference.Length > 80)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Reference, length must be less than 80.", new [] { "Reference" });
+ }
+
+ // ReferenceForBeneficiary (string) maxLength
+ if (this.ReferenceForBeneficiary != null && this.ReferenceForBeneficiary.Length > 80)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReferenceForBeneficiary, length must be less than 80.", new [] { "ReferenceForBeneficiary" });
+ }
+
yield break;
}
}
diff --git a/Adyen/Model/BalancePlatform/DKLocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/DKLocalAccountIdentification.cs
index c18faf989..fafd717cb 100644
--- a/Adyen/Model/BalancePlatform/DKLocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/DKLocalAccountIdentification.cs
@@ -64,15 +64,12 @@ protected DKLocalAccountIdentification() { }
///
/// The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). (required).
/// The 4-digit bank code (Registreringsnummer) (without separators or whitespace). (required).
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**. (default to "physical").
/// **dkLocal** (required) (default to TypeEnum.DkLocal).
- public DKLocalAccountIdentification(string accountNumber = default(string), string bankCode = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.DkLocal)
+ public DKLocalAccountIdentification(string accountNumber = default(string), string bankCode = default(string), TypeEnum type = TypeEnum.DkLocal)
{
this.AccountNumber = accountNumber;
this.BankCode = bankCode;
this.Type = type;
- // use default value if no "formFactor" provided
- this.FormFactor = formFactor ?? "physical";
}
///
@@ -89,13 +86,6 @@ protected DKLocalAccountIdentification() { }
[DataMember(Name = "bankCode", IsRequired = false, EmitDefaultValue = false)]
public string BankCode { get; set; }
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- [DataMember(Name = "formFactor", EmitDefaultValue = false)]
- public string FormFactor { get; set; }
-
///
/// Returns the string presentation of the object
///
@@ -106,7 +96,6 @@ public override string ToString()
sb.Append("class DKLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" BankCode: ").Append(BankCode).Append("\n");
- sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -153,11 +142,6 @@ public bool Equals(DKLocalAccountIdentification input)
(this.BankCode != null &&
this.BankCode.Equals(input.BankCode))
) &&
- (
- this.FormFactor == input.FormFactor ||
- (this.FormFactor != null &&
- this.FormFactor.Equals(input.FormFactor))
- ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -181,10 +165,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.BankCode.GetHashCode();
}
- if (this.FormFactor != null)
- {
- hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
- }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/DelegatedAuthenticationData.cs b/Adyen/Model/BalancePlatform/DelegatedAuthenticationData.cs
new file mode 100644
index 000000000..4a39dea3a
--- /dev/null
+++ b/Adyen/Model/BalancePlatform/DelegatedAuthenticationData.cs
@@ -0,0 +1,140 @@
+/*
+* Configuration API
+*
+*
+* The version of the OpenAPI document: 2
+*
+* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+* https://openapi-generator.tech
+* Do not edit the class manually.
+*/
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
+
+namespace Adyen.Model.BalancePlatform
+{
+ ///
+ /// DelegatedAuthenticationData
+ ///
+ [DataContract(Name = "DelegatedAuthenticationData")]
+ public partial class DelegatedAuthenticationData : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected DelegatedAuthenticationData() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// A base64-encoded block with the data required to register the SCA device. You obtain this information by using our authentication SDK. (required).
+ public DelegatedAuthenticationData(string sdkOutput = default(string))
+ {
+ this.SdkOutput = sdkOutput;
+ }
+
+ ///
+ /// A base64-encoded block with the data required to register the SCA device. You obtain this information by using our authentication SDK.
+ ///
+ /// A base64-encoded block with the data required to register the SCA device. You obtain this information by using our authentication SDK.
+ [DataMember(Name = "sdkOutput", IsRequired = false, EmitDefaultValue = false)]
+ public string SdkOutput { 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 DelegatedAuthenticationData {\n");
+ sb.Append(" SdkOutput: ").Append(SdkOutput).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 DelegatedAuthenticationData);
+ }
+
+ ///
+ /// Returns true if DelegatedAuthenticationData instances are equal
+ ///
+ /// Instance of DelegatedAuthenticationData to be compared
+ /// Boolean
+ public bool Equals(DelegatedAuthenticationData input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.SdkOutput == input.SdkOutput ||
+ (this.SdkOutput != null &&
+ this.SdkOutput.Equals(input.SdkOutput))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.SdkOutput != null)
+ {
+ hashCode = (hashCode * 59) + this.SdkOutput.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ public IEnumerable Validate(ValidationContext validationContext)
+ {
+ // SdkOutput (string) maxLength
+ if (this.SdkOutput != null && this.SdkOutput.Length > 20000)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SdkOutput, length must be less than 20000.", new [] { "SdkOutput" });
+ }
+
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/BalancePlatform/DeliveryAddress.cs b/Adyen/Model/BalancePlatform/DeliveryAddress.cs
index 7f826b4b9..3f38b6476 100644
--- a/Adyen/Model/BalancePlatform/DeliveryAddress.cs
+++ b/Adyen/Model/BalancePlatform/DeliveryAddress.cs
@@ -42,11 +42,11 @@ protected DeliveryAddress() { }
///
/// The name of the city..
/// The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. (required).
- /// The street name. For example, if the address is \"Rokin 49\", provide \"Rokin\"..
- /// The house number or name. For example, if the address is \"Rokin 49\", provide \"49\"..
- /// Optional information about the address..
+ /// The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**..
+ /// The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**..
+ /// Additional information about the delivery address..
/// The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries..
- /// The two-letterISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada..
+ /// The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada..
public DeliveryAddress(string city = default(string), string country = default(string), string line1 = default(string), string line2 = default(string), string line3 = default(string), string postalCode = default(string), string stateOrProvince = default(string))
{
this.Country = country;
@@ -73,23 +73,23 @@ protected DeliveryAddress() { }
public string Country { get; set; }
///
- /// The street name. For example, if the address is \"Rokin 49\", provide \"Rokin\".
+ /// The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**.
///
- /// The street name. For example, if the address is \"Rokin 49\", provide \"Rokin\".
+ /// The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**.
[DataMember(Name = "line1", EmitDefaultValue = false)]
public string Line1 { get; set; }
///
- /// The house number or name. For example, if the address is \"Rokin 49\", provide \"49\".
+ /// The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**.
///
- /// The house number or name. For example, if the address is \"Rokin 49\", provide \"49\".
+ /// The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**.
[DataMember(Name = "line2", EmitDefaultValue = false)]
public string Line2 { get; set; }
///
- /// Optional information about the address.
+ /// Additional information about the delivery address.
///
- /// Optional information about the address.
+ /// Additional information about the delivery address.
[DataMember(Name = "line3", EmitDefaultValue = false)]
public string Line3 { get; set; }
@@ -101,9 +101,9 @@ protected DeliveryAddress() { }
public string PostalCode { get; set; }
///
- /// The two-letterISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada.
+ /// The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada.
///
- /// The two-letterISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada.
+ /// The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada.
[DataMember(Name = "stateOrProvince", EmitDefaultValue = false)]
public string StateOrProvince { get; set; }
diff --git a/Adyen/Model/BalancePlatform/DeliveryContact.cs b/Adyen/Model/BalancePlatform/DeliveryContact.cs
index c8be985ec..b0d015cbf 100644
--- a/Adyen/Model/BalancePlatform/DeliveryContact.cs
+++ b/Adyen/Model/BalancePlatform/DeliveryContact.cs
@@ -41,15 +41,17 @@ protected DeliveryContact() { }
/// Initializes a new instance of the class.
///
/// address (required).
+ /// The company name of the contact..
/// The email address of the contact..
/// The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\".
/// name (required).
/// phoneNumber.
/// The URL of the contact's website..
- public DeliveryContact(DeliveryAddress address = default(DeliveryAddress), string email = default(string), string fullPhoneNumber = default(string), Name name = default(Name), PhoneNumber phoneNumber = default(PhoneNumber), string webAddress = default(string))
+ public DeliveryContact(DeliveryAddress address = default(DeliveryAddress), string company = default(string), string email = default(string), string fullPhoneNumber = default(string), Name name = default(Name), PhoneNumber phoneNumber = default(PhoneNumber), string webAddress = default(string))
{
this.Address = address;
this.Name = name;
+ this.Company = company;
this.Email = email;
this.FullPhoneNumber = fullPhoneNumber;
this.PhoneNumber = phoneNumber;
@@ -62,6 +64,13 @@ protected DeliveryContact() { }
[DataMember(Name = "address", IsRequired = false, EmitDefaultValue = false)]
public DeliveryAddress Address { get; set; }
+ ///
+ /// The company name of the contact.
+ ///
+ /// The company name of the contact.
+ [DataMember(Name = "company", EmitDefaultValue = false)]
+ public string Company { get; set; }
+
///
/// The email address of the contact.
///
@@ -104,6 +113,7 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class DeliveryContact {\n");
sb.Append(" Address: ").Append(Address).Append("\n");
+ sb.Append(" Company: ").Append(Company).Append("\n");
sb.Append(" Email: ").Append(Email).Append("\n");
sb.Append(" FullPhoneNumber: ").Append(FullPhoneNumber).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
@@ -149,6 +159,11 @@ public bool Equals(DeliveryContact input)
(this.Address != null &&
this.Address.Equals(input.Address))
) &&
+ (
+ this.Company == input.Company ||
+ (this.Company != null &&
+ this.Company.Equals(input.Company))
+ ) &&
(
this.Email == input.Email ||
(this.Email != null &&
@@ -189,6 +204,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Address.GetHashCode();
}
+ if (this.Company != null)
+ {
+ hashCode = (hashCode * 59) + this.Company.GetHashCode();
+ }
if (this.Email != null)
{
hashCode = (hashCode * 59) + this.Email.GetHashCode();
diff --git a/Adyen/Model/BalancePlatform/Device.cs b/Adyen/Model/BalancePlatform/Device.cs
new file mode 100644
index 000000000..9ede3916b
--- /dev/null
+++ b/Adyen/Model/BalancePlatform/Device.cs
@@ -0,0 +1,209 @@
+/*
+* Configuration API
+*
+*
+* The version of the OpenAPI document: 2
+*
+* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+* https://openapi-generator.tech
+* Do not edit the class manually.
+*/
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
+
+namespace Adyen.Model.BalancePlatform
+{
+ ///
+ /// Device
+ ///
+ [DataContract(Name = "Device")]
+ public partial class Device : IEquatable, IValidatableObject
+ {
+ ///
+ /// The type of device. Possible values: **ios**, **android**, **browser**.
+ ///
+ /// The type of device. Possible values: **ios**, **android**, **browser**.
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum TypeEnum
+ {
+ ///
+ /// Enum Ios for value: ios
+ ///
+ [EnumMember(Value = "ios")]
+ Ios = 1,
+
+ ///
+ /// Enum Android for value: android
+ ///
+ [EnumMember(Value = "android")]
+ Android = 2,
+
+ ///
+ /// Enum Browser for value: browser
+ ///
+ [EnumMember(Value = "browser")]
+ Browser = 3
+
+ }
+
+
+ ///
+ /// The type of device. Possible values: **ios**, **android**, **browser**.
+ ///
+ /// The type of device. Possible values: **ios**, **android**, **browser**.
+ [DataMember(Name = "type", EmitDefaultValue = false)]
+ public TypeEnum? Type { get; set; }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The unique identifier of the SCA device..
+ /// The name of the SCA device. You can show this name to your user to help them identify the device..
+ /// The unique identifier of the payment instrument that is associated with the SCA device..
+ /// The type of device. Possible values: **ios**, **android**, **browser**..
+ public Device(string id = default(string), string name = default(string), string paymentInstrumentId = default(string), TypeEnum? type = default(TypeEnum?))
+ {
+ this.Id = id;
+ this.Name = name;
+ this.PaymentInstrumentId = paymentInstrumentId;
+ this.Type = type;
+ }
+
+ ///
+ /// The unique identifier of the SCA device.
+ ///
+ /// The unique identifier of the SCA device.
+ [DataMember(Name = "id", EmitDefaultValue = false)]
+ public string Id { get; set; }
+
+ ///
+ /// The name of the SCA device. You can show this name to your user to help them identify the device.
+ ///
+ /// The name of the SCA device. You can show this name to your user to help them identify the device.
+ [DataMember(Name = "name", EmitDefaultValue = false)]
+ public string Name { get; set; }
+
+ ///
+ /// The unique identifier of the payment instrument that is associated with the SCA device.
+ ///
+ /// The unique identifier of the payment instrument that is associated with the SCA device.
+ [DataMember(Name = "paymentInstrumentId", EmitDefaultValue = false)]
+ public string PaymentInstrumentId { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class Device {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Name: ").Append(Name).Append("\n");
+ sb.Append(" PaymentInstrumentId: ").Append(PaymentInstrumentId).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 Device);
+ }
+
+ ///
+ /// Returns true if Device instances are equal
+ ///
+ /// Instance of Device to be compared
+ /// Boolean
+ public bool Equals(Device input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Id == input.Id ||
+ (this.Id != null &&
+ this.Id.Equals(input.Id))
+ ) &&
+ (
+ this.Name == input.Name ||
+ (this.Name != null &&
+ this.Name.Equals(input.Name))
+ ) &&
+ (
+ this.PaymentInstrumentId == input.PaymentInstrumentId ||
+ (this.PaymentInstrumentId != null &&
+ this.PaymentInstrumentId.Equals(input.PaymentInstrumentId))
+ ) &&
+ (
+ this.Type == input.Type ||
+ this.Type.Equals(input.Type)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.Id != null)
+ {
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ }
+ if (this.Name != null)
+ {
+ hashCode = (hashCode * 59) + this.Name.GetHashCode();
+ }
+ if (this.PaymentInstrumentId != null)
+ {
+ hashCode = (hashCode * 59) + this.PaymentInstrumentId.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.Type.GetHashCode();
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ public IEnumerable Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/BalancePlatform/HKLocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/HKLocalAccountIdentification.cs
index ff59d90f1..faff07257 100644
--- a/Adyen/Model/BalancePlatform/HKLocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/HKLocalAccountIdentification.cs
@@ -64,15 +64,12 @@ protected HKLocalAccountIdentification() { }
///
/// The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. (required).
/// The 3-digit clearing code, without separators or whitespace. (required).
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**. (default to "physical").
/// **hkLocal** (required) (default to TypeEnum.HkLocal).
- public HKLocalAccountIdentification(string accountNumber = default(string), string clearingCode = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.HkLocal)
+ public HKLocalAccountIdentification(string accountNumber = default(string), string clearingCode = default(string), TypeEnum type = TypeEnum.HkLocal)
{
this.AccountNumber = accountNumber;
this.ClearingCode = clearingCode;
this.Type = type;
- // use default value if no "formFactor" provided
- this.FormFactor = formFactor ?? "physical";
}
///
@@ -89,13 +86,6 @@ protected HKLocalAccountIdentification() { }
[DataMember(Name = "clearingCode", IsRequired = false, EmitDefaultValue = false)]
public string ClearingCode { get; set; }
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- [DataMember(Name = "formFactor", EmitDefaultValue = false)]
- public string FormFactor { get; set; }
-
///
/// Returns the string presentation of the object
///
@@ -106,7 +96,6 @@ public override string ToString()
sb.Append("class HKLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" ClearingCode: ").Append(ClearingCode).Append("\n");
- sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -153,11 +142,6 @@ public bool Equals(HKLocalAccountIdentification input)
(this.ClearingCode != null &&
this.ClearingCode.Equals(input.ClearingCode))
) &&
- (
- this.FormFactor == input.FormFactor ||
- (this.FormFactor != null &&
- this.FormFactor.Equals(input.FormFactor))
- ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -181,10 +165,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.ClearingCode.GetHashCode();
}
- if (this.FormFactor != null)
- {
- hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
- }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/HULocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/HULocalAccountIdentification.cs
index 4935bf3bc..6ef4724d2 100644
--- a/Adyen/Model/BalancePlatform/HULocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/HULocalAccountIdentification.cs
@@ -63,14 +63,11 @@ protected HULocalAccountIdentification() { }
/// Initializes a new instance of the class.
///
/// The 24-digit bank account number, without separators or whitespace. (required).
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**. (default to "physical").
/// **huLocal** (required) (default to TypeEnum.HuLocal).
- public HULocalAccountIdentification(string accountNumber = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.HuLocal)
+ public HULocalAccountIdentification(string accountNumber = default(string), TypeEnum type = TypeEnum.HuLocal)
{
this.AccountNumber = accountNumber;
this.Type = type;
- // use default value if no "formFactor" provided
- this.FormFactor = formFactor ?? "physical";
}
///
@@ -80,13 +77,6 @@ protected HULocalAccountIdentification() { }
[DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
public string AccountNumber { get; set; }
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- [DataMember(Name = "formFactor", EmitDefaultValue = false)]
- public string FormFactor { get; set; }
-
///
/// Returns the string presentation of the object
///
@@ -96,7 +86,6 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class HULocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
- sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -138,11 +127,6 @@ public bool Equals(HULocalAccountIdentification input)
(this.AccountNumber != null &&
this.AccountNumber.Equals(input.AccountNumber))
) &&
- (
- this.FormFactor == input.FormFactor ||
- (this.FormFactor != null &&
- this.FormFactor.Equals(input.FormFactor))
- ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -162,10 +146,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
}
- if (this.FormFactor != null)
- {
- hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
- }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/ConfigurationWebhooks/PaymentInstrumentReference.cs b/Adyen/Model/BalancePlatform/Href.cs
similarity index 61%
rename from Adyen/Model/ConfigurationWebhooks/PaymentInstrumentReference.cs
rename to Adyen/Model/BalancePlatform/Href.cs
index 382bc068a..e5d779889 100644
--- a/Adyen/Model/ConfigurationWebhooks/PaymentInstrumentReference.cs
+++ b/Adyen/Model/BalancePlatform/Href.cs
@@ -1,8 +1,8 @@
/*
-* Configuration webhooks
+* Configuration API
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -24,34 +24,28 @@
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
-namespace Adyen.Model.ConfigurationWebhooks
+namespace Adyen.Model.BalancePlatform
{
///
- /// PaymentInstrumentReference
+ /// Href
///
- [DataContract(Name = "PaymentInstrumentReference")]
- public partial class PaymentInstrumentReference : IEquatable, IValidatableObject
+ [DataContract(Name = "Href")]
+ public partial class Href : IEquatable, IValidatableObject
{
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
- [JsonConstructorAttribute]
- protected PaymentInstrumentReference() { }
- ///
- /// Initializes a new instance of the class.
- ///
- /// The unique identifier of the payment instrument. (required).
- public PaymentInstrumentReference(string id = default(string))
+ /// href.
+ public Href(string href = default(string))
{
- this.Id = id;
+ this._Href = href;
}
///
- /// The unique identifier of the payment instrument.
+ /// Gets or Sets _Href
///
- /// The unique identifier of the payment instrument.
- [DataMember(Name = "id", IsRequired = false, EmitDefaultValue = false)]
- public string Id { get; set; }
+ [DataMember(Name = "href", EmitDefaultValue = false)]
+ public string _Href { get; set; }
///
/// Returns the string presentation of the object
@@ -60,8 +54,8 @@ protected PaymentInstrumentReference() { }
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class PaymentInstrumentReference {\n");
- sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append("class Href {\n");
+ sb.Append(" _Href: ").Append(_Href).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -82,15 +76,15 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object input)
{
- return this.Equals(input as PaymentInstrumentReference);
+ return this.Equals(input as Href);
}
///
- /// Returns true if PaymentInstrumentReference instances are equal
+ /// Returns true if Href instances are equal
///
- /// Instance of PaymentInstrumentReference to be compared
+ /// Instance of Href to be compared
/// Boolean
- public bool Equals(PaymentInstrumentReference input)
+ public bool Equals(Href input)
{
if (input == null)
{
@@ -98,9 +92,9 @@ public bool Equals(PaymentInstrumentReference input)
}
return
(
- this.Id == input.Id ||
- (this.Id != null &&
- this.Id.Equals(input.Id))
+ this._Href == input._Href ||
+ (this._Href != null &&
+ this._Href.Equals(input._Href))
);
}
@@ -113,9 +107,9 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.Id != null)
+ if (this._Href != null)
{
- hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ hashCode = (hashCode * 59) + this._Href.GetHashCode();
}
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/IbanAccountIdentification.cs b/Adyen/Model/BalancePlatform/IbanAccountIdentification.cs
index 252eca3b1..414943838 100644
--- a/Adyen/Model/BalancePlatform/IbanAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/IbanAccountIdentification.cs
@@ -62,24 +62,14 @@ protected IbanAccountIdentification() { }
///
/// Initializes a new instance of the class.
///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**. (default to "physical").
/// The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. (required).
/// **iban** (required) (default to TypeEnum.Iban).
- public IbanAccountIdentification(string formFactor = "physical", string iban = default(string), TypeEnum type = TypeEnum.Iban)
+ public IbanAccountIdentification(string iban = default(string), TypeEnum type = TypeEnum.Iban)
{
this.Iban = iban;
this.Type = type;
- // use default value if no "formFactor" provided
- this.FormFactor = formFactor ?? "physical";
}
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- [DataMember(Name = "formFactor", EmitDefaultValue = false)]
- public string FormFactor { get; set; }
-
///
/// The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard.
///
@@ -95,7 +85,6 @@ public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class IbanAccountIdentification {\n");
- sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Iban: ").Append(Iban).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
@@ -133,11 +122,6 @@ public bool Equals(IbanAccountIdentification input)
return false;
}
return
- (
- this.FormFactor == input.FormFactor ||
- (this.FormFactor != null &&
- this.FormFactor.Equals(input.FormFactor))
- ) &&
(
this.Iban == input.Iban ||
(this.Iban != null &&
@@ -158,10 +142,6 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.FormFactor != null)
- {
- hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
- }
if (this.Iban != null)
{
hashCode = (hashCode * 59) + this.Iban.GetHashCode();
diff --git a/Adyen/Model/BalancePlatform/Link.cs b/Adyen/Model/BalancePlatform/Link.cs
new file mode 100644
index 000000000..d49e8cb35
--- /dev/null
+++ b/Adyen/Model/BalancePlatform/Link.cs
@@ -0,0 +1,200 @@
+/*
+* Configuration API
+*
+*
+* The version of the OpenAPI document: 2
+*
+* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+* https://openapi-generator.tech
+* Do not edit the class manually.
+*/
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
+
+namespace Adyen.Model.BalancePlatform
+{
+ ///
+ /// Link
+ ///
+ [DataContract(Name = "Link")]
+ public partial class Link : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// first.
+ /// last.
+ /// next.
+ /// previous.
+ /// self.
+ public Link(Href first = default(Href), Href last = default(Href), Href next = default(Href), Href previous = default(Href), Href self = default(Href))
+ {
+ this.First = first;
+ this.Last = last;
+ this.Next = next;
+ this.Previous = previous;
+ this.Self = self;
+ }
+
+ ///
+ /// Gets or Sets First
+ ///
+ [DataMember(Name = "first", EmitDefaultValue = false)]
+ public Href First { get; set; }
+
+ ///
+ /// Gets or Sets Last
+ ///
+ [DataMember(Name = "last", EmitDefaultValue = false)]
+ public Href Last { get; set; }
+
+ ///
+ /// Gets or Sets Next
+ ///
+ [DataMember(Name = "next", EmitDefaultValue = false)]
+ public Href Next { get; set; }
+
+ ///
+ /// Gets or Sets Previous
+ ///
+ [DataMember(Name = "previous", EmitDefaultValue = false)]
+ public Href Previous { get; set; }
+
+ ///
+ /// Gets or Sets Self
+ ///
+ [DataMember(Name = "self", EmitDefaultValue = false)]
+ public Href Self { 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 Link {\n");
+ sb.Append(" First: ").Append(First).Append("\n");
+ sb.Append(" Last: ").Append(Last).Append("\n");
+ sb.Append(" Next: ").Append(Next).Append("\n");
+ sb.Append(" Previous: ").Append(Previous).Append("\n");
+ sb.Append(" Self: ").Append(Self).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 Link);
+ }
+
+ ///
+ /// Returns true if Link instances are equal
+ ///
+ /// Instance of Link to be compared
+ /// Boolean
+ public bool Equals(Link input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.First == input.First ||
+ (this.First != null &&
+ this.First.Equals(input.First))
+ ) &&
+ (
+ this.Last == input.Last ||
+ (this.Last != null &&
+ this.Last.Equals(input.Last))
+ ) &&
+ (
+ this.Next == input.Next ||
+ (this.Next != null &&
+ this.Next.Equals(input.Next))
+ ) &&
+ (
+ this.Previous == input.Previous ||
+ (this.Previous != null &&
+ this.Previous.Equals(input.Previous))
+ ) &&
+ (
+ this.Self == input.Self ||
+ (this.Self != null &&
+ this.Self.Equals(input.Self))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.First != null)
+ {
+ hashCode = (hashCode * 59) + this.First.GetHashCode();
+ }
+ if (this.Last != null)
+ {
+ hashCode = (hashCode * 59) + this.Last.GetHashCode();
+ }
+ if (this.Next != null)
+ {
+ hashCode = (hashCode * 59) + this.Next.GetHashCode();
+ }
+ if (this.Previous != null)
+ {
+ hashCode = (hashCode * 59) + this.Previous.GetHashCode();
+ }
+ if (this.Self != null)
+ {
+ hashCode = (hashCode * 59) + this.Self.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ public IEnumerable Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/BalancePlatform/NOLocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/NOLocalAccountIdentification.cs
index 53c682130..9c21c9461 100644
--- a/Adyen/Model/BalancePlatform/NOLocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/NOLocalAccountIdentification.cs
@@ -63,14 +63,11 @@ protected NOLocalAccountIdentification() { }
/// Initializes a new instance of the class.
///
/// The 11-digit bank account number, without separators or whitespace. (required).
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**. (default to "physical").
/// **noLocal** (required) (default to TypeEnum.NoLocal).
- public NOLocalAccountIdentification(string accountNumber = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.NoLocal)
+ public NOLocalAccountIdentification(string accountNumber = default(string), TypeEnum type = TypeEnum.NoLocal)
{
this.AccountNumber = accountNumber;
this.Type = type;
- // use default value if no "formFactor" provided
- this.FormFactor = formFactor ?? "physical";
}
///
@@ -80,13 +77,6 @@ protected NOLocalAccountIdentification() { }
[DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
public string AccountNumber { get; set; }
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- [DataMember(Name = "formFactor", EmitDefaultValue = false)]
- public string FormFactor { get; set; }
-
///
/// Returns the string presentation of the object
///
@@ -96,7 +86,6 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class NOLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
- sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -138,11 +127,6 @@ public bool Equals(NOLocalAccountIdentification input)
(this.AccountNumber != null &&
this.AccountNumber.Equals(input.AccountNumber))
) &&
- (
- this.FormFactor == input.FormFactor ||
- (this.FormFactor != null &&
- this.FormFactor.Equals(input.FormFactor))
- ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -162,10 +146,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
}
- if (this.FormFactor != null)
- {
- hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
- }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/NZLocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/NZLocalAccountIdentification.cs
index 2c6d910cb..ee6c75e8b 100644
--- a/Adyen/Model/BalancePlatform/NZLocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/NZLocalAccountIdentification.cs
@@ -63,14 +63,11 @@ protected NZLocalAccountIdentification() { }
/// Initializes a new instance of the class.
///
/// The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. (required).
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**. (default to "physical").
/// **nzLocal** (required) (default to TypeEnum.NzLocal).
- public NZLocalAccountIdentification(string accountNumber = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.NzLocal)
+ public NZLocalAccountIdentification(string accountNumber = default(string), TypeEnum type = TypeEnum.NzLocal)
{
this.AccountNumber = accountNumber;
this.Type = type;
- // use default value if no "formFactor" provided
- this.FormFactor = formFactor ?? "physical";
}
///
@@ -80,13 +77,6 @@ protected NZLocalAccountIdentification() { }
[DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
public string AccountNumber { get; set; }
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- [DataMember(Name = "formFactor", EmitDefaultValue = false)]
- public string FormFactor { get; set; }
-
///
/// Returns the string presentation of the object
///
@@ -96,7 +86,6 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class NZLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
- sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -138,11 +127,6 @@ public bool Equals(NZLocalAccountIdentification input)
(this.AccountNumber != null &&
this.AccountNumber.Equals(input.AccountNumber))
) &&
- (
- this.FormFactor == input.FormFactor ||
- (this.FormFactor != null &&
- this.FormFactor.Equals(input.FormFactor))
- ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -162,10 +146,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
}
- if (this.FormFactor != null)
- {
- hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
- }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/NumberAndBicAccountIdentification.cs b/Adyen/Model/BalancePlatform/NumberAndBicAccountIdentification.cs
index 5df4114f2..4a1bfe1b2 100644
--- a/Adyen/Model/BalancePlatform/NumberAndBicAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/NumberAndBicAccountIdentification.cs
@@ -65,16 +65,13 @@ protected NumberAndBicAccountIdentification() { }
/// The bank account number, without separators or whitespace. The length and format depends on the bank or country. (required).
/// additionalBankIdentification.
/// The bank's 8- or 11-character BIC or SWIFT code. (required).
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**. (default to "physical").
/// **numberAndBic** (required) (default to TypeEnum.NumberAndBic).
- public NumberAndBicAccountIdentification(string accountNumber = default(string), AdditionalBankIdentification additionalBankIdentification = default(AdditionalBankIdentification), string bic = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.NumberAndBic)
+ public NumberAndBicAccountIdentification(string accountNumber = default(string), AdditionalBankIdentification additionalBankIdentification = default(AdditionalBankIdentification), string bic = default(string), TypeEnum type = TypeEnum.NumberAndBic)
{
this.AccountNumber = accountNumber;
this.Bic = bic;
this.Type = type;
this.AdditionalBankIdentification = additionalBankIdentification;
- // use default value if no "formFactor" provided
- this.FormFactor = formFactor ?? "physical";
}
///
@@ -97,13 +94,6 @@ protected NumberAndBicAccountIdentification() { }
[DataMember(Name = "bic", IsRequired = false, EmitDefaultValue = false)]
public string Bic { get; set; }
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- [DataMember(Name = "formFactor", EmitDefaultValue = false)]
- public string FormFactor { get; set; }
-
///
/// Returns the string presentation of the object
///
@@ -115,7 +105,6 @@ public override string ToString()
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" AdditionalBankIdentification: ").Append(AdditionalBankIdentification).Append("\n");
sb.Append(" Bic: ").Append(Bic).Append("\n");
- sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -167,11 +156,6 @@ public bool Equals(NumberAndBicAccountIdentification input)
(this.Bic != null &&
this.Bic.Equals(input.Bic))
) &&
- (
- this.FormFactor == input.FormFactor ||
- (this.FormFactor != null &&
- this.FormFactor.Equals(input.FormFactor))
- ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -199,10 +183,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Bic.GetHashCode();
}
- if (this.FormFactor != null)
- {
- hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
- }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/PLLocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/PLLocalAccountIdentification.cs
index 63e12561c..25417331a 100644
--- a/Adyen/Model/BalancePlatform/PLLocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/PLLocalAccountIdentification.cs
@@ -63,14 +63,11 @@ protected PLLocalAccountIdentification() { }
/// Initializes a new instance of the class.
///
/// The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. (required).
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**. (default to "physical").
/// **plLocal** (required) (default to TypeEnum.PlLocal).
- public PLLocalAccountIdentification(string accountNumber = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.PlLocal)
+ public PLLocalAccountIdentification(string accountNumber = default(string), TypeEnum type = TypeEnum.PlLocal)
{
this.AccountNumber = accountNumber;
this.Type = type;
- // use default value if no "formFactor" provided
- this.FormFactor = formFactor ?? "physical";
}
///
@@ -80,13 +77,6 @@ protected PLLocalAccountIdentification() { }
[DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
public string AccountNumber { get; set; }
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- [DataMember(Name = "formFactor", EmitDefaultValue = false)]
- public string FormFactor { get; set; }
-
///
/// Returns the string presentation of the object
///
@@ -96,7 +86,6 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class PLLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
- sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -138,11 +127,6 @@ public bool Equals(PLLocalAccountIdentification input)
(this.AccountNumber != null &&
this.AccountNumber.Equals(input.AccountNumber))
) &&
- (
- this.FormFactor == input.FormFactor ||
- (this.FormFactor != null &&
- this.FormFactor.Equals(input.FormFactor))
- ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -162,10 +146,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
}
- if (this.FormFactor != null)
- {
- hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
- }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/PaymentInstrument.cs b/Adyen/Model/BalancePlatform/PaymentInstrument.cs
index 86c155f0a..c49d04208 100644
--- a/Adyen/Model/BalancePlatform/PaymentInstrument.cs
+++ b/Adyen/Model/BalancePlatform/PaymentInstrument.cs
@@ -190,7 +190,7 @@ protected PaymentInstrument() { }
/// The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. .
/// The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change..
/// Type of payment instrument. Possible value: **card**, **bankAccount**. (required).
- public PaymentInstrument(List additionalBankAccountIdentifications = default(List), string balanceAccountId = default(string), PaymentInstrumentBankAccount bankAccount = default(PaymentInstrumentBankAccount), Card card = default(Card), string description = default(string), string id = default(string), string issuingCountryCode = default(string), string paymentInstrumentGroupId = default(string), string reference = default(string), StatusEnum? status = default(StatusEnum?), StatusReasonEnum? statusReason = default(StatusReasonEnum?), TypeEnum type = default(TypeEnum))
+ public PaymentInstrument(List additionalBankAccountIdentifications = default(List), string balanceAccountId = default(string), BankAccountDTO bankAccount = default(BankAccountDTO), Card card = default(Card), string description = default(string), string id = default(string), string issuingCountryCode = default(string), string paymentInstrumentGroupId = default(string), string reference = default(string), StatusEnum? status = default(StatusEnum?), StatusReasonEnum? statusReason = default(StatusReasonEnum?), TypeEnum type = default(TypeEnum))
{
this.BalanceAccountId = balanceAccountId;
this.Id = id;
@@ -211,6 +211,7 @@ protected PaymentInstrument() { }
///
/// Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**.
[DataMember(Name = "additionalBankAccountIdentifications", EmitDefaultValue = false)]
+ [Obsolete]
public List AdditionalBankAccountIdentifications { get; set; }
///
@@ -224,7 +225,7 @@ protected PaymentInstrument() { }
/// Gets or Sets BankAccount
///
[DataMember(Name = "bankAccount", EmitDefaultValue = false)]
- public PaymentInstrumentBankAccount BankAccount { get; set; }
+ public BankAccountDTO BankAccount { get; set; }
///
/// Gets or Sets Card
diff --git a/Adyen/Model/BalancePlatform/PaymentInstrumentBankAccount.cs b/Adyen/Model/BalancePlatform/PaymentInstrumentBankAccount.cs
deleted file mode 100644
index cb35ce9e1..000000000
--- a/Adyen/Model/BalancePlatform/PaymentInstrumentBankAccount.cs
+++ /dev/null
@@ -1,314 +0,0 @@
-/*
-* Configuration API
-*
-*
-* The version of the OpenAPI document: 2
-*
-* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
-* https://openapi-generator.tech
-* Do not edit the class manually.
-*/
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Linq;
-using System.IO;
-using System.Runtime.Serialization;
-using System.Text;
-using System.Text.RegularExpressions;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Converters;
-using Newtonsoft.Json.Linq;
-using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
-using System.Reflection;
-
-namespace Adyen.Model.BalancePlatform
-{
- ///
- /// Contains the business account details. Returned when you create a payment instrument with `type` **bankAccount**.
- ///
- [JsonConverter(typeof(PaymentInstrumentBankAccountJsonConverter))]
- [DataContract(Name = "PaymentInstrument_bankAccount")]
- public partial class PaymentInstrumentBankAccount : AbstractOpenAPISchema, IEquatable, IValidatableObject
- {
- ///
- /// Initializes a new instance of the class
- /// with the class
- ///
- /// An instance of IbanAccountIdentification.
- public PaymentInstrumentBankAccount(IbanAccountIdentification actualInstance)
- {
- this.IsNullable = false;
- this.SchemaType= "oneOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
- }
-
- ///
- /// Initializes a new instance of the class
- /// with the class
- ///
- /// An instance of UKLocalAccountIdentification.
- public PaymentInstrumentBankAccount(UKLocalAccountIdentification actualInstance)
- {
- this.IsNullable = false;
- this.SchemaType= "oneOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
- }
-
- ///
- /// Initializes a new instance of the class
- /// with the class
- ///
- /// An instance of USLocalAccountIdentification.
- public PaymentInstrumentBankAccount(USLocalAccountIdentification actualInstance)
- {
- this.IsNullable = false;
- this.SchemaType= "oneOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
- }
-
-
- private Object _actualInstance;
-
- ///
- /// Gets or Sets ActualInstance
- ///
- public override Object ActualInstance
- {
- get
- {
- return _actualInstance;
- }
- set
- {
- if (value.GetType() == typeof(IbanAccountIdentification))
- {
- this._actualInstance = value;
- }
- else if (value.GetType() == typeof(UKLocalAccountIdentification))
- {
- this._actualInstance = value;
- }
- else if (value.GetType() == typeof(USLocalAccountIdentification))
- {
- this._actualInstance = value;
- }
- else
- {
- throw new ArgumentException("Invalid instance found. Must be the following types: IbanAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification");
- }
- }
- }
-
- ///
- /// Get the actual instance of `IbanAccountIdentification`. If the actual instance is not `IbanAccountIdentification`,
- /// the InvalidClassException will be thrown
- ///
- /// An instance of IbanAccountIdentification
- public IbanAccountIdentification GetIbanAccountIdentification()
- {
- return (IbanAccountIdentification)this.ActualInstance;
- }
-
- ///
- /// Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not `UKLocalAccountIdentification`,
- /// the InvalidClassException will be thrown
- ///
- /// An instance of UKLocalAccountIdentification
- public UKLocalAccountIdentification GetUKLocalAccountIdentification()
- {
- return (UKLocalAccountIdentification)this.ActualInstance;
- }
-
- ///
- /// Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not `USLocalAccountIdentification`,
- /// the InvalidClassException will be thrown
- ///
- /// An instance of USLocalAccountIdentification
- public USLocalAccountIdentification GetUSLocalAccountIdentification()
- {
- return (USLocalAccountIdentification)this.ActualInstance;
- }
-
- ///
- /// Returns the string presentation of the object
- ///
- /// String presentation of the object
- public override string ToString()
- {
- var sb = new StringBuilder();
- sb.Append("class PaymentInstrumentBankAccount {\n");
- sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
- sb.Append("}\n");
- return sb.ToString();
- }
-
- ///
- /// Returns the JSON string presentation of the object
- ///
- /// JSON string presentation of the object
- public override string ToJson()
- {
- return JsonConvert.SerializeObject(this.ActualInstance, PaymentInstrumentBankAccount.SerializerSettings);
- }
-
- ///
- /// Converts the JSON string into an instance of PaymentInstrumentBankAccount
- ///
- /// JSON string
- /// An instance of PaymentInstrumentBankAccount
- public static PaymentInstrumentBankAccount FromJson(string jsonString)
- {
- PaymentInstrumentBankAccount newPaymentInstrumentBankAccount = null;
-
- if (string.IsNullOrEmpty(jsonString))
- {
- return newPaymentInstrumentBankAccount;
- }
- int match = 0;
- List matchedTypes = new List();
- JToken typeToken = JObject.Parse(jsonString).GetValue("type");
- string type = typeToken?.Value();
- // Throw exception if jsonString does not contain type param
- if (type == null)
- {
- throw new InvalidDataException("JsonString does not contain required enum type for deserialization.");
- }
- try
- {
- // Check if the jsonString type enum matches the IbanAccountIdentification type enums
- if (ContainsValue(type))
- {
- newPaymentInstrumentBankAccount = new PaymentInstrumentBankAccount(JsonConvert.DeserializeObject(jsonString, PaymentInstrumentBankAccount.SerializerSettings));
- matchedTypes.Add("IbanAccountIdentification");
- match++;
- }
- // Check if the jsonString type enum matches the UKLocalAccountIdentification type enums
- if (ContainsValue(type))
- {
- newPaymentInstrumentBankAccount = new PaymentInstrumentBankAccount(JsonConvert.DeserializeObject(jsonString, PaymentInstrumentBankAccount.SerializerSettings));
- matchedTypes.Add("UKLocalAccountIdentification");
- match++;
- }
- // Check if the jsonString type enum matches the USLocalAccountIdentification type enums
- if (ContainsValue(type))
- {
- newPaymentInstrumentBankAccount = new PaymentInstrumentBankAccount(JsonConvert.DeserializeObject(jsonString, PaymentInstrumentBankAccount.SerializerSettings));
- matchedTypes.Add("USLocalAccountIdentification");
- match++;
- }
- }
- catch (Exception ex)
- {
- if (!(ex is JsonSerializationException))
- {
- throw new InvalidDataException(string.Format("Failed to deserialize `{0}` into target: {1}", jsonString, ex.ToString()));
- }
- }
-
- if (match != 1)
- {
- throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined. MatchedTypes are: " + matchedTypes);
- }
-
- // deserialization is considered successful at this point if no exception has been thrown.
- return newPaymentInstrumentBankAccount;
- }
-
- ///
- /// Returns true if objects are equal
- ///
- /// Object to be compared
- /// Boolean
- public override bool Equals(object input)
- {
- return this.Equals(input as PaymentInstrumentBankAccount);
- }
-
- ///
- /// Returns true if PaymentInstrumentBankAccount instances are equal
- ///
- /// Instance of PaymentInstrumentBankAccount to be compared
- /// Boolean
- public bool Equals(PaymentInstrumentBankAccount input)
- {
- if (input == null)
- return false;
-
- return this.ActualInstance.Equals(input.ActualInstance);
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.ActualInstance != null)
- hashCode = hashCode * 59 + this.ActualInstance.GetHashCode();
- return hashCode;
- }
- }
-
- ///
- /// To validate all properties of the instance
- ///
- /// Validation context
- /// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
- {
- yield break;
- }
- }
-
- ///
- /// Custom JSON converter for PaymentInstrumentBankAccount
- ///
- public class PaymentInstrumentBankAccountJsonConverter : JsonConverter
- {
- ///
- /// To write the JSON string
- ///
- /// JSON writer
- /// Object to be converted into a JSON string
- /// JSON Serializer
- public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
- {
- writer.WriteRawValue((string)(typeof(PaymentInstrumentBankAccount).GetMethod("ToJson").Invoke(value, null)));
- }
-
- ///
- /// To convert a JSON string into an object
- ///
- /// JSON reader
- /// Object type
- /// Existing value
- /// JSON Serializer
- /// The object converted from the JSON string
- public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
- {
- if(reader.TokenType != JsonToken.Null)
- {
- return PaymentInstrumentBankAccount.FromJson(JObject.Load(reader).ToString(Formatting.None));
- }
- return null;
- }
-
- ///
- /// Check if the object can be converted
- ///
- /// Object type
- /// True if the object can be converted
- public override bool CanConvert(Type objectType)
- {
- return false;
- }
- }
-
-}
diff --git a/Adyen/Model/BalancePlatform/PaymentInstrumentGroup.cs b/Adyen/Model/BalancePlatform/PaymentInstrumentGroup.cs
index e347c5a92..80eac9749 100644
--- a/Adyen/Model/BalancePlatform/PaymentInstrumentGroup.cs
+++ b/Adyen/Model/BalancePlatform/PaymentInstrumentGroup.cs
@@ -41,10 +41,10 @@ protected PaymentInstrumentGroup() { }
/// Initializes a new instance of the class.
///
/// The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. (required).
- /// Your description for the payment instrument group, maximum 300 characters..
+ /// Your description for the payment instrument group..
/// The unique identifier of the payment instrument group..
/// Properties of the payment instrument group..
- /// Your reference for the payment instrument group, maximum 150 characters..
+ /// Your reference for the payment instrument group..
/// The tx variant of the payment instrument group. (required).
public PaymentInstrumentGroup(string balancePlatform = default(string), string description = default(string), string id = default(string), Dictionary properties = default(Dictionary), string reference = default(string), string txVariant = default(string))
{
@@ -64,9 +64,9 @@ protected PaymentInstrumentGroup() { }
public string BalancePlatform { get; set; }
///
- /// Your description for the payment instrument group, maximum 300 characters.
+ /// Your description for the payment instrument group.
///
- /// Your description for the payment instrument group, maximum 300 characters.
+ /// Your description for the payment instrument group.
[DataMember(Name = "description", EmitDefaultValue = false)]
public string Description { get; set; }
@@ -85,9 +85,9 @@ protected PaymentInstrumentGroup() { }
public Dictionary Properties { get; set; }
///
- /// Your reference for the payment instrument group, maximum 150 characters.
+ /// Your reference for the payment instrument group.
///
- /// Your reference for the payment instrument group, maximum 150 characters.
+ /// Your reference for the payment instrument group.
[DataMember(Name = "reference", EmitDefaultValue = false)]
public string Reference { get; set; }
diff --git a/Adyen/Model/BalancePlatform/PaymentInstrumentGroupInfo.cs b/Adyen/Model/BalancePlatform/PaymentInstrumentGroupInfo.cs
index 9bfb1e5e7..8137dfb05 100644
--- a/Adyen/Model/BalancePlatform/PaymentInstrumentGroupInfo.cs
+++ b/Adyen/Model/BalancePlatform/PaymentInstrumentGroupInfo.cs
@@ -41,9 +41,9 @@ protected PaymentInstrumentGroupInfo() { }
/// Initializes a new instance of the class.
///
/// The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. (required).
- /// Your description for the payment instrument group, maximum 300 characters..
+ /// Your description for the payment instrument group..
/// Properties of the payment instrument group..
- /// Your reference for the payment instrument group, maximum 150 characters..
+ /// Your reference for the payment instrument group..
/// The tx variant of the payment instrument group. (required).
public PaymentInstrumentGroupInfo(string balancePlatform = default(string), string description = default(string), Dictionary properties = default(Dictionary), string reference = default(string), string txVariant = default(string))
{
@@ -62,9 +62,9 @@ protected PaymentInstrumentGroupInfo() { }
public string BalancePlatform { get; set; }
///
- /// Your description for the payment instrument group, maximum 300 characters.
+ /// Your description for the payment instrument group.
///
- /// Your description for the payment instrument group, maximum 300 characters.
+ /// Your description for the payment instrument group.
[DataMember(Name = "description", EmitDefaultValue = false)]
public string Description { get; set; }
@@ -76,9 +76,9 @@ protected PaymentInstrumentGroupInfo() { }
public Dictionary Properties { get; set; }
///
- /// Your reference for the payment instrument group, maximum 150 characters.
+ /// Your reference for the payment instrument group.
///
- /// Your reference for the payment instrument group, maximum 150 characters.
+ /// Your reference for the payment instrument group.
[DataMember(Name = "reference", EmitDefaultValue = false)]
public string Reference { get; set; }
diff --git a/Adyen/Model/BalancePlatform/PlatformPaymentConfiguration.cs b/Adyen/Model/BalancePlatform/PlatformPaymentConfiguration.cs
index 3d85d3df8..a54ab958e 100644
--- a/Adyen/Model/BalancePlatform/PlatformPaymentConfiguration.cs
+++ b/Adyen/Model/BalancePlatform/PlatformPaymentConfiguration.cs
@@ -35,8 +35,8 @@ public partial class PlatformPaymentConfiguration : IEquatable
/// Initializes a new instance of the class.
///
- /// Specifies at what time a [sales day](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/sales-day-settlement#sales-day) ends. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**..
- /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/sales-day-settlement#settlement-batch) are made available. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables [Sales day settlement](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables [Pass-through settlement](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/pass-through-settlement). Default value: **null**..
+ /// Specifies at what time a [sales day](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#sales-day) ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**..
+ /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**..
public PlatformPaymentConfiguration(string salesDayClosingTime = default(string), int? settlementDelayDays = default(int?))
{
this.SalesDayClosingTime = salesDayClosingTime;
@@ -44,16 +44,16 @@ public partial class PlatformPaymentConfiguration : IEquatable
- /// Specifies at what time a [sales day](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/sales-day-settlement#sales-day) ends. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**.
+ /// Specifies at what time a [sales day](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#sales-day) ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**.
///
- /// Specifies at what time a [sales day](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/sales-day-settlement#sales-day) ends. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**.
+ /// Specifies at what time a [sales day](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#sales-day) ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**.
[DataMember(Name = "salesDayClosingTime", EmitDefaultValue = false)]
public string SalesDayClosingTime { get; set; }
///
- /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/sales-day-settlement#settlement-batch) are made available. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables [Sales day settlement](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables [Pass-through settlement](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/pass-through-settlement). Default value: **null**.
+ /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**.
///
- /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/sales-day-settlement#settlement-batch) are made available. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables [Sales day settlement](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables [Pass-through settlement](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/pass-through-settlement). Default value: **null**.
+ /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**.
[DataMember(Name = "settlementDelayDays", EmitDefaultValue = false)]
public int? SettlementDelayDays { get; set; }
diff --git a/Adyen/Model/BalancePlatform/RegisterSCAFinalResponse.cs b/Adyen/Model/BalancePlatform/RegisterSCAFinalResponse.cs
new file mode 100644
index 000000000..c4e3984e3
--- /dev/null
+++ b/Adyen/Model/BalancePlatform/RegisterSCAFinalResponse.cs
@@ -0,0 +1,125 @@
+/*
+* Configuration API
+*
+*
+* The version of the OpenAPI document: 2
+*
+* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+* https://openapi-generator.tech
+* Do not edit the class manually.
+*/
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
+
+namespace Adyen.Model.BalancePlatform
+{
+ ///
+ /// RegisterSCAFinalResponse
+ ///
+ [DataContract(Name = "RegisterSCAFinalResponse")]
+ public partial class RegisterSCAFinalResponse : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Specifies if the registration was initiated successfully..
+ public RegisterSCAFinalResponse(bool? success = default(bool?))
+ {
+ this.Success = success;
+ }
+
+ ///
+ /// Specifies if the registration was initiated successfully.
+ ///
+ /// Specifies if the registration was initiated successfully.
+ [DataMember(Name = "success", EmitDefaultValue = false)]
+ public bool? Success { 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 RegisterSCAFinalResponse {\n");
+ sb.Append(" Success: ").Append(Success).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 RegisterSCAFinalResponse);
+ }
+
+ ///
+ /// Returns true if RegisterSCAFinalResponse instances are equal
+ ///
+ /// Instance of RegisterSCAFinalResponse to be compared
+ /// Boolean
+ public bool Equals(RegisterSCAFinalResponse input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Success == input.Success ||
+ this.Success.Equals(input.Success)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.Success.GetHashCode();
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ public IEnumerable Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/BalancePlatform/RegisterSCARequest.cs b/Adyen/Model/BalancePlatform/RegisterSCARequest.cs
new file mode 100644
index 000000000..d78c915c5
--- /dev/null
+++ b/Adyen/Model/BalancePlatform/RegisterSCARequest.cs
@@ -0,0 +1,152 @@
+/*
+* Configuration API
+*
+*
+* The version of the OpenAPI document: 2
+*
+* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+* https://openapi-generator.tech
+* Do not edit the class manually.
+*/
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
+
+namespace Adyen.Model.BalancePlatform
+{
+ ///
+ /// RegisterSCARequest
+ ///
+ [DataContract(Name = "RegisterSCARequest")]
+ public partial class RegisterSCARequest : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected RegisterSCARequest() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The unique identifier of the payment instrument for which you are registering the SCA device. (required).
+ /// strongCustomerAuthentication (required).
+ public RegisterSCARequest(string paymentInstrumentId = default(string), DelegatedAuthenticationData strongCustomerAuthentication = default(DelegatedAuthenticationData))
+ {
+ this.PaymentInstrumentId = paymentInstrumentId;
+ this.StrongCustomerAuthentication = strongCustomerAuthentication;
+ }
+
+ ///
+ /// The unique identifier of the payment instrument for which you are registering the SCA device.
+ ///
+ /// The unique identifier of the payment instrument for which you are registering the SCA device.
+ [DataMember(Name = "paymentInstrumentId", IsRequired = false, EmitDefaultValue = false)]
+ public string PaymentInstrumentId { get; set; }
+
+ ///
+ /// Gets or Sets StrongCustomerAuthentication
+ ///
+ [DataMember(Name = "strongCustomerAuthentication", IsRequired = false, EmitDefaultValue = false)]
+ public DelegatedAuthenticationData StrongCustomerAuthentication { 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 RegisterSCARequest {\n");
+ sb.Append(" PaymentInstrumentId: ").Append(PaymentInstrumentId).Append("\n");
+ sb.Append(" StrongCustomerAuthentication: ").Append(StrongCustomerAuthentication).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 RegisterSCARequest);
+ }
+
+ ///
+ /// Returns true if RegisterSCARequest instances are equal
+ ///
+ /// Instance of RegisterSCARequest to be compared
+ /// Boolean
+ public bool Equals(RegisterSCARequest input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.PaymentInstrumentId == input.PaymentInstrumentId ||
+ (this.PaymentInstrumentId != null &&
+ this.PaymentInstrumentId.Equals(input.PaymentInstrumentId))
+ ) &&
+ (
+ this.StrongCustomerAuthentication == input.StrongCustomerAuthentication ||
+ (this.StrongCustomerAuthentication != null &&
+ this.StrongCustomerAuthentication.Equals(input.StrongCustomerAuthentication))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.PaymentInstrumentId != null)
+ {
+ hashCode = (hashCode * 59) + this.PaymentInstrumentId.GetHashCode();
+ }
+ if (this.StrongCustomerAuthentication != null)
+ {
+ hashCode = (hashCode * 59) + this.StrongCustomerAuthentication.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ public IEnumerable Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/BalancePlatform/RegisterSCAResponse.cs b/Adyen/Model/BalancePlatform/RegisterSCAResponse.cs
new file mode 100644
index 000000000..a639d57fd
--- /dev/null
+++ b/Adyen/Model/BalancePlatform/RegisterSCAResponse.cs
@@ -0,0 +1,188 @@
+/*
+* Configuration API
+*
+*
+* The version of the OpenAPI document: 2
+*
+* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+* https://openapi-generator.tech
+* Do not edit the class manually.
+*/
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
+
+namespace Adyen.Model.BalancePlatform
+{
+ ///
+ /// RegisterSCAResponse
+ ///
+ [DataContract(Name = "RegisterSCAResponse")]
+ public partial class RegisterSCAResponse : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The unique identifier of the SCA device you are registering..
+ /// The unique identifier of the payment instrument for which you are registering the SCA device..
+ /// A string that you must pass to the authentication SDK to continue with the registration process..
+ /// Specifies if the registration was initiated successfully..
+ public RegisterSCAResponse(string id = default(string), string paymentInstrumentId = default(string), string sdkInput = default(string), bool? success = default(bool?))
+ {
+ this.Id = id;
+ this.PaymentInstrumentId = paymentInstrumentId;
+ this.SdkInput = sdkInput;
+ this.Success = success;
+ }
+
+ ///
+ /// The unique identifier of the SCA device you are registering.
+ ///
+ /// The unique identifier of the SCA device you are registering.
+ [DataMember(Name = "id", EmitDefaultValue = false)]
+ public string Id { get; set; }
+
+ ///
+ /// The unique identifier of the payment instrument for which you are registering the SCA device.
+ ///
+ /// The unique identifier of the payment instrument for which you are registering the SCA device.
+ [DataMember(Name = "paymentInstrumentId", EmitDefaultValue = false)]
+ public string PaymentInstrumentId { get; set; }
+
+ ///
+ /// A string that you must pass to the authentication SDK to continue with the registration process.
+ ///
+ /// A string that you must pass to the authentication SDK to continue with the registration process.
+ [DataMember(Name = "sdkInput", EmitDefaultValue = false)]
+ public string SdkInput { get; set; }
+
+ ///
+ /// Specifies if the registration was initiated successfully.
+ ///
+ /// Specifies if the registration was initiated successfully.
+ [DataMember(Name = "success", EmitDefaultValue = false)]
+ public bool? Success { 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 RegisterSCAResponse {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" PaymentInstrumentId: ").Append(PaymentInstrumentId).Append("\n");
+ sb.Append(" SdkInput: ").Append(SdkInput).Append("\n");
+ sb.Append(" Success: ").Append(Success).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 RegisterSCAResponse);
+ }
+
+ ///
+ /// Returns true if RegisterSCAResponse instances are equal
+ ///
+ /// Instance of RegisterSCAResponse to be compared
+ /// Boolean
+ public bool Equals(RegisterSCAResponse input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Id == input.Id ||
+ (this.Id != null &&
+ this.Id.Equals(input.Id))
+ ) &&
+ (
+ this.PaymentInstrumentId == input.PaymentInstrumentId ||
+ (this.PaymentInstrumentId != null &&
+ this.PaymentInstrumentId.Equals(input.PaymentInstrumentId))
+ ) &&
+ (
+ this.SdkInput == input.SdkInput ||
+ (this.SdkInput != null &&
+ this.SdkInput.Equals(input.SdkInput))
+ ) &&
+ (
+ this.Success == input.Success ||
+ this.Success.Equals(input.Success)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.Id != null)
+ {
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ }
+ if (this.PaymentInstrumentId != null)
+ {
+ hashCode = (hashCode * 59) + this.PaymentInstrumentId.GetHashCode();
+ }
+ if (this.SdkInput != null)
+ {
+ hashCode = (hashCode * 59) + this.SdkInput.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.Success.GetHashCode();
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ public IEnumerable Validate(ValidationContext validationContext)
+ {
+ // SdkInput (string) maxLength
+ if (this.SdkInput != null && this.SdkInput.Length > 20000)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SdkInput, length must be less than 20000.", new [] { "SdkInput" });
+ }
+
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/BalancePlatform/RiskScores.cs b/Adyen/Model/BalancePlatform/RiskScores.cs
new file mode 100644
index 000000000..99296bf38
--- /dev/null
+++ b/Adyen/Model/BalancePlatform/RiskScores.cs
@@ -0,0 +1,140 @@
+/*
+* Configuration API
+*
+*
+* The version of the OpenAPI document: 2
+*
+* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+* https://openapi-generator.tech
+* Do not edit the class manually.
+*/
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
+
+namespace Adyen.Model.BalancePlatform
+{
+ ///
+ /// RiskScores
+ ///
+ [DataContract(Name = "RiskScores")]
+ public partial class RiskScores : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk)..
+ /// Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk)..
+ public RiskScores(int? mastercard = default(int?), int? visa = default(int?))
+ {
+ this.Mastercard = mastercard;
+ this.Visa = visa;
+ }
+
+ ///
+ /// Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk).
+ ///
+ /// Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk).
+ [DataMember(Name = "mastercard", EmitDefaultValue = false)]
+ public int? Mastercard { get; set; }
+
+ ///
+ /// Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk).
+ ///
+ /// Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk).
+ [DataMember(Name = "visa", EmitDefaultValue = false)]
+ public int? Visa { 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 RiskScores {\n");
+ sb.Append(" Mastercard: ").Append(Mastercard).Append("\n");
+ sb.Append(" Visa: ").Append(Visa).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 RiskScores);
+ }
+
+ ///
+ /// Returns true if RiskScores instances are equal
+ ///
+ /// Instance of RiskScores to be compared
+ /// Boolean
+ public bool Equals(RiskScores input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Mastercard == input.Mastercard ||
+ this.Mastercard.Equals(input.Mastercard)
+ ) &&
+ (
+ this.Visa == input.Visa ||
+ this.Visa.Equals(input.Visa)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.Mastercard.GetHashCode();
+ hashCode = (hashCode * 59) + this.Visa.GetHashCode();
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ public IEnumerable Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/BalancePlatform/RiskScoresRestriction.cs b/Adyen/Model/BalancePlatform/RiskScoresRestriction.cs
new file mode 100644
index 000000000..3aaefc8b4
--- /dev/null
+++ b/Adyen/Model/BalancePlatform/RiskScoresRestriction.cs
@@ -0,0 +1,152 @@
+/*
+* Configuration API
+*
+*
+* The version of the OpenAPI document: 2
+*
+* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+* https://openapi-generator.tech
+* Do not edit the class manually.
+*/
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
+
+namespace Adyen.Model.BalancePlatform
+{
+ ///
+ /// RiskScoresRestriction
+ ///
+ [DataContract(Name = "RiskScoresRestriction")]
+ public partial class RiskScoresRestriction : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected RiskScoresRestriction() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Defines how the condition must be evaluated. (required).
+ /// value.
+ public RiskScoresRestriction(string operation = default(string), RiskScores value = default(RiskScores))
+ {
+ this.Operation = operation;
+ this.Value = value;
+ }
+
+ ///
+ /// Defines how the condition must be evaluated.
+ ///
+ /// Defines how the condition must be evaluated.
+ [DataMember(Name = "operation", IsRequired = false, EmitDefaultValue = false)]
+ public string Operation { get; set; }
+
+ ///
+ /// Gets or Sets Value
+ ///
+ [DataMember(Name = "value", EmitDefaultValue = false)]
+ public RiskScores Value { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class RiskScoresRestriction {\n");
+ sb.Append(" Operation: ").Append(Operation).Append("\n");
+ sb.Append(" Value: ").Append(Value).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as RiskScoresRestriction);
+ }
+
+ ///
+ /// Returns true if RiskScoresRestriction instances are equal
+ ///
+ /// Instance of RiskScoresRestriction to be compared
+ /// Boolean
+ public bool Equals(RiskScoresRestriction input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Operation == input.Operation ||
+ (this.Operation != null &&
+ this.Operation.Equals(input.Operation))
+ ) &&
+ (
+ this.Value == input.Value ||
+ (this.Value != null &&
+ this.Value.Equals(input.Value))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.Operation != null)
+ {
+ hashCode = (hashCode * 59) + this.Operation.GetHashCode();
+ }
+ if (this.Value != null)
+ {
+ hashCode = (hashCode * 59) + this.Value.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ public IEnumerable Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/BalancePlatform/SELocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/SELocalAccountIdentification.cs
index 4ac0febe7..711040b83 100644
--- a/Adyen/Model/BalancePlatform/SELocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/SELocalAccountIdentification.cs
@@ -64,15 +64,12 @@ protected SELocalAccountIdentification() { }
///
/// The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. (required).
/// The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. (required).
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**. (default to "physical").
/// **seLocal** (required) (default to TypeEnum.SeLocal).
- public SELocalAccountIdentification(string accountNumber = default(string), string clearingNumber = default(string), string formFactor = "physical", TypeEnum type = TypeEnum.SeLocal)
+ public SELocalAccountIdentification(string accountNumber = default(string), string clearingNumber = default(string), TypeEnum type = TypeEnum.SeLocal)
{
this.AccountNumber = accountNumber;
this.ClearingNumber = clearingNumber;
this.Type = type;
- // use default value if no "formFactor" provided
- this.FormFactor = formFactor ?? "physical";
}
///
@@ -89,13 +86,6 @@ protected SELocalAccountIdentification() { }
[DataMember(Name = "clearingNumber", IsRequired = false, EmitDefaultValue = false)]
public string ClearingNumber { get; set; }
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- [DataMember(Name = "formFactor", EmitDefaultValue = false)]
- public string FormFactor { get; set; }
-
///
/// Returns the string presentation of the object
///
@@ -106,7 +96,6 @@ public override string ToString()
sb.Append("class SELocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" ClearingNumber: ").Append(ClearingNumber).Append("\n");
- sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -153,11 +142,6 @@ public bool Equals(SELocalAccountIdentification input)
(this.ClearingNumber != null &&
this.ClearingNumber.Equals(input.ClearingNumber))
) &&
- (
- this.FormFactor == input.FormFactor ||
- (this.FormFactor != null &&
- this.FormFactor.Equals(input.FormFactor))
- ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -181,10 +165,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.ClearingNumber.GetHashCode();
}
- if (this.FormFactor != null)
- {
- hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
- }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/SGLocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/SGLocalAccountIdentification.cs
index 86b96c622..0d8d793c1 100644
--- a/Adyen/Model/BalancePlatform/SGLocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/SGLocalAccountIdentification.cs
@@ -64,14 +64,11 @@ protected SGLocalAccountIdentification() { }
///
/// The 4- to 19-digit bank account number, without separators or whitespace. (required).
/// The bank's 8- or 11-character BIC or SWIFT code. (required).
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**. (default to "physical").
/// **sgLocal** (default to TypeEnum.SgLocal).
- public SGLocalAccountIdentification(string accountNumber = default(string), string bic = default(string), string formFactor = "physical", TypeEnum? type = TypeEnum.SgLocal)
+ public SGLocalAccountIdentification(string accountNumber = default(string), string bic = default(string), TypeEnum? type = TypeEnum.SgLocal)
{
this.AccountNumber = accountNumber;
this.Bic = bic;
- // use default value if no "formFactor" provided
- this.FormFactor = formFactor ?? "physical";
this.Type = type;
}
@@ -89,13 +86,6 @@ protected SGLocalAccountIdentification() { }
[DataMember(Name = "bic", IsRequired = false, EmitDefaultValue = false)]
public string Bic { get; set; }
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- [DataMember(Name = "formFactor", EmitDefaultValue = false)]
- public string FormFactor { get; set; }
-
///
/// Returns the string presentation of the object
///
@@ -106,7 +96,6 @@ public override string ToString()
sb.Append("class SGLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" Bic: ").Append(Bic).Append("\n");
- sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -153,11 +142,6 @@ public bool Equals(SGLocalAccountIdentification input)
(this.Bic != null &&
this.Bic.Equals(input.Bic))
) &&
- (
- this.FormFactor == input.FormFactor ||
- (this.FormFactor != null &&
- this.FormFactor.Equals(input.FormFactor))
- ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -181,10 +165,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Bic.GetHashCode();
}
- if (this.FormFactor != null)
- {
- hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
- }
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/BalancePlatform/SearchRegisteredDevicesResponse.cs b/Adyen/Model/BalancePlatform/SearchRegisteredDevicesResponse.cs
new file mode 100644
index 000000000..ad21cc444
--- /dev/null
+++ b/Adyen/Model/BalancePlatform/SearchRegisteredDevicesResponse.cs
@@ -0,0 +1,178 @@
+/*
+* Configuration API
+*
+*
+* The version of the OpenAPI document: 2
+*
+* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+* https://openapi-generator.tech
+* Do not edit the class manually.
+*/
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
+
+namespace Adyen.Model.BalancePlatform
+{
+ ///
+ /// SearchRegisteredDevicesResponse
+ ///
+ [DataContract(Name = "SearchRegisteredDevicesResponse")]
+ public partial class SearchRegisteredDevicesResponse : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Contains a list of registered SCA devices and their corresponding details..
+ /// The total amount of registered SCA devices that match the query parameters..
+ /// link.
+ /// The total amount of list pages..
+ public SearchRegisteredDevicesResponse(List data = default(List), int? itemsTotal = default(int?), Link link = default(Link), int? pagesTotal = default(int?))
+ {
+ this.Data = data;
+ this.ItemsTotal = itemsTotal;
+ this.Link = link;
+ this.PagesTotal = pagesTotal;
+ }
+
+ ///
+ /// Contains a list of registered SCA devices and their corresponding details.
+ ///
+ /// Contains a list of registered SCA devices and their corresponding details.
+ [DataMember(Name = "data", EmitDefaultValue = false)]
+ public List Data { get; set; }
+
+ ///
+ /// The total amount of registered SCA devices that match the query parameters.
+ ///
+ /// The total amount of registered SCA devices that match the query parameters.
+ [DataMember(Name = "itemsTotal", EmitDefaultValue = false)]
+ public int? ItemsTotal { get; set; }
+
+ ///
+ /// Gets or Sets Link
+ ///
+ [DataMember(Name = "link", EmitDefaultValue = false)]
+ public Link Link { get; set; }
+
+ ///
+ /// The total amount of list pages.
+ ///
+ /// The total amount of list pages.
+ [DataMember(Name = "pagesTotal", EmitDefaultValue = false)]
+ public int? PagesTotal { 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 SearchRegisteredDevicesResponse {\n");
+ sb.Append(" Data: ").Append(Data).Append("\n");
+ sb.Append(" ItemsTotal: ").Append(ItemsTotal).Append("\n");
+ sb.Append(" Link: ").Append(Link).Append("\n");
+ sb.Append(" PagesTotal: ").Append(PagesTotal).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 SearchRegisteredDevicesResponse);
+ }
+
+ ///
+ /// Returns true if SearchRegisteredDevicesResponse instances are equal
+ ///
+ /// Instance of SearchRegisteredDevicesResponse to be compared
+ /// Boolean
+ public bool Equals(SearchRegisteredDevicesResponse input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Data == input.Data ||
+ this.Data != null &&
+ input.Data != null &&
+ this.Data.SequenceEqual(input.Data)
+ ) &&
+ (
+ this.ItemsTotal == input.ItemsTotal ||
+ this.ItemsTotal.Equals(input.ItemsTotal)
+ ) &&
+ (
+ this.Link == input.Link ||
+ (this.Link != null &&
+ this.Link.Equals(input.Link))
+ ) &&
+ (
+ this.PagesTotal == input.PagesTotal ||
+ this.PagesTotal.Equals(input.PagesTotal)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.Data != null)
+ {
+ hashCode = (hashCode * 59) + this.Data.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.ItemsTotal.GetHashCode();
+ if (this.Link != null)
+ {
+ hashCode = (hashCode * 59) + this.Link.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.PagesTotal.GetHashCode();
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ public IEnumerable Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/BalancePlatform/SweepConfigurationV2.cs b/Adyen/Model/BalancePlatform/SweepConfigurationV2.cs
index 5e1dc2645..fd52f0f57 100644
--- a/Adyen/Model/BalancePlatform/SweepConfigurationV2.cs
+++ b/Adyen/Model/BalancePlatform/SweepConfigurationV2.cs
@@ -113,9 +113,9 @@ public enum PrioritiesEnum
///
- /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority listed first, and if that's not possible, it moves on to the next option in the order of provided priorities. 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). Set `category` to **bank**. For more details, see [optional priorities setup](https://docs.adyen.com/marketplaces-and-platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
+ /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: For normal, low-value transactions. * **fast**: 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). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
///
- /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority listed first, and if that's not possible, it moves on to the next option in the order of provided priorities. 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). Set `category` to **bank**. For more details, see [optional priorities setup](https://docs.adyen.com/marketplaces-and-platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
+ /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: For normal, low-value transactions. * **fast**: 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). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
[DataMember(Name = "priorities", EmitDefaultValue = false)]
public List Priorities { get; set; }
///
@@ -197,29 +197,35 @@ public enum ReasonEnum
[EnumMember(Value = "notEnoughBalance")]
NotEnoughBalance = 12,
+ ///
+ /// Enum PendingApproval for value: pendingApproval
+ ///
+ [EnumMember(Value = "pendingApproval")]
+ PendingApproval = 13,
+
///
/// Enum RefusedByCounterpartyBank for value: refusedByCounterpartyBank
///
[EnumMember(Value = "refusedByCounterpartyBank")]
- RefusedByCounterpartyBank = 13,
+ RefusedByCounterpartyBank = 14,
///
/// Enum RouteNotFound for value: routeNotFound
///
[EnumMember(Value = "routeNotFound")]
- RouteNotFound = 14,
+ RouteNotFound = 15,
///
/// Enum ScaFailed for value: scaFailed
///
[EnumMember(Value = "scaFailed")]
- ScaFailed = 15,
+ ScaFailed = 16,
///
/// Enum Unknown for value: unknown
///
[EnumMember(Value = "unknown")]
- Unknown = 16
+ Unknown = 17
}
@@ -307,14 +313,16 @@ protected SweepConfigurationV2() { }
/// counterparty (required).
/// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). (required).
/// The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters..
- /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority listed first, and if that's not possible, it moves on to the next option in the order of provided priorities. 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). Set `category` to **bank**. For more details, see [optional priorities setup](https://docs.adyen.com/marketplaces-and-platforms/payout-to-users/scheduled-payouts#optional-priorities-setup)..
+ /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: For normal, low-value transactions. * **fast**: 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). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup)..
+ /// Your reference for the sweep configuration..
+ /// The reference sent to or received from the counterparty. Only alphanumeric characters are allowed..
/// schedule (required).
/// The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. .
/// sweepAmount.
/// targetAmount.
/// triggerAmount.
/// The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. (default to TypeEnum.Push).
- public SweepConfigurationV2(CategoryEnum? category = default(CategoryEnum?), SweepCounterparty counterparty = default(SweepCounterparty), string currency = default(string), string description = default(string), List priorities = default(List), SweepSchedule schedule = default(SweepSchedule), StatusEnum? status = default(StatusEnum?), Amount sweepAmount = default(Amount), Amount targetAmount = default(Amount), Amount triggerAmount = default(Amount), TypeEnum? type = TypeEnum.Push)
+ public SweepConfigurationV2(CategoryEnum? category = default(CategoryEnum?), SweepCounterparty counterparty = default(SweepCounterparty), string currency = default(string), string description = default(string), List priorities = default(List), string reference = default(string), string referenceForBeneficiary = default(string), SweepSchedule schedule = default(SweepSchedule), StatusEnum? status = default(StatusEnum?), Amount sweepAmount = default(Amount), Amount targetAmount = default(Amount), Amount triggerAmount = default(Amount), TypeEnum? type = TypeEnum.Push)
{
this.Counterparty = counterparty;
this.Currency = currency;
@@ -322,6 +330,8 @@ protected SweepConfigurationV2() { }
this.Category = category;
this.Description = description;
this.Priorities = priorities;
+ this.Reference = reference;
+ this.ReferenceForBeneficiary = referenceForBeneficiary;
this.Status = status;
this.SweepAmount = sweepAmount;
this.TargetAmount = targetAmount;
@@ -356,6 +366,20 @@ protected SweepConfigurationV2() { }
[DataMember(Name = "id", IsRequired = false, EmitDefaultValue = false)]
public string Id { get; private set; }
+ ///
+ /// Your reference for the sweep configuration.
+ ///
+ /// Your reference for the sweep configuration.
+ [DataMember(Name = "reference", EmitDefaultValue = false)]
+ public string Reference { get; set; }
+
+ ///
+ /// The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.
+ ///
+ /// The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.
+ [DataMember(Name = "referenceForBeneficiary", EmitDefaultValue = false)]
+ public string ReferenceForBeneficiary { get; set; }
+
///
/// Gets or Sets Schedule
///
@@ -395,6 +419,8 @@ public override string ToString()
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Priorities: ").Append(Priorities).Append("\n");
sb.Append(" Reason: ").Append(Reason).Append("\n");
+ sb.Append(" Reference: ").Append(Reference).Append("\n");
+ sb.Append(" ReferenceForBeneficiary: ").Append(ReferenceForBeneficiary).Append("\n");
sb.Append(" Schedule: ").Append(Schedule).Append("\n");
sb.Append(" Status: ").Append(Status).Append("\n");
sb.Append(" SweepAmount: ").Append(SweepAmount).Append("\n");
@@ -468,6 +494,16 @@ public bool Equals(SweepConfigurationV2 input)
this.Reason == input.Reason ||
this.Reason.Equals(input.Reason)
) &&
+ (
+ this.Reference == input.Reference ||
+ (this.Reference != null &&
+ this.Reference.Equals(input.Reference))
+ ) &&
+ (
+ this.ReferenceForBeneficiary == input.ReferenceForBeneficiary ||
+ (this.ReferenceForBeneficiary != null &&
+ this.ReferenceForBeneficiary.Equals(input.ReferenceForBeneficiary))
+ ) &&
(
this.Schedule == input.Schedule ||
(this.Schedule != null &&
@@ -526,6 +562,14 @@ public override int GetHashCode()
}
hashCode = (hashCode * 59) + this.Priorities.GetHashCode();
hashCode = (hashCode * 59) + this.Reason.GetHashCode();
+ if (this.Reference != null)
+ {
+ hashCode = (hashCode * 59) + this.Reference.GetHashCode();
+ }
+ if (this.ReferenceForBeneficiary != null)
+ {
+ hashCode = (hashCode * 59) + this.ReferenceForBeneficiary.GetHashCode();
+ }
if (this.Schedule != null)
{
hashCode = (hashCode * 59) + this.Schedule.GetHashCode();
@@ -554,6 +598,18 @@ public override int GetHashCode()
/// Validation Result
public IEnumerable Validate(ValidationContext validationContext)
{
+ // Reference (string) maxLength
+ if (this.Reference != null && this.Reference.Length > 80)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Reference, length must be less than 80.", new [] { "Reference" });
+ }
+
+ // ReferenceForBeneficiary (string) maxLength
+ if (this.ReferenceForBeneficiary != null && this.ReferenceForBeneficiary.Length > 80)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReferenceForBeneficiary, length must be less than 80.", new [] { "ReferenceForBeneficiary" });
+ }
+
yield break;
}
}
diff --git a/Adyen/Model/BalancePlatform/SweepCounterparty.cs b/Adyen/Model/BalancePlatform/SweepCounterparty.cs
index 3a2ef2587..654a81287 100644
--- a/Adyen/Model/BalancePlatform/SweepCounterparty.cs
+++ b/Adyen/Model/BalancePlatform/SweepCounterparty.cs
@@ -37,7 +37,7 @@ public partial class SweepCounterparty : IEquatable, IValidat
///
/// The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). You can only use this for periodic sweep schedules such as `schedule.type` **daily** or **monthly**..
/// The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and `schedule.type` **balance**, and if you are processing payments with Adyen..
- /// The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To [set up automated top-up sweeps to balance accounts](https://docs.adyen.com/marketplaces-and-platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature..
+ /// The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type`. To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature..
public SweepCounterparty(string balanceAccountId = default(string), string merchantAccount = default(string), string transferInstrumentId = default(string))
{
this.BalanceAccountId = balanceAccountId;
@@ -60,9 +60,9 @@ public partial class SweepCounterparty : IEquatable, IValidat
public string MerchantAccount { get; set; }
///
- /// The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To [set up automated top-up sweeps to balance accounts](https://docs.adyen.com/marketplaces-and-platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.
+ /// The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type`. To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.
///
- /// The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To [set up automated top-up sweeps to balance accounts](https://docs.adyen.com/marketplaces-and-platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.
+ /// The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type`. To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.
[DataMember(Name = "transferInstrumentId", EmitDefaultValue = false)]
public string TransferInstrumentId { get; set; }
diff --git a/Adyen/Model/BalancePlatform/TransactionRule.cs b/Adyen/Model/BalancePlatform/TransactionRule.cs
index 9f0d096b7..23c7df5b5 100644
--- a/Adyen/Model/BalancePlatform/TransactionRule.cs
+++ b/Adyen/Model/BalancePlatform/TransactionRule.cs
@@ -55,7 +55,13 @@ public enum OutcomeTypeEnum
/// Enum ScoreBased for value: scoreBased
///
[EnumMember(Value = "scoreBased")]
- ScoreBased = 3
+ ScoreBased = 3,
+
+ ///
+ /// Enum TimedBlock for value: timedBlock
+ ///
+ [EnumMember(Value = "timedBlock")]
+ TimedBlock = 4
}
@@ -183,13 +189,13 @@ protected TransactionRule() { }
/// Initializes a new instance of the class.
///
/// The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**..
- /// Your description for the transaction rule, maximum 300 characters. (required).
+ /// Your description for the transaction rule. (required).
/// The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**..
/// entityKey (required).
/// The unique identifier of the transaction rule..
/// interval (required).
/// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. If not provided, by default, this is set to **hardBlock**. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined..
- /// Your reference for the transaction rule, maximum 150 characters. (required).
+ /// Your reference for the transaction rule. (required).
/// Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**..
/// ruleRestrictions (required).
/// A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**..
@@ -222,9 +228,9 @@ protected TransactionRule() { }
public string AggregationLevel { get; set; }
///
- /// Your description for the transaction rule, maximum 300 characters.
+ /// Your description for the transaction rule.
///
- /// Your description for the transaction rule, maximum 300 characters.
+ /// Your description for the transaction rule.
[DataMember(Name = "description", IsRequired = false, EmitDefaultValue = false)]
public string Description { get; set; }
@@ -255,9 +261,9 @@ protected TransactionRule() { }
public TransactionRuleInterval Interval { get; set; }
///
- /// Your reference for the transaction rule, maximum 150 characters.
+ /// Your reference for the transaction rule.
///
- /// Your reference for the transaction rule, maximum 150 characters.
+ /// Your reference for the transaction rule.
[DataMember(Name = "reference", IsRequired = false, EmitDefaultValue = false)]
public string Reference { get; set; }
diff --git a/Adyen/Model/BalancePlatform/TransactionRuleInfo.cs b/Adyen/Model/BalancePlatform/TransactionRuleInfo.cs
index 654f581f7..cee0a1cea 100644
--- a/Adyen/Model/BalancePlatform/TransactionRuleInfo.cs
+++ b/Adyen/Model/BalancePlatform/TransactionRuleInfo.cs
@@ -55,7 +55,13 @@ public enum OutcomeTypeEnum
/// Enum ScoreBased for value: scoreBased
///
[EnumMember(Value = "scoreBased")]
- ScoreBased = 3
+ ScoreBased = 3,
+
+ ///
+ /// Enum TimedBlock for value: timedBlock
+ ///
+ [EnumMember(Value = "timedBlock")]
+ TimedBlock = 4
}
@@ -183,12 +189,12 @@ protected TransactionRuleInfo() { }
/// Initializes a new instance of the class.
///
/// The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**..
- /// Your description for the transaction rule, maximum 300 characters. (required).
+ /// Your description for the transaction rule. (required).
/// The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**..
/// entityKey (required).
/// interval (required).
/// The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. If not provided, by default, this is set to **hardBlock**. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined..
- /// Your reference for the transaction rule, maximum 150 characters. (required).
+ /// Your reference for the transaction rule. (required).
/// Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. Possible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**..
/// ruleRestrictions (required).
/// A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**..
@@ -220,9 +226,9 @@ protected TransactionRuleInfo() { }
public string AggregationLevel { get; set; }
///
- /// Your description for the transaction rule, maximum 300 characters.
+ /// Your description for the transaction rule.
///
- /// Your description for the transaction rule, maximum 300 characters.
+ /// Your description for the transaction rule.
[DataMember(Name = "description", IsRequired = false, EmitDefaultValue = false)]
public string Description { get; set; }
@@ -246,9 +252,9 @@ protected TransactionRuleInfo() { }
public TransactionRuleInterval Interval { get; set; }
///
- /// Your reference for the transaction rule, maximum 150 characters.
+ /// Your reference for the transaction rule.
///
- /// Your reference for the transaction rule, maximum 150 characters.
+ /// Your reference for the transaction rule.
[DataMember(Name = "reference", IsRequired = false, EmitDefaultValue = false)]
public string Reference { get; set; }
diff --git a/Adyen/Model/BalancePlatform/TransactionRuleInterval.cs b/Adyen/Model/BalancePlatform/TransactionRuleInterval.cs
index 8757364ee..1df142f77 100644
--- a/Adyen/Model/BalancePlatform/TransactionRuleInterval.cs
+++ b/Adyen/Model/BalancePlatform/TransactionRuleInterval.cs
@@ -91,9 +91,9 @@ public enum DayOfWeekEnum
[DataMember(Name = "dayOfWeek", EmitDefaultValue = false)]
public DayOfWeekEnum? DayOfWeek { get; set; }
///
- /// The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 UTC. * **weekly**: the counters are reset every Monday at 00:00:00 UTC. * **monthly**: the counters reset every first day of the month at 00:00:00 UTC. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 UTC. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify.
+ /// The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify.
///
- /// The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 UTC. * **weekly**: the counters are reset every Monday at 00:00:00 UTC. * **monthly**: the counters reset every first day of the month at 00:00:00 UTC. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 UTC. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify.
+ /// The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify.
[JsonConverter(typeof(StringEnumConverter))]
public enum TypeEnum
{
@@ -143,9 +143,9 @@ public enum TypeEnum
///
- /// The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 UTC. * **weekly**: the counters are reset every Monday at 00:00:00 UTC. * **monthly**: the counters reset every first day of the month at 00:00:00 UTC. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 UTC. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify.
+ /// The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify.
///
- /// The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 UTC. * **weekly**: the counters are reset every Monday at 00:00:00 UTC. * **monthly**: the counters reset every first day of the month at 00:00:00 UTC. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 UTC. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify.
+ /// The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify.
[DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)]
public TypeEnum Type { get; set; }
///
@@ -161,7 +161,7 @@ protected TransactionRuleInterval() { }
/// duration.
/// The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. If not provided, by default, this is set to **00:00:00**..
/// The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, **Europe/Amsterdam**. By default, this is set to **UTC**..
- /// The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 UTC. * **weekly**: the counters are reset every Monday at 00:00:00 UTC. * **monthly**: the counters reset every first day of the month at 00:00:00 UTC. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 UTC. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify. (required).
+ /// The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify. (required).
public TransactionRuleInterval(int? dayOfMonth = default(int?), DayOfWeekEnum? dayOfWeek = default(DayOfWeekEnum?), Duration duration = default(Duration), string timeOfDay = default(string), string timeZone = default(string), TypeEnum type = default(TypeEnum))
{
this.Type = type;
diff --git a/Adyen/Model/BalancePlatform/TransactionRuleRestrictions.cs b/Adyen/Model/BalancePlatform/TransactionRuleRestrictions.cs
index 2cb174524..a0c667bb1 100644
--- a/Adyen/Model/BalancePlatform/TransactionRuleRestrictions.cs
+++ b/Adyen/Model/BalancePlatform/TransactionRuleRestrictions.cs
@@ -48,11 +48,12 @@ public partial class TransactionRuleRestrictions : IEquatablemerchantNames.
/// merchants.
/// processingTypes.
+ /// riskScores.
/// sameAmountRestriction.
/// sameCounterpartyRestriction.
/// timeOfDay.
/// totalAmount.
- public TransactionRuleRestrictions(ActiveNetworkTokensRestriction activeNetworkTokens = default(ActiveNetworkTokensRestriction), BrandVariantsRestriction brandVariants = default(BrandVariantsRestriction), CounterpartyBankRestriction counterpartyBank = default(CounterpartyBankRestriction), CountriesRestriction countries = default(CountriesRestriction), DayOfWeekRestriction dayOfWeek = default(DayOfWeekRestriction), DifferentCurrenciesRestriction differentCurrencies = default(DifferentCurrenciesRestriction), EntryModesRestriction entryModes = default(EntryModesRestriction), InternationalTransactionRestriction internationalTransaction = default(InternationalTransactionRestriction), MatchingTransactionsRestriction matchingTransactions = default(MatchingTransactionsRestriction), MccsRestriction mccs = default(MccsRestriction), MerchantNamesRestriction merchantNames = default(MerchantNamesRestriction), MerchantsRestriction merchants = default(MerchantsRestriction), ProcessingTypesRestriction processingTypes = default(ProcessingTypesRestriction), SameAmountRestriction sameAmountRestriction = default(SameAmountRestriction), SameCounterpartyRestriction sameCounterpartyRestriction = default(SameCounterpartyRestriction), TimeOfDayRestriction timeOfDay = default(TimeOfDayRestriction), TotalAmountRestriction totalAmount = default(TotalAmountRestriction))
+ public TransactionRuleRestrictions(ActiveNetworkTokensRestriction activeNetworkTokens = default(ActiveNetworkTokensRestriction), BrandVariantsRestriction brandVariants = default(BrandVariantsRestriction), CounterpartyBankRestriction counterpartyBank = default(CounterpartyBankRestriction), CountriesRestriction countries = default(CountriesRestriction), DayOfWeekRestriction dayOfWeek = default(DayOfWeekRestriction), DifferentCurrenciesRestriction differentCurrencies = default(DifferentCurrenciesRestriction), EntryModesRestriction entryModes = default(EntryModesRestriction), InternationalTransactionRestriction internationalTransaction = default(InternationalTransactionRestriction), MatchingTransactionsRestriction matchingTransactions = default(MatchingTransactionsRestriction), MccsRestriction mccs = default(MccsRestriction), MerchantNamesRestriction merchantNames = default(MerchantNamesRestriction), MerchantsRestriction merchants = default(MerchantsRestriction), ProcessingTypesRestriction processingTypes = default(ProcessingTypesRestriction), RiskScoresRestriction riskScores = default(RiskScoresRestriction), SameAmountRestriction sameAmountRestriction = default(SameAmountRestriction), SameCounterpartyRestriction sameCounterpartyRestriction = default(SameCounterpartyRestriction), TimeOfDayRestriction timeOfDay = default(TimeOfDayRestriction), TotalAmountRestriction totalAmount = default(TotalAmountRestriction))
{
this.ActiveNetworkTokens = activeNetworkTokens;
this.BrandVariants = brandVariants;
@@ -67,6 +68,7 @@ public partial class TransactionRuleRestrictions : IEquatable
+ /// Gets or Sets RiskScores
+ ///
+ [DataMember(Name = "riskScores", EmitDefaultValue = false)]
+ public RiskScoresRestriction RiskScores { get; set; }
+
///
/// Gets or Sets SameAmountRestriction
///
@@ -196,6 +204,7 @@ public override string ToString()
sb.Append(" MerchantNames: ").Append(MerchantNames).Append("\n");
sb.Append(" Merchants: ").Append(Merchants).Append("\n");
sb.Append(" ProcessingTypes: ").Append(ProcessingTypes).Append("\n");
+ sb.Append(" RiskScores: ").Append(RiskScores).Append("\n");
sb.Append(" SameAmountRestriction: ").Append(SameAmountRestriction).Append("\n");
sb.Append(" SameCounterpartyRestriction: ").Append(SameCounterpartyRestriction).Append("\n");
sb.Append(" TimeOfDay: ").Append(TimeOfDay).Append("\n");
@@ -300,6 +309,11 @@ public bool Equals(TransactionRuleRestrictions input)
(this.ProcessingTypes != null &&
this.ProcessingTypes.Equals(input.ProcessingTypes))
) &&
+ (
+ this.RiskScores == input.RiskScores ||
+ (this.RiskScores != null &&
+ this.RiskScores.Equals(input.RiskScores))
+ ) &&
(
this.SameAmountRestriction == input.SameAmountRestriction ||
(this.SameAmountRestriction != null &&
@@ -383,6 +397,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.ProcessingTypes.GetHashCode();
}
+ if (this.RiskScores != null)
+ {
+ hashCode = (hashCode * 59) + this.RiskScores.GetHashCode();
+ }
if (this.SameAmountRestriction != null)
{
hashCode = (hashCode * 59) + this.SameAmountRestriction.GetHashCode();
diff --git a/Adyen/Model/BalancePlatform/UKLocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/UKLocalAccountIdentification.cs
index 516e42afb..2be74cb47 100644
--- a/Adyen/Model/BalancePlatform/UKLocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/UKLocalAccountIdentification.cs
@@ -63,16 +63,13 @@ protected UKLocalAccountIdentification() { }
/// Initializes a new instance of the class.
///
/// The 8-digit bank account number, without separators or whitespace. (required).
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**. (default to "physical").
/// The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. (required).
/// **ukLocal** (required) (default to TypeEnum.UkLocal).
- public UKLocalAccountIdentification(string accountNumber = default(string), string formFactor = "physical", string sortCode = default(string), TypeEnum type = TypeEnum.UkLocal)
+ public UKLocalAccountIdentification(string accountNumber = default(string), string sortCode = default(string), TypeEnum type = TypeEnum.UkLocal)
{
this.AccountNumber = accountNumber;
this.SortCode = sortCode;
this.Type = type;
- // use default value if no "formFactor" provided
- this.FormFactor = formFactor ?? "physical";
}
///
@@ -82,13 +79,6 @@ protected UKLocalAccountIdentification() { }
[DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
public string AccountNumber { get; set; }
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- [DataMember(Name = "formFactor", EmitDefaultValue = false)]
- public string FormFactor { get; set; }
-
///
/// The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace.
///
@@ -105,7 +95,6 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class UKLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
- sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" SortCode: ").Append(SortCode).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
@@ -148,11 +137,6 @@ public bool Equals(UKLocalAccountIdentification input)
(this.AccountNumber != null &&
this.AccountNumber.Equals(input.AccountNumber))
) &&
- (
- this.FormFactor == input.FormFactor ||
- (this.FormFactor != null &&
- this.FormFactor.Equals(input.FormFactor))
- ) &&
(
this.SortCode == input.SortCode ||
(this.SortCode != null &&
@@ -177,10 +161,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
}
- if (this.FormFactor != null)
- {
- hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
- }
if (this.SortCode != null)
{
hashCode = (hashCode * 59) + this.SortCode.GetHashCode();
diff --git a/Adyen/Model/BalancePlatform/USLocalAccountIdentification.cs b/Adyen/Model/BalancePlatform/USLocalAccountIdentification.cs
index 7f07d84e0..43e05c8f9 100644
--- a/Adyen/Model/BalancePlatform/USLocalAccountIdentification.cs
+++ b/Adyen/Model/BalancePlatform/USLocalAccountIdentification.cs
@@ -92,17 +92,14 @@ protected USLocalAccountIdentification() { }
///
/// The bank account number, without separators or whitespace. (required).
/// The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. (default to AccountTypeEnum.Checking).
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**. (default to "physical").
/// The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. (required).
/// **usLocal** (required) (default to TypeEnum.UsLocal).
- public USLocalAccountIdentification(string accountNumber = default(string), AccountTypeEnum? accountType = AccountTypeEnum.Checking, string formFactor = "physical", string routingNumber = default(string), TypeEnum type = TypeEnum.UsLocal)
+ public USLocalAccountIdentification(string accountNumber = default(string), AccountTypeEnum? accountType = AccountTypeEnum.Checking, string routingNumber = default(string), TypeEnum type = TypeEnum.UsLocal)
{
this.AccountNumber = accountNumber;
this.RoutingNumber = routingNumber;
this.Type = type;
this.AccountType = accountType;
- // use default value if no "formFactor" provided
- this.FormFactor = formFactor ?? "physical";
}
///
@@ -112,13 +109,6 @@ protected USLocalAccountIdentification() { }
[DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
public string AccountNumber { get; set; }
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- [DataMember(Name = "formFactor", EmitDefaultValue = false)]
- public string FormFactor { get; set; }
-
///
/// The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.
///
@@ -136,7 +126,6 @@ public override string ToString()
sb.Append("class USLocalAccountIdentification {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" AccountType: ").Append(AccountType).Append("\n");
- sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" RoutingNumber: ").Append(RoutingNumber).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
@@ -183,11 +172,6 @@ public bool Equals(USLocalAccountIdentification input)
this.AccountType == input.AccountType ||
this.AccountType.Equals(input.AccountType)
) &&
- (
- this.FormFactor == input.FormFactor ||
- (this.FormFactor != null &&
- this.FormFactor.Equals(input.FormFactor))
- ) &&
(
this.RoutingNumber == input.RoutingNumber ||
(this.RoutingNumber != null &&
@@ -213,10 +197,6 @@ public override int GetHashCode()
hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
}
hashCode = (hashCode * 59) + this.AccountType.GetHashCode();
- if (this.FormFactor != null)
- {
- hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
- }
if (this.RoutingNumber != null)
{
hashCode = (hashCode * 59) + this.RoutingNumber.GetHashCode();
diff --git a/Adyen/Model/BalancePlatform/UpdatePaymentInstrument.cs b/Adyen/Model/BalancePlatform/UpdatePaymentInstrument.cs
index 0162d24b5..98f607ab4 100644
--- a/Adyen/Model/BalancePlatform/UpdatePaymentInstrument.cs
+++ b/Adyen/Model/BalancePlatform/UpdatePaymentInstrument.cs
@@ -191,7 +191,7 @@ protected UpdatePaymentInstrument() { }
/// Comment for the status of the payment instrument. Required if `statusReason` is **other**..
/// The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change..
/// Type of payment instrument. Possible value: **card**, **bankAccount**. (required).
- public UpdatePaymentInstrument(List additionalBankAccountIdentifications = default(List), string balanceAccountId = default(string), PaymentInstrumentBankAccount bankAccount = default(PaymentInstrumentBankAccount), Card card = default(Card), string description = default(string), string id = default(string), string issuingCountryCode = default(string), string paymentInstrumentGroupId = default(string), string reference = default(string), StatusEnum? status = default(StatusEnum?), string statusComment = default(string), StatusReasonEnum? statusReason = default(StatusReasonEnum?), TypeEnum type = default(TypeEnum))
+ public UpdatePaymentInstrument(List additionalBankAccountIdentifications = default(List), string balanceAccountId = default(string), BankAccountDTO bankAccount = default(BankAccountDTO), Card card = default(Card), string description = default(string), string id = default(string), string issuingCountryCode = default(string), string paymentInstrumentGroupId = default(string), string reference = default(string), StatusEnum? status = default(StatusEnum?), string statusComment = default(string), StatusReasonEnum? statusReason = default(StatusReasonEnum?), TypeEnum type = default(TypeEnum))
{
this.BalanceAccountId = balanceAccountId;
this.Id = id;
@@ -213,6 +213,7 @@ protected UpdatePaymentInstrument() { }
///
/// Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**.
[DataMember(Name = "additionalBankAccountIdentifications", EmitDefaultValue = false)]
+ [Obsolete]
public List AdditionalBankAccountIdentifications { get; set; }
///
@@ -226,7 +227,7 @@ protected UpdatePaymentInstrument() { }
/// Gets or Sets BankAccount
///
[DataMember(Name = "bankAccount", EmitDefaultValue = false)]
- public PaymentInstrumentBankAccount BankAccount { get; set; }
+ public BankAccountDTO BankAccount { get; set; }
///
/// Gets or Sets Card
diff --git a/Adyen/Model/BalancePlatform/UpdateSweepConfigurationV2.cs b/Adyen/Model/BalancePlatform/UpdateSweepConfigurationV2.cs
index c2773eccd..c9bd8e134 100644
--- a/Adyen/Model/BalancePlatform/UpdateSweepConfigurationV2.cs
+++ b/Adyen/Model/BalancePlatform/UpdateSweepConfigurationV2.cs
@@ -113,9 +113,9 @@ public enum PrioritiesEnum
///
- /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority listed first, and if that's not possible, it moves on to the next option in the order of provided priorities. 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). Set `category` to **bank**. For more details, see [optional priorities setup](https://docs.adyen.com/marketplaces-and-platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
+ /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: For normal, low-value transactions. * **fast**: 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). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
///
- /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority listed first, and if that's not possible, it moves on to the next option in the order of provided priorities. 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). Set `category` to **bank**. For more details, see [optional priorities setup](https://docs.adyen.com/marketplaces-and-platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
+ /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: For normal, low-value transactions. * **fast**: 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). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
[DataMember(Name = "priorities", EmitDefaultValue = false)]
public List Priorities { get; set; }
///
@@ -197,29 +197,35 @@ public enum ReasonEnum
[EnumMember(Value = "notEnoughBalance")]
NotEnoughBalance = 12,
+ ///
+ /// Enum PendingApproval for value: pendingApproval
+ ///
+ [EnumMember(Value = "pendingApproval")]
+ PendingApproval = 13,
+
///
/// Enum RefusedByCounterpartyBank for value: refusedByCounterpartyBank
///
[EnumMember(Value = "refusedByCounterpartyBank")]
- RefusedByCounterpartyBank = 13,
+ RefusedByCounterpartyBank = 14,
///
/// Enum RouteNotFound for value: routeNotFound
///
[EnumMember(Value = "routeNotFound")]
- RouteNotFound = 14,
+ RouteNotFound = 15,
///
/// Enum ScaFailed for value: scaFailed
///
[EnumMember(Value = "scaFailed")]
- ScaFailed = 15,
+ ScaFailed = 16,
///
/// Enum Unknown for value: unknown
///
[EnumMember(Value = "unknown")]
- Unknown = 16
+ Unknown = 17
}
@@ -302,20 +308,24 @@ public enum TypeEnum
/// counterparty.
/// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances)..
/// The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters..
- /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority listed first, and if that's not possible, it moves on to the next option in the order of provided priorities. 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). Set `category` to **bank**. For more details, see [optional priorities setup](https://docs.adyen.com/marketplaces-and-platforms/payout-to-users/scheduled-payouts#optional-priorities-setup)..
+ /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: For normal, low-value transactions. * **fast**: 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). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup)..
+ /// Your reference for the sweep configuration..
+ /// The reference sent to or received from the counterparty. Only alphanumeric characters are allowed..
/// schedule.
/// The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. .
/// sweepAmount.
/// targetAmount.
/// triggerAmount.
/// The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. (default to TypeEnum.Push).
- public UpdateSweepConfigurationV2(CategoryEnum? category = default(CategoryEnum?), SweepCounterparty counterparty = default(SweepCounterparty), string currency = default(string), string description = default(string), List priorities = default(List), SweepSchedule schedule = default(SweepSchedule), StatusEnum? status = default(StatusEnum?), Amount sweepAmount = default(Amount), Amount targetAmount = default(Amount), Amount triggerAmount = default(Amount), TypeEnum? type = TypeEnum.Push)
+ public UpdateSweepConfigurationV2(CategoryEnum? category = default(CategoryEnum?), SweepCounterparty counterparty = default(SweepCounterparty), string currency = default(string), string description = default(string), List priorities = default(List), string reference = default(string), string referenceForBeneficiary = default(string), SweepSchedule schedule = default(SweepSchedule), StatusEnum? status = default(StatusEnum?), Amount sweepAmount = default(Amount), Amount targetAmount = default(Amount), Amount triggerAmount = default(Amount), TypeEnum? type = TypeEnum.Push)
{
this.Category = category;
this.Counterparty = counterparty;
this.Currency = currency;
this.Description = description;
this.Priorities = priorities;
+ this.Reference = reference;
+ this.ReferenceForBeneficiary = referenceForBeneficiary;
this.Schedule = schedule;
this.Status = status;
this.SweepAmount = sweepAmount;
@@ -351,6 +361,20 @@ public enum TypeEnum
[DataMember(Name = "id", EmitDefaultValue = false)]
public string Id { get; private set; }
+ ///
+ /// Your reference for the sweep configuration.
+ ///
+ /// Your reference for the sweep configuration.
+ [DataMember(Name = "reference", EmitDefaultValue = false)]
+ public string Reference { get; set; }
+
+ ///
+ /// The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.
+ ///
+ /// The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.
+ [DataMember(Name = "referenceForBeneficiary", EmitDefaultValue = false)]
+ public string ReferenceForBeneficiary { get; set; }
+
///
/// Gets or Sets Schedule
///
@@ -390,6 +414,8 @@ public override string ToString()
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Priorities: ").Append(Priorities).Append("\n");
sb.Append(" Reason: ").Append(Reason).Append("\n");
+ sb.Append(" Reference: ").Append(Reference).Append("\n");
+ sb.Append(" ReferenceForBeneficiary: ").Append(ReferenceForBeneficiary).Append("\n");
sb.Append(" Schedule: ").Append(Schedule).Append("\n");
sb.Append(" Status: ").Append(Status).Append("\n");
sb.Append(" SweepAmount: ").Append(SweepAmount).Append("\n");
@@ -463,6 +489,16 @@ public bool Equals(UpdateSweepConfigurationV2 input)
this.Reason == input.Reason ||
this.Reason.Equals(input.Reason)
) &&
+ (
+ this.Reference == input.Reference ||
+ (this.Reference != null &&
+ this.Reference.Equals(input.Reference))
+ ) &&
+ (
+ this.ReferenceForBeneficiary == input.ReferenceForBeneficiary ||
+ (this.ReferenceForBeneficiary != null &&
+ this.ReferenceForBeneficiary.Equals(input.ReferenceForBeneficiary))
+ ) &&
(
this.Schedule == input.Schedule ||
(this.Schedule != null &&
@@ -521,6 +557,14 @@ public override int GetHashCode()
}
hashCode = (hashCode * 59) + this.Priorities.GetHashCode();
hashCode = (hashCode * 59) + this.Reason.GetHashCode();
+ if (this.Reference != null)
+ {
+ hashCode = (hashCode * 59) + this.Reference.GetHashCode();
+ }
+ if (this.ReferenceForBeneficiary != null)
+ {
+ hashCode = (hashCode * 59) + this.ReferenceForBeneficiary.GetHashCode();
+ }
if (this.Schedule != null)
{
hashCode = (hashCode * 59) + this.Schedule.GetHashCode();
@@ -549,6 +593,18 @@ public override int GetHashCode()
/// Validation Result
public IEnumerable Validate(ValidationContext validationContext)
{
+ // Reference (string) maxLength
+ if (this.Reference != null && this.Reference.Length > 80)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Reference, length must be less than 80.", new [] { "Reference" });
+ }
+
+ // ReferenceForBeneficiary (string) maxLength
+ if (this.ReferenceForBeneficiary != null && this.ReferenceForBeneficiary.Length > 80)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReferenceForBeneficiary, length must be less than 80.", new [] { "ReferenceForBeneficiary" });
+ }
+
yield break;
}
}
diff --git a/Adyen/Model/ConfigurationWebhooks/AbstractOpenAPISchema.cs b/Adyen/Model/ConfigurationWebhooks/AbstractOpenAPISchema.cs
index a5f382d1c..5f64637a5 100644
--- a/Adyen/Model/ConfigurationWebhooks/AbstractOpenAPISchema.cs
+++ b/Adyen/Model/ConfigurationWebhooks/AbstractOpenAPISchema.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/AccountHolder.cs b/Adyen/Model/ConfigurationWebhooks/AccountHolder.cs
index 47bcb2ab5..eeb770c47 100644
--- a/Adyen/Model/ConfigurationWebhooks/AccountHolder.cs
+++ b/Adyen/Model/ConfigurationWebhooks/AccountHolder.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -33,43 +33,37 @@ namespace Adyen.Model.ConfigurationWebhooks
public partial class AccountHolder : IEquatable, IValidatableObject
{
///
- /// The status of the account holder. Possible values: * **Active**: The account holder is active. This is the default status when creating an account holder. * **Inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **Suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **Closed**: The account holder is permanently deactivated by you. This action cannot be undone.
+ /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
///
- /// The status of the account holder. Possible values: * **Active**: The account holder is active. This is the default status when creating an account holder. * **Inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **Suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **Closed**: The account holder is permanently deactivated by you. This action cannot be undone.
+ /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
[JsonConverter(typeof(StringEnumConverter))]
public enum StatusEnum
{
///
- /// Enum Active for value: Active
+ /// Enum Active for value: active
///
- [EnumMember(Value = "Active")]
+ [EnumMember(Value = "active")]
Active = 1,
///
- /// Enum Closed for value: Closed
+ /// Enum Closed for value: closed
///
- [EnumMember(Value = "Closed")]
+ [EnumMember(Value = "closed")]
Closed = 2,
///
- /// Enum Inactive for value: Inactive
+ /// Enum Suspended for value: suspended
///
- [EnumMember(Value = "Inactive")]
- Inactive = 3,
-
- ///
- /// Enum Suspended for value: Suspended
- ///
- [EnumMember(Value = "Suspended")]
- Suspended = 4
+ [EnumMember(Value = "suspended")]
+ Suspended = 3
}
///
- /// The status of the account holder. Possible values: * **Active**: The account holder is active. This is the default status when creating an account holder. * **Inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **Suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **Closed**: The account holder is permanently deactivated by you. This action cannot be undone.
+ /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
///
- /// The status of the account holder. Possible values: * **Active**: The account holder is active. This is the default status when creating an account holder. * **Inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **Suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **Closed**: The account holder is permanently deactivated by you. This action cannot be undone.
+ /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
[DataMember(Name = "status", EmitDefaultValue = false)]
public StatusEnum? Status { get; set; }
///
@@ -83,14 +77,14 @@ protected AccountHolder() { }
/// The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms..
/// Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability..
/// contactDetails.
- /// Your description for the account holder, maximum 300 characters..
+ /// Your description for the account holder..
/// The unique identifier of the account holder. (required).
/// The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. (required).
/// A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs..
/// The unique identifier of the migrated account holder in the classic integration..
/// The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request..
- /// Your reference for the account holder, maximum 150 characters..
- /// The status of the account holder. Possible values: * **Active**: The account holder is active. This is the default status when creating an account holder. * **Inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **Suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **Closed**: The account holder is permanently deactivated by you. This action cannot be undone..
+ /// Your reference for the account holder..
+ /// The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone..
/// The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)..
/// List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved..
public AccountHolder(string balancePlatform = default(string), Dictionary capabilities = default(Dictionary), ContactDetails contactDetails = default(ContactDetails), string description = default(string), string id = default(string), string legalEntityId = default(string), Dictionary metadata = default(Dictionary), string migratedAccountHolderCode = default(string), string primaryBalanceAccount = default(string), string reference = default(string), StatusEnum? status = default(StatusEnum?), string timeZone = default(string), List verificationDeadlines = default(List))
@@ -131,9 +125,9 @@ protected AccountHolder() { }
public ContactDetails ContactDetails { get; set; }
///
- /// Your description for the account holder, maximum 300 characters.
+ /// Your description for the account holder.
///
- /// Your description for the account holder, maximum 300 characters.
+ /// Your description for the account holder.
[DataMember(Name = "description", EmitDefaultValue = false)]
public string Description { get; set; }
@@ -173,9 +167,9 @@ protected AccountHolder() { }
public string PrimaryBalanceAccount { get; set; }
///
- /// Your reference for the account holder, maximum 150 characters.
+ /// Your reference for the account holder.
///
- /// Your reference for the account holder, maximum 150 characters.
+ /// Your reference for the account holder.
[DataMember(Name = "reference", EmitDefaultValue = false)]
public string Reference { get; set; }
diff --git a/Adyen/Model/ConfigurationWebhooks/AccountHolderCapability.cs b/Adyen/Model/ConfigurationWebhooks/AccountHolderCapability.cs
index 4874d2630..69551f2a0 100644
--- a/Adyen/Model/ConfigurationWebhooks/AccountHolderCapability.cs
+++ b/Adyen/Model/ConfigurationWebhooks/AccountHolderCapability.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/AccountHolderNotificationData.cs b/Adyen/Model/ConfigurationWebhooks/AccountHolderNotificationData.cs
index ba6658303..e766f41ce 100644
--- a/Adyen/Model/ConfigurationWebhooks/AccountHolderNotificationData.cs
+++ b/Adyen/Model/ConfigurationWebhooks/AccountHolderNotificationData.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/AccountHolderNotificationRequest.cs b/Adyen/Model/ConfigurationWebhooks/AccountHolderNotificationRequest.cs
index aff69c43c..a4954cc87 100644
--- a/Adyen/Model/ConfigurationWebhooks/AccountHolderNotificationRequest.cs
+++ b/Adyen/Model/ConfigurationWebhooks/AccountHolderNotificationRequest.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/AccountSupportingEntityCapability.cs b/Adyen/Model/ConfigurationWebhooks/AccountSupportingEntityCapability.cs
index f8e499327..7bc3d3381 100644
--- a/Adyen/Model/ConfigurationWebhooks/AccountSupportingEntityCapability.cs
+++ b/Adyen/Model/ConfigurationWebhooks/AccountSupportingEntityCapability.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/Address.cs b/Adyen/Model/ConfigurationWebhooks/Address.cs
index 0b02ff9aa..b8923425a 100644
--- a/Adyen/Model/ConfigurationWebhooks/Address.cs
+++ b/Adyen/Model/ConfigurationWebhooks/Address.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/Amount.cs b/Adyen/Model/ConfigurationWebhooks/Amount.cs
index ef9936ebf..563987b9b 100644
--- a/Adyen/Model/ConfigurationWebhooks/Amount.cs
+++ b/Adyen/Model/ConfigurationWebhooks/Amount.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/Authentication.cs b/Adyen/Model/ConfigurationWebhooks/Authentication.cs
index 5cd356c59..3c3d2859b 100644
--- a/Adyen/Model/ConfigurationWebhooks/Authentication.cs
+++ b/Adyen/Model/ConfigurationWebhooks/Authentication.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/Balance.cs b/Adyen/Model/ConfigurationWebhooks/Balance.cs
index 12b4c3fef..db9b5e231 100644
--- a/Adyen/Model/ConfigurationWebhooks/Balance.cs
+++ b/Adyen/Model/ConfigurationWebhooks/Balance.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -40,11 +40,11 @@ protected Balance() { }
///
/// Initializes a new instance of the class.
///
- /// The remaining amount available for spending. (required).
- /// The total amount in the balance. (required).
+ /// The current balance minus any reserved balance. (required).
+ /// The current balance of funds in the balance account. These are the funds from all transactions with a value date in the past that have not yet been paid out. (required).
/// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. (required).
- /// The amount pending to be paid out but not yet available in the balance..
- /// The amount reserved for payments that have been authorised, but have not been captured yet. (required).
+ /// The amount of funds that Adyen has processed for this account, but will be settled in a future date. For more information, see how to settle funds for users in your [platform](https://docs.adyen.com/platforms/settle-funds) and [marketplace](https://docs.adyen.com/marketplaces/settle-funds)..
+ /// The amount reserved for payments that have been [authorised](https://docs.adyen.com/issuing/payment-stages/#authorised), but not yet [captured](https://docs.adyen.com/issuing/payment-stages/#captured) by the merchant. Applies only to [Adyen-issued cards](https://docs.adyen.com/issuing). (required).
public Balance(long? available = default(long?), long? balance = default(long?), string currency = default(string), long? pending = default(long?), long? reserved = default(long?))
{
this.Available = available;
@@ -55,16 +55,16 @@ protected Balance() { }
}
///
- /// The remaining amount available for spending.
+ /// The current balance minus any reserved balance.
///
- /// The remaining amount available for spending.
+ /// The current balance minus any reserved balance.
[DataMember(Name = "available", IsRequired = false, EmitDefaultValue = false)]
public long? Available { get; set; }
///
- /// The total amount in the balance.
+ /// The current balance of funds in the balance account. These are the funds from all transactions with a value date in the past that have not yet been paid out.
///
- /// The total amount in the balance.
+ /// The current balance of funds in the balance account. These are the funds from all transactions with a value date in the past that have not yet been paid out.
[DataMember(Name = "balance", IsRequired = false, EmitDefaultValue = false)]
public long? _Balance { get; set; }
@@ -76,16 +76,16 @@ protected Balance() { }
public string Currency { get; set; }
///
- /// The amount pending to be paid out but not yet available in the balance.
+ /// The amount of funds that Adyen has processed for this account, but will be settled in a future date. For more information, see how to settle funds for users in your [platform](https://docs.adyen.com/platforms/settle-funds) and [marketplace](https://docs.adyen.com/marketplaces/settle-funds).
///
- /// The amount pending to be paid out but not yet available in the balance.
+ /// The amount of funds that Adyen has processed for this account, but will be settled in a future date. For more information, see how to settle funds for users in your [platform](https://docs.adyen.com/platforms/settle-funds) and [marketplace](https://docs.adyen.com/marketplaces/settle-funds).
[DataMember(Name = "pending", EmitDefaultValue = false)]
public long? Pending { get; set; }
///
- /// The amount reserved for payments that have been authorised, but have not been captured yet.
+ /// The amount reserved for payments that have been [authorised](https://docs.adyen.com/issuing/payment-stages/#authorised), but not yet [captured](https://docs.adyen.com/issuing/payment-stages/#captured) by the merchant. Applies only to [Adyen-issued cards](https://docs.adyen.com/issuing).
///
- /// The amount reserved for payments that have been authorised, but have not been captured yet.
+ /// The amount reserved for payments that have been [authorised](https://docs.adyen.com/issuing/payment-stages/#authorised), but not yet [captured](https://docs.adyen.com/issuing/payment-stages/#captured) by the merchant. Applies only to [Adyen-issued cards](https://docs.adyen.com/issuing).
[DataMember(Name = "reserved", IsRequired = false, EmitDefaultValue = false)]
public long? Reserved { get; set; }
diff --git a/Adyen/Model/ConfigurationWebhooks/BalanceAccount.cs b/Adyen/Model/ConfigurationWebhooks/BalanceAccount.cs
index e74394526..9fd63db4d 100644
--- a/Adyen/Model/ConfigurationWebhooks/BalanceAccount.cs
+++ b/Adyen/Model/ConfigurationWebhooks/BalanceAccount.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -33,43 +33,43 @@ namespace Adyen.Model.ConfigurationWebhooks
public partial class BalanceAccount : IEquatable, IValidatableObject
{
///
- /// The status of the balance account, set to **Active** by default.
+ /// The status of the balance account, set to **active** by default.
///
- /// The status of the balance account, set to **Active** by default.
+ /// The status of the balance account, set to **active** by default.
[JsonConverter(typeof(StringEnumConverter))]
public enum StatusEnum
{
///
- /// Enum Active for value: Active
+ /// Enum Active for value: active
///
- [EnumMember(Value = "Active")]
+ [EnumMember(Value = "active")]
Active = 1,
///
- /// Enum Closed for value: Closed
+ /// Enum Closed for value: closed
///
- [EnumMember(Value = "Closed")]
+ [EnumMember(Value = "closed")]
Closed = 2,
///
- /// Enum Inactive for value: Inactive
+ /// Enum Inactive for value: inactive
///
- [EnumMember(Value = "Inactive")]
+ [EnumMember(Value = "inactive")]
Inactive = 3,
///
- /// Enum Suspended for value: Suspended
+ /// Enum Suspended for value: suspended
///
- [EnumMember(Value = "Suspended")]
+ [EnumMember(Value = "suspended")]
Suspended = 4
}
///
- /// The status of the balance account, set to **Active** by default.
+ /// The status of the balance account, set to **active** by default.
///
- /// The status of the balance account, set to **Active** by default.
+ /// The status of the balance account, set to **active** by default.
[DataMember(Name = "status", EmitDefaultValue = false)]
public StatusEnum? Status { get; set; }
///
@@ -87,12 +87,11 @@ protected BalanceAccount() { }
/// The unique identifier of the balance account. (required).
/// A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs..
/// The unique identifier of the account of the migrated account holder in the classic integration..
- /// List of [payment instruments](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/paymentInstruments) associated with the balance account..
/// platformPaymentConfiguration.
/// Your reference for the balance account, maximum 150 characters..
- /// The status of the balance account, set to **Active** by default. .
+ /// The status of the balance account, set to **active** by default. .
/// The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)..
- public BalanceAccount(string accountHolderId = default(string), List balances = default(List), string defaultCurrencyCode = default(string), string description = default(string), string id = default(string), Dictionary metadata = default(Dictionary), string migratedAccountCode = default(string), List paymentInstruments = default(List), PlatformPaymentConfiguration platformPaymentConfiguration = default(PlatformPaymentConfiguration), string reference = default(string), StatusEnum? status = default(StatusEnum?), string timeZone = default(string))
+ public BalanceAccount(string accountHolderId = default(string), List balances = default(List), string defaultCurrencyCode = default(string), string description = default(string), string id = default(string), Dictionary metadata = default(Dictionary), string migratedAccountCode = default(string), PlatformPaymentConfiguration platformPaymentConfiguration = default(PlatformPaymentConfiguration), string reference = default(string), StatusEnum? status = default(StatusEnum?), string timeZone = default(string))
{
this.AccountHolderId = accountHolderId;
this.Id = id;
@@ -101,7 +100,6 @@ protected BalanceAccount() { }
this.Description = description;
this.Metadata = metadata;
this.MigratedAccountCode = migratedAccountCode;
- this.PaymentInstruments = paymentInstruments;
this.PlatformPaymentConfiguration = platformPaymentConfiguration;
this.Reference = reference;
this.Status = status;
@@ -157,13 +155,6 @@ protected BalanceAccount() { }
[DataMember(Name = "migratedAccountCode", EmitDefaultValue = false)]
public string MigratedAccountCode { get; set; }
- ///
- /// List of [payment instruments](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/paymentInstruments) associated with the balance account.
- ///
- /// List of [payment instruments](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/paymentInstruments) associated with the balance account.
- [DataMember(Name = "paymentInstruments", EmitDefaultValue = false)]
- public List PaymentInstruments { get; set; }
-
///
/// Gets or Sets PlatformPaymentConfiguration
///
@@ -199,7 +190,6 @@ public override string ToString()
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Metadata: ").Append(Metadata).Append("\n");
sb.Append(" MigratedAccountCode: ").Append(MigratedAccountCode).Append("\n");
- sb.Append(" PaymentInstruments: ").Append(PaymentInstruments).Append("\n");
sb.Append(" PlatformPaymentConfiguration: ").Append(PlatformPaymentConfiguration).Append("\n");
sb.Append(" Reference: ").Append(Reference).Append("\n");
sb.Append(" Status: ").Append(Status).Append("\n");
@@ -276,12 +266,6 @@ public bool Equals(BalanceAccount input)
(this.MigratedAccountCode != null &&
this.MigratedAccountCode.Equals(input.MigratedAccountCode))
) &&
- (
- this.PaymentInstruments == input.PaymentInstruments ||
- this.PaymentInstruments != null &&
- input.PaymentInstruments != null &&
- this.PaymentInstruments.SequenceEqual(input.PaymentInstruments)
- ) &&
(
this.PlatformPaymentConfiguration == input.PlatformPaymentConfiguration ||
(this.PlatformPaymentConfiguration != null &&
@@ -340,10 +324,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.MigratedAccountCode.GetHashCode();
}
- if (this.PaymentInstruments != null)
- {
- hashCode = (hashCode * 59) + this.PaymentInstruments.GetHashCode();
- }
if (this.PlatformPaymentConfiguration != null)
{
hashCode = (hashCode * 59) + this.PlatformPaymentConfiguration.GetHashCode();
diff --git a/Adyen/Model/ConfigurationWebhooks/BalanceAccountNotificationData.cs b/Adyen/Model/ConfigurationWebhooks/BalanceAccountNotificationData.cs
index af245629c..fd833c55b 100644
--- a/Adyen/Model/ConfigurationWebhooks/BalanceAccountNotificationData.cs
+++ b/Adyen/Model/ConfigurationWebhooks/BalanceAccountNotificationData.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/BalanceAccountNotificationRequest.cs b/Adyen/Model/ConfigurationWebhooks/BalanceAccountNotificationRequest.cs
index 352e28367..f4c546106 100644
--- a/Adyen/Model/ConfigurationWebhooks/BalanceAccountNotificationRequest.cs
+++ b/Adyen/Model/ConfigurationWebhooks/BalanceAccountNotificationRequest.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/BalancePlatformNotificationResponse.cs b/Adyen/Model/ConfigurationWebhooks/BalancePlatformNotificationResponse.cs
index c6186f6e2..7973a2353 100644
--- a/Adyen/Model/ConfigurationWebhooks/BalancePlatformNotificationResponse.cs
+++ b/Adyen/Model/ConfigurationWebhooks/BalancePlatformNotificationResponse.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/USLocalAccountIdentification.cs b/Adyen/Model/ConfigurationWebhooks/BankAccountDTO.cs
similarity index 50%
rename from Adyen/Model/ConfigurationWebhooks/USLocalAccountIdentification.cs
rename to Adyen/Model/ConfigurationWebhooks/BankAccountDTO.cs
index 5d26b9fdd..1074ade06 100644
--- a/Adyen/Model/ConfigurationWebhooks/USLocalAccountIdentification.cs
+++ b/Adyen/Model/ConfigurationWebhooks/BankAccountDTO.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -27,105 +27,88 @@
namespace Adyen.Model.ConfigurationWebhooks
{
///
- /// USLocalAccountIdentification
+ /// BankAccountDTO
///
- [DataContract(Name = "USLocalAccountIdentification")]
- public partial class USLocalAccountIdentification : IEquatable, IValidatableObject
+ [DataContract(Name = "BankAccountDTO")]
+ public partial class BankAccountDTO : IEquatable, IValidatableObject
{
///
- /// The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**.
- ///
- /// The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**.
- [JsonConverter(typeof(StringEnumConverter))]
- public enum AccountTypeEnum
- {
- ///
- /// Enum Checking for value: checking
- ///
- [EnumMember(Value = "checking")]
- Checking = 1,
-
- ///
- /// Enum Savings for value: savings
- ///
- [EnumMember(Value = "savings")]
- Savings = 2
-
- }
-
-
- ///
- /// The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**.
- ///
- /// The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**.
- [DataMember(Name = "accountType", EmitDefaultValue = false)]
- public AccountTypeEnum? AccountType { get; set; }
- ///
- /// **usLocal**
- ///
- /// **usLocal**
- [JsonConverter(typeof(StringEnumConverter))]
- public enum TypeEnum
- {
- ///
- /// Enum UsLocal for value: usLocal
- ///
- [EnumMember(Value = "usLocal")]
- UsLocal = 1
-
- }
-
-
- ///
- /// **usLocal**
- ///
- /// **usLocal**
- [DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)]
- public TypeEnum Type { get; set; }
- ///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
[JsonConstructorAttribute]
- protected USLocalAccountIdentification() { }
+ protected BankAccountDTO() { }
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
- /// The bank account number, without separators or whitespace. (required).
- /// The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. (default to AccountTypeEnum.Checking).
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**. (default to "physical").
- /// The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. (required).
- /// **usLocal** (required) (default to TypeEnum.UsLocal).
- public USLocalAccountIdentification(string accountNumber = default(string), AccountTypeEnum? accountType = AccountTypeEnum.Checking, string formFactor = "physical", string routingNumber = default(string), TypeEnum type = TypeEnum.UsLocal)
+ /// The bank account number, without separators or whitespace..
+ /// The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. (default to "checking").
+ /// Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL. (default to "physical").
+ /// The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard..
+ /// The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace..
+ /// The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace..
+ /// **iban** or **usLocal** or **ukLocal** (required) (default to "iban").
+ public BankAccountDTO(string accountNumber = default(string), string accountType = "checking", string formFactor = "physical", string iban = default(string), string routingNumber = default(string), string sortCode = default(string), string type = "iban")
{
- this.AccountNumber = accountNumber;
- this.RoutingNumber = routingNumber;
this.Type = type;
- this.AccountType = accountType;
+ this.AccountNumber = accountNumber;
+ // use default value if no "accountType" provided
+ this.AccountType = accountType ?? "checking";
// use default value if no "formFactor" provided
this.FormFactor = formFactor ?? "physical";
+ this.Iban = iban;
+ this.RoutingNumber = routingNumber;
+ this.SortCode = sortCode;
}
///
/// The bank account number, without separators or whitespace.
///
/// The bank account number, without separators or whitespace.
- [DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
+ [DataMember(Name = "accountNumber", EmitDefaultValue = false)]
public string AccountNumber { get; set; }
///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
+ /// The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**.
+ ///
+ /// The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**.
+ [DataMember(Name = "accountType", EmitDefaultValue = false)]
+ public string AccountType { get; set; }
+
+ ///
+ /// Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL.
///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
+ /// Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. Adyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL.
[DataMember(Name = "formFactor", EmitDefaultValue = false)]
public string FormFactor { get; set; }
///
- /// The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.
+ /// The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard.
///
- /// The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.
- [DataMember(Name = "routingNumber", IsRequired = false, EmitDefaultValue = false)]
+ /// The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard.
+ [DataMember(Name = "iban", EmitDefaultValue = false)]
+ public string Iban { get; set; }
+
+ ///
+ /// The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.
+ ///
+ /// The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.
+ [DataMember(Name = "routingNumber", EmitDefaultValue = false)]
public string RoutingNumber { get; set; }
+ ///
+ /// The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace.
+ ///
+ /// The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace.
+ [DataMember(Name = "sortCode", EmitDefaultValue = false)]
+ public string SortCode { get; set; }
+
+ ///
+ /// **iban** or **usLocal** or **ukLocal**
+ ///
+ /// **iban** or **usLocal** or **ukLocal**
+ [DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)]
+ public string Type { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -133,11 +116,13 @@ protected USLocalAccountIdentification() { }
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class USLocalAccountIdentification {\n");
+ sb.Append("class BankAccountDTO {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" AccountType: ").Append(AccountType).Append("\n");
sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
+ sb.Append(" Iban: ").Append(Iban).Append("\n");
sb.Append(" RoutingNumber: ").Append(RoutingNumber).Append("\n");
+ sb.Append(" SortCode: ").Append(SortCode).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -159,15 +144,15 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object input)
{
- return this.Equals(input as USLocalAccountIdentification);
+ return this.Equals(input as BankAccountDTO);
}
///
- /// Returns true if USLocalAccountIdentification instances are equal
+ /// Returns true if BankAccountDTO instances are equal
///
- /// Instance of USLocalAccountIdentification to be compared
+ /// Instance of BankAccountDTO to be compared
/// Boolean
- public bool Equals(USLocalAccountIdentification input)
+ public bool Equals(BankAccountDTO input)
{
if (input == null)
{
@@ -181,21 +166,33 @@ public bool Equals(USLocalAccountIdentification input)
) &&
(
this.AccountType == input.AccountType ||
- this.AccountType.Equals(input.AccountType)
+ (this.AccountType != null &&
+ this.AccountType.Equals(input.AccountType))
) &&
(
this.FormFactor == input.FormFactor ||
(this.FormFactor != null &&
this.FormFactor.Equals(input.FormFactor))
) &&
+ (
+ this.Iban == input.Iban ||
+ (this.Iban != null &&
+ this.Iban.Equals(input.Iban))
+ ) &&
(
this.RoutingNumber == input.RoutingNumber ||
(this.RoutingNumber != null &&
this.RoutingNumber.Equals(input.RoutingNumber))
) &&
+ (
+ this.SortCode == input.SortCode ||
+ (this.SortCode != null &&
+ this.SortCode.Equals(input.SortCode))
+ ) &&
(
this.Type == input.Type ||
- this.Type.Equals(input.Type)
+ (this.Type != null &&
+ this.Type.Equals(input.Type))
);
}
@@ -212,16 +209,30 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
}
- hashCode = (hashCode * 59) + this.AccountType.GetHashCode();
+ if (this.AccountType != null)
+ {
+ hashCode = (hashCode * 59) + this.AccountType.GetHashCode();
+ }
if (this.FormFactor != null)
{
hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
}
+ if (this.Iban != null)
+ {
+ hashCode = (hashCode * 59) + this.Iban.GetHashCode();
+ }
if (this.RoutingNumber != null)
{
hashCode = (hashCode * 59) + this.RoutingNumber.GetHashCode();
}
- hashCode = (hashCode * 59) + this.Type.GetHashCode();
+ if (this.SortCode != null)
+ {
+ hashCode = (hashCode * 59) + this.SortCode.GetHashCode();
+ }
+ if (this.Type != null)
+ {
+ hashCode = (hashCode * 59) + this.Type.GetHashCode();
+ }
return hashCode;
}
}
@@ -232,30 +243,6 @@ public override int GetHashCode()
/// Validation Result
public IEnumerable Validate(ValidationContext validationContext)
{
- // AccountNumber (string) maxLength
- if (this.AccountNumber != null && this.AccountNumber.Length > 18)
- {
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountNumber, length must be less than 18.", new [] { "AccountNumber" });
- }
-
- // AccountNumber (string) minLength
- if (this.AccountNumber != null && this.AccountNumber.Length < 2)
- {
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountNumber, length must be greater than 2.", new [] { "AccountNumber" });
- }
-
- // RoutingNumber (string) maxLength
- if (this.RoutingNumber != null && this.RoutingNumber.Length > 9)
- {
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RoutingNumber, length must be less than 9.", new [] { "RoutingNumber" });
- }
-
- // RoutingNumber (string) minLength
- if (this.RoutingNumber != null && this.RoutingNumber.Length < 9)
- {
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RoutingNumber, length must be greater than 9.", new [] { "RoutingNumber" });
- }
-
yield break;
}
}
diff --git a/Adyen/Model/ConfigurationWebhooks/BulkAddress.cs b/Adyen/Model/ConfigurationWebhooks/BulkAddress.cs
index 6194a0ae5..e615c34ec 100644
--- a/Adyen/Model/ConfigurationWebhooks/BulkAddress.cs
+++ b/Adyen/Model/ConfigurationWebhooks/BulkAddress.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/CapabilityProblem.cs b/Adyen/Model/ConfigurationWebhooks/CapabilityProblem.cs
index 5ff4616a0..290dfdfbd 100644
--- a/Adyen/Model/ConfigurationWebhooks/CapabilityProblem.cs
+++ b/Adyen/Model/ConfigurationWebhooks/CapabilityProblem.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/CapabilityProblemEntity.cs b/Adyen/Model/ConfigurationWebhooks/CapabilityProblemEntity.cs
index 16d076859..d6ab93d4b 100644
--- a/Adyen/Model/ConfigurationWebhooks/CapabilityProblemEntity.cs
+++ b/Adyen/Model/ConfigurationWebhooks/CapabilityProblemEntity.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/CapabilityProblemEntityRecursive.cs b/Adyen/Model/ConfigurationWebhooks/CapabilityProblemEntityRecursive.cs
index 3659cd32c..4332de7de 100644
--- a/Adyen/Model/ConfigurationWebhooks/CapabilityProblemEntityRecursive.cs
+++ b/Adyen/Model/ConfigurationWebhooks/CapabilityProblemEntityRecursive.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/CapabilitySettings.cs b/Adyen/Model/ConfigurationWebhooks/CapabilitySettings.cs
index 2f7729532..06ba04f31 100644
--- a/Adyen/Model/ConfigurationWebhooks/CapabilitySettings.cs
+++ b/Adyen/Model/ConfigurationWebhooks/CapabilitySettings.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/Card.cs b/Adyen/Model/ConfigurationWebhooks/Card.cs
index 44c4c29cc..3e1d4f563 100644
--- a/Adyen/Model/ConfigurationWebhooks/Card.cs
+++ b/Adyen/Model/ConfigurationWebhooks/Card.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -87,7 +87,7 @@ protected Card() { }
/// Last last four digits of the card number..
/// The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. (required).
/// Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**. >Reach out to your Adyen contact to get the values relevant for your integration..
- public Card(Authentication authentication = default(Authentication), string bin = default(string), string brand = default(string), string brandVariant = default(string), string cardholderName = default(string), CardConfiguration configuration = default(CardConfiguration), string cvc = default(string), Contact deliveryContact = default(Contact), Expiry expiration = default(Expiry), FormFactorEnum formFactor = default(FormFactorEnum), string lastFour = default(string), string number = default(string), string threeDSecure = default(string))
+ public Card(Authentication authentication = default(Authentication), string bin = default(string), string brand = default(string), string brandVariant = default(string), string cardholderName = default(string), CardConfiguration configuration = default(CardConfiguration), string cvc = default(string), DeliveryContact deliveryContact = default(DeliveryContact), Expiry expiration = default(Expiry), FormFactorEnum formFactor = default(FormFactorEnum), string lastFour = default(string), string number = default(string), string threeDSecure = default(string))
{
this.Brand = brand;
this.BrandVariant = brandVariant;
@@ -155,7 +155,7 @@ protected Card() { }
/// Gets or Sets DeliveryContact
///
[DataMember(Name = "deliveryContact", EmitDefaultValue = false)]
- public Contact DeliveryContact { get; set; }
+ public DeliveryContact DeliveryContact { get; set; }
///
/// Gets or Sets Expiration
diff --git a/Adyen/Model/ConfigurationWebhooks/CardConfiguration.cs b/Adyen/Model/ConfigurationWebhooks/CardConfiguration.cs
index bf6b030be..343e3bbec 100644
--- a/Adyen/Model/ConfigurationWebhooks/CardConfiguration.cs
+++ b/Adyen/Model/ConfigurationWebhooks/CardConfiguration.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/CardOrderItem.cs b/Adyen/Model/ConfigurationWebhooks/CardOrderItem.cs
index 2a4561334..d2e78e68e 100644
--- a/Adyen/Model/ConfigurationWebhooks/CardOrderItem.cs
+++ b/Adyen/Model/ConfigurationWebhooks/CardOrderItem.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/CardOrderItemDeliveryStatus.cs b/Adyen/Model/ConfigurationWebhooks/CardOrderItemDeliveryStatus.cs
index 0a377cc20..cbd9cdb05 100644
--- a/Adyen/Model/ConfigurationWebhooks/CardOrderItemDeliveryStatus.cs
+++ b/Adyen/Model/ConfigurationWebhooks/CardOrderItemDeliveryStatus.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/CardOrderNotificationRequest.cs b/Adyen/Model/ConfigurationWebhooks/CardOrderNotificationRequest.cs
index 3b6ebbc16..996301639 100644
--- a/Adyen/Model/ConfigurationWebhooks/CardOrderNotificationRequest.cs
+++ b/Adyen/Model/ConfigurationWebhooks/CardOrderNotificationRequest.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/ContactDetails.cs b/Adyen/Model/ConfigurationWebhooks/ContactDetails.cs
index 82b400054..812883166 100644
--- a/Adyen/Model/ConfigurationWebhooks/ContactDetails.cs
+++ b/Adyen/Model/ConfigurationWebhooks/ContactDetails.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/DeliveryAddress.cs b/Adyen/Model/ConfigurationWebhooks/DeliveryAddress.cs
new file mode 100644
index 000000000..e03261687
--- /dev/null
+++ b/Adyen/Model/ConfigurationWebhooks/DeliveryAddress.cs
@@ -0,0 +1,248 @@
+/*
+* Configuration webhooks
+*
+*
+* The version of the OpenAPI document: 2
+*
+* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+* https://openapi-generator.tech
+* Do not edit the class manually.
+*/
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
+
+namespace Adyen.Model.ConfigurationWebhooks
+{
+ ///
+ /// DeliveryAddress
+ ///
+ [DataContract(Name = "DeliveryAddress")]
+ public partial class DeliveryAddress : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected DeliveryAddress() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The name of the city..
+ /// The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. (required).
+ /// The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**..
+ /// The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**..
+ /// Additional information about the delivery address..
+ /// The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries..
+ /// The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada..
+ public DeliveryAddress(string city = default(string), string country = default(string), string line1 = default(string), string line2 = default(string), string line3 = default(string), string postalCode = default(string), string stateOrProvince = default(string))
+ {
+ this.Country = country;
+ this.City = city;
+ this.Line1 = line1;
+ this.Line2 = line2;
+ this.Line3 = line3;
+ this.PostalCode = postalCode;
+ this.StateOrProvince = stateOrProvince;
+ }
+
+ ///
+ /// The name of the city.
+ ///
+ /// The name of the city.
+ [DataMember(Name = "city", EmitDefaultValue = false)]
+ public string City { get; set; }
+
+ ///
+ /// The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`.
+ ///
+ /// The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`.
+ [DataMember(Name = "country", IsRequired = false, EmitDefaultValue = false)]
+ public string Country { get; set; }
+
+ ///
+ /// The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**.
+ ///
+ /// The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**.
+ [DataMember(Name = "line1", EmitDefaultValue = false)]
+ public string Line1 { get; set; }
+
+ ///
+ /// The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**.
+ ///
+ /// The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**.
+ [DataMember(Name = "line2", EmitDefaultValue = false)]
+ public string Line2 { get; set; }
+
+ ///
+ /// Additional information about the delivery address.
+ ///
+ /// Additional information about the delivery address.
+ [DataMember(Name = "line3", EmitDefaultValue = false)]
+ public string Line3 { get; set; }
+
+ ///
+ /// The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries.
+ ///
+ /// The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries.
+ [DataMember(Name = "postalCode", EmitDefaultValue = false)]
+ public string PostalCode { get; set; }
+
+ ///
+ /// The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada.
+ ///
+ /// The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada.
+ [DataMember(Name = "stateOrProvince", EmitDefaultValue = false)]
+ public string StateOrProvince { 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 DeliveryAddress {\n");
+ sb.Append(" City: ").Append(City).Append("\n");
+ sb.Append(" Country: ").Append(Country).Append("\n");
+ sb.Append(" Line1: ").Append(Line1).Append("\n");
+ sb.Append(" Line2: ").Append(Line2).Append("\n");
+ sb.Append(" Line3: ").Append(Line3).Append("\n");
+ sb.Append(" PostalCode: ").Append(PostalCode).Append("\n");
+ sb.Append(" StateOrProvince: ").Append(StateOrProvince).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 DeliveryAddress);
+ }
+
+ ///
+ /// Returns true if DeliveryAddress instances are equal
+ ///
+ /// Instance of DeliveryAddress to be compared
+ /// Boolean
+ public bool Equals(DeliveryAddress input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.City == input.City ||
+ (this.City != null &&
+ this.City.Equals(input.City))
+ ) &&
+ (
+ this.Country == input.Country ||
+ (this.Country != null &&
+ this.Country.Equals(input.Country))
+ ) &&
+ (
+ this.Line1 == input.Line1 ||
+ (this.Line1 != null &&
+ this.Line1.Equals(input.Line1))
+ ) &&
+ (
+ this.Line2 == input.Line2 ||
+ (this.Line2 != null &&
+ this.Line2.Equals(input.Line2))
+ ) &&
+ (
+ this.Line3 == input.Line3 ||
+ (this.Line3 != null &&
+ this.Line3.Equals(input.Line3))
+ ) &&
+ (
+ this.PostalCode == input.PostalCode ||
+ (this.PostalCode != null &&
+ this.PostalCode.Equals(input.PostalCode))
+ ) &&
+ (
+ this.StateOrProvince == input.StateOrProvince ||
+ (this.StateOrProvince != null &&
+ this.StateOrProvince.Equals(input.StateOrProvince))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.City != null)
+ {
+ hashCode = (hashCode * 59) + this.City.GetHashCode();
+ }
+ if (this.Country != null)
+ {
+ hashCode = (hashCode * 59) + this.Country.GetHashCode();
+ }
+ if (this.Line1 != null)
+ {
+ hashCode = (hashCode * 59) + this.Line1.GetHashCode();
+ }
+ if (this.Line2 != null)
+ {
+ hashCode = (hashCode * 59) + this.Line2.GetHashCode();
+ }
+ if (this.Line3 != null)
+ {
+ hashCode = (hashCode * 59) + this.Line3.GetHashCode();
+ }
+ if (this.PostalCode != null)
+ {
+ hashCode = (hashCode * 59) + this.PostalCode.GetHashCode();
+ }
+ if (this.StateOrProvince != null)
+ {
+ hashCode = (hashCode * 59) + this.StateOrProvince.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ public IEnumerable Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/Adyen/Model/ConfigurationWebhooks/Contact.cs b/Adyen/Model/ConfigurationWebhooks/DeliveryContact.cs
similarity index 67%
rename from Adyen/Model/ConfigurationWebhooks/Contact.cs
rename to Adyen/Model/ConfigurationWebhooks/DeliveryContact.cs
index 494f55a46..2154949d1 100644
--- a/Adyen/Model/ConfigurationWebhooks/Contact.cs
+++ b/Adyen/Model/ConfigurationWebhooks/DeliveryContact.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -27,28 +27,33 @@
namespace Adyen.Model.ConfigurationWebhooks
{
///
- /// Contact
+ /// DeliveryContact
///
- [DataContract(Name = "Contact")]
- public partial class Contact : IEquatable, IValidatableObject
+ [DataContract(Name = "DeliveryContact")]
+ public partial class DeliveryContact : IEquatable, IValidatableObject
{
///
- /// Initializes a new instance of the class.
+ /// Initializes a new instance of the class.
///
- /// address.
- /// The e-mail address of the contact..
- /// The phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\".
- /// name.
- /// personalData.
+ [JsonConstructorAttribute]
+ protected DeliveryContact() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// address (required).
+ /// The company name of the contact..
+ /// The email address of the contact..
+ /// The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\".
+ /// name (required).
/// phoneNumber.
- /// The URL of the website of the contact..
- public Contact(Address address = default(Address), string email = default(string), string fullPhoneNumber = default(string), Name name = default(Name), PersonalData personalData = default(PersonalData), PhoneNumber phoneNumber = default(PhoneNumber), string webAddress = default(string))
+ /// The URL of the contact's website..
+ public DeliveryContact(DeliveryAddress address = default(DeliveryAddress), string company = default(string), string email = default(string), string fullPhoneNumber = default(string), Name name = default(Name), PhoneNumber phoneNumber = default(PhoneNumber), string webAddress = default(string))
{
this.Address = address;
+ this.Name = name;
+ this.Company = company;
this.Email = email;
this.FullPhoneNumber = fullPhoneNumber;
- this.Name = name;
- this.PersonalData = personalData;
this.PhoneNumber = phoneNumber;
this.WebAddress = webAddress;
}
@@ -56,35 +61,36 @@ public partial class Contact : IEquatable, IValidatableObject
///
/// Gets or Sets Address
///
- [DataMember(Name = "address", EmitDefaultValue = false)]
- public Address Address { get; set; }
+ [DataMember(Name = "address", IsRequired = false, EmitDefaultValue = false)]
+ public DeliveryAddress Address { get; set; }
///
- /// The e-mail address of the contact.
+ /// The company name of the contact.
///
- /// The e-mail address of the contact.
+ /// The company name of the contact.
+ [DataMember(Name = "company", EmitDefaultValue = false)]
+ public string Company { get; set; }
+
+ ///
+ /// The email address of the contact.
+ ///
+ /// The email address of the contact.
[DataMember(Name = "email", EmitDefaultValue = false)]
public string Email { get; set; }
///
- /// The phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\"
+ /// The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\"
///
- /// The phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\"
+ /// The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\"
[DataMember(Name = "fullPhoneNumber", EmitDefaultValue = false)]
public string FullPhoneNumber { get; set; }
///
/// Gets or Sets Name
///
- [DataMember(Name = "name", EmitDefaultValue = false)]
+ [DataMember(Name = "name", IsRequired = false, EmitDefaultValue = false)]
public Name Name { get; set; }
- ///
- /// Gets or Sets PersonalData
- ///
- [DataMember(Name = "personalData", EmitDefaultValue = false)]
- public PersonalData PersonalData { get; set; }
-
///
/// Gets or Sets PhoneNumber
///
@@ -92,9 +98,9 @@ public partial class Contact : IEquatable, IValidatableObject
public PhoneNumber PhoneNumber { get; set; }
///
- /// The URL of the website of the contact.
+ /// The URL of the contact's website.
///
- /// The URL of the website of the contact.
+ /// The URL of the contact's website.
[DataMember(Name = "webAddress", EmitDefaultValue = false)]
public string WebAddress { get; set; }
@@ -105,12 +111,12 @@ public partial class Contact : IEquatable, IValidatableObject
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- sb.Append("class Contact {\n");
+ sb.Append("class DeliveryContact {\n");
sb.Append(" Address: ").Append(Address).Append("\n");
+ sb.Append(" Company: ").Append(Company).Append("\n");
sb.Append(" Email: ").Append(Email).Append("\n");
sb.Append(" FullPhoneNumber: ").Append(FullPhoneNumber).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
- sb.Append(" PersonalData: ").Append(PersonalData).Append("\n");
sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n");
sb.Append(" WebAddress: ").Append(WebAddress).Append("\n");
sb.Append("}\n");
@@ -133,15 +139,15 @@ public virtual string ToJson()
/// Boolean
public override bool Equals(object input)
{
- return this.Equals(input as Contact);
+ return this.Equals(input as DeliveryContact);
}
///
- /// Returns true if Contact instances are equal
+ /// Returns true if DeliveryContact instances are equal
///
- /// Instance of Contact to be compared
+ /// Instance of DeliveryContact to be compared
/// Boolean
- public bool Equals(Contact input)
+ public bool Equals(DeliveryContact input)
{
if (input == null)
{
@@ -153,6 +159,11 @@ public bool Equals(Contact input)
(this.Address != null &&
this.Address.Equals(input.Address))
) &&
+ (
+ this.Company == input.Company ||
+ (this.Company != null &&
+ this.Company.Equals(input.Company))
+ ) &&
(
this.Email == input.Email ||
(this.Email != null &&
@@ -168,11 +179,6 @@ public bool Equals(Contact input)
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
- (
- this.PersonalData == input.PersonalData ||
- (this.PersonalData != null &&
- this.PersonalData.Equals(input.PersonalData))
- ) &&
(
this.PhoneNumber == input.PhoneNumber ||
(this.PhoneNumber != null &&
@@ -198,6 +204,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Address.GetHashCode();
}
+ if (this.Company != null)
+ {
+ hashCode = (hashCode * 59) + this.Company.GetHashCode();
+ }
if (this.Email != null)
{
hashCode = (hashCode * 59) + this.Email.GetHashCode();
@@ -210,10 +220,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Name.GetHashCode();
}
- if (this.PersonalData != null)
- {
- hashCode = (hashCode * 59) + this.PersonalData.GetHashCode();
- }
if (this.PhoneNumber != null)
{
hashCode = (hashCode * 59) + this.PhoneNumber.GetHashCode();
diff --git a/Adyen/Model/ConfigurationWebhooks/Expiry.cs b/Adyen/Model/ConfigurationWebhooks/Expiry.cs
index e3a45971b..f8a4ff472 100644
--- a/Adyen/Model/ConfigurationWebhooks/Expiry.cs
+++ b/Adyen/Model/ConfigurationWebhooks/Expiry.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/IbanAccountIdentification.cs b/Adyen/Model/ConfigurationWebhooks/IbanAccountIdentification.cs
index 7efadb14e..0dbfd919d 100644
--- a/Adyen/Model/ConfigurationWebhooks/IbanAccountIdentification.cs
+++ b/Adyen/Model/ConfigurationWebhooks/IbanAccountIdentification.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -62,24 +62,14 @@ protected IbanAccountIdentification() { }
///
/// Initializes a new instance of the class.
///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**. (default to "physical").
/// The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. (required).
/// **iban** (required) (default to TypeEnum.Iban).
- public IbanAccountIdentification(string formFactor = "physical", string iban = default(string), TypeEnum type = TypeEnum.Iban)
+ public IbanAccountIdentification(string iban = default(string), TypeEnum type = TypeEnum.Iban)
{
this.Iban = iban;
this.Type = type;
- // use default value if no "formFactor" provided
- this.FormFactor = formFactor ?? "physical";
}
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- [DataMember(Name = "formFactor", EmitDefaultValue = false)]
- public string FormFactor { get; set; }
-
///
/// The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard.
///
@@ -95,7 +85,6 @@ public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class IbanAccountIdentification {\n");
- sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Iban: ").Append(Iban).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
@@ -133,11 +122,6 @@ public bool Equals(IbanAccountIdentification input)
return false;
}
return
- (
- this.FormFactor == input.FormFactor ||
- (this.FormFactor != null &&
- this.FormFactor.Equals(input.FormFactor))
- ) &&
(
this.Iban == input.Iban ||
(this.Iban != null &&
@@ -158,10 +142,6 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.FormFactor != null)
- {
- hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
- }
if (this.Iban != null)
{
hashCode = (hashCode * 59) + this.Iban.GetHashCode();
diff --git a/Adyen/Model/ConfigurationWebhooks/Name.cs b/Adyen/Model/ConfigurationWebhooks/Name.cs
index e102cc5a1..2d7aa80c0 100644
--- a/Adyen/Model/ConfigurationWebhooks/Name.cs
+++ b/Adyen/Model/ConfigurationWebhooks/Name.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/PaymentInstrument.cs b/Adyen/Model/ConfigurationWebhooks/PaymentInstrument.cs
index fc0b7c142..b421bea87 100644
--- a/Adyen/Model/ConfigurationWebhooks/PaymentInstrument.cs
+++ b/Adyen/Model/ConfigurationWebhooks/PaymentInstrument.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -33,75 +33,115 @@ namespace Adyen.Model.ConfigurationWebhooks
public partial class PaymentInstrument : IEquatable, IValidatableObject
{
///
- /// The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **Active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **Requested**. Possible values: * **Active**: The payment instrument is active and can be used to make payments. * **Requested**: The payment instrument has been requested. This state is applicable for physical cards. * **Inactive**: The payment instrument is inactive and cannot be used to make payments. * **Suspended**: The payment instrument is temporarily suspended and cannot be used to make payments. * **Closed**: The payment instrument is permanently closed. This action cannot be undone. * **Stolen** * **Lost**
+ /// The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone.
///
- /// The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **Active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **Requested**. Possible values: * **Active**: The payment instrument is active and can be used to make payments. * **Requested**: The payment instrument has been requested. This state is applicable for physical cards. * **Inactive**: The payment instrument is inactive and cannot be used to make payments. * **Suspended**: The payment instrument is temporarily suspended and cannot be used to make payments. * **Closed**: The payment instrument is permanently closed. This action cannot be undone. * **Stolen** * **Lost**
+ /// The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone.
[JsonConverter(typeof(StringEnumConverter))]
public enum StatusEnum
{
///
- /// Enum Active for value: Active
+ /// Enum Active for value: active
///
- [EnumMember(Value = "Active")]
+ [EnumMember(Value = "active")]
Active = 1,
///
- /// Enum Closed for value: Closed
+ /// Enum Closed for value: closed
///
- [EnumMember(Value = "Closed")]
+ [EnumMember(Value = "closed")]
Closed = 2,
///
- /// Enum Inactive for value: Inactive
+ /// Enum Inactive for value: inactive
///
- [EnumMember(Value = "Inactive")]
+ [EnumMember(Value = "inactive")]
Inactive = 3,
///
- /// Enum Lost for value: Lost
+ /// Enum Suspended for value: suspended
///
- [EnumMember(Value = "Lost")]
- Lost = 4,
+ [EnumMember(Value = "suspended")]
+ Suspended = 4
+
+ }
+
+
+ ///
+ /// The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone.
+ ///
+ /// The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone.
+ [DataMember(Name = "status", EmitDefaultValue = false)]
+ public StatusEnum? Status { get; set; }
+ ///
+ /// The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change.
+ ///
+ /// The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change.
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum StatusReasonEnum
+ {
+ ///
+ /// Enum AccountClosure for value: accountClosure
+ ///
+ [EnumMember(Value = "accountClosure")]
+ AccountClosure = 1,
///
- /// Enum Requested for value: Requested
+ /// Enum Damaged for value: damaged
///
- [EnumMember(Value = "Requested")]
- Requested = 5,
+ [EnumMember(Value = "damaged")]
+ Damaged = 2,
///
- /// Enum Stolen for value: Stolen
+ /// Enum EndOfLife for value: endOfLife
///
- [EnumMember(Value = "Stolen")]
- Stolen = 6,
+ [EnumMember(Value = "endOfLife")]
+ EndOfLife = 3,
///
- /// Enum Suspended for value: Suspended
+ /// Enum Expired for value: expired
///
- [EnumMember(Value = "Suspended")]
- Suspended = 7,
+ [EnumMember(Value = "expired")]
+ Expired = 4,
///
- /// Enum Blocked for value: blocked
+ /// Enum Lost for value: lost
///
- [EnumMember(Value = "blocked")]
- Blocked = 8,
+ [EnumMember(Value = "lost")]
+ Lost = 5,
///
- /// Enum Discarded for value: discarded
+ /// Enum Other for value: other
///
- [EnumMember(Value = "discarded")]
- Discarded = 9
+ [EnumMember(Value = "other")]
+ Other = 6,
+
+ ///
+ /// Enum Stolen for value: stolen
+ ///
+ [EnumMember(Value = "stolen")]
+ Stolen = 7,
+
+ ///
+ /// Enum SuspectedFraud for value: suspectedFraud
+ ///
+ [EnumMember(Value = "suspectedFraud")]
+ SuspectedFraud = 8,
+
+ ///
+ /// Enum TransactionRule for value: transactionRule
+ ///
+ [EnumMember(Value = "transactionRule")]
+ TransactionRule = 9
}
///
- /// The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **Active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **Requested**. Possible values: * **Active**: The payment instrument is active and can be used to make payments. * **Requested**: The payment instrument has been requested. This state is applicable for physical cards. * **Inactive**: The payment instrument is inactive and cannot be used to make payments. * **Suspended**: The payment instrument is temporarily suspended and cannot be used to make payments. * **Closed**: The payment instrument is permanently closed. This action cannot be undone. * **Stolen** * **Lost**
+ /// The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change.
///
- /// The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **Active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **Requested**. Possible values: * **Active**: The payment instrument is active and can be used to make payments. * **Requested**: The payment instrument has been requested. This state is applicable for physical cards. * **Inactive**: The payment instrument is inactive and cannot be used to make payments. * **Suspended**: The payment instrument is temporarily suspended and cannot be used to make payments. * **Closed**: The payment instrument is permanently closed. This action cannot be undone. * **Stolen** * **Lost**
- [DataMember(Name = "status", EmitDefaultValue = false)]
- public StatusEnum? Status { get; set; }
+ /// The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change.
+ [DataMember(Name = "statusReason", EmitDefaultValue = false)]
+ public StatusReasonEnum? StatusReason { get; set; }
///
/// Type of payment instrument. Possible value: **card**, **bankAccount**.
///
@@ -147,9 +187,10 @@ protected PaymentInstrument() { }
/// The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. (required).
/// The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs..
/// Your reference for the payment instrument, maximum 150 characters..
- /// The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **Active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **Requested**. Possible values: * **Active**: The payment instrument is active and can be used to make payments. * **Requested**: The payment instrument has been requested. This state is applicable for physical cards. * **Inactive**: The payment instrument is inactive and cannot be used to make payments. * **Suspended**: The payment instrument is temporarily suspended and cannot be used to make payments. * **Closed**: The payment instrument is permanently closed. This action cannot be undone. * **Stolen** * **Lost** .
+ /// The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. .
+ /// The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change..
/// Type of payment instrument. Possible value: **card**, **bankAccount**. (required).
- public PaymentInstrument(List additionalBankAccountIdentifications = default(List), string balanceAccountId = default(string), PaymentInstrumentBankAccount bankAccount = default(PaymentInstrumentBankAccount), Card card = default(Card), string description = default(string), string id = default(string), string issuingCountryCode = default(string), string paymentInstrumentGroupId = default(string), string reference = default(string), StatusEnum? status = default(StatusEnum?), TypeEnum type = default(TypeEnum))
+ public PaymentInstrument(List additionalBankAccountIdentifications = default(List), string balanceAccountId = default(string), BankAccountDTO bankAccount = default(BankAccountDTO), Card card = default(Card), string description = default(string), string id = default(string), string issuingCountryCode = default(string), string paymentInstrumentGroupId = default(string), string reference = default(string), StatusEnum? status = default(StatusEnum?), StatusReasonEnum? statusReason = default(StatusReasonEnum?), TypeEnum type = default(TypeEnum))
{
this.BalanceAccountId = balanceAccountId;
this.Id = id;
@@ -162,6 +203,7 @@ protected PaymentInstrument() { }
this.PaymentInstrumentGroupId = paymentInstrumentGroupId;
this.Reference = reference;
this.Status = status;
+ this.StatusReason = statusReason;
}
///
@@ -169,6 +211,7 @@ protected PaymentInstrument() { }
///
/// Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**.
[DataMember(Name = "additionalBankAccountIdentifications", EmitDefaultValue = false)]
+ [Obsolete]
public List AdditionalBankAccountIdentifications { get; set; }
///
@@ -182,7 +225,7 @@ protected PaymentInstrument() { }
/// Gets or Sets BankAccount
///
[DataMember(Name = "bankAccount", EmitDefaultValue = false)]
- public PaymentInstrumentBankAccount BankAccount { get; set; }
+ public BankAccountDTO BankAccount { get; set; }
///
/// Gets or Sets Card
@@ -243,6 +286,7 @@ public override string ToString()
sb.Append(" PaymentInstrumentGroupId: ").Append(PaymentInstrumentGroupId).Append("\n");
sb.Append(" Reference: ").Append(Reference).Append("\n");
sb.Append(" Status: ").Append(Status).Append("\n");
+ sb.Append(" StatusReason: ").Append(StatusReason).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -329,6 +373,10 @@ public bool Equals(PaymentInstrument input)
this.Status == input.Status ||
this.Status.Equals(input.Status)
) &&
+ (
+ this.StatusReason == input.StatusReason ||
+ this.StatusReason.Equals(input.StatusReason)
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -381,6 +429,7 @@ public override int GetHashCode()
hashCode = (hashCode * 59) + this.Reference.GetHashCode();
}
hashCode = (hashCode * 59) + this.Status.GetHashCode();
+ hashCode = (hashCode * 59) + this.StatusReason.GetHashCode();
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
diff --git a/Adyen/Model/ConfigurationWebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.cs b/Adyen/Model/ConfigurationWebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.cs
index 093562c54..8ecfd8d56 100644
--- a/Adyen/Model/ConfigurationWebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.cs
+++ b/Adyen/Model/ConfigurationWebhooks/PaymentInstrumentAdditionalBankAccountIdentificationsInner.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/PaymentInstrumentBankAccount.cs b/Adyen/Model/ConfigurationWebhooks/PaymentInstrumentBankAccount.cs
deleted file mode 100644
index 2e21e6412..000000000
--- a/Adyen/Model/ConfigurationWebhooks/PaymentInstrumentBankAccount.cs
+++ /dev/null
@@ -1,314 +0,0 @@
-/*
-* Configuration webhooks
-*
-*
-* The version of the OpenAPI document: 1
-*
-* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
-* https://openapi-generator.tech
-* Do not edit the class manually.
-*/
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Linq;
-using System.IO;
-using System.Runtime.Serialization;
-using System.Text;
-using System.Text.RegularExpressions;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Converters;
-using Newtonsoft.Json.Linq;
-using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
-using System.Reflection;
-
-namespace Adyen.Model.ConfigurationWebhooks
-{
- ///
- /// Contains the business account details. Returned when you create a payment instrument with `type` **bankAccount**.
- ///
- [JsonConverter(typeof(PaymentInstrumentBankAccountJsonConverter))]
- [DataContract(Name = "PaymentInstrument_bankAccount")]
- public partial class PaymentInstrumentBankAccount : AbstractOpenAPISchema, IEquatable, IValidatableObject
- {
- ///
- /// Initializes a new instance of the class
- /// with the class
- ///
- /// An instance of IbanAccountIdentification.
- public PaymentInstrumentBankAccount(IbanAccountIdentification actualInstance)
- {
- this.IsNullable = false;
- this.SchemaType= "oneOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
- }
-
- ///
- /// Initializes a new instance of the class
- /// with the class
- ///
- /// An instance of UKLocalAccountIdentification.
- public PaymentInstrumentBankAccount(UKLocalAccountIdentification actualInstance)
- {
- this.IsNullable = false;
- this.SchemaType= "oneOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
- }
-
- ///
- /// Initializes a new instance of the class
- /// with the class
- ///
- /// An instance of USLocalAccountIdentification.
- public PaymentInstrumentBankAccount(USLocalAccountIdentification actualInstance)
- {
- this.IsNullable = false;
- this.SchemaType= "oneOf";
- this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null.");
- }
-
-
- private Object _actualInstance;
-
- ///
- /// Gets or Sets ActualInstance
- ///
- public override Object ActualInstance
- {
- get
- {
- return _actualInstance;
- }
- set
- {
- if (value.GetType() == typeof(IbanAccountIdentification))
- {
- this._actualInstance = value;
- }
- else if (value.GetType() == typeof(UKLocalAccountIdentification))
- {
- this._actualInstance = value;
- }
- else if (value.GetType() == typeof(USLocalAccountIdentification))
- {
- this._actualInstance = value;
- }
- else
- {
- throw new ArgumentException("Invalid instance found. Must be the following types: IbanAccountIdentification, UKLocalAccountIdentification, USLocalAccountIdentification");
- }
- }
- }
-
- ///
- /// Get the actual instance of `IbanAccountIdentification`. If the actual instance is not `IbanAccountIdentification`,
- /// the InvalidClassException will be thrown
- ///
- /// An instance of IbanAccountIdentification
- public IbanAccountIdentification GetIbanAccountIdentification()
- {
- return (IbanAccountIdentification)this.ActualInstance;
- }
-
- ///
- /// Get the actual instance of `UKLocalAccountIdentification`. If the actual instance is not `UKLocalAccountIdentification`,
- /// the InvalidClassException will be thrown
- ///
- /// An instance of UKLocalAccountIdentification
- public UKLocalAccountIdentification GetUKLocalAccountIdentification()
- {
- return (UKLocalAccountIdentification)this.ActualInstance;
- }
-
- ///
- /// Get the actual instance of `USLocalAccountIdentification`. If the actual instance is not `USLocalAccountIdentification`,
- /// the InvalidClassException will be thrown
- ///
- /// An instance of USLocalAccountIdentification
- public USLocalAccountIdentification GetUSLocalAccountIdentification()
- {
- return (USLocalAccountIdentification)this.ActualInstance;
- }
-
- ///
- /// Returns the string presentation of the object
- ///
- /// String presentation of the object
- public override string ToString()
- {
- var sb = new StringBuilder();
- sb.Append("class PaymentInstrumentBankAccount {\n");
- sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n");
- sb.Append("}\n");
- return sb.ToString();
- }
-
- ///
- /// Returns the JSON string presentation of the object
- ///
- /// JSON string presentation of the object
- public override string ToJson()
- {
- return JsonConvert.SerializeObject(this.ActualInstance, PaymentInstrumentBankAccount.SerializerSettings);
- }
-
- ///
- /// Converts the JSON string into an instance of PaymentInstrumentBankAccount
- ///
- /// JSON string
- /// An instance of PaymentInstrumentBankAccount
- public static PaymentInstrumentBankAccount FromJson(string jsonString)
- {
- PaymentInstrumentBankAccount newPaymentInstrumentBankAccount = null;
-
- if (string.IsNullOrEmpty(jsonString))
- {
- return newPaymentInstrumentBankAccount;
- }
- int match = 0;
- List matchedTypes = new List();
- JToken typeToken = JObject.Parse(jsonString).GetValue("type");
- string type = typeToken?.Value();
- // Throw exception if jsonString does not contain type param
- if (type == null)
- {
- throw new InvalidDataException("JsonString does not contain required enum type for deserialization.");
- }
- try
- {
- // Check if the jsonString type enum matches the IbanAccountIdentification type enums
- if (ContainsValue(type))
- {
- newPaymentInstrumentBankAccount = new PaymentInstrumentBankAccount(JsonConvert.DeserializeObject(jsonString, PaymentInstrumentBankAccount.SerializerSettings));
- matchedTypes.Add("IbanAccountIdentification");
- match++;
- }
- // Check if the jsonString type enum matches the UKLocalAccountIdentification type enums
- if (ContainsValue(type))
- {
- newPaymentInstrumentBankAccount = new PaymentInstrumentBankAccount(JsonConvert.DeserializeObject(jsonString, PaymentInstrumentBankAccount.SerializerSettings));
- matchedTypes.Add("UKLocalAccountIdentification");
- match++;
- }
- // Check if the jsonString type enum matches the USLocalAccountIdentification type enums
- if (ContainsValue(type))
- {
- newPaymentInstrumentBankAccount = new PaymentInstrumentBankAccount(JsonConvert.DeserializeObject(jsonString, PaymentInstrumentBankAccount.SerializerSettings));
- matchedTypes.Add("USLocalAccountIdentification");
- match++;
- }
- }
- catch (Exception ex)
- {
- if (!(ex is JsonSerializationException))
- {
- throw new InvalidDataException(string.Format("Failed to deserialize `{0}` into target: {1}", jsonString, ex.ToString()));
- }
- }
-
- if (match != 1)
- {
- throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined. MatchedTypes are: " + matchedTypes);
- }
-
- // deserialization is considered successful at this point if no exception has been thrown.
- return newPaymentInstrumentBankAccount;
- }
-
- ///
- /// Returns true if objects are equal
- ///
- /// Object to be compared
- /// Boolean
- public override bool Equals(object input)
- {
- return this.Equals(input as PaymentInstrumentBankAccount);
- }
-
- ///
- /// Returns true if PaymentInstrumentBankAccount instances are equal
- ///
- /// Instance of PaymentInstrumentBankAccount to be compared
- /// Boolean
- public bool Equals(PaymentInstrumentBankAccount input)
- {
- if (input == null)
- return false;
-
- return this.ActualInstance.Equals(input.ActualInstance);
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.ActualInstance != null)
- hashCode = hashCode * 59 + this.ActualInstance.GetHashCode();
- return hashCode;
- }
- }
-
- ///
- /// To validate all properties of the instance
- ///
- /// Validation context
- /// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
- {
- yield break;
- }
- }
-
- ///
- /// Custom JSON converter for PaymentInstrumentBankAccount
- ///
- public class PaymentInstrumentBankAccountJsonConverter : JsonConverter
- {
- ///
- /// To write the JSON string
- ///
- /// JSON writer
- /// Object to be converted into a JSON string
- /// JSON Serializer
- public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
- {
- writer.WriteRawValue((string)(typeof(PaymentInstrumentBankAccount).GetMethod("ToJson").Invoke(value, null)));
- }
-
- ///
- /// To convert a JSON string into an object
- ///
- /// JSON reader
- /// Object type
- /// Existing value
- /// JSON Serializer
- /// The object converted from the JSON string
- public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
- {
- if(reader.TokenType != JsonToken.Null)
- {
- return PaymentInstrumentBankAccount.FromJson(JObject.Load(reader).ToString(Formatting.None));
- }
- return null;
- }
-
- ///
- /// Check if the object can be converted
- ///
- /// Object type
- /// True if the object can be converted
- public override bool CanConvert(Type objectType)
- {
- return false;
- }
- }
-
-}
diff --git a/Adyen/Model/ConfigurationWebhooks/PaymentInstrumentNotificationData.cs b/Adyen/Model/ConfigurationWebhooks/PaymentInstrumentNotificationData.cs
index 81a2cfa09..4add5946a 100644
--- a/Adyen/Model/ConfigurationWebhooks/PaymentInstrumentNotificationData.cs
+++ b/Adyen/Model/ConfigurationWebhooks/PaymentInstrumentNotificationData.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/PaymentNotificationRequest.cs b/Adyen/Model/ConfigurationWebhooks/PaymentNotificationRequest.cs
index 4c2c51744..205995233 100644
--- a/Adyen/Model/ConfigurationWebhooks/PaymentNotificationRequest.cs
+++ b/Adyen/Model/ConfigurationWebhooks/PaymentNotificationRequest.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/PersonalData.cs b/Adyen/Model/ConfigurationWebhooks/PersonalData.cs
deleted file mode 100644
index 68bce0e6c..000000000
--- a/Adyen/Model/ConfigurationWebhooks/PersonalData.cs
+++ /dev/null
@@ -1,179 +0,0 @@
-/*
-* Configuration webhooks
-*
-*
-* The version of the OpenAPI document: 1
-*
-* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
-* https://openapi-generator.tech
-* Do not edit the class manually.
-*/
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Linq;
-using System.IO;
-using System.Runtime.Serialization;
-using System.Text;
-using System.Text.RegularExpressions;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Converters;
-using Newtonsoft.Json.Linq;
-using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
-
-namespace Adyen.Model.ConfigurationWebhooks
-{
- ///
- /// PersonalData
- ///
- [DataContract(Name = "PersonalData")]
- public partial class PersonalData : IEquatable, IValidatableObject
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// The date of birth of the person. The date should be in ISO-8601 format yyyy-mm-dd (e.g. 2000-01-31)..
- /// An ID number of the person..
- /// The nationality of the person represented by a two-character country code. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL')..
- public PersonalData(string dateOfBirth = default(string), string idNumber = default(string), string nationality = default(string))
- {
- this.DateOfBirth = dateOfBirth;
- this.IdNumber = idNumber;
- this.Nationality = nationality;
- }
-
- ///
- /// The date of birth of the person. The date should be in ISO-8601 format yyyy-mm-dd (e.g. 2000-01-31).
- ///
- /// The date of birth of the person. The date should be in ISO-8601 format yyyy-mm-dd (e.g. 2000-01-31).
- [DataMember(Name = "dateOfBirth", EmitDefaultValue = false)]
- public string DateOfBirth { get; set; }
-
- ///
- /// An ID number of the person.
- ///
- /// An ID number of the person.
- [DataMember(Name = "idNumber", EmitDefaultValue = false)]
- public string IdNumber { get; set; }
-
- ///
- /// The nationality of the person represented by a two-character country code. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL').
- ///
- /// The nationality of the person represented by a two-character country code. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL').
- [DataMember(Name = "nationality", EmitDefaultValue = false)]
- public string Nationality { 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 PersonalData {\n");
- sb.Append(" DateOfBirth: ").Append(DateOfBirth).Append("\n");
- sb.Append(" IdNumber: ").Append(IdNumber).Append("\n");
- sb.Append(" Nationality: ").Append(Nationality).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 PersonalData);
- }
-
- ///
- /// Returns true if PersonalData instances are equal
- ///
- /// Instance of PersonalData to be compared
- /// Boolean
- public bool Equals(PersonalData input)
- {
- if (input == null)
- {
- return false;
- }
- return
- (
- this.DateOfBirth == input.DateOfBirth ||
- (this.DateOfBirth != null &&
- this.DateOfBirth.Equals(input.DateOfBirth))
- ) &&
- (
- this.IdNumber == input.IdNumber ||
- (this.IdNumber != null &&
- this.IdNumber.Equals(input.IdNumber))
- ) &&
- (
- this.Nationality == input.Nationality ||
- (this.Nationality != null &&
- this.Nationality.Equals(input.Nationality))
- );
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.DateOfBirth != null)
- {
- hashCode = (hashCode * 59) + this.DateOfBirth.GetHashCode();
- }
- if (this.IdNumber != null)
- {
- hashCode = (hashCode * 59) + this.IdNumber.GetHashCode();
- }
- if (this.Nationality != null)
- {
- hashCode = (hashCode * 59) + this.Nationality.GetHashCode();
- }
- return hashCode;
- }
- }
- ///
- /// To validate all properties of the instance
- ///
- /// Validation context
- /// Validation Result
- public IEnumerable Validate(ValidationContext validationContext)
- {
- // Nationality (string) maxLength
- if (this.Nationality != null && this.Nationality.Length > 2)
- {
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Nationality, length must be less than 2.", new [] { "Nationality" });
- }
-
- // Nationality (string) minLength
- if (this.Nationality != null && this.Nationality.Length < 2)
- {
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Nationality, length must be greater than 2.", new [] { "Nationality" });
- }
-
- yield break;
- }
- }
-
-}
diff --git a/Adyen/Model/ConfigurationWebhooks/Phone.cs b/Adyen/Model/ConfigurationWebhooks/Phone.cs
index 3943c6cf9..ad9950bb7 100644
--- a/Adyen/Model/ConfigurationWebhooks/Phone.cs
+++ b/Adyen/Model/ConfigurationWebhooks/Phone.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -40,15 +40,15 @@ public partial class Phone : IEquatable, IValidatableObject
public enum TypeEnum
{
///
- /// Enum Landline for value: Landline
+ /// Enum Landline for value: landline
///
- [EnumMember(Value = "Landline")]
+ [EnumMember(Value = "landline")]
Landline = 1,
///
- /// Enum Mobile for value: Mobile
+ /// Enum Mobile for value: mobile
///
- [EnumMember(Value = "Mobile")]
+ [EnumMember(Value = "mobile")]
Mobile = 2
}
diff --git a/Adyen/Model/ConfigurationWebhooks/PhoneNumber.cs b/Adyen/Model/ConfigurationWebhooks/PhoneNumber.cs
index f9e9dc193..85d966273 100644
--- a/Adyen/Model/ConfigurationWebhooks/PhoneNumber.cs
+++ b/Adyen/Model/ConfigurationWebhooks/PhoneNumber.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/PlatformPaymentConfiguration.cs b/Adyen/Model/ConfigurationWebhooks/PlatformPaymentConfiguration.cs
index 91284f198..f88c954f7 100644
--- a/Adyen/Model/ConfigurationWebhooks/PlatformPaymentConfiguration.cs
+++ b/Adyen/Model/ConfigurationWebhooks/PlatformPaymentConfiguration.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -35,8 +35,8 @@ public partial class PlatformPaymentConfiguration : IEquatable
/// Initializes a new instance of the class.
///
- /// Specifies at what time a [sales day](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/sales-day-settlement#sales-day) ends. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**..
- /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/sales-day-settlement#settlement-batch) are made available. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables [Sales day settlement](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables [Pass-through settlement](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/pass-through-settlement). Default value: **null**..
+ /// Specifies at what time a [sales day](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#sales-day) ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**..
+ /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**..
public PlatformPaymentConfiguration(string salesDayClosingTime = default(string), int? settlementDelayDays = default(int?))
{
this.SalesDayClosingTime = salesDayClosingTime;
@@ -44,16 +44,16 @@ public partial class PlatformPaymentConfiguration : IEquatable
- /// Specifies at what time a [sales day](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/sales-day-settlement#sales-day) ends. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**.
+ /// Specifies at what time a [sales day](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#sales-day) ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**.
///
- /// Specifies at what time a [sales day](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/sales-day-settlement#sales-day) ends. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**.
+ /// Specifies at what time a [sales day](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#sales-day) ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**.
[DataMember(Name = "salesDayClosingTime", EmitDefaultValue = false)]
public string SalesDayClosingTime { get; set; }
///
- /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/sales-day-settlement#settlement-batch) are made available. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables [Sales day settlement](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables [Pass-through settlement](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/pass-through-settlement). Default value: **null**.
+ /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**.
///
- /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/sales-day-settlement#settlement-batch) are made available. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables [Sales day settlement](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables [Pass-through settlement](https://docs.adyen.com/marketplaces-and-platforms/settle-funds/pass-through-settlement). Default value: **null**.
+ /// Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**.
[DataMember(Name = "settlementDelayDays", EmitDefaultValue = false)]
public int? SettlementDelayDays { get; set; }
diff --git a/Adyen/Model/ConfigurationWebhooks/RemediatingAction.cs b/Adyen/Model/ConfigurationWebhooks/RemediatingAction.cs
index 0f1b6a563..c08302120 100644
--- a/Adyen/Model/ConfigurationWebhooks/RemediatingAction.cs
+++ b/Adyen/Model/ConfigurationWebhooks/RemediatingAction.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/Resource.cs b/Adyen/Model/ConfigurationWebhooks/Resource.cs
index 20f107ff5..f7626eb20 100644
--- a/Adyen/Model/ConfigurationWebhooks/Resource.cs
+++ b/Adyen/Model/ConfigurationWebhooks/Resource.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/SweepConfigurationNotificationData.cs b/Adyen/Model/ConfigurationWebhooks/SweepConfigurationNotificationData.cs
index ed06fb1d6..477a66b48 100644
--- a/Adyen/Model/ConfigurationWebhooks/SweepConfigurationNotificationData.cs
+++ b/Adyen/Model/ConfigurationWebhooks/SweepConfigurationNotificationData.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/SweepConfigurationNotificationRequest.cs b/Adyen/Model/ConfigurationWebhooks/SweepConfigurationNotificationRequest.cs
index dd7a91bba..365259405 100644
--- a/Adyen/Model/ConfigurationWebhooks/SweepConfigurationNotificationRequest.cs
+++ b/Adyen/Model/ConfigurationWebhooks/SweepConfigurationNotificationRequest.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/SweepConfigurationV2.cs b/Adyen/Model/ConfigurationWebhooks/SweepConfigurationV2.cs
index f5e6e2f39..d52bfda46 100644
--- a/Adyen/Model/ConfigurationWebhooks/SweepConfigurationV2.cs
+++ b/Adyen/Model/ConfigurationWebhooks/SweepConfigurationV2.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -32,6 +32,92 @@ namespace Adyen.Model.ConfigurationWebhooks
[DataContract(Name = "SweepConfigurationV2")]
public partial class SweepConfigurationV2 : IEquatable, IValidatableObject
{
+ ///
+ /// The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`.
+ ///
+ /// The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`.
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum CategoryEnum
+ {
+ ///
+ /// Enum Bank for value: bank
+ ///
+ [EnumMember(Value = "bank")]
+ Bank = 1,
+
+ ///
+ /// Enum Internal for value: internal
+ ///
+ [EnumMember(Value = "internal")]
+ Internal = 2,
+
+ ///
+ /// Enum PlatformPayment for value: platformPayment
+ ///
+ [EnumMember(Value = "platformPayment")]
+ PlatformPayment = 3
+
+ }
+
+
+ ///
+ /// The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`.
+ ///
+ /// The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`.
+ [DataMember(Name = "category", EmitDefaultValue = false)]
+ public CategoryEnum? Category { get; set; }
+ ///
+ /// Defines Priorities
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum PrioritiesEnum
+ {
+ ///
+ /// Enum CrossBorder for value: crossBorder
+ ///
+ [EnumMember(Value = "crossBorder")]
+ CrossBorder = 1,
+
+ ///
+ /// Enum Fast for value: fast
+ ///
+ [EnumMember(Value = "fast")]
+ Fast = 2,
+
+ ///
+ /// Enum Instant for value: instant
+ ///
+ [EnumMember(Value = "instant")]
+ Instant = 3,
+
+ ///
+ /// Enum Internal for value: internal
+ ///
+ [EnumMember(Value = "internal")]
+ Internal = 4,
+
+ ///
+ /// Enum Regular for value: regular
+ ///
+ [EnumMember(Value = "regular")]
+ Regular = 5,
+
+ ///
+ /// Enum Wire for value: wire
+ ///
+ [EnumMember(Value = "wire")]
+ Wire = 6
+
+ }
+
+
+
+ ///
+ /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: For normal, low-value transactions. * **fast**: 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). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
+ ///
+ /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: For normal, low-value transactions. * **fast**: 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). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
+ [DataMember(Name = "priorities", EmitDefaultValue = false)]
+ public List Priorities { get; set; }
///
/// The reason for disabling the sweep.
///
@@ -111,29 +197,35 @@ public enum ReasonEnum
[EnumMember(Value = "notEnoughBalance")]
NotEnoughBalance = 12,
+ ///
+ /// Enum PendingApproval for value: pendingApproval
+ ///
+ [EnumMember(Value = "pendingApproval")]
+ PendingApproval = 13,
+
///
/// Enum RefusedByCounterpartyBank for value: refusedByCounterpartyBank
///
[EnumMember(Value = "refusedByCounterpartyBank")]
- RefusedByCounterpartyBank = 13,
+ RefusedByCounterpartyBank = 14,
///
/// Enum RouteNotFound for value: routeNotFound
///
[EnumMember(Value = "routeNotFound")]
- RouteNotFound = 14,
+ RouteNotFound = 15,
///
/// Enum ScaFailed for value: scaFailed
///
[EnumMember(Value = "scaFailed")]
- ScaFailed = 15,
+ ScaFailed = 16,
///
/// Enum Unknown for value: unknown
///
[EnumMember(Value = "unknown")]
- Unknown = 16
+ Unknown = 17
}
@@ -208,25 +300,33 @@ protected SweepConfigurationV2() { }
///
/// Initializes a new instance of the class.
///
+ /// The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`..
/// counterparty (required).
/// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). (required).
/// The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters..
/// The unique identifier of the sweep. (required).
+ /// The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: For normal, low-value transactions. * **fast**: 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). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup)..
/// The reason for disabling the sweep..
+ /// Your reference for the sweep configuration..
+ /// The reference sent to or received from the counterparty. Only alphanumeric characters are allowed..
/// schedule (required).
/// The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. .
/// sweepAmount.
/// targetAmount.
/// triggerAmount.
/// The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. (default to TypeEnum.Push).
- public SweepConfigurationV2(SweepCounterparty counterparty = default(SweepCounterparty), string currency = default(string), string description = default(string), string id = default(string), ReasonEnum? reason = default(ReasonEnum?), SweepSchedule schedule = default(SweepSchedule), StatusEnum? status = default(StatusEnum?), Amount sweepAmount = default(Amount), Amount targetAmount = default(Amount), Amount triggerAmount = default(Amount), TypeEnum? type = TypeEnum.Push)
+ public SweepConfigurationV2(CategoryEnum? category = default(CategoryEnum?), SweepCounterparty counterparty = default(SweepCounterparty), string currency = default(string), string description = default(string), string id = default(string), List priorities = default(List), ReasonEnum? reason = default(ReasonEnum?), string reference = default(string), string referenceForBeneficiary = default(string), SweepSchedule schedule = default(SweepSchedule), StatusEnum? status = default(StatusEnum?), Amount sweepAmount = default(Amount), Amount targetAmount = default(Amount), Amount triggerAmount = default(Amount), TypeEnum? type = TypeEnum.Push)
{
this.Counterparty = counterparty;
this.Currency = currency;
this.Id = id;
this.Schedule = schedule;
+ this.Category = category;
this.Description = description;
+ this.Priorities = priorities;
this.Reason = reason;
+ this.Reference = reference;
+ this.ReferenceForBeneficiary = referenceForBeneficiary;
this.Status = status;
this.SweepAmount = sweepAmount;
this.TargetAmount = targetAmount;
@@ -261,6 +361,20 @@ protected SweepConfigurationV2() { }
[DataMember(Name = "id", IsRequired = false, EmitDefaultValue = false)]
public string Id { get; set; }
+ ///
+ /// Your reference for the sweep configuration.
+ ///
+ /// Your reference for the sweep configuration.
+ [DataMember(Name = "reference", EmitDefaultValue = false)]
+ public string Reference { get; set; }
+
+ ///
+ /// The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.
+ ///
+ /// The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.
+ [DataMember(Name = "referenceForBeneficiary", EmitDefaultValue = false)]
+ public string ReferenceForBeneficiary { get; set; }
+
///
/// Gets or Sets Schedule
///
@@ -293,11 +407,15 @@ public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class SweepConfigurationV2 {\n");
+ sb.Append(" Category: ").Append(Category).Append("\n");
sb.Append(" Counterparty: ").Append(Counterparty).Append("\n");
sb.Append(" Currency: ").Append(Currency).Append("\n");
sb.Append(" Description: ").Append(Description).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Priorities: ").Append(Priorities).Append("\n");
sb.Append(" Reason: ").Append(Reason).Append("\n");
+ sb.Append(" Reference: ").Append(Reference).Append("\n");
+ sb.Append(" ReferenceForBeneficiary: ").Append(ReferenceForBeneficiary).Append("\n");
sb.Append(" Schedule: ").Append(Schedule).Append("\n");
sb.Append(" Status: ").Append(Status).Append("\n");
sb.Append(" SweepAmount: ").Append(SweepAmount).Append("\n");
@@ -339,6 +457,10 @@ public bool Equals(SweepConfigurationV2 input)
return false;
}
return
+ (
+ this.Category == input.Category ||
+ this.Category.Equals(input.Category)
+ ) &&
(
this.Counterparty == input.Counterparty ||
(this.Counterparty != null &&
@@ -359,10 +481,24 @@ public bool Equals(SweepConfigurationV2 input)
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
+ (
+ this.Priorities == input.Priorities ||
+ this.Priorities.SequenceEqual(input.Priorities)
+ ) &&
(
this.Reason == input.Reason ||
this.Reason.Equals(input.Reason)
) &&
+ (
+ this.Reference == input.Reference ||
+ (this.Reference != null &&
+ this.Reference.Equals(input.Reference))
+ ) &&
+ (
+ this.ReferenceForBeneficiary == input.ReferenceForBeneficiary ||
+ (this.ReferenceForBeneficiary != null &&
+ this.ReferenceForBeneficiary.Equals(input.ReferenceForBeneficiary))
+ ) &&
(
this.Schedule == input.Schedule ||
(this.Schedule != null &&
@@ -402,6 +538,7 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
+ hashCode = (hashCode * 59) + this.Category.GetHashCode();
if (this.Counterparty != null)
{
hashCode = (hashCode * 59) + this.Counterparty.GetHashCode();
@@ -418,7 +555,16 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Id.GetHashCode();
}
+ hashCode = (hashCode * 59) + this.Priorities.GetHashCode();
hashCode = (hashCode * 59) + this.Reason.GetHashCode();
+ if (this.Reference != null)
+ {
+ hashCode = (hashCode * 59) + this.Reference.GetHashCode();
+ }
+ if (this.ReferenceForBeneficiary != null)
+ {
+ hashCode = (hashCode * 59) + this.ReferenceForBeneficiary.GetHashCode();
+ }
if (this.Schedule != null)
{
hashCode = (hashCode * 59) + this.Schedule.GetHashCode();
@@ -447,6 +593,18 @@ public override int GetHashCode()
/// Validation Result
public IEnumerable Validate(ValidationContext validationContext)
{
+ // Reference (string) maxLength
+ if (this.Reference != null && this.Reference.Length > 80)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Reference, length must be less than 80.", new [] { "Reference" });
+ }
+
+ // ReferenceForBeneficiary (string) maxLength
+ if (this.ReferenceForBeneficiary != null && this.ReferenceForBeneficiary.Length > 80)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReferenceForBeneficiary, length must be less than 80.", new [] { "ReferenceForBeneficiary" });
+ }
+
yield break;
}
}
diff --git a/Adyen/Model/ConfigurationWebhooks/SweepCounterparty.cs b/Adyen/Model/ConfigurationWebhooks/SweepCounterparty.cs
index b8c4aea71..30d5bf78d 100644
--- a/Adyen/Model/ConfigurationWebhooks/SweepCounterparty.cs
+++ b/Adyen/Model/ConfigurationWebhooks/SweepCounterparty.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -37,7 +37,7 @@ public partial class SweepCounterparty : IEquatable, IValidat
///
/// The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). You can only use this for periodic sweep schedules such as `schedule.type` **daily** or **monthly**..
/// The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and `schedule.type` **balance**, and if you are processing payments with Adyen..
- /// The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To [set up automated top-up sweeps to balance accounts](https://docs.adyen.com/marketplaces-and-platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature..
+ /// The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type`. To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature..
public SweepCounterparty(string balanceAccountId = default(string), string merchantAccount = default(string), string transferInstrumentId = default(string))
{
this.BalanceAccountId = balanceAccountId;
@@ -60,9 +60,9 @@ public partial class SweepCounterparty : IEquatable, IValidat
public string MerchantAccount { get; set; }
///
- /// The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To [set up automated top-up sweeps to balance accounts](https://docs.adyen.com/marketplaces-and-platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.
+ /// The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type`. To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.
///
- /// The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` . To [set up automated top-up sweeps to balance accounts](https://docs.adyen.com/marketplaces-and-platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.
+ /// The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type`. To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**. Top-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.
[DataMember(Name = "transferInstrumentId", EmitDefaultValue = false)]
public string TransferInstrumentId { get; set; }
diff --git a/Adyen/Model/ConfigurationWebhooks/SweepSchedule.cs b/Adyen/Model/ConfigurationWebhooks/SweepSchedule.cs
index bad2445c4..22534d4da 100644
--- a/Adyen/Model/ConfigurationWebhooks/SweepSchedule.cs
+++ b/Adyen/Model/ConfigurationWebhooks/SweepSchedule.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/UKLocalAccountIdentification.cs b/Adyen/Model/ConfigurationWebhooks/UKLocalAccountIdentification.cs
deleted file mode 100644
index 23042b8cc..000000000
--- a/Adyen/Model/ConfigurationWebhooks/UKLocalAccountIdentification.cs
+++ /dev/null
@@ -1,227 +0,0 @@
-/*
-* Configuration webhooks
-*
-*
-* The version of the OpenAPI document: 1
-*
-* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
-* https://openapi-generator.tech
-* Do not edit the class manually.
-*/
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Linq;
-using System.IO;
-using System.Runtime.Serialization;
-using System.Text;
-using System.Text.RegularExpressions;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Converters;
-using Newtonsoft.Json.Linq;
-using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
-
-namespace Adyen.Model.ConfigurationWebhooks
-{
- ///
- /// UKLocalAccountIdentification
- ///
- [DataContract(Name = "UKLocalAccountIdentification")]
- public partial class UKLocalAccountIdentification : IEquatable, IValidatableObject
- {
- ///
- /// **ukLocal**
- ///
- /// **ukLocal**
- [JsonConverter(typeof(StringEnumConverter))]
- public enum TypeEnum
- {
- ///
- /// Enum UkLocal for value: ukLocal
- ///
- [EnumMember(Value = "ukLocal")]
- UkLocal = 1
-
- }
-
-
- ///
- /// **ukLocal**
- ///
- /// **ukLocal**
- [DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)]
- public TypeEnum Type { get; set; }
- ///
- /// Initializes a new instance of the class.
- ///
- [JsonConstructorAttribute]
- protected UKLocalAccountIdentification() { }
- ///
- /// Initializes a new instance of the class.
- ///
- /// The 8-digit bank account number, without separators or whitespace. (required).
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**. (default to "physical").
- /// The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. (required).
- /// **ukLocal** (required) (default to TypeEnum.UkLocal).
- public UKLocalAccountIdentification(string accountNumber = default(string), string formFactor = "physical", string sortCode = default(string), TypeEnum type = TypeEnum.UkLocal)
- {
- this.AccountNumber = accountNumber;
- this.SortCode = sortCode;
- this.Type = type;
- // use default value if no "formFactor" provided
- this.FormFactor = formFactor ?? "physical";
- }
-
- ///
- /// The 8-digit bank account number, without separators or whitespace.
- ///
- /// The 8-digit bank account number, without separators or whitespace.
- [DataMember(Name = "accountNumber", IsRequired = false, EmitDefaultValue = false)]
- public string AccountNumber { get; set; }
-
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- ///
- /// The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
- [DataMember(Name = "formFactor", EmitDefaultValue = false)]
- public string FormFactor { get; set; }
-
- ///
- /// The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace.
- ///
- /// The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace.
- [DataMember(Name = "sortCode", IsRequired = false, EmitDefaultValue = false)]
- public string SortCode { 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 UKLocalAccountIdentification {\n");
- sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
- sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
- sb.Append(" SortCode: ").Append(SortCode).Append("\n");
- sb.Append(" Type: ").Append(Type).Append("\n");
- sb.Append("}\n");
- 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 UKLocalAccountIdentification);
- }
-
- ///
- /// Returns true if UKLocalAccountIdentification instances are equal
- ///
- /// Instance of UKLocalAccountIdentification to be compared
- /// Boolean
- public bool Equals(UKLocalAccountIdentification input)
- {
- if (input == null)
- {
- return false;
- }
- return
- (
- this.AccountNumber == input.AccountNumber ||
- (this.AccountNumber != null &&
- this.AccountNumber.Equals(input.AccountNumber))
- ) &&
- (
- this.FormFactor == input.FormFactor ||
- (this.FormFactor != null &&
- this.FormFactor.Equals(input.FormFactor))
- ) &&
- (
- this.SortCode == input.SortCode ||
- (this.SortCode != null &&
- this.SortCode.Equals(input.SortCode))
- ) &&
- (
- this.Type == input.Type ||
- this.Type.Equals(input.Type)
- );
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.AccountNumber != null)
- {
- hashCode = (hashCode * 59) + this.AccountNumber.GetHashCode();
- }
- if (this.FormFactor != null)
- {
- hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
- }
- if (this.SortCode != null)
- {
- hashCode = (hashCode * 59) + this.SortCode.GetHashCode();
- }
- hashCode = (hashCode * 59) + this.Type.GetHashCode();
- return hashCode;
- }
- }
- ///
- /// To validate all properties of the instance
- ///
- /// Validation context
- /// Validation Result
- public IEnumerable Validate(ValidationContext validationContext)
- {
- // AccountNumber (string) maxLength
- if (this.AccountNumber != null && this.AccountNumber.Length > 8)
- {
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountNumber, length must be less than 8.", new [] { "AccountNumber" });
- }
-
- // AccountNumber (string) minLength
- if (this.AccountNumber != null && this.AccountNumber.Length < 8)
- {
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AccountNumber, length must be greater than 8.", new [] { "AccountNumber" });
- }
-
- // SortCode (string) maxLength
- if (this.SortCode != null && this.SortCode.Length > 6)
- {
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SortCode, length must be less than 6.", new [] { "SortCode" });
- }
-
- // SortCode (string) minLength
- if (this.SortCode != null && this.SortCode.Length < 6)
- {
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SortCode, length must be greater than 6.", new [] { "SortCode" });
- }
-
- yield break;
- }
- }
-
-}
diff --git a/Adyen/Model/ConfigurationWebhooks/VerificationDeadline.cs b/Adyen/Model/ConfigurationWebhooks/VerificationDeadline.cs
index ef7675787..f0c958aa8 100644
--- a/Adyen/Model/ConfigurationWebhooks/VerificationDeadline.cs
+++ b/Adyen/Model/ConfigurationWebhooks/VerificationDeadline.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/VerificationError.cs b/Adyen/Model/ConfigurationWebhooks/VerificationError.cs
index 423269bb9..6793abac4 100644
--- a/Adyen/Model/ConfigurationWebhooks/VerificationError.cs
+++ b/Adyen/Model/ConfigurationWebhooks/VerificationError.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/ConfigurationWebhooks/VerificationErrorRecursive.cs b/Adyen/Model/ConfigurationWebhooks/VerificationErrorRecursive.cs
index 32fdeef55..773470ab0 100644
--- a/Adyen/Model/ConfigurationWebhooks/VerificationErrorRecursive.cs
+++ b/Adyen/Model/ConfigurationWebhooks/VerificationErrorRecursive.cs
@@ -2,7 +2,7 @@
* Configuration webhooks
*
*
-* The version of the OpenAPI document: 1
+* The version of the OpenAPI document: 2
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
diff --git a/Adyen/Model/Payment/FundDestination.cs b/Adyen/Model/Payment/FundDestination.cs
index 4d4a901bf..fc07e5d67 100644
--- a/Adyen/Model/Payment/FundDestination.cs
+++ b/Adyen/Model/Payment/FundDestination.cs
@@ -44,7 +44,8 @@ public partial class FundDestination : IEquatable, IValidatable
/// Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address..
/// subMerchant.
/// the telephone number of the person.
- public FundDestination(Dictionary additionalData = default(Dictionary), Address billingAddress = default(Address), Card card = default(Card), string selectedRecurringDetailReference = default(string), string shopperEmail = default(string), Name shopperName = default(Name), string shopperReference = default(string), SubMerchant subMerchant = default(SubMerchant), string telephoneNumber = default(string))
+ /// The purpose of a digital wallet transaction..
+ public FundDestination(Dictionary additionalData = default(Dictionary), Address billingAddress = default(Address), Card card = default(Card), string selectedRecurringDetailReference = default(string), string shopperEmail = default(string), Name shopperName = default(Name), string shopperReference = default(string), SubMerchant subMerchant = default(SubMerchant), string telephoneNumber = default(string), string walletPurpose = default(string))
{
this.AdditionalData = additionalData;
this.BillingAddress = billingAddress;
@@ -55,6 +56,7 @@ public partial class FundDestination : IEquatable, IValidatable
this.ShopperReference = shopperReference;
this.SubMerchant = subMerchant;
this.TelephoneNumber = telephoneNumber;
+ this.WalletPurpose = walletPurpose;
}
///
@@ -116,6 +118,13 @@ public partial class FundDestination : IEquatable, IValidatable
[DataMember(Name = "telephoneNumber", EmitDefaultValue = false)]
public string TelephoneNumber { get; set; }
+ ///
+ /// The purpose of a digital wallet transaction.
+ ///
+ /// The purpose of a digital wallet transaction.
+ [DataMember(Name = "walletPurpose", EmitDefaultValue = false)]
+ public string WalletPurpose { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -133,6 +142,7 @@ public override string ToString()
sb.Append(" ShopperReference: ").Append(ShopperReference).Append("\n");
sb.Append(" SubMerchant: ").Append(SubMerchant).Append("\n");
sb.Append(" TelephoneNumber: ").Append(TelephoneNumber).Append("\n");
+ sb.Append(" WalletPurpose: ").Append(WalletPurpose).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -213,6 +223,11 @@ public bool Equals(FundDestination input)
this.TelephoneNumber == input.TelephoneNumber ||
(this.TelephoneNumber != null &&
this.TelephoneNumber.Equals(input.TelephoneNumber))
+ ) &&
+ (
+ this.WalletPurpose == input.WalletPurpose ||
+ (this.WalletPurpose != null &&
+ this.WalletPurpose.Equals(input.WalletPurpose))
);
}
@@ -261,6 +276,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.TelephoneNumber.GetHashCode();
}
+ if (this.WalletPurpose != null)
+ {
+ hashCode = (hashCode * 59) + this.WalletPurpose.GetHashCode();
+ }
return hashCode;
}
}
diff --git a/Adyen/Service/BalancePlatform/ManageSCADevicesService.cs b/Adyen/Service/BalancePlatform/ManageSCADevicesService.cs
new file mode 100644
index 000000000..7a572d50e
--- /dev/null
+++ b/Adyen/Service/BalancePlatform/ManageSCADevicesService.cs
@@ -0,0 +1,171 @@
+/*
+* Configuration API
+*
+*
+* The version of the OpenAPI document: 2
+*
+* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+* https://openapi-generator.tech
+* Do not edit the class manually.
+*/
+
+using System;
+using System.Collections.Generic;
+using System.Net.Http;
+using System.Threading;
+using System.Threading.Tasks;
+using Adyen.Model;
+using Adyen.Model.BalancePlatform;
+
+namespace Adyen.Service.BalancePlatform
+{
+ ///
+ /// ManageSCADevicesService Interface
+ ///
+ public interface IManageSCADevicesService
+ {
+ ///
+ /// Complete the registration of an SCA device
+ ///
+ /// - The unique identifier of the SCA device. You obtain this `id` in the response of a POST [/registeredDevices](https://docs.adyen.com/api-explorer/balanceplatform/2/post/registeredDevices#responses-200-id) request.
+ /// -
+ /// - Additional request options.
+ /// .
+ Model.BalancePlatform.RegisterSCAFinalResponse CompleteRegistrationOfScaDevice(string id, RegisterSCARequest registerSCARequest = default, RequestOptions requestOptions = default);
+
+ ///
+ /// Complete the registration of an SCA device
+ ///
+ /// - The unique identifier of the SCA device. You obtain this `id` in the response of a POST [/registeredDevices](https://docs.adyen.com/api-explorer/balanceplatform/2/post/registeredDevices#responses-200-id) request.
+ /// -
+ /// - Additional request options.
+ /// A CancellationToken enables cooperative cancellation between threads, thread pool work items, or Task objects.
+ /// Task of .
+ Task CompleteRegistrationOfScaDeviceAsync(string id, RegisterSCARequest registerSCARequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default);
+
+ ///
+ /// Delete a registration of an SCA device
+ ///
+ /// - The unique identifier of the SCA device.
+ /// - The unique identifier of the payment instrument linked to the SCA device.
+ /// - Additional request options.
+ void DeleteRegistrationOfScaDevice(string id, string paymentInstrumentId, RequestOptions requestOptions = default);
+
+ ///
+ /// Delete a registration of an SCA device
+ ///
+ /// - The unique identifier of the SCA device.
+ /// - The unique identifier of the payment instrument linked to the SCA device.
+ /// - Additional request options.
+ /// A CancellationToken enables cooperative cancellation between threads, thread pool work items, or Task objects.
+ Task DeleteRegistrationOfScaDeviceAsync(string id, string paymentInstrumentId, RequestOptions requestOptions = default, CancellationToken cancellationToken = default);
+
+ ///
+ /// Initiate the registration of an SCA device
+ ///
+ /// -
+ /// - Additional request options.
+ /// .
+ Model.BalancePlatform.RegisterSCAResponse InitiateRegistrationOfScaDevice(RegisterSCARequest registerSCARequest = default, RequestOptions requestOptions = default);
+
+ ///
+ /// Initiate the registration of an SCA device
+ ///
+ /// -
+ /// - Additional request options.
+ /// A CancellationToken enables cooperative cancellation between threads, thread pool work items, or Task objects.
+ /// Task of .
+ Task InitiateRegistrationOfScaDeviceAsync(RegisterSCARequest registerSCARequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default);
+
+ ///
+ /// Get a list of registered SCA devices
+ ///
+ /// - The unique identifier of a payment instrument. It limits the returned list to SCA devices associated to this payment instrument.
+ /// - The index of the page to retrieve. The index of the first page is 0 (zero). Default: 0.
+ /// - The number of items to have on a page. Default: 20. Maximum: 100.
+ /// - Additional request options.
+ /// .
+ Model.BalancePlatform.SearchRegisteredDevicesResponse ListRegisteredScaDevices(string paymentInstrumentId, int? pageNumber = default, int? pageSize = default, RequestOptions requestOptions = default);
+
+ ///
+ /// Get a list of registered SCA devices
+ ///
+ /// - The unique identifier of a payment instrument. It limits the returned list to SCA devices associated to this payment instrument.
+ /// - The index of the page to retrieve. The index of the first page is 0 (zero). Default: 0.
+ /// - The number of items to have on a page. Default: 20. Maximum: 100.
+ /// - Additional request options.
+ /// A CancellationToken enables cooperative cancellation between threads, thread pool work items, or Task objects.
+ /// Task of .
+ Task ListRegisteredScaDevicesAsync(string paymentInstrumentId, int? pageNumber = default, int? pageSize = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default);
+
+ }
+
+ ///
+ /// Represents a collection of functions to interact with the ManageSCADevicesService API endpoints
+ ///
+ public class ManageSCADevicesService : AbstractService, IManageSCADevicesService
+ {
+ private readonly string _baseUrl;
+
+ public ManageSCADevicesService(Client client) : base(client)
+ {
+ _baseUrl = CreateBaseUrl("https://balanceplatform-api-test.adyen.com/bcl/v2");
+ }
+
+ public Model.BalancePlatform.RegisterSCAFinalResponse CompleteRegistrationOfScaDevice(string id, RegisterSCARequest registerSCARequest = default, RequestOptions requestOptions = default)
+ {
+ return CompleteRegistrationOfScaDeviceAsync(id, registerSCARequest, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult();
+ }
+
+ public async Task CompleteRegistrationOfScaDeviceAsync(string id, RegisterSCARequest registerSCARequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default)
+ {
+ var endpoint = _baseUrl + $"/registeredDevices/{id}";
+ var resource = new ServiceResource(this, endpoint);
+ return await resource.RequestAsync(registerSCARequest.ToJson(), requestOptions, new HttpMethod("PATCH"), cancellationToken).ConfigureAwait(false);
+ }
+
+ public void DeleteRegistrationOfScaDevice(string id, string paymentInstrumentId, RequestOptions requestOptions = default)
+ {
+ DeleteRegistrationOfScaDeviceAsync(id, paymentInstrumentId, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult();
+ }
+
+ public async Task DeleteRegistrationOfScaDeviceAsync(string id, string paymentInstrumentId, RequestOptions requestOptions = default, CancellationToken cancellationToken = default)
+ {
+ // Build the query string
+ var queryParams = new Dictionary();
+ queryParams.Add("paymentInstrumentId", paymentInstrumentId);
+ var endpoint = _baseUrl + $"/registeredDevices/{id}" + ToQueryString(queryParams);
+ var resource = new ServiceResource(this, endpoint);
+ await resource.RequestAsync(null, requestOptions, new HttpMethod("DELETE"), cancellationToken).ConfigureAwait(false);
+ }
+
+ public Model.BalancePlatform.RegisterSCAResponse InitiateRegistrationOfScaDevice(RegisterSCARequest registerSCARequest = default, RequestOptions requestOptions = default)
+ {
+ return InitiateRegistrationOfScaDeviceAsync(registerSCARequest, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult();
+ }
+
+ public async Task InitiateRegistrationOfScaDeviceAsync(RegisterSCARequest registerSCARequest = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default)
+ {
+ var endpoint = _baseUrl + "/registeredDevices";
+ var resource = new ServiceResource(this, endpoint);
+ return await resource.RequestAsync(registerSCARequest.ToJson(), requestOptions, new HttpMethod("POST"), cancellationToken).ConfigureAwait(false);
+ }
+
+ public Model.BalancePlatform.SearchRegisteredDevicesResponse ListRegisteredScaDevices(string paymentInstrumentId, int? pageNumber = default, int? pageSize = default, RequestOptions requestOptions = default)
+ {
+ return ListRegisteredScaDevicesAsync(paymentInstrumentId, pageNumber, pageSize, requestOptions).ConfigureAwait(false).GetAwaiter().GetResult();
+ }
+
+ public async Task ListRegisteredScaDevicesAsync(string paymentInstrumentId, int? pageNumber = default, int? pageSize = default, RequestOptions requestOptions = default, CancellationToken cancellationToken = default)
+ {
+ // Build the query string
+ var queryParams = new Dictionary();
+ queryParams.Add("paymentInstrumentId", paymentInstrumentId);
+ if (pageNumber != null) queryParams.Add("pageNumber", pageNumber.ToString());
+ if (pageSize != null) queryParams.Add("pageSize", pageSize.ToString());
+ var endpoint = _baseUrl + "/registeredDevices" + ToQueryString(queryParams);
+ var resource = new ServiceResource(this, endpoint);
+ return await resource.RequestAsync(null, requestOptions, new HttpMethod("GET"), cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file