diff --git a/Adyen/Model/BalancePlatform/Amount.cs b/Adyen/Model/BalancePlatform/Amount.cs index ef16a0307..e76f58199 100644 --- a/Adyen/Model/BalancePlatform/Amount.cs +++ b/Adyen/Model/BalancePlatform/Amount.cs @@ -40,8 +40,8 @@ protected Amount() { } /// /// Initializes a new instance of the class. /// - /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). (required). - /// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). (required). + /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). (required). + /// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). (required). public Amount(string currency = default(string), long? value = default(long?)) { this.Currency = currency; @@ -49,16 +49,16 @@ protected Amount() { } } /// - /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). /// - /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). [DataMember(Name = "currency", IsRequired = false, EmitDefaultValue = false)] public string Currency { get; set; } /// - /// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + /// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). /// - /// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + /// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). [DataMember(Name = "value", IsRequired = false, EmitDefaultValue = false)] public long? Value { get; set; } diff --git a/Adyen/Model/BalancePlatform/Balance.cs b/Adyen/Model/BalancePlatform/Balance.cs index 0800182ad..df621f471 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 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 balance available for use. (required). + /// The sum of transactions that have already been settled. (required). /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. (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). + /// The sum of the transactions that will be settled in the future.. + /// The balance currently held in reserve. (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 current balance minus any reserved balance. + /// The balance available for use. /// - /// The current balance minus any reserved balance. + /// The balance available for use. [DataMember(Name = "available", IsRequired = false, EmitDefaultValue = false)] public long? Available { get; set; } /// - /// 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 sum of transactions that have already been settled. /// - /// 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 sum of transactions that have already been settled. [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 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 sum of the transactions that will be settled in the future. /// - /// 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 sum of the transactions that will be settled in the future. [DataMember(Name = "pending", EmitDefaultValue = false)] public long? Pending { get; set; } /// - /// 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 balance currently held in reserve. /// - /// 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 balance currently held in reserve. [DataMember(Name = "reserved", IsRequired = false, EmitDefaultValue = false)] public long? Reserved { get; set; } diff --git a/Adyen/Model/BalancePlatform/CounterpartyBankRestriction.cs b/Adyen/Model/BalancePlatform/CounterpartyBankRestriction.cs index b3b5e7c49..9e84bcd3a 100644 --- a/Adyen/Model/BalancePlatform/CounterpartyBankRestriction.cs +++ b/Adyen/Model/BalancePlatform/CounterpartyBankRestriction.cs @@ -41,7 +41,7 @@ protected CounterpartyBankRestriction() { } /// Initializes a new instance of the class. /// /// Defines how the condition must be evaluated. (required). - /// List of counterparty Bank Institutions and the operation.. + /// The list of counterparty bank institutions to be evaluated.. public CounterpartyBankRestriction(string operation = default(string), List value = default(List)) { this.Operation = operation; @@ -56,9 +56,9 @@ protected CounterpartyBankRestriction() { } public string Operation { get; set; } /// - /// List of counterparty Bank Institutions and the operation. + /// The list of counterparty bank institutions to be evaluated. /// - /// List of counterparty Bank Institutions and the operation. + /// The list of counterparty bank institutions to be evaluated. [DataMember(Name = "value", EmitDefaultValue = false)] public List Value { get; set; } diff --git a/Adyen/Model/BalancePlatform/CounterpartyTypesRestriction.cs b/Adyen/Model/BalancePlatform/CounterpartyTypesRestriction.cs new file mode 100644 index 000000000..3eb6bcb03 --- /dev/null +++ b/Adyen/Model/BalancePlatform/CounterpartyTypesRestriction.cs @@ -0,0 +1,182 @@ +/* +* 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 +{ + /// + /// CounterpartyTypesRestriction + /// + [DataContract(Name = "CounterpartyTypesRestriction")] + public partial class CounterpartyTypesRestriction : IEquatable, IValidatableObject + { + /// + /// Defines Value + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ValueEnum + { + /// + /// Enum BalanceAccount for value: balanceAccount + /// + [EnumMember(Value = "balanceAccount")] + BalanceAccount = 1, + + /// + /// Enum BankAccount for value: bankAccount + /// + [EnumMember(Value = "bankAccount")] + BankAccount = 2, + + /// + /// Enum Card for value: card + /// + [EnumMember(Value = "card")] + Card = 3, + + /// + /// Enum TransferInstrument for value: transferInstrument + /// + [EnumMember(Value = "transferInstrument")] + TransferInstrument = 4 + + } + + + + /// + /// The list of counterparty types to be evaluated. + /// + /// The list of counterparty types to be evaluated. + [DataMember(Name = "value", EmitDefaultValue = false)] + public List Value { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CounterpartyTypesRestriction() { } + /// + /// Initializes a new instance of the class. + /// + /// Defines how the condition must be evaluated. (required). + /// The list of counterparty types to be evaluated.. + public CounterpartyTypesRestriction(string operation = default(string), List value = default(List)) + { + 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; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class CounterpartyTypesRestriction {\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 CounterpartyTypesRestriction); + } + + /// + /// Returns true if CounterpartyTypesRestriction instances are equal + /// + /// Instance of CounterpartyTypesRestriction to be compared + /// Boolean + public bool Equals(CounterpartyTypesRestriction 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.SequenceEqual(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(); + } + 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/PlatformPaymentConfiguration.cs b/Adyen/Model/BalancePlatform/PlatformPaymentConfiguration.cs index 24c603ca0..622f7e34b 100644 --- a/Adyen/Model/BalancePlatform/PlatformPaymentConfiguration.cs +++ b/Adyen/Model/BalancePlatform/PlatformPaymentConfiguration.cs @@ -36,7 +36,7 @@ public partial class PlatformPaymentConfiguration : IEquatable class. /// /// 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: **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**.. + /// 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 **20**, 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; @@ -51,9 +51,9 @@ public partial class PlatformPaymentConfiguration : IEquatable - /// 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**. + /// 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 **20**, 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**. + /// 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 **20**, 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/SourceAccountTypesRestriction.cs b/Adyen/Model/BalancePlatform/SourceAccountTypesRestriction.cs new file mode 100644 index 000000000..2e1f21bac --- /dev/null +++ b/Adyen/Model/BalancePlatform/SourceAccountTypesRestriction.cs @@ -0,0 +1,170 @@ +/* +* 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 +{ + /// + /// SourceAccountTypesRestriction + /// + [DataContract(Name = "SourceAccountTypesRestriction")] + public partial class SourceAccountTypesRestriction : IEquatable, IValidatableObject + { + /// + /// Defines Value + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ValueEnum + { + /// + /// Enum BalanceAccount for value: balanceAccount + /// + [EnumMember(Value = "balanceAccount")] + BalanceAccount = 1, + + /// + /// Enum BusinessAccount for value: businessAccount + /// + [EnumMember(Value = "businessAccount")] + BusinessAccount = 2 + + } + + + + /// + /// The list of source account types to be evaluated. + /// + /// The list of source account types to be evaluated. + [DataMember(Name = "value", EmitDefaultValue = false)] + public List Value { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SourceAccountTypesRestriction() { } + /// + /// Initializes a new instance of the class. + /// + /// Defines how the condition must be evaluated. (required). + /// The list of source account types to be evaluated.. + public SourceAccountTypesRestriction(string operation = default(string), List value = default(List)) + { + 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; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class SourceAccountTypesRestriction {\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 SourceAccountTypesRestriction); + } + + /// + /// Returns true if SourceAccountTypesRestriction instances are equal + /// + /// Instance of SourceAccountTypesRestriction to be compared + /// Boolean + public bool Equals(SourceAccountTypesRestriction 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.SequenceEqual(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(); + } + 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/TransactionRuleRestrictions.cs b/Adyen/Model/BalancePlatform/TransactionRuleRestrictions.cs index 8fc75e901..6f47d9631 100644 --- a/Adyen/Model/BalancePlatform/TransactionRuleRestrictions.cs +++ b/Adyen/Model/BalancePlatform/TransactionRuleRestrictions.cs @@ -38,6 +38,7 @@ public partial class TransactionRuleRestrictions : IEquatableactiveNetworkTokens. /// brandVariants. /// counterpartyBank. + /// counterpartyTypes. /// countries. /// dayOfWeek. /// differentCurrencies. @@ -52,13 +53,15 @@ public partial class TransactionRuleRestrictions : IEquatableriskScores. /// sameAmountRestriction. /// sameCounterpartyRestriction. + /// sourceAccountTypes. /// 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), MatchingValuesRestriction matchingValues = default(MatchingValuesRestriction), 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)) + public TransactionRuleRestrictions(ActiveNetworkTokensRestriction activeNetworkTokens = default(ActiveNetworkTokensRestriction), BrandVariantsRestriction brandVariants = default(BrandVariantsRestriction), CounterpartyBankRestriction counterpartyBank = default(CounterpartyBankRestriction), CounterpartyTypesRestriction counterpartyTypes = default(CounterpartyTypesRestriction), CountriesRestriction countries = default(CountriesRestriction), DayOfWeekRestriction dayOfWeek = default(DayOfWeekRestriction), DifferentCurrenciesRestriction differentCurrencies = default(DifferentCurrenciesRestriction), EntryModesRestriction entryModes = default(EntryModesRestriction), InternationalTransactionRestriction internationalTransaction = default(InternationalTransactionRestriction), MatchingTransactionsRestriction matchingTransactions = default(MatchingTransactionsRestriction), MatchingValuesRestriction matchingValues = default(MatchingValuesRestriction), 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), SourceAccountTypesRestriction sourceAccountTypes = default(SourceAccountTypesRestriction), TimeOfDayRestriction timeOfDay = default(TimeOfDayRestriction), TotalAmountRestriction totalAmount = default(TotalAmountRestriction)) { this.ActiveNetworkTokens = activeNetworkTokens; this.BrandVariants = brandVariants; this.CounterpartyBank = counterpartyBank; + this.CounterpartyTypes = counterpartyTypes; this.Countries = countries; this.DayOfWeek = dayOfWeek; this.DifferentCurrencies = differentCurrencies; @@ -73,6 +76,7 @@ public partial class TransactionRuleRestrictions : IEquatable + /// Gets or Sets CounterpartyTypes + /// + [DataMember(Name = "counterpartyTypes", EmitDefaultValue = false)] + public CounterpartyTypesRestriction CounterpartyTypes { get; set; } + /// /// Gets or Sets Countries /// @@ -179,6 +189,12 @@ public partial class TransactionRuleRestrictions : IEquatable + /// Gets or Sets SourceAccountTypes + /// + [DataMember(Name = "sourceAccountTypes", EmitDefaultValue = false)] + public SourceAccountTypesRestriction SourceAccountTypes { get; set; } + /// /// Gets or Sets TimeOfDay /// @@ -202,6 +218,7 @@ public override string ToString() sb.Append(" ActiveNetworkTokens: ").Append(ActiveNetworkTokens).Append("\n"); sb.Append(" BrandVariants: ").Append(BrandVariants).Append("\n"); sb.Append(" CounterpartyBank: ").Append(CounterpartyBank).Append("\n"); + sb.Append(" CounterpartyTypes: ").Append(CounterpartyTypes).Append("\n"); sb.Append(" Countries: ").Append(Countries).Append("\n"); sb.Append(" DayOfWeek: ").Append(DayOfWeek).Append("\n"); sb.Append(" DifferentCurrencies: ").Append(DifferentCurrencies).Append("\n"); @@ -216,6 +233,7 @@ public override string ToString() sb.Append(" RiskScores: ").Append(RiskScores).Append("\n"); sb.Append(" SameAmountRestriction: ").Append(SameAmountRestriction).Append("\n"); sb.Append(" SameCounterpartyRestriction: ").Append(SameCounterpartyRestriction).Append("\n"); + sb.Append(" SourceAccountTypes: ").Append(SourceAccountTypes).Append("\n"); sb.Append(" TimeOfDay: ").Append(TimeOfDay).Append("\n"); sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n"); sb.Append("}\n"); @@ -268,6 +286,11 @@ public bool Equals(TransactionRuleRestrictions input) (this.CounterpartyBank != null && this.CounterpartyBank.Equals(input.CounterpartyBank)) ) && + ( + this.CounterpartyTypes == input.CounterpartyTypes || + (this.CounterpartyTypes != null && + this.CounterpartyTypes.Equals(input.CounterpartyTypes)) + ) && ( this.Countries == input.Countries || (this.Countries != null && @@ -338,6 +361,11 @@ public bool Equals(TransactionRuleRestrictions input) (this.SameCounterpartyRestriction != null && this.SameCounterpartyRestriction.Equals(input.SameCounterpartyRestriction)) ) && + ( + this.SourceAccountTypes == input.SourceAccountTypes || + (this.SourceAccountTypes != null && + this.SourceAccountTypes.Equals(input.SourceAccountTypes)) + ) && ( this.TimeOfDay == input.TimeOfDay || (this.TimeOfDay != null && @@ -371,6 +399,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.CounterpartyBank.GetHashCode(); } + if (this.CounterpartyTypes != null) + { + hashCode = (hashCode * 59) + this.CounterpartyTypes.GetHashCode(); + } if (this.Countries != null) { hashCode = (hashCode * 59) + this.Countries.GetHashCode(); @@ -427,6 +459,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.SameCounterpartyRestriction.GetHashCode(); } + if (this.SourceAccountTypes != null) + { + hashCode = (hashCode * 59) + this.SourceAccountTypes.GetHashCode(); + } if (this.TimeOfDay != null) { hashCode = (hashCode * 59) + this.TimeOfDay.GetHashCode(); diff --git a/Adyen/Model/ConfigurationWebhooks/AccountHolderNotificationRequest.cs b/Adyen/Model/ConfigurationWebhooks/AccountHolderNotificationRequest.cs index a4954cc87..5aab3a293 100644 --- a/Adyen/Model/ConfigurationWebhooks/AccountHolderNotificationRequest.cs +++ b/Adyen/Model/ConfigurationWebhooks/AccountHolderNotificationRequest.cs @@ -70,12 +70,14 @@ protected AccountHolderNotificationRequest() { } /// /// data (required). /// The environment from which the webhook originated. Possible values: **test**, **live**. (required). + /// When the event was queued.. /// Type of webhook. (required). - public AccountHolderNotificationRequest(AccountHolderNotificationData data = default(AccountHolderNotificationData), string environment = default(string), TypeEnum type = default(TypeEnum)) + public AccountHolderNotificationRequest(AccountHolderNotificationData data = default(AccountHolderNotificationData), string environment = default(string), DateTime timestamp = default(DateTime), TypeEnum type = default(TypeEnum)) { this.Data = data; this.Environment = environment; this.Type = type; + this.Timestamp = timestamp; } /// @@ -91,6 +93,13 @@ protected AccountHolderNotificationRequest() { } [DataMember(Name = "environment", IsRequired = false, EmitDefaultValue = false)] public string Environment { get; set; } + /// + /// When the event was queued. + /// + /// When the event was queued. + [DataMember(Name = "timestamp", EmitDefaultValue = false)] + public DateTime Timestamp { get; set; } + /// /// Returns the string presentation of the object /// @@ -101,6 +110,7 @@ public override string ToString() sb.Append("class AccountHolderNotificationRequest {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Environment: ").Append(Environment).Append("\n"); + sb.Append(" Timestamp: ").Append(Timestamp).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -147,6 +157,11 @@ public bool Equals(AccountHolderNotificationRequest input) (this.Environment != null && this.Environment.Equals(input.Environment)) ) && + ( + this.Timestamp == input.Timestamp || + (this.Timestamp != null && + this.Timestamp.Equals(input.Timestamp)) + ) && ( this.Type == input.Type || this.Type.Equals(input.Type) @@ -170,6 +185,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Environment.GetHashCode(); } + if (this.Timestamp != null) + { + hashCode = (hashCode * 59) + this.Timestamp.GetHashCode(); + } hashCode = (hashCode * 59) + this.Type.GetHashCode(); return hashCode; } diff --git a/Adyen/Model/ConfigurationWebhooks/Amount.cs b/Adyen/Model/ConfigurationWebhooks/Amount.cs index 563987b9b..8b1868c72 100644 --- a/Adyen/Model/ConfigurationWebhooks/Amount.cs +++ b/Adyen/Model/ConfigurationWebhooks/Amount.cs @@ -40,8 +40,8 @@ protected Amount() { } /// /// Initializes a new instance of the class. /// - /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). (required). - /// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). (required). + /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). (required). + /// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). (required). public Amount(string currency = default(string), long? value = default(long?)) { this.Currency = currency; @@ -49,16 +49,16 @@ protected Amount() { } } /// - /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). /// - /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). [DataMember(Name = "currency", IsRequired = false, EmitDefaultValue = false)] public string Currency { get; set; } /// - /// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + /// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). /// - /// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + /// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). [DataMember(Name = "value", IsRequired = false, EmitDefaultValue = false)] public long? Value { get; set; } diff --git a/Adyen/Model/ConfigurationWebhooks/Balance.cs b/Adyen/Model/ConfigurationWebhooks/Balance.cs index db9b5e231..be8b76846 100644 --- a/Adyen/Model/ConfigurationWebhooks/Balance.cs +++ b/Adyen/Model/ConfigurationWebhooks/Balance.cs @@ -40,11 +40,11 @@ protected Balance() { } /// /// Initializes a new instance of the class. /// - /// 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 balance available for use. (required). + /// The sum of transactions that have already been settled. (required). /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. (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). + /// The sum of the transactions that will be settled in the future.. + /// The balance currently held in reserve. (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 current balance minus any reserved balance. + /// The balance available for use. /// - /// The current balance minus any reserved balance. + /// The balance available for use. [DataMember(Name = "available", IsRequired = false, EmitDefaultValue = false)] public long? Available { get; set; } /// - /// 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 sum of transactions that have already been settled. /// - /// 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 sum of transactions that have already been settled. [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 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 sum of the transactions that will be settled in the future. /// - /// 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 sum of the transactions that will be settled in the future. [DataMember(Name = "pending", EmitDefaultValue = false)] public long? Pending { get; set; } /// - /// 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 balance currently held in reserve. /// - /// 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 balance currently held in reserve. [DataMember(Name = "reserved", IsRequired = false, EmitDefaultValue = false)] public long? Reserved { get; set; } diff --git a/Adyen/Model/ConfigurationWebhooks/BalanceAccountNotificationRequest.cs b/Adyen/Model/ConfigurationWebhooks/BalanceAccountNotificationRequest.cs index f4c546106..b01a7db27 100644 --- a/Adyen/Model/ConfigurationWebhooks/BalanceAccountNotificationRequest.cs +++ b/Adyen/Model/ConfigurationWebhooks/BalanceAccountNotificationRequest.cs @@ -70,12 +70,14 @@ protected BalanceAccountNotificationRequest() { } /// /// data (required). /// The environment from which the webhook originated. Possible values: **test**, **live**. (required). + /// When the event was queued.. /// Type of webhook. (required). - public BalanceAccountNotificationRequest(BalanceAccountNotificationData data = default(BalanceAccountNotificationData), string environment = default(string), TypeEnum type = default(TypeEnum)) + public BalanceAccountNotificationRequest(BalanceAccountNotificationData data = default(BalanceAccountNotificationData), string environment = default(string), DateTime timestamp = default(DateTime), TypeEnum type = default(TypeEnum)) { this.Data = data; this.Environment = environment; this.Type = type; + this.Timestamp = timestamp; } /// @@ -91,6 +93,13 @@ protected BalanceAccountNotificationRequest() { } [DataMember(Name = "environment", IsRequired = false, EmitDefaultValue = false)] public string Environment { get; set; } + /// + /// When the event was queued. + /// + /// When the event was queued. + [DataMember(Name = "timestamp", EmitDefaultValue = false)] + public DateTime Timestamp { get; set; } + /// /// Returns the string presentation of the object /// @@ -101,6 +110,7 @@ public override string ToString() sb.Append("class BalanceAccountNotificationRequest {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Environment: ").Append(Environment).Append("\n"); + sb.Append(" Timestamp: ").Append(Timestamp).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -147,6 +157,11 @@ public bool Equals(BalanceAccountNotificationRequest input) (this.Environment != null && this.Environment.Equals(input.Environment)) ) && + ( + this.Timestamp == input.Timestamp || + (this.Timestamp != null && + this.Timestamp.Equals(input.Timestamp)) + ) && ( this.Type == input.Type || this.Type.Equals(input.Type) @@ -170,6 +185,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Environment.GetHashCode(); } + if (this.Timestamp != null) + { + hashCode = (hashCode * 59) + this.Timestamp.GetHashCode(); + } hashCode = (hashCode * 59) + this.Type.GetHashCode(); return hashCode; } diff --git a/Adyen/Model/ConfigurationWebhooks/CardOrderNotificationRequest.cs b/Adyen/Model/ConfigurationWebhooks/CardOrderNotificationRequest.cs index 996301639..bbc680fe1 100644 --- a/Adyen/Model/ConfigurationWebhooks/CardOrderNotificationRequest.cs +++ b/Adyen/Model/ConfigurationWebhooks/CardOrderNotificationRequest.cs @@ -70,12 +70,14 @@ protected CardOrderNotificationRequest() { } /// /// data (required). /// The environment from which the webhook originated. Possible values: **test**, **live**. (required). + /// When the event was queued.. /// Type of webhook. (required). - public CardOrderNotificationRequest(CardOrderItem data = default(CardOrderItem), string environment = default(string), TypeEnum type = default(TypeEnum)) + public CardOrderNotificationRequest(CardOrderItem data = default(CardOrderItem), string environment = default(string), DateTime timestamp = default(DateTime), TypeEnum type = default(TypeEnum)) { this.Data = data; this.Environment = environment; this.Type = type; + this.Timestamp = timestamp; } /// @@ -91,6 +93,13 @@ protected CardOrderNotificationRequest() { } [DataMember(Name = "environment", IsRequired = false, EmitDefaultValue = false)] public string Environment { get; set; } + /// + /// When the event was queued. + /// + /// When the event was queued. + [DataMember(Name = "timestamp", EmitDefaultValue = false)] + public DateTime Timestamp { get; set; } + /// /// Returns the string presentation of the object /// @@ -101,6 +110,7 @@ public override string ToString() sb.Append("class CardOrderNotificationRequest {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Environment: ").Append(Environment).Append("\n"); + sb.Append(" Timestamp: ").Append(Timestamp).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -147,6 +157,11 @@ public bool Equals(CardOrderNotificationRequest input) (this.Environment != null && this.Environment.Equals(input.Environment)) ) && + ( + this.Timestamp == input.Timestamp || + (this.Timestamp != null && + this.Timestamp.Equals(input.Timestamp)) + ) && ( this.Type == input.Type || this.Type.Equals(input.Type) @@ -170,6 +185,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Environment.GetHashCode(); } + if (this.Timestamp != null) + { + hashCode = (hashCode * 59) + this.Timestamp.GetHashCode(); + } hashCode = (hashCode * 59) + this.Type.GetHashCode(); return hashCode; } diff --git a/Adyen/Model/ConfigurationWebhooks/PaymentNotificationRequest.cs b/Adyen/Model/ConfigurationWebhooks/PaymentNotificationRequest.cs index 205995233..7d5319864 100644 --- a/Adyen/Model/ConfigurationWebhooks/PaymentNotificationRequest.cs +++ b/Adyen/Model/ConfigurationWebhooks/PaymentNotificationRequest.cs @@ -70,12 +70,14 @@ protected PaymentNotificationRequest() { } /// /// data (required). /// The environment from which the webhook originated. Possible values: **test**, **live**. (required). + /// When the event was queued.. /// Type of webhook. (required). - public PaymentNotificationRequest(PaymentInstrumentNotificationData data = default(PaymentInstrumentNotificationData), string environment = default(string), TypeEnum type = default(TypeEnum)) + public PaymentNotificationRequest(PaymentInstrumentNotificationData data = default(PaymentInstrumentNotificationData), string environment = default(string), DateTime timestamp = default(DateTime), TypeEnum type = default(TypeEnum)) { this.Data = data; this.Environment = environment; this.Type = type; + this.Timestamp = timestamp; } /// @@ -91,6 +93,13 @@ protected PaymentNotificationRequest() { } [DataMember(Name = "environment", IsRequired = false, EmitDefaultValue = false)] public string Environment { get; set; } + /// + /// When the event was queued. + /// + /// When the event was queued. + [DataMember(Name = "timestamp", EmitDefaultValue = false)] + public DateTime Timestamp { get; set; } + /// /// Returns the string presentation of the object /// @@ -101,6 +110,7 @@ public override string ToString() sb.Append("class PaymentNotificationRequest {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Environment: ").Append(Environment).Append("\n"); + sb.Append(" Timestamp: ").Append(Timestamp).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -147,6 +157,11 @@ public bool Equals(PaymentNotificationRequest input) (this.Environment != null && this.Environment.Equals(input.Environment)) ) && + ( + this.Timestamp == input.Timestamp || + (this.Timestamp != null && + this.Timestamp.Equals(input.Timestamp)) + ) && ( this.Type == input.Type || this.Type.Equals(input.Type) @@ -170,6 +185,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Environment.GetHashCode(); } + if (this.Timestamp != null) + { + hashCode = (hashCode * 59) + this.Timestamp.GetHashCode(); + } hashCode = (hashCode * 59) + this.Type.GetHashCode(); return hashCode; } diff --git a/Adyen/Model/ConfigurationWebhooks/PlatformPaymentConfiguration.cs b/Adyen/Model/ConfigurationWebhooks/PlatformPaymentConfiguration.cs index d94593789..ba2c0c489 100644 --- a/Adyen/Model/ConfigurationWebhooks/PlatformPaymentConfiguration.cs +++ b/Adyen/Model/ConfigurationWebhooks/PlatformPaymentConfiguration.cs @@ -36,7 +36,7 @@ public partial class PlatformPaymentConfiguration : IEquatable class. /// /// 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: **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**.. + /// 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 **20**, 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; @@ -51,9 +51,9 @@ public partial class PlatformPaymentConfiguration : IEquatable - /// 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**. + /// 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 **20**, 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**. + /// 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 **20**, 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/SweepConfigurationNotificationRequest.cs b/Adyen/Model/ConfigurationWebhooks/SweepConfigurationNotificationRequest.cs index 365259405..9b68792d5 100644 --- a/Adyen/Model/ConfigurationWebhooks/SweepConfigurationNotificationRequest.cs +++ b/Adyen/Model/ConfigurationWebhooks/SweepConfigurationNotificationRequest.cs @@ -76,12 +76,14 @@ protected SweepConfigurationNotificationRequest() { } /// /// data (required). /// The environment from which the webhook originated. Possible values: **test**, **live**. (required). + /// When the event was queued.. /// Type of webhook. (required). - public SweepConfigurationNotificationRequest(SweepConfigurationNotificationData data = default(SweepConfigurationNotificationData), string environment = default(string), TypeEnum type = default(TypeEnum)) + public SweepConfigurationNotificationRequest(SweepConfigurationNotificationData data = default(SweepConfigurationNotificationData), string environment = default(string), DateTime timestamp = default(DateTime), TypeEnum type = default(TypeEnum)) { this.Data = data; this.Environment = environment; this.Type = type; + this.Timestamp = timestamp; } /// @@ -97,6 +99,13 @@ protected SweepConfigurationNotificationRequest() { } [DataMember(Name = "environment", IsRequired = false, EmitDefaultValue = false)] public string Environment { get; set; } + /// + /// When the event was queued. + /// + /// When the event was queued. + [DataMember(Name = "timestamp", EmitDefaultValue = false)] + public DateTime Timestamp { get; set; } + /// /// Returns the string presentation of the object /// @@ -107,6 +116,7 @@ public override string ToString() sb.Append("class SweepConfigurationNotificationRequest {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Environment: ").Append(Environment).Append("\n"); + sb.Append(" Timestamp: ").Append(Timestamp).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -153,6 +163,11 @@ public bool Equals(SweepConfigurationNotificationRequest input) (this.Environment != null && this.Environment.Equals(input.Environment)) ) && + ( + this.Timestamp == input.Timestamp || + (this.Timestamp != null && + this.Timestamp.Equals(input.Timestamp)) + ) && ( this.Type == input.Type || this.Type.Equals(input.Type) @@ -176,6 +191,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Environment.GetHashCode(); } + if (this.Timestamp != null) + { + hashCode = (hashCode * 59) + this.Timestamp.GetHashCode(); + } hashCode = (hashCode * 59) + this.Type.GetHashCode(); return hashCode; } diff --git a/Adyen/Model/ReportWebhooks/ReportNotificationRequest.cs b/Adyen/Model/ReportWebhooks/ReportNotificationRequest.cs index 3729e5742..bf980b541 100644 --- a/Adyen/Model/ReportWebhooks/ReportNotificationRequest.cs +++ b/Adyen/Model/ReportWebhooks/ReportNotificationRequest.cs @@ -64,12 +64,14 @@ protected ReportNotificationRequest() { } /// /// data (required). /// The environment from which the webhook originated. Possible values: **test**, **live**. (required). + /// When the event was queued.. /// Type of webhook. (required). - public ReportNotificationRequest(ReportNotificationData data = default(ReportNotificationData), string environment = default(string), TypeEnum type = default(TypeEnum)) + public ReportNotificationRequest(ReportNotificationData data = default(ReportNotificationData), string environment = default(string), DateTime timestamp = default(DateTime), TypeEnum type = default(TypeEnum)) { this.Data = data; this.Environment = environment; this.Type = type; + this.Timestamp = timestamp; } /// @@ -85,6 +87,13 @@ protected ReportNotificationRequest() { } [DataMember(Name = "environment", IsRequired = false, EmitDefaultValue = false)] public string Environment { get; set; } + /// + /// When the event was queued. + /// + /// When the event was queued. + [DataMember(Name = "timestamp", EmitDefaultValue = false)] + public DateTime Timestamp { get; set; } + /// /// Returns the string presentation of the object /// @@ -95,6 +104,7 @@ public override string ToString() sb.Append("class ReportNotificationRequest {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Environment: ").Append(Environment).Append("\n"); + sb.Append(" Timestamp: ").Append(Timestamp).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -141,6 +151,11 @@ public bool Equals(ReportNotificationRequest input) (this.Environment != null && this.Environment.Equals(input.Environment)) ) && + ( + this.Timestamp == input.Timestamp || + (this.Timestamp != null && + this.Timestamp.Equals(input.Timestamp)) + ) && ( this.Type == input.Type || this.Type.Equals(input.Type) @@ -164,6 +179,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Environment.GetHashCode(); } + if (this.Timestamp != null) + { + hashCode = (hashCode * 59) + this.Timestamp.GetHashCode(); + } hashCode = (hashCode * 59) + this.Type.GetHashCode(); return hashCode; }