Skip to content

Commit

Permalink
Merge pull request #1069 from Adyen/sdk-automation/models
Browse files Browse the repository at this point in the history
Update all services
  • Loading branch information
Kwok-he-Chu authored Oct 22, 2024
2 parents d2ae127 + 34460a9 commit ba65304
Show file tree
Hide file tree
Showing 116 changed files with 2,322 additions and 682 deletions.
2 changes: 1 addition & 1 deletion Adyen/Model/BalancePlatform/AccountHolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ protected AccountHolder() { }
/// Gets or Sets ContactDetails
/// </summary>
[DataMember(Name = "contactDetails", EmitDefaultValue = false)]
[Obsolete]
[Obsolete("")]
public ContactDetails ContactDetails { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Adyen/Model/BalancePlatform/AccountHolderInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected AccountHolderInfo() { }
/// Gets or Sets ContactDetails
/// </summary>
[DataMember(Name = "contactDetails", EmitDefaultValue = false)]
[Obsolete]
[Obsolete("")]
public ContactDetails ContactDetails { get; set; }

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Adyen/Model/BalancePlatform/AccountHolderUpdateRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public enum StatusEnum
/// Gets or Sets ContactDetails
/// </summary>
[DataMember(Name = "contactDetails", EmitDefaultValue = false)]
[Obsolete]
[Obsolete("")]
public ContactDetails ContactDetails { get; set; }

/// <summary>
Expand Down
21 changes: 20 additions & 1 deletion Adyen/Model/BalancePlatform/BankAccountDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,19 @@ protected BankAccountDetails() { }
/// </summary>
/// <param name="accountNumber">The bank account number, without separators or whitespace..</param>
/// <param name="accountType">The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. (default to &quot;checking&quot;).</param>
/// <param name="branchNumber">The bank account branch number, without separators or whitespace.</param>
/// <param name="formFactor">Business accounts with a &#x60;formFactor&#x60; 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 &#x60;formFactor&#x60; 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 &quot;physical&quot;).</param>
/// <param name="iban">The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard..</param>
/// <param name="routingNumber">The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace..</param>
/// <param name="sortCode">The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace..</param>
/// <param name="type">**iban** or **usLocal** or **ukLocal** (required) (default to &quot;iban&quot;).</param>
public BankAccountDetails(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")
public BankAccountDetails(string accountNumber = default(string), string accountType = "checking", string branchNumber = default(string), 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";
this.BranchNumber = branchNumber;
// use default value if no "formFactor" provided
this.FormFactor = formFactor ?? "physical";
this.Iban = iban;
Expand All @@ -74,6 +76,13 @@ protected BankAccountDetails() { }
[DataMember(Name = "accountType", EmitDefaultValue = false)]
public string AccountType { get; set; }

/// <summary>
/// The bank account branch number, without separators or whitespace
/// </summary>
/// <value>The bank account branch number, without separators or whitespace</value>
[DataMember(Name = "branchNumber", EmitDefaultValue = false)]
public string BranchNumber { get; set; }

/// <summary>
/// Business accounts with a &#x60;formFactor&#x60; 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 &#x60;formFactor&#x60; 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.
/// </summary>
Expand Down Expand Up @@ -119,6 +128,7 @@ public override string ToString()
sb.Append("class BankAccountDetails {\n");
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
sb.Append(" AccountType: ").Append(AccountType).Append("\n");
sb.Append(" BranchNumber: ").Append(BranchNumber).Append("\n");
sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
sb.Append(" Iban: ").Append(Iban).Append("\n");
sb.Append(" RoutingNumber: ").Append(RoutingNumber).Append("\n");
Expand Down Expand Up @@ -169,6 +179,11 @@ public bool Equals(BankAccountDetails input)
(this.AccountType != null &&
this.AccountType.Equals(input.AccountType))
) &&
(
this.BranchNumber == input.BranchNumber ||
(this.BranchNumber != null &&
this.BranchNumber.Equals(input.BranchNumber))
) &&
(
this.FormFactor == input.FormFactor ||
(this.FormFactor != null &&
Expand Down Expand Up @@ -213,6 +228,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.AccountType.GetHashCode();
}
if (this.BranchNumber != null)
{
hashCode = (hashCode * 59) + this.BranchNumber.GetHashCode();
}
if (this.FormFactor != null)
{
hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
Expand Down
60 changes: 42 additions & 18 deletions Adyen/Model/BalancePlatform/CreateSweepConfigurationV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,113 +125,137 @@ public enum PrioritiesEnum
[JsonConverter(typeof(StringEnumConverter))]
public enum ReasonEnum
{
/// <summary>
/// Enum AccountHierarchyNotActive for value: accountHierarchyNotActive
/// </summary>
[EnumMember(Value = "accountHierarchyNotActive")]
AccountHierarchyNotActive = 1,

/// <summary>
/// Enum AmountLimitExceeded for value: amountLimitExceeded
/// </summary>
[EnumMember(Value = "amountLimitExceeded")]
AmountLimitExceeded = 1,
AmountLimitExceeded = 2,

/// <summary>
/// Enum Approved for value: approved
/// </summary>
[EnumMember(Value = "approved")]
Approved = 2,
Approved = 3,

/// <summary>
/// Enum BalanceAccountTemporarilyBlockedByTransactionRule for value: balanceAccountTemporarilyBlockedByTransactionRule
/// </summary>
[EnumMember(Value = "balanceAccountTemporarilyBlockedByTransactionRule")]
BalanceAccountTemporarilyBlockedByTransactionRule = 3,
BalanceAccountTemporarilyBlockedByTransactionRule = 4,

/// <summary>
/// Enum CounterpartyAccountBlocked for value: counterpartyAccountBlocked
/// </summary>
[EnumMember(Value = "counterpartyAccountBlocked")]
CounterpartyAccountBlocked = 4,
CounterpartyAccountBlocked = 5,

/// <summary>
/// Enum CounterpartyAccountClosed for value: counterpartyAccountClosed
/// </summary>
[EnumMember(Value = "counterpartyAccountClosed")]
CounterpartyAccountClosed = 5,
CounterpartyAccountClosed = 6,

/// <summary>
/// Enum CounterpartyAccountNotFound for value: counterpartyAccountNotFound
/// </summary>
[EnumMember(Value = "counterpartyAccountNotFound")]
CounterpartyAccountNotFound = 6,
CounterpartyAccountNotFound = 7,

/// <summary>
/// Enum CounterpartyAddressRequired for value: counterpartyAddressRequired
/// </summary>
[EnumMember(Value = "counterpartyAddressRequired")]
CounterpartyAddressRequired = 7,
CounterpartyAddressRequired = 8,

/// <summary>
/// Enum CounterpartyBankTimedOut for value: counterpartyBankTimedOut
/// </summary>
[EnumMember(Value = "counterpartyBankTimedOut")]
CounterpartyBankTimedOut = 8,
CounterpartyBankTimedOut = 9,

/// <summary>
/// Enum CounterpartyBankUnavailable for value: counterpartyBankUnavailable
/// </summary>
[EnumMember(Value = "counterpartyBankUnavailable")]
CounterpartyBankUnavailable = 9,
CounterpartyBankUnavailable = 10,

/// <summary>
/// Enum Declined for value: declined
/// </summary>
[EnumMember(Value = "declined")]
Declined = 10,
Declined = 11,

/// <summary>
/// Enum DeclinedByTransactionRule for value: declinedByTransactionRule
/// </summary>
[EnumMember(Value = "declinedByTransactionRule")]
DeclinedByTransactionRule = 11,
DeclinedByTransactionRule = 12,

/// <summary>
/// Enum DirectDebitNotSupported for value: directDebitNotSupported
/// </summary>
[EnumMember(Value = "directDebitNotSupported")]
DirectDebitNotSupported = 13,

/// <summary>
/// Enum Error for value: error
/// </summary>
[EnumMember(Value = "error")]
Error = 12,
Error = 14,

/// <summary>
/// Enum NotEnoughBalance for value: notEnoughBalance
/// </summary>
[EnumMember(Value = "notEnoughBalance")]
NotEnoughBalance = 13,
NotEnoughBalance = 15,

/// <summary>
/// Enum PendingApproval for value: pendingApproval
/// </summary>
[EnumMember(Value = "pendingApproval")]
PendingApproval = 14,
PendingApproval = 16,

/// <summary>
/// Enum PendingExecution for value: pendingExecution
/// </summary>
[EnumMember(Value = "pendingExecution")]
PendingExecution = 17,

/// <summary>
/// Enum RefusedByCounterpartyBank for value: refusedByCounterpartyBank
/// </summary>
[EnumMember(Value = "refusedByCounterpartyBank")]
RefusedByCounterpartyBank = 15,
RefusedByCounterpartyBank = 18,

/// <summary>
/// Enum RouteNotFound for value: routeNotFound
/// </summary>
[EnumMember(Value = "routeNotFound")]
RouteNotFound = 16,
RouteNotFound = 19,

/// <summary>
/// Enum ScaFailed for value: scaFailed
/// </summary>
[EnumMember(Value = "scaFailed")]
ScaFailed = 17,
ScaFailed = 20,

/// <summary>
/// Enum TransferInstrumentDoesNotExist for value: transferInstrumentDoesNotExist
/// </summary>
[EnumMember(Value = "transferInstrumentDoesNotExist")]
TransferInstrumentDoesNotExist = 21,

/// <summary>
/// Enum Unknown for value: unknown
/// </summary>
[EnumMember(Value = "unknown")]
Unknown = 18
Unknown = 22

}

Expand Down
2 changes: 1 addition & 1 deletion Adyen/Model/BalancePlatform/PaymentInstrument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ protected PaymentInstrument() { }
/// </summary>
/// <value>Contains optional, additional business account details. Returned when you create a payment instrument with &#x60;type&#x60; **bankAccount**.</value>
[DataMember(Name = "additionalBankAccountIdentifications", EmitDefaultValue = false)]
[Obsolete]
[Obsolete("Deprecated since Configuration API v2. Please use `bankAccount` object instead")]
public List<PaymentInstrumentAdditionalBankAccountIdentificationsInner> AdditionalBankAccountIdentifications { get; set; }

/// <summary>
Expand Down
6 changes: 3 additions & 3 deletions Adyen/Model/BalancePlatform/PlatformPaymentConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public partial class PlatformPaymentConfiguration : IEquatable<PlatformPaymentCo
/// Initializes a new instance of the <see cref="PlatformPaymentConfiguration" /> class.
/// </summary>
/// <param name="salesDayClosingTime">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 **\&quot;HH:MM\&quot;** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\&quot;00:00\&quot;**..</param>
/// <param name="settlementDelayDays">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**..</param>
/// <param name="settlementDelayDays">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: **1** 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**..</param>
public PlatformPaymentConfiguration(string salesDayClosingTime = default(string), int? settlementDelayDays = default(int?))
{
this.SalesDayClosingTime = salesDayClosingTime;
Expand All @@ -51,9 +51,9 @@ public partial class PlatformPaymentConfiguration : IEquatable<PlatformPaymentCo
public string SalesDayClosingTime { get; set; }

/// <summary>
/// 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/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **1** 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**.
/// </summary>
/// <value>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**.</value>
/// <value>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: **1** 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**.</value>
[DataMember(Name = "settlementDelayDays", EmitDefaultValue = false)]
public int? SettlementDelayDays { get; set; }

Expand Down
Loading

0 comments on commit ba65304

Please sign in to comment.