diff --git a/Adyen/Model/BinLookup/Recurring.cs b/Adyen/Model/BinLookup/Recurring.cs index d7c4d5451..9ff232298 100644 --- a/Adyen/Model/BinLookup/Recurring.cs +++ b/Adyen/Model/BinLookup/Recurring.cs @@ -83,7 +83,19 @@ public enum TokenServiceEnum /// Enum MCTOKENSERVICE for value: MCTOKENSERVICE /// [EnumMember(Value = "MCTOKENSERVICE")] - MCTOKENSERVICE = 2 + MCTOKENSERVICE = 2, + + /// + /// Enum AMEXTOKENSERVICE for value: AMEXTOKENSERVICE + /// + [EnumMember(Value = "AMEXTOKENSERVICE")] + AMEXTOKENSERVICE = 3, + + /// + /// Enum TOKENSHARING for value: TOKEN_SHARING + /// + [EnumMember(Value = "TOKEN_SHARING")] + TOKENSHARING = 4 } diff --git a/Adyen/Model/ConfigurationWebhooks/AccountHolderCapability.cs b/Adyen/Model/ConfigurationWebhooks/AccountHolderCapability.cs index 4874d2630..aab4ab6c7 100644 --- a/Adyen/Model/ConfigurationWebhooks/AccountHolderCapability.cs +++ b/Adyen/Model/ConfigurationWebhooks/AccountHolderCapability.cs @@ -163,9 +163,8 @@ public enum VerificationStatusEnum /// Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field.. /// The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**.. /// requestedSettings. - /// Contains the status of the transfer instruments associated with this capability. . /// The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. . - public AccountHolderCapability(bool? allowed = default(bool?), AllowedLevelEnum? allowedLevel = default(AllowedLevelEnum?), CapabilitySettings allowedSettings = default(CapabilitySettings), bool? enabled = default(bool?), List problems = default(List), bool? requested = default(bool?), RequestedLevelEnum? requestedLevel = default(RequestedLevelEnum?), CapabilitySettings requestedSettings = default(CapabilitySettings), List transferInstruments = default(List), VerificationStatusEnum? verificationStatus = default(VerificationStatusEnum?)) + public AccountHolderCapability(bool? allowed = default(bool?), AllowedLevelEnum? allowedLevel = default(AllowedLevelEnum?), CapabilitySettings allowedSettings = default(CapabilitySettings), bool? enabled = default(bool?), List problems = default(List), bool? requested = default(bool?), RequestedLevelEnum? requestedLevel = default(RequestedLevelEnum?), CapabilitySettings requestedSettings = default(CapabilitySettings), VerificationStatusEnum? verificationStatus = default(VerificationStatusEnum?)) { this.Allowed = allowed; this.AllowedLevel = allowedLevel; @@ -175,7 +174,6 @@ public enum VerificationStatusEnum this.Requested = requested; this.RequestedLevel = requestedLevel; this.RequestedSettings = requestedSettings; - this.TransferInstruments = transferInstruments; this.VerificationStatus = verificationStatus; } @@ -219,13 +217,6 @@ public enum VerificationStatusEnum [DataMember(Name = "requestedSettings", EmitDefaultValue = false)] public CapabilitySettings RequestedSettings { get; set; } - /// - /// Contains the status of the transfer instruments associated with this capability. - /// - /// Contains the status of the transfer instruments associated with this capability. - [DataMember(Name = "transferInstruments", EmitDefaultValue = false)] - public List TransferInstruments { get; set; } - /// /// Returns the string presentation of the object /// @@ -242,7 +233,6 @@ public override string ToString() sb.Append(" Requested: ").Append(Requested).Append("\n"); sb.Append(" RequestedLevel: ").Append(RequestedLevel).Append("\n"); sb.Append(" RequestedSettings: ").Append(RequestedSettings).Append("\n"); - sb.Append(" TransferInstruments: ").Append(TransferInstruments).Append("\n"); sb.Append(" VerificationStatus: ").Append(VerificationStatus).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -315,12 +305,6 @@ public bool Equals(AccountHolderCapability input) (this.RequestedSettings != null && this.RequestedSettings.Equals(input.RequestedSettings)) ) && - ( - this.TransferInstruments == input.TransferInstruments || - this.TransferInstruments != null && - input.TransferInstruments != null && - this.TransferInstruments.SequenceEqual(input.TransferInstruments) - ) && ( this.VerificationStatus == input.VerificationStatus || this.VerificationStatus.Equals(input.VerificationStatus) @@ -353,10 +337,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.RequestedSettings.GetHashCode(); } - if (this.TransferInstruments != null) - { - hashCode = (hashCode * 59) + this.TransferInstruments.GetHashCode(); - } hashCode = (hashCode * 59) + this.VerificationStatus.GetHashCode(); return hashCode; } diff --git a/Adyen/Model/ConfigurationWebhooks/AccountSupportingEntityCapability.cs b/Adyen/Model/ConfigurationWebhooks/AccountSupportingEntityCapability.cs deleted file mode 100644 index f8e499327..000000000 --- a/Adyen/Model/ConfigurationWebhooks/AccountSupportingEntityCapability.cs +++ /dev/null @@ -1,318 +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 -{ - /// - /// AccountSupportingEntityCapability - /// - [DataContract(Name = "AccountSupportingEntityCapability")] - public partial class AccountSupportingEntityCapability : IEquatable, IValidatableObject - { - /// - /// The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. - /// - /// The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. - [JsonConverter(typeof(StringEnumConverter))] - public enum AllowedLevelEnum - { - /// - /// Enum High for value: high - /// - [EnumMember(Value = "high")] - High = 1, - - /// - /// Enum Low for value: low - /// - [EnumMember(Value = "low")] - Low = 2, - - /// - /// Enum Medium for value: medium - /// - [EnumMember(Value = "medium")] - Medium = 3, - - /// - /// Enum NotApplicable for value: notApplicable - /// - [EnumMember(Value = "notApplicable")] - NotApplicable = 4 - - } - - - /// - /// The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. - /// - /// The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. - [DataMember(Name = "allowedLevel", EmitDefaultValue = false)] - public AllowedLevelEnum? AllowedLevel { get; set; } - /// - /// The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. - /// - /// The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. - [JsonConverter(typeof(StringEnumConverter))] - public enum RequestedLevelEnum - { - /// - /// Enum High for value: high - /// - [EnumMember(Value = "high")] - High = 1, - - /// - /// Enum Low for value: low - /// - [EnumMember(Value = "low")] - Low = 2, - - /// - /// Enum Medium for value: medium - /// - [EnumMember(Value = "medium")] - Medium = 3, - - /// - /// Enum NotApplicable for value: notApplicable - /// - [EnumMember(Value = "notApplicable")] - NotApplicable = 4 - - } - - - /// - /// The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. - /// - /// The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. - [DataMember(Name = "requestedLevel", EmitDefaultValue = false)] - public RequestedLevelEnum? RequestedLevel { get; set; } - /// - /// The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. - /// - /// The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. - [JsonConverter(typeof(StringEnumConverter))] - public enum VerificationStatusEnum - { - /// - /// Enum Invalid for value: invalid - /// - [EnumMember(Value = "invalid")] - Invalid = 1, - - /// - /// Enum Pending for value: pending - /// - [EnumMember(Value = "pending")] - Pending = 2, - - /// - /// Enum Rejected for value: rejected - /// - [EnumMember(Value = "rejected")] - Rejected = 3, - - /// - /// Enum Valid for value: valid - /// - [EnumMember(Value = "valid")] - Valid = 4 - - } - - - /// - /// The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. - /// - /// The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. - [DataMember(Name = "verificationStatus", EmitDefaultValue = false)] - public VerificationStatusEnum? VerificationStatus { get; set; } - /// - /// Initializes a new instance of the class. - /// - /// Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability.. - /// The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**.. - /// Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder.. - /// The ID of the supporting entity.. - /// Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field.. - /// The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**.. - /// The status of the verification checks for the supporting entity capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. . - public AccountSupportingEntityCapability(bool? allowed = default(bool?), AllowedLevelEnum? allowedLevel = default(AllowedLevelEnum?), bool? enabled = default(bool?), string id = default(string), bool? requested = default(bool?), RequestedLevelEnum? requestedLevel = default(RequestedLevelEnum?), VerificationStatusEnum? verificationStatus = default(VerificationStatusEnum?)) - { - this.Allowed = allowed; - this.AllowedLevel = allowedLevel; - this.Enabled = enabled; - this.Id = id; - this.Requested = requested; - this.RequestedLevel = requestedLevel; - this.VerificationStatus = verificationStatus; - } - - /// - /// Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. - /// - /// Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. - [DataMember(Name = "allowed", EmitDefaultValue = false)] - public bool? Allowed { get; set; } - - /// - /// Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. - /// - /// Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. - [DataMember(Name = "enabled", EmitDefaultValue = false)] - public bool? Enabled { get; set; } - - /// - /// The ID of the supporting entity. - /// - /// The ID of the supporting entity. - [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } - - /// - /// Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. - /// - /// Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. - [DataMember(Name = "requested", EmitDefaultValue = false)] - public bool? Requested { 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 AccountSupportingEntityCapability {\n"); - sb.Append(" Allowed: ").Append(Allowed).Append("\n"); - sb.Append(" AllowedLevel: ").Append(AllowedLevel).Append("\n"); - sb.Append(" Enabled: ").Append(Enabled).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Requested: ").Append(Requested).Append("\n"); - sb.Append(" RequestedLevel: ").Append(RequestedLevel).Append("\n"); - sb.Append(" VerificationStatus: ").Append(VerificationStatus).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 AccountSupportingEntityCapability); - } - - /// - /// Returns true if AccountSupportingEntityCapability instances are equal - /// - /// Instance of AccountSupportingEntityCapability to be compared - /// Boolean - public bool Equals(AccountSupportingEntityCapability input) - { - if (input == null) - { - return false; - } - return - ( - this.Allowed == input.Allowed || - this.Allowed.Equals(input.Allowed) - ) && - ( - this.AllowedLevel == input.AllowedLevel || - this.AllowedLevel.Equals(input.AllowedLevel) - ) && - ( - this.Enabled == input.Enabled || - this.Enabled.Equals(input.Enabled) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Requested == input.Requested || - this.Requested.Equals(input.Requested) - ) && - ( - this.RequestedLevel == input.RequestedLevel || - this.RequestedLevel.Equals(input.RequestedLevel) - ) && - ( - this.VerificationStatus == input.VerificationStatus || - this.VerificationStatus.Equals(input.VerificationStatus) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - hashCode = (hashCode * 59) + this.Allowed.GetHashCode(); - hashCode = (hashCode * 59) + this.AllowedLevel.GetHashCode(); - hashCode = (hashCode * 59) + this.Enabled.GetHashCode(); - if (this.Id != null) - { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - } - hashCode = (hashCode * 59) + this.Requested.GetHashCode(); - hashCode = (hashCode * 59) + this.RequestedLevel.GetHashCode(); - hashCode = (hashCode * 59) + this.VerificationStatus.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/BalanceAccount.cs b/Adyen/Model/ConfigurationWebhooks/BalanceAccount.cs index 4ae01ae8c..e74394526 100644 --- a/Adyen/Model/ConfigurationWebhooks/BalanceAccount.cs +++ b/Adyen/Model/ConfigurationWebhooks/BalanceAccount.cs @@ -82,7 +82,7 @@ protected BalanceAccount() { } /// /// The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account. (required). /// List of balances with the amount and currency.. - /// The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**.. + /// The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**. > After a balance account is created, you cannot change its default currency.. /// 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.. /// 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.. @@ -123,9 +123,9 @@ protected BalanceAccount() { } public List Balances { get; set; } /// - /// The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**. + /// The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. /// - /// The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**. + /// The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**. > After a balance account is created, you cannot change its default currency. [DataMember(Name = "defaultCurrencyCode", EmitDefaultValue = false)] public string DefaultCurrencyCode { get; set; } diff --git a/Adyen/Model/ConfigurationWebhooks/PlatformPaymentConfiguration.cs b/Adyen/Model/ConfigurationWebhooks/PlatformPaymentConfiguration.cs index 85fbc6076..91284f198 100644 --- a/Adyen/Model/ConfigurationWebhooks/PlatformPaymentConfiguration.cs +++ b/Adyen/Model/ConfigurationWebhooks/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/receive-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/receive-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/receive-funds/sales-day-settlement). * Setting this value to **null** enables [Pass-through settlement](https://docs.adyen.com/marketplaces-and-platforms/receive-funds/pass-through-settlement). Default value: **null**.. + /// 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**.. 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/receive-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/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/marketplaces-and-platforms/receive-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/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\"**. [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/receive-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/receive-funds/sales-day-settlement). * Setting this value to **null** enables [Pass-through settlement](https://docs.adyen.com/marketplaces-and-platforms/receive-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/marketplaces-and-platforms/receive-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/receive-funds/sales-day-settlement). * Setting this value to **null** enables [Pass-through settlement](https://docs.adyen.com/marketplaces-and-platforms/receive-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**. [DataMember(Name = "settlementDelayDays", EmitDefaultValue = false)] public int? SettlementDelayDays { get; set; } diff --git a/Adyen/Model/ConfigurationWebhooks/SweepConfigurationV2.cs b/Adyen/Model/ConfigurationWebhooks/SweepConfigurationV2.cs index e07c4c098..f5e6e2f39 100644 --- a/Adyen/Model/ConfigurationWebhooks/SweepConfigurationV2.cs +++ b/Adyen/Model/ConfigurationWebhooks/SweepConfigurationV2.cs @@ -51,71 +51,89 @@ public enum ReasonEnum [EnumMember(Value = "approved")] Approved = 2, + /// + /// Enum BalanceAccountTemporarilyBlockedByTransactionRule for value: balanceAccountTemporarilyBlockedByTransactionRule + /// + [EnumMember(Value = "balanceAccountTemporarilyBlockedByTransactionRule")] + BalanceAccountTemporarilyBlockedByTransactionRule = 3, + /// /// Enum CounterpartyAccountBlocked for value: counterpartyAccountBlocked /// [EnumMember(Value = "counterpartyAccountBlocked")] - CounterpartyAccountBlocked = 3, + CounterpartyAccountBlocked = 4, /// /// Enum CounterpartyAccountClosed for value: counterpartyAccountClosed /// [EnumMember(Value = "counterpartyAccountClosed")] - CounterpartyAccountClosed = 4, + CounterpartyAccountClosed = 5, /// /// Enum CounterpartyAccountNotFound for value: counterpartyAccountNotFound /// [EnumMember(Value = "counterpartyAccountNotFound")] - CounterpartyAccountNotFound = 5, + CounterpartyAccountNotFound = 6, /// /// Enum CounterpartyAddressRequired for value: counterpartyAddressRequired /// [EnumMember(Value = "counterpartyAddressRequired")] - CounterpartyAddressRequired = 6, + CounterpartyAddressRequired = 7, /// /// Enum CounterpartyBankTimedOut for value: counterpartyBankTimedOut /// [EnumMember(Value = "counterpartyBankTimedOut")] - CounterpartyBankTimedOut = 7, + CounterpartyBankTimedOut = 8, /// /// Enum CounterpartyBankUnavailable for value: counterpartyBankUnavailable /// [EnumMember(Value = "counterpartyBankUnavailable")] - CounterpartyBankUnavailable = 8, + CounterpartyBankUnavailable = 9, + + /// + /// Enum DeclinedByTransactionRule for value: declinedByTransactionRule + /// + [EnumMember(Value = "declinedByTransactionRule")] + DeclinedByTransactionRule = 10, /// /// Enum Error for value: error /// [EnumMember(Value = "error")] - Error = 9, + Error = 11, /// /// Enum NotEnoughBalance for value: notEnoughBalance /// [EnumMember(Value = "notEnoughBalance")] - NotEnoughBalance = 10, + NotEnoughBalance = 12, /// /// Enum RefusedByCounterpartyBank for value: refusedByCounterpartyBank /// [EnumMember(Value = "refusedByCounterpartyBank")] - RefusedByCounterpartyBank = 11, + RefusedByCounterpartyBank = 13, /// /// Enum RouteNotFound for value: routeNotFound /// [EnumMember(Value = "routeNotFound")] - RouteNotFound = 12, + RouteNotFound = 14, + + /// + /// Enum ScaFailed for value: scaFailed + /// + [EnumMember(Value = "scaFailed")] + ScaFailed = 15, /// /// Enum Unknown for value: unknown /// [EnumMember(Value = "unknown")] - Unknown = 13 + Unknown = 16 } diff --git a/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceResponse.cs b/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceResponse.cs index c72799699..024a4d94a 100644 --- a/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceResponse.cs +++ b/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceResponse.cs @@ -33,9 +33,9 @@ namespace Adyen.Model.LegalEntityManagement public partial class AcceptTermsOfServiceResponse : IEquatable, IValidatableObject { /// - /// The type of Terms of Service. + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** /// - /// The type of Terms of Service. + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** [JsonConverter(typeof(StringEnumConverter))] public enum TypeEnum { @@ -85,9 +85,9 @@ public enum TypeEnum /// - /// The type of Terms of Service. + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** /// - /// The type of Terms of Service. + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** [DataMember(Name = "type", EmitDefaultValue = false)] public TypeEnum? Type { get; set; } /// @@ -98,7 +98,7 @@ public enum TypeEnum /// The IP address of the user that accepted the Terms of Service.. /// The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English.. /// The unique identifier of the Terms of Service document.. - /// The type of Terms of Service.. + /// The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** . public AcceptTermsOfServiceResponse(string acceptedBy = default(string), string id = default(string), string ipAddress = default(string), string language = default(string), string termsOfServiceDocumentId = default(string), TypeEnum? type = default(TypeEnum?)) { this.AcceptedBy = acceptedBy; diff --git a/Adyen/Model/LegalEntityManagement/IdentificationData.cs b/Adyen/Model/LegalEntityManagement/IdentificationData.cs index 15913c35e..f053f82ea 100644 --- a/Adyen/Model/LegalEntityManagement/IdentificationData.cs +++ b/Adyen/Model/LegalEntityManagement/IdentificationData.cs @@ -92,7 +92,6 @@ protected IdentificationData() { } /// /// The expiry date of the document, in YYYY-MM-DD format. [DataMember(Name = "expiryDate", EmitDefaultValue = false)] - [Obsolete] public string ExpiryDate { get; set; } /// diff --git a/Adyen/Model/LegalEntityManagement/LegalEntity.cs b/Adyen/Model/LegalEntityManagement/LegalEntity.cs index 90fe5c577..2320e9e61 100644 --- a/Adyen/Model/LegalEntityManagement/LegalEntity.cs +++ b/Adyen/Model/LegalEntityManagement/LegalEntity.cs @@ -33,9 +33,9 @@ namespace Adyen.Model.LegalEntityManagement public partial class LegalEntity : IEquatable, IValidatableObject { /// - /// The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**. + /// The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. /// - /// The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**. + /// The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. [JsonConverter(typeof(StringEnumConverter))] public enum TypeEnum { @@ -73,9 +73,9 @@ public enum TypeEnum /// - /// The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**. + /// The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. /// - /// The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**. + /// The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. [DataMember(Name = "type", EmitDefaultValue = false)] public TypeEnum? Type { get; set; } /// @@ -94,8 +94,9 @@ protected LegalEntity() { } /// List of verification errors related to capabilities for the legal entity.. /// Your reference for the legal entity, maximum 150 characters.. /// soleProprietorship. - /// The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**.. - public LegalEntity(List documentDetails = default(List), List documents = default(List), List entityAssociations = default(List), Individual individual = default(Individual), Organization organization = default(Organization), List problems = default(List), string reference = default(string), SoleProprietorship soleProprietorship = default(SoleProprietorship), TypeEnum? type = default(TypeEnum?)) + /// trust. + /// The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**.. + public LegalEntity(List documentDetails = default(List), List documents = default(List), List entityAssociations = default(List), Individual individual = default(Individual), Organization organization = default(Organization), List problems = default(List), string reference = default(string), SoleProprietorship soleProprietorship = default(SoleProprietorship), Trust trust = default(Trust), TypeEnum? type = default(TypeEnum?)) { this.DocumentDetails = documentDetails; this.Documents = documents; @@ -105,6 +106,7 @@ protected LegalEntity() { } this.Problems = problems; this.Reference = reference; this.SoleProprietorship = soleProprietorship; + this.Trust = trust; this.Type = type; } @@ -183,6 +185,12 @@ protected LegalEntity() { } [DataMember(Name = "transferInstruments", EmitDefaultValue = false)] public List TransferInstruments { get; private set; } + /// + /// Gets or Sets Trust + /// + [DataMember(Name = "trust", EmitDefaultValue = false)] + public Trust Trust { get; set; } + /// /// List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. /// @@ -209,6 +217,7 @@ public override string ToString() sb.Append(" Reference: ").Append(Reference).Append("\n"); sb.Append(" SoleProprietorship: ").Append(SoleProprietorship).Append("\n"); sb.Append(" TransferInstruments: ").Append(TransferInstruments).Append("\n"); + sb.Append(" Trust: ").Append(Trust).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" VerificationDeadlines: ").Append(VerificationDeadlines).Append("\n"); sb.Append("}\n"); @@ -307,6 +316,11 @@ public bool Equals(LegalEntity input) input.TransferInstruments != null && this.TransferInstruments.SequenceEqual(input.TransferInstruments) ) && + ( + this.Trust == input.Trust || + (this.Trust != null && + this.Trust.Equals(input.Trust)) + ) && ( this.Type == input.Type || this.Type.Equals(input.Type) @@ -372,6 +386,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.TransferInstruments.GetHashCode(); } + if (this.Trust != null) + { + hashCode = (hashCode * 59) + this.Trust.GetHashCode(); + } hashCode = (hashCode * 59) + this.Type.GetHashCode(); if (this.VerificationDeadlines != null) { diff --git a/Adyen/Model/LegalEntityManagement/LegalEntityAssociation.cs b/Adyen/Model/LegalEntityManagement/LegalEntityAssociation.cs index b3b0b0e1d..bb21745e7 100644 --- a/Adyen/Model/LegalEntityManagement/LegalEntityAssociation.cs +++ b/Adyen/Model/LegalEntityManagement/LegalEntityAssociation.cs @@ -33,55 +33,103 @@ namespace Adyen.Model.LegalEntityManagement public partial class LegalEntityAssociation : IEquatable, IValidatableObject { /// - /// Defines the relationship of the legal entity to the current legal entity. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. + /// Defines the relationship of the legal entity to the current legal entity. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust** Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. /// - /// Defines the relationship of the legal entity to the current legal entity. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. + /// Defines the relationship of the legal entity to the current legal entity. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust** Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. [JsonConverter(typeof(StringEnumConverter))] public enum TypeEnum { + /// + /// Enum DefinedBeneficiary for value: definedBeneficiary + /// + [EnumMember(Value = "definedBeneficiary")] + DefinedBeneficiary = 1, + + /// + /// Enum Director for value: director + /// + [EnumMember(Value = "director")] + Director = 2, + /// /// Enum PciSignatory for value: pciSignatory /// [EnumMember(Value = "pciSignatory")] - PciSignatory = 1, + PciSignatory = 3, + + /// + /// Enum Protector for value: protector + /// + [EnumMember(Value = "protector")] + Protector = 4, + + /// + /// Enum SecondaryTrustee for value: secondaryTrustee + /// + [EnumMember(Value = "secondaryTrustee")] + SecondaryTrustee = 5, + + /// + /// Enum Settlor for value: settlor + /// + [EnumMember(Value = "settlor")] + Settlor = 6, /// /// Enum Signatory for value: signatory /// [EnumMember(Value = "signatory")] - Signatory = 2, + Signatory = 7, /// /// Enum SoleProprietorship for value: soleProprietorship /// [EnumMember(Value = "soleProprietorship")] - SoleProprietorship = 3, + SoleProprietorship = 8, + + /// + /// Enum Trust for value: trust + /// + [EnumMember(Value = "trust")] + Trust = 9, + + /// + /// Enum TrustOwnership for value: trustOwnership + /// + [EnumMember(Value = "trustOwnership")] + TrustOwnership = 10, /// /// Enum UboThroughControl for value: uboThroughControl /// [EnumMember(Value = "uboThroughControl")] - UboThroughControl = 4, + UboThroughControl = 11, /// /// Enum UboThroughOwnership for value: uboThroughOwnership /// [EnumMember(Value = "uboThroughOwnership")] - UboThroughOwnership = 5, + UboThroughOwnership = 12, /// /// Enum UltimateParentCompany for value: ultimateParentCompany /// [EnumMember(Value = "ultimateParentCompany")] - UltimateParentCompany = 6 + UltimateParentCompany = 13, + + /// + /// Enum UndefinedBeneficiary for value: undefinedBeneficiary + /// + [EnumMember(Value = "undefinedBeneficiary")] + UndefinedBeneficiary = 14 } /// - /// Defines the relationship of the legal entity to the current legal entity. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. + /// Defines the relationship of the legal entity to the current legal entity. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust** Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. /// - /// Defines the relationship of the legal entity to the current legal entity. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. + /// Defines the relationship of the legal entity to the current legal entity. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust** Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. [DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)] public TypeEnum Type { get; set; } /// @@ -94,7 +142,7 @@ protected LegalEntityAssociation() { } /// /// The individual's job title if the `type` is **uboThroughControl** or **signatory**.. /// The unique identifier of the associated [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id). (required). - /// Defines the relationship of the legal entity to the current legal entity. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. (required). + /// Defines the relationship of the legal entity to the current legal entity. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust** Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**. (required). public LegalEntityAssociation(string jobTitle = default(string), string legalEntityId = default(string), TypeEnum type = default(TypeEnum)) { this.LegalEntityId = legalEntityId; @@ -137,6 +185,13 @@ protected LegalEntityAssociation() { } [DataMember(Name = "name", EmitDefaultValue = false)] public string Name { get; private set; } + /// + /// Defines the Kyc Exemption Reason for a Settlor associated with a trust. For example, **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. + /// + /// Defines the Kyc Exemption Reason for a Settlor associated with a trust. For example, **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**. + [DataMember(Name = "settlorExemptionReason", EmitDefaultValue = false)] + public List SettlorExemptionReason { get; private set; } + /// /// Returns the string presentation of the object /// @@ -150,6 +205,7 @@ public override string ToString() sb.Append(" JobTitle: ").Append(JobTitle).Append("\n"); sb.Append(" LegalEntityId: ").Append(LegalEntityId).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" SettlorExemptionReason: ").Append(SettlorExemptionReason).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -211,6 +267,12 @@ public bool Equals(LegalEntityAssociation input) (this.Name != null && this.Name.Equals(input.Name)) ) && + ( + this.SettlorExemptionReason == input.SettlorExemptionReason || + this.SettlorExemptionReason != null && + input.SettlorExemptionReason != null && + this.SettlorExemptionReason.SequenceEqual(input.SettlorExemptionReason) + ) && ( this.Type == input.Type || this.Type.Equals(input.Type) @@ -246,6 +308,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Name.GetHashCode(); } + if (this.SettlorExemptionReason != null) + { + hashCode = (hashCode * 59) + this.SettlorExemptionReason.GetHashCode(); + } hashCode = (hashCode * 59) + this.Type.GetHashCode(); return hashCode; } diff --git a/Adyen/Model/LegalEntityManagement/LegalEntityInfo.cs b/Adyen/Model/LegalEntityManagement/LegalEntityInfo.cs index 5009d3f79..68820ebac 100644 --- a/Adyen/Model/LegalEntityManagement/LegalEntityInfo.cs +++ b/Adyen/Model/LegalEntityManagement/LegalEntityInfo.cs @@ -33,9 +33,9 @@ namespace Adyen.Model.LegalEntityManagement public partial class LegalEntityInfo : IEquatable, IValidatableObject { /// - /// The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**. + /// The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. /// - /// The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**. + /// The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. [JsonConverter(typeof(StringEnumConverter))] public enum TypeEnum { @@ -73,9 +73,9 @@ public enum TypeEnum /// - /// The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**. + /// The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. /// - /// The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**. + /// The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. [DataMember(Name = "type", EmitDefaultValue = false)] public TypeEnum? Type { get; set; } /// @@ -86,14 +86,16 @@ public enum TypeEnum /// organization. /// Your reference for the legal entity, maximum 150 characters.. /// soleProprietorship. - /// The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**.. - public LegalEntityInfo(List entityAssociations = default(List), Individual individual = default(Individual), Organization organization = default(Organization), string reference = default(string), SoleProprietorship soleProprietorship = default(SoleProprietorship), TypeEnum? type = default(TypeEnum?)) + /// trust. + /// The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**.. + public LegalEntityInfo(List entityAssociations = default(List), Individual individual = default(Individual), Organization organization = default(Organization), string reference = default(string), SoleProprietorship soleProprietorship = default(SoleProprietorship), Trust trust = default(Trust), TypeEnum? type = default(TypeEnum?)) { this.EntityAssociations = entityAssociations; this.Individual = individual; this.Organization = organization; this.Reference = reference; this.SoleProprietorship = soleProprietorship; + this.Trust = trust; this.Type = type; } @@ -136,6 +138,12 @@ public enum TypeEnum [DataMember(Name = "soleProprietorship", EmitDefaultValue = false)] public SoleProprietorship SoleProprietorship { get; set; } + /// + /// Gets or Sets Trust + /// + [DataMember(Name = "trust", EmitDefaultValue = false)] + public Trust Trust { get; set; } + /// /// Returns the string presentation of the object /// @@ -150,6 +158,7 @@ public override string ToString() sb.Append(" Organization: ").Append(Organization).Append("\n"); sb.Append(" Reference: ").Append(Reference).Append("\n"); sb.Append(" SoleProprietorship: ").Append(SoleProprietorship).Append("\n"); + sb.Append(" Trust: ").Append(Trust).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -218,6 +227,11 @@ public bool Equals(LegalEntityInfo input) (this.SoleProprietorship != null && this.SoleProprietorship.Equals(input.SoleProprietorship)) ) && + ( + this.Trust == input.Trust || + (this.Trust != null && + this.Trust.Equals(input.Trust)) + ) && ( this.Type == input.Type || this.Type.Equals(input.Type) @@ -257,6 +271,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.SoleProprietorship.GetHashCode(); } + if (this.Trust != null) + { + hashCode = (hashCode * 59) + this.Trust.GetHashCode(); + } hashCode = (hashCode * 59) + this.Type.GetHashCode(); return hashCode; } diff --git a/Adyen/Model/LegalEntityManagement/LegalEntityInfoRequiredType.cs b/Adyen/Model/LegalEntityManagement/LegalEntityInfoRequiredType.cs index 412725809..535d3672b 100644 --- a/Adyen/Model/LegalEntityManagement/LegalEntityInfoRequiredType.cs +++ b/Adyen/Model/LegalEntityManagement/LegalEntityInfoRequiredType.cs @@ -33,9 +33,9 @@ namespace Adyen.Model.LegalEntityManagement public partial class LegalEntityInfoRequiredType : IEquatable, IValidatableObject { /// - /// The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**. + /// The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. /// - /// The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**. + /// The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. [JsonConverter(typeof(StringEnumConverter))] public enum TypeEnum { @@ -73,9 +73,9 @@ public enum TypeEnum /// - /// The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**. + /// The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. /// - /// The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**. + /// The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. [DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)] public TypeEnum Type { get; set; } /// @@ -91,8 +91,9 @@ protected LegalEntityInfoRequiredType() { } /// organization. /// Your reference for the legal entity, maximum 150 characters.. /// soleProprietorship. - /// The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**. (required). - public LegalEntityInfoRequiredType(List entityAssociations = default(List), Individual individual = default(Individual), Organization organization = default(Organization), string reference = default(string), SoleProprietorship soleProprietorship = default(SoleProprietorship), TypeEnum type = default(TypeEnum)) + /// trust. + /// The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. (required). + public LegalEntityInfoRequiredType(List entityAssociations = default(List), Individual individual = default(Individual), Organization organization = default(Organization), string reference = default(string), SoleProprietorship soleProprietorship = default(SoleProprietorship), Trust trust = default(Trust), TypeEnum type = default(TypeEnum)) { this.Type = type; this.EntityAssociations = entityAssociations; @@ -100,6 +101,7 @@ protected LegalEntityInfoRequiredType() { } this.Organization = organization; this.Reference = reference; this.SoleProprietorship = soleProprietorship; + this.Trust = trust; } /// @@ -141,6 +143,12 @@ protected LegalEntityInfoRequiredType() { } [DataMember(Name = "soleProprietorship", EmitDefaultValue = false)] public SoleProprietorship SoleProprietorship { get; set; } + /// + /// Gets or Sets Trust + /// + [DataMember(Name = "trust", EmitDefaultValue = false)] + public Trust Trust { get; set; } + /// /// Returns the string presentation of the object /// @@ -155,6 +163,7 @@ public override string ToString() sb.Append(" Organization: ").Append(Organization).Append("\n"); sb.Append(" Reference: ").Append(Reference).Append("\n"); sb.Append(" SoleProprietorship: ").Append(SoleProprietorship).Append("\n"); + sb.Append(" Trust: ").Append(Trust).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -223,6 +232,11 @@ public bool Equals(LegalEntityInfoRequiredType input) (this.SoleProprietorship != null && this.SoleProprietorship.Equals(input.SoleProprietorship)) ) && + ( + this.Trust == input.Trust || + (this.Trust != null && + this.Trust.Equals(input.Trust)) + ) && ( this.Type == input.Type || this.Type.Equals(input.Type) @@ -262,6 +276,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.SoleProprietorship.GetHashCode(); } + if (this.Trust != null) + { + hashCode = (hashCode * 59) + this.Trust.GetHashCode(); + } hashCode = (hashCode * 59) + this.Type.GetHashCode(); return hashCode; } diff --git a/Adyen/Model/LegalEntityManagement/SoleProprietorship.cs b/Adyen/Model/LegalEntityManagement/SoleProprietorship.cs index f7da6b745..5c6a5b6d1 100644 --- a/Adyen/Model/LegalEntityManagement/SoleProprietorship.cs +++ b/Adyen/Model/LegalEntityManagement/SoleProprietorship.cs @@ -75,9 +75,10 @@ protected SoleProprietorship() { } /// principalPlaceOfBusiness. /// registeredAddress (required). /// The registration number.. + /// The tax information of the entity.. /// The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**.. /// The VAT number.. - public SoleProprietorship(string countryOfGoverningLaw = default(string), string dateOfIncorporation = default(string), string doingBusinessAs = default(string), string name = default(string), Address principalPlaceOfBusiness = default(Address), Address registeredAddress = default(Address), string registrationNumber = default(string), VatAbsenceReasonEnum? vatAbsenceReason = default(VatAbsenceReasonEnum?), string vatNumber = default(string)) + public SoleProprietorship(string countryOfGoverningLaw = default(string), string dateOfIncorporation = default(string), string doingBusinessAs = default(string), string name = default(string), Address principalPlaceOfBusiness = default(Address), Address registeredAddress = default(Address), string registrationNumber = default(string), List taxInformation = default(List), VatAbsenceReasonEnum? vatAbsenceReason = default(VatAbsenceReasonEnum?), string vatNumber = default(string)) { this.CountryOfGoverningLaw = countryOfGoverningLaw; this.Name = name; @@ -86,6 +87,7 @@ protected SoleProprietorship() { } this.DoingBusinessAs = doingBusinessAs; this.PrincipalPlaceOfBusiness = principalPlaceOfBusiness; this.RegistrationNumber = registrationNumber; + this.TaxInformation = taxInformation; this.VatAbsenceReason = vatAbsenceReason; this.VatNumber = vatNumber; } @@ -137,6 +139,13 @@ protected SoleProprietorship() { } [DataMember(Name = "registrationNumber", EmitDefaultValue = false)] public string RegistrationNumber { get; set; } + /// + /// The tax information of the entity. + /// + /// The tax information of the entity. + [DataMember(Name = "taxInformation", EmitDefaultValue = false)] + public List TaxInformation { get; set; } + /// /// The VAT number. /// @@ -159,6 +168,7 @@ public override string ToString() sb.Append(" PrincipalPlaceOfBusiness: ").Append(PrincipalPlaceOfBusiness).Append("\n"); sb.Append(" RegisteredAddress: ").Append(RegisteredAddress).Append("\n"); sb.Append(" RegistrationNumber: ").Append(RegistrationNumber).Append("\n"); + sb.Append(" TaxInformation: ").Append(TaxInformation).Append("\n"); sb.Append(" VatAbsenceReason: ").Append(VatAbsenceReason).Append("\n"); sb.Append(" VatNumber: ").Append(VatNumber).Append("\n"); sb.Append("}\n"); @@ -231,6 +241,12 @@ public bool Equals(SoleProprietorship input) (this.RegistrationNumber != null && this.RegistrationNumber.Equals(input.RegistrationNumber)) ) && + ( + this.TaxInformation == input.TaxInformation || + this.TaxInformation != null && + input.TaxInformation != null && + this.TaxInformation.SequenceEqual(input.TaxInformation) + ) && ( this.VatAbsenceReason == input.VatAbsenceReason || this.VatAbsenceReason.Equals(input.VatAbsenceReason) @@ -279,6 +295,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.RegistrationNumber.GetHashCode(); } + if (this.TaxInformation != null) + { + hashCode = (hashCode * 59) + this.TaxInformation.GetHashCode(); + } hashCode = (hashCode * 59) + this.VatAbsenceReason.GetHashCode(); if (this.VatNumber != null) { diff --git a/Adyen/Model/LegalEntityManagement/Trust.cs b/Adyen/Model/LegalEntityManagement/Trust.cs new file mode 100644 index 000000000..36e0b438c --- /dev/null +++ b/Adyen/Model/LegalEntityManagement/Trust.cs @@ -0,0 +1,455 @@ +/* +* Legal Entity Management API +* +* +* The version of the OpenAPI document: 3 +* +* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +* https://openapi-generator.tech +* Do not edit the class manually. +*/ + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter; + +namespace Adyen.Model.LegalEntityManagement +{ + /// + /// Trust + /// + [DataContract(Name = "Trust")] + public partial class Trust : IEquatable, IValidatableObject + { + /// + /// Type of trust. Possible values for Australian trusts: **cashManagementTrust**, **corporateUnitTrust**, **deceasedEstate**, **discretionaryInvestmentTrust**, **discretionaryServicesManagementTrust**, **discretionaryTradingTrust**, **firstHomeSaverAccountsTrust**, **fixedTrust**, **fixedUnitTrust**, **hybridTrust**, **listedPublicUnitTrust**, **otherTrust**, **pooledSuperannuationTrust**, **publicTradingTrust**, **unlistedPublicUnitTrust**. + /// + /// Type of trust. Possible values for Australian trusts: **cashManagementTrust**, **corporateUnitTrust**, **deceasedEstate**, **discretionaryInvestmentTrust**, **discretionaryServicesManagementTrust**, **discretionaryTradingTrust**, **firstHomeSaverAccountsTrust**, **fixedTrust**, **fixedUnitTrust**, **hybridTrust**, **listedPublicUnitTrust**, **otherTrust**, **pooledSuperannuationTrust**, **publicTradingTrust**, **unlistedPublicUnitTrust**. + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum CashManagementTrust for value: cashManagementTrust + /// + [EnumMember(Value = "cashManagementTrust")] + CashManagementTrust = 1, + + /// + /// Enum CorporateUnitTrust for value: corporateUnitTrust + /// + [EnumMember(Value = "corporateUnitTrust")] + CorporateUnitTrust = 2, + + /// + /// Enum DeceasedEstate for value: deceasedEstate + /// + [EnumMember(Value = "deceasedEstate")] + DeceasedEstate = 3, + + /// + /// Enum DiscretionaryInvestmentTrust for value: discretionaryInvestmentTrust + /// + [EnumMember(Value = "discretionaryInvestmentTrust")] + DiscretionaryInvestmentTrust = 4, + + /// + /// Enum DiscretionaryServicesManagementTrust for value: discretionaryServicesManagementTrust + /// + [EnumMember(Value = "discretionaryServicesManagementTrust")] + DiscretionaryServicesManagementTrust = 5, + + /// + /// Enum DiscretionaryTradingTrust for value: discretionaryTradingTrust + /// + [EnumMember(Value = "discretionaryTradingTrust")] + DiscretionaryTradingTrust = 6, + + /// + /// Enum FirstHomeSaverAccountsTrust for value: firstHomeSaverAccountsTrust + /// + [EnumMember(Value = "firstHomeSaverAccountsTrust")] + FirstHomeSaverAccountsTrust = 7, + + /// + /// Enum FixedTrust for value: fixedTrust + /// + [EnumMember(Value = "fixedTrust")] + FixedTrust = 8, + + /// + /// Enum FixedUnitTrust for value: fixedUnitTrust + /// + [EnumMember(Value = "fixedUnitTrust")] + FixedUnitTrust = 9, + + /// + /// Enum HybridTrust for value: hybridTrust + /// + [EnumMember(Value = "hybridTrust")] + HybridTrust = 10, + + /// + /// Enum ListedPublicUnitTrust for value: listedPublicUnitTrust + /// + [EnumMember(Value = "listedPublicUnitTrust")] + ListedPublicUnitTrust = 11, + + /// + /// Enum OtherTrust for value: otherTrust + /// + [EnumMember(Value = "otherTrust")] + OtherTrust = 12, + + /// + /// Enum PooledSuperannuationTrust for value: pooledSuperannuationTrust + /// + [EnumMember(Value = "pooledSuperannuationTrust")] + PooledSuperannuationTrust = 13, + + /// + /// Enum PublicTradingTrust for value: publicTradingTrust + /// + [EnumMember(Value = "publicTradingTrust")] + PublicTradingTrust = 14, + + /// + /// Enum UnlistedPublicUnitTrust for value: unlistedPublicUnitTrust + /// + [EnumMember(Value = "unlistedPublicUnitTrust")] + UnlistedPublicUnitTrust = 15 + + } + + + /// + /// Type of trust. Possible values for Australian trusts: **cashManagementTrust**, **corporateUnitTrust**, **deceasedEstate**, **discretionaryInvestmentTrust**, **discretionaryServicesManagementTrust**, **discretionaryTradingTrust**, **firstHomeSaverAccountsTrust**, **fixedTrust**, **fixedUnitTrust**, **hybridTrust**, **listedPublicUnitTrust**, **otherTrust**, **pooledSuperannuationTrust**, **publicTradingTrust**, **unlistedPublicUnitTrust**. + /// + /// Type of trust. Possible values for Australian trusts: **cashManagementTrust**, **corporateUnitTrust**, **deceasedEstate**, **discretionaryInvestmentTrust**, **discretionaryServicesManagementTrust**, **discretionaryTradingTrust**, **firstHomeSaverAccountsTrust**, **fixedTrust**, **fixedUnitTrust**, **hybridTrust**, **listedPublicUnitTrust**, **otherTrust**, **pooledSuperannuationTrust**, **publicTradingTrust**, **unlistedPublicUnitTrust**. + [DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)] + public TypeEnum Type { get; set; } + /// + /// The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + /// + /// The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + [JsonConverter(typeof(StringEnumConverter))] + public enum VatAbsenceReasonEnum + { + /// + /// Enum IndustryExemption for value: industryExemption + /// + [EnumMember(Value = "industryExemption")] + IndustryExemption = 1, + + /// + /// Enum BelowTaxThreshold for value: belowTaxThreshold + /// + [EnumMember(Value = "belowTaxThreshold")] + BelowTaxThreshold = 2 + + } + + + /// + /// The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + /// + /// The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + [DataMember(Name = "vatAbsenceReason", EmitDefaultValue = false)] + public VatAbsenceReasonEnum? VatAbsenceReason { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Trust() { } + /// + /// Initializes a new instance of the class. + /// + /// The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. (required). + /// The date when the legal arrangement was incorporated in YYYY-MM-DD format.. + /// The registered name, if different from the `name`.. + /// The legal name. (required). + /// principalPlaceOfBusiness. + /// registeredAddress (required). + /// The registration number.. + /// The tax information of the entity.. + /// Type of trust. Possible values for Australian trusts: **cashManagementTrust**, **corporateUnitTrust**, **deceasedEstate**, **discretionaryInvestmentTrust**, **discretionaryServicesManagementTrust**, **discretionaryTradingTrust**, **firstHomeSaverAccountsTrust**, **fixedTrust**, **fixedUnitTrust**, **hybridTrust**, **listedPublicUnitTrust**, **otherTrust**, **pooledSuperannuationTrust**, **publicTradingTrust**, **unlistedPublicUnitTrust**. (required). + /// The undefined beneficiary information of the entity.. + /// The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**.. + /// The VAT number.. + public Trust(string countryOfGoverningLaw = default(string), string dateOfIncorporation = default(string), string doingBusinessAs = default(string), string name = default(string), Address principalPlaceOfBusiness = default(Address), Address registeredAddress = default(Address), string registrationNumber = default(string), List taxInformation = default(List), TypeEnum type = default(TypeEnum), List undefinedBeneficiaryInfo = default(List), VatAbsenceReasonEnum? vatAbsenceReason = default(VatAbsenceReasonEnum?), string vatNumber = default(string)) + { + this.CountryOfGoverningLaw = countryOfGoverningLaw; + this.Name = name; + this.RegisteredAddress = registeredAddress; + this.Type = type; + this.DateOfIncorporation = dateOfIncorporation; + this.DoingBusinessAs = doingBusinessAs; + this.PrincipalPlaceOfBusiness = principalPlaceOfBusiness; + this.RegistrationNumber = registrationNumber; + this.TaxInformation = taxInformation; + this.UndefinedBeneficiaryInfo = undefinedBeneficiaryInfo; + this.VatAbsenceReason = vatAbsenceReason; + this.VatNumber = vatNumber; + } + + /// + /// The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + /// + /// The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + [DataMember(Name = "countryOfGoverningLaw", IsRequired = false, EmitDefaultValue = false)] + public string CountryOfGoverningLaw { get; set; } + + /// + /// The date when the legal arrangement was incorporated in YYYY-MM-DD format. + /// + /// The date when the legal arrangement was incorporated in YYYY-MM-DD format. + [DataMember(Name = "dateOfIncorporation", EmitDefaultValue = false)] + public string DateOfIncorporation { get; set; } + + /// + /// The registered name, if different from the `name`. + /// + /// The registered name, if different from the `name`. + [DataMember(Name = "doingBusinessAs", EmitDefaultValue = false)] + public string DoingBusinessAs { get; set; } + + /// + /// The legal name. + /// + /// The legal name. + [DataMember(Name = "name", IsRequired = false, EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets PrincipalPlaceOfBusiness + /// + [DataMember(Name = "principalPlaceOfBusiness", EmitDefaultValue = false)] + public Address PrincipalPlaceOfBusiness { get; set; } + + /// + /// Gets or Sets RegisteredAddress + /// + [DataMember(Name = "registeredAddress", IsRequired = false, EmitDefaultValue = false)] + public Address RegisteredAddress { get; set; } + + /// + /// The registration number. + /// + /// The registration number. + [DataMember(Name = "registrationNumber", EmitDefaultValue = false)] + public string RegistrationNumber { get; set; } + + /// + /// The tax information of the entity. + /// + /// The tax information of the entity. + [DataMember(Name = "taxInformation", EmitDefaultValue = false)] + public List TaxInformation { get; set; } + + /// + /// The undefined beneficiary information of the entity. + /// + /// The undefined beneficiary information of the entity. + [DataMember(Name = "undefinedBeneficiaryInfo", EmitDefaultValue = false)] + public List UndefinedBeneficiaryInfo { get; set; } + + /// + /// The VAT number. + /// + /// The VAT number. + [DataMember(Name = "vatNumber", EmitDefaultValue = false)] + public string VatNumber { 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 Trust {\n"); + sb.Append(" CountryOfGoverningLaw: ").Append(CountryOfGoverningLaw).Append("\n"); + sb.Append(" DateOfIncorporation: ").Append(DateOfIncorporation).Append("\n"); + sb.Append(" DoingBusinessAs: ").Append(DoingBusinessAs).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" PrincipalPlaceOfBusiness: ").Append(PrincipalPlaceOfBusiness).Append("\n"); + sb.Append(" RegisteredAddress: ").Append(RegisteredAddress).Append("\n"); + sb.Append(" RegistrationNumber: ").Append(RegistrationNumber).Append("\n"); + sb.Append(" TaxInformation: ").Append(TaxInformation).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" UndefinedBeneficiaryInfo: ").Append(UndefinedBeneficiaryInfo).Append("\n"); + sb.Append(" VatAbsenceReason: ").Append(VatAbsenceReason).Append("\n"); + sb.Append(" VatNumber: ").Append(VatNumber).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 Trust); + } + + /// + /// Returns true if Trust instances are equal + /// + /// Instance of Trust to be compared + /// Boolean + public bool Equals(Trust input) + { + if (input == null) + { + return false; + } + return + ( + this.CountryOfGoverningLaw == input.CountryOfGoverningLaw || + (this.CountryOfGoverningLaw != null && + this.CountryOfGoverningLaw.Equals(input.CountryOfGoverningLaw)) + ) && + ( + this.DateOfIncorporation == input.DateOfIncorporation || + (this.DateOfIncorporation != null && + this.DateOfIncorporation.Equals(input.DateOfIncorporation)) + ) && + ( + this.DoingBusinessAs == input.DoingBusinessAs || + (this.DoingBusinessAs != null && + this.DoingBusinessAs.Equals(input.DoingBusinessAs)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.PrincipalPlaceOfBusiness == input.PrincipalPlaceOfBusiness || + (this.PrincipalPlaceOfBusiness != null && + this.PrincipalPlaceOfBusiness.Equals(input.PrincipalPlaceOfBusiness)) + ) && + ( + this.RegisteredAddress == input.RegisteredAddress || + (this.RegisteredAddress != null && + this.RegisteredAddress.Equals(input.RegisteredAddress)) + ) && + ( + this.RegistrationNumber == input.RegistrationNumber || + (this.RegistrationNumber != null && + this.RegistrationNumber.Equals(input.RegistrationNumber)) + ) && + ( + this.TaxInformation == input.TaxInformation || + this.TaxInformation != null && + input.TaxInformation != null && + this.TaxInformation.SequenceEqual(input.TaxInformation) + ) && + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ) && + ( + this.UndefinedBeneficiaryInfo == input.UndefinedBeneficiaryInfo || + this.UndefinedBeneficiaryInfo != null && + input.UndefinedBeneficiaryInfo != null && + this.UndefinedBeneficiaryInfo.SequenceEqual(input.UndefinedBeneficiaryInfo) + ) && + ( + this.VatAbsenceReason == input.VatAbsenceReason || + this.VatAbsenceReason.Equals(input.VatAbsenceReason) + ) && + ( + this.VatNumber == input.VatNumber || + (this.VatNumber != null && + this.VatNumber.Equals(input.VatNumber)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CountryOfGoverningLaw != null) + { + hashCode = (hashCode * 59) + this.CountryOfGoverningLaw.GetHashCode(); + } + if (this.DateOfIncorporation != null) + { + hashCode = (hashCode * 59) + this.DateOfIncorporation.GetHashCode(); + } + if (this.DoingBusinessAs != null) + { + hashCode = (hashCode * 59) + this.DoingBusinessAs.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.PrincipalPlaceOfBusiness != null) + { + hashCode = (hashCode * 59) + this.PrincipalPlaceOfBusiness.GetHashCode(); + } + if (this.RegisteredAddress != null) + { + hashCode = (hashCode * 59) + this.RegisteredAddress.GetHashCode(); + } + if (this.RegistrationNumber != null) + { + hashCode = (hashCode * 59) + this.RegistrationNumber.GetHashCode(); + } + if (this.TaxInformation != null) + { + hashCode = (hashCode * 59) + this.TaxInformation.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Type.GetHashCode(); + if (this.UndefinedBeneficiaryInfo != null) + { + hashCode = (hashCode * 59) + this.UndefinedBeneficiaryInfo.GetHashCode(); + } + hashCode = (hashCode * 59) + this.VatAbsenceReason.GetHashCode(); + if (this.VatNumber != null) + { + hashCode = (hashCode * 59) + this.VatNumber.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/Management/JSONObject.cs b/Adyen/Model/LegalEntityManagement/UndefinedBeneficiary.cs similarity index 56% rename from Adyen/Model/Management/JSONObject.cs rename to Adyen/Model/LegalEntityManagement/UndefinedBeneficiary.cs index 7aa12d38f..53ffa8880 100644 --- a/Adyen/Model/Management/JSONObject.cs +++ b/Adyen/Model/LegalEntityManagement/UndefinedBeneficiary.cs @@ -1,5 +1,5 @@ /* -* Management API +* Legal Entity Management API * * * The version of the OpenAPI document: 3 @@ -24,36 +24,38 @@ using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter; -namespace Adyen.Model.Management +namespace Adyen.Model.LegalEntityManagement { /// - /// JSONObject + /// UndefinedBeneficiary /// - [DataContract(Name = "JSONObject")] - public partial class JSONObject : IEquatable, IValidatableObject + [DataContract(Name = "UndefinedBeneficiary")] + public partial class UndefinedBeneficiary : IEquatable, IValidatableObject { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// paths. - /// rootPath. - public JSONObject(List paths = default(List), JSONPath rootPath = default(JSONPath)) + /// The details of the undefined beneficiary.. + /// The reference of the undefined beneficiary.. + public UndefinedBeneficiary(string description = default(string), string reference = default(string)) { - this.Paths = paths; - this.RootPath = rootPath; + this.Description = description; + this.Reference = reference; } /// - /// Gets or Sets Paths + /// The details of the undefined beneficiary. /// - [DataMember(Name = "paths", EmitDefaultValue = false)] - public List Paths { get; set; } + /// The details of the undefined beneficiary. + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } /// - /// Gets or Sets RootPath + /// The reference of the undefined beneficiary. /// - [DataMember(Name = "rootPath", EmitDefaultValue = false)] - public JSONPath RootPath { get; set; } + /// The reference of the undefined beneficiary. + [DataMember(Name = "reference", EmitDefaultValue = false)] + public string Reference { get; set; } /// /// Returns the string presentation of the object @@ -62,9 +64,9 @@ public partial class JSONObject : IEquatable, IValidatableObject public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class JSONObject {\n"); - sb.Append(" Paths: ").Append(Paths).Append("\n"); - sb.Append(" RootPath: ").Append(RootPath).Append("\n"); + sb.Append("class UndefinedBeneficiary {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Reference: ").Append(Reference).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -85,15 +87,15 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as JSONObject); + return this.Equals(input as UndefinedBeneficiary); } /// - /// Returns true if JSONObject instances are equal + /// Returns true if UndefinedBeneficiary instances are equal /// - /// Instance of JSONObject to be compared + /// Instance of UndefinedBeneficiary to be compared /// Boolean - public bool Equals(JSONObject input) + public bool Equals(UndefinedBeneficiary input) { if (input == null) { @@ -101,15 +103,14 @@ public bool Equals(JSONObject input) } return ( - this.Paths == input.Paths || - this.Paths != null && - input.Paths != null && - this.Paths.SequenceEqual(input.Paths) + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) ) && ( - this.RootPath == input.RootPath || - (this.RootPath != null && - this.RootPath.Equals(input.RootPath)) + this.Reference == input.Reference || + (this.Reference != null && + this.Reference.Equals(input.Reference)) ); } @@ -122,13 +123,13 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Paths != null) + if (this.Description != null) { - hashCode = (hashCode * 59) + this.Paths.GetHashCode(); + hashCode = (hashCode * 59) + this.Description.GetHashCode(); } - if (this.RootPath != null) + if (this.Reference != null) { - hashCode = (hashCode * 59) + this.RootPath.GetHashCode(); + hashCode = (hashCode * 59) + this.Reference.GetHashCode(); } return hashCode; } diff --git a/Adyen/Model/Management/JSONPath.cs b/Adyen/Model/Management/JSONPath.cs deleted file mode 100644 index 405309853..000000000 --- a/Adyen/Model/Management/JSONPath.cs +++ /dev/null @@ -1,129 +0,0 @@ -/* -* Management API -* -* -* The version of the OpenAPI document: 3 -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter; - -namespace Adyen.Model.Management -{ - /// - /// JSONPath - /// - [DataContract(Name = "JSONPath")] - public partial class JSONPath : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// content. - public JSONPath(List content = default(List)) - { - this.Content = content; - } - - /// - /// Gets or Sets Content - /// - [DataMember(Name = "content", EmitDefaultValue = false)] - public List Content { 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 JSONPath {\n"); - sb.Append(" Content: ").Append(Content).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 JSONPath); - } - - /// - /// Returns true if JSONPath instances are equal - /// - /// Instance of JSONPath to be compared - /// Boolean - public bool Equals(JSONPath input) - { - if (input == null) - { - return false; - } - return - ( - this.Content == input.Content || - this.Content != null && - input.Content != null && - this.Content.SequenceEqual(input.Content) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Content != null) - { - hashCode = (hashCode * 59) + this.Content.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/Management/RestServiceError.cs b/Adyen/Model/Management/RestServiceError.cs index 86382437b..5f6fe3271 100644 --- a/Adyen/Model/Management/RestServiceError.cs +++ b/Adyen/Model/Management/RestServiceError.cs @@ -49,7 +49,7 @@ protected RestServiceError() { } /// The HTTP status code. (required). /// A short, human-readable summary of the problem type. (required). /// A URI that identifies the problem type, pointing to human-readable documentation on this problem type. (required). - public RestServiceError(string detail = default(string), string errorCode = default(string), string instance = default(string), List invalidFields = default(List), string requestId = default(string), JSONObject response = default(JSONObject), int? status = default(int?), string title = default(string), string type = default(string)) + public RestServiceError(string detail = default(string), string errorCode = default(string), string instance = default(string), List invalidFields = default(List), string requestId = default(string), Object response = default(Object), int? status = default(int?), string title = default(string), string type = default(string)) { this.Detail = detail; this.ErrorCode = errorCode; @@ -101,7 +101,7 @@ protected RestServiceError() { } /// Gets or Sets Response /// [DataMember(Name = "response", EmitDefaultValue = false)] - public JSONObject Response { get; set; } + public Object Response { get; set; } /// /// The HTTP status code. diff --git a/Adyen/Model/Management/TerminalAssignment.cs b/Adyen/Model/Management/TerminalAssignment.cs index dd850a00a..ba356a7cb 100644 --- a/Adyen/Model/Management/TerminalAssignment.cs +++ b/Adyen/Model/Management/TerminalAssignment.cs @@ -33,17 +33,17 @@ namespace Adyen.Model.Management public partial class TerminalAssignment : IEquatable, IValidatableObject { /// - /// The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. + /// The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. /// - /// The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. + /// The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. [JsonConverter(typeof(StringEnumConverter))] public enum StatusEnum { /// - /// Enum ReassignmentInProgress for value: reassignmentInProgress + /// Enum Boarded for value: boarded /// - [EnumMember(Value = "reassignmentInProgress")] - ReassignmentInProgress = 1, + [EnumMember(Value = "boarded")] + Boarded = 1, /// /// Enum Deployed for value: deployed @@ -55,15 +55,21 @@ public enum StatusEnum /// Enum Inventory for value: inventory /// [EnumMember(Value = "inventory")] - Inventory = 3 + Inventory = 3, + + /// + /// Enum ReassignmentInProgress for value: reassignmentInProgress + /// + [EnumMember(Value = "reassignmentInProgress")] + ReassignmentInProgress = 4 } /// - /// The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. + /// The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. /// - /// The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. + /// The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. [DataMember(Name = "status", IsRequired = false, EmitDefaultValue = false)] public StatusEnum Status { get; set; } /// @@ -77,7 +83,7 @@ protected TerminalAssignment() { } /// The unique identifier of the company account to which terminal is assigned. (required). /// The unique identifier of the merchant account to which terminal is assigned.. /// reassignmentTarget. - /// The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. (required). + /// The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. (required). /// The unique identifier of the store to which terminal is assigned.. public TerminalAssignment(string companyId = default(string), string merchantId = default(string), TerminalReassignmentTarget reassignmentTarget = default(TerminalReassignmentTarget), StatusEnum status = default(StatusEnum), string storeId = default(string)) { diff --git a/Adyen/Model/Payment/Recurring.cs b/Adyen/Model/Payment/Recurring.cs index f8df77a72..ae0713568 100644 --- a/Adyen/Model/Payment/Recurring.cs +++ b/Adyen/Model/Payment/Recurring.cs @@ -83,7 +83,19 @@ public enum TokenServiceEnum /// Enum MCTOKENSERVICE for value: MCTOKENSERVICE /// [EnumMember(Value = "MCTOKENSERVICE")] - MCTOKENSERVICE = 2 + MCTOKENSERVICE = 2, + + /// + /// Enum AMEXTOKENSERVICE for value: AMEXTOKENSERVICE + /// + [EnumMember(Value = "AMEXTOKENSERVICE")] + AMEXTOKENSERVICE = 3, + + /// + /// Enum TOKENSHARING for value: TOKEN_SHARING + /// + [EnumMember(Value = "TOKEN_SHARING")] + TOKENSHARING = 4 } diff --git a/Adyen/Model/Payment/Split.cs b/Adyen/Model/Payment/Split.cs index 9a6abee46..7d831371f 100644 --- a/Adyen/Model/Payment/Split.cs +++ b/Adyen/Model/Payment/Split.cs @@ -33,9 +33,9 @@ namespace Adyen.Model.Payment public partial class Split : IEquatable, IValidatableObject { /// - /// The type of split. Possible values: **Default**, **PaymentFee**, **VAT**, **Commission**, **MarketPlace**, **BalanceAccount**, **Remainder**, **Surcharge**, **Tip**. + /// The type of the split item. Possible values: * [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**. * [Balance Platform](https://docs.adyen.com/marketplaces-and-platforms): **BalanceAccount**, **Commission**, **Default**, **PaymentFee**, **Remainder**, **Surcharge**, **Tip**, **VAT**. /// - /// The type of split. Possible values: **Default**, **PaymentFee**, **VAT**, **Commission**, **MarketPlace**, **BalanceAccount**, **Remainder**, **Surcharge**, **Tip**. + /// The type of the split item. Possible values: * [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**. * [Balance Platform](https://docs.adyen.com/marketplaces-and-platforms): **BalanceAccount**, **Commission**, **Default**, **PaymentFee**, **Remainder**, **Surcharge**, **Tip**, **VAT**. [JsonConverter(typeof(StringEnumConverter))] public enum TypeEnum { @@ -97,9 +97,9 @@ public enum TypeEnum /// - /// The type of split. Possible values: **Default**, **PaymentFee**, **VAT**, **Commission**, **MarketPlace**, **BalanceAccount**, **Remainder**, **Surcharge**, **Tip**. + /// The type of the split item. Possible values: * [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**. * [Balance Platform](https://docs.adyen.com/marketplaces-and-platforms): **BalanceAccount**, **Commission**, **Default**, **PaymentFee**, **Remainder**, **Surcharge**, **Tip**, **VAT**. /// - /// The type of split. Possible values: **Default**, **PaymentFee**, **VAT**, **Commission**, **MarketPlace**, **BalanceAccount**, **Remainder**, **Surcharge**, **Tip**. + /// The type of the split item. Possible values: * [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**. * [Balance Platform](https://docs.adyen.com/marketplaces-and-platforms): **BalanceAccount**, **Commission**, **Default**, **PaymentFee**, **Remainder**, **Surcharge**, **Tip**, **VAT**. [DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)] public TypeEnum Type { get; set; } /// @@ -110,44 +110,44 @@ protected Split() { } /// /// Initializes a new instance of the class. /// - /// Unique identifier of the account where the split amount should be sent. This is required if `type` is **MarketPlace** or **BalanceAccount**. . - /// amount (required). - /// A description of this split.. - /// Your reference for the split, which you can use to link the split to other operations such as captures and refunds. This is required if `type` is **MarketPlace** or **BalanceAccount**. For the other types, we also recommend sending a reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. If the reference is not provided, the split is reported as part of the aggregated [TransferBalance record type](https://docs.adyen.com/reporting/marketpay-payments-accounting-report) in Adyen for Platforms.. - /// The type of split. Possible values: **Default**, **PaymentFee**, **VAT**, **Commission**, **MarketPlace**, **BalanceAccount**, **Remainder**, **Surcharge**, **Tip**. (required). + /// The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/marketplaces-and-platforms): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked.. + /// amount. + /// Your description for the split item.. + /// Your reference for the split item. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/marketplaces-and-platforms)). For the other types, we also recommend sending a reference so you can reconcile the split and the associated payment in the transaction overview and in the reports.. + /// The type of the split item. Possible values: * [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic): **Commission**, **Default**, **Marketplace**, **PaymentFee**, **VAT**. * [Balance Platform](https://docs.adyen.com/marketplaces-and-platforms): **BalanceAccount**, **Commission**, **Default**, **PaymentFee**, **Remainder**, **Surcharge**, **Tip**, **VAT**. (required). public Split(string account = default(string), SplitAmount amount = default(SplitAmount), string description = default(string), string reference = default(string), TypeEnum type = default(TypeEnum)) { - this.Amount = amount; this.Type = type; this.Account = account; + this.Amount = amount; this.Description = description; this.Reference = reference; } /// - /// Unique identifier of the account where the split amount should be sent. This is required if `type` is **MarketPlace** or **BalanceAccount**. + /// The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/marketplaces-and-platforms): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. /// - /// Unique identifier of the account where the split amount should be sent. This is required if `type` is **MarketPlace** or **BalanceAccount**. + /// The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/marketplaces-and-platforms): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. [DataMember(Name = "account", EmitDefaultValue = false)] public string Account { get; set; } /// /// Gets or Sets Amount /// - [DataMember(Name = "amount", IsRequired = false, EmitDefaultValue = false)] + [DataMember(Name = "amount", EmitDefaultValue = false)] public SplitAmount Amount { get; set; } /// - /// A description of this split. + /// Your description for the split item. /// - /// A description of this split. + /// Your description for the split item. [DataMember(Name = "description", EmitDefaultValue = false)] public string Description { get; set; } /// - /// Your reference for the split, which you can use to link the split to other operations such as captures and refunds. This is required if `type` is **MarketPlace** or **BalanceAccount**. For the other types, we also recommend sending a reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. If the reference is not provided, the split is reported as part of the aggregated [TransferBalance record type](https://docs.adyen.com/reporting/marketpay-payments-accounting-report) in Adyen for Platforms. + /// Your reference for the split item. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/marketplaces-and-platforms)). For the other types, we also recommend sending a reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. /// - /// Your reference for the split, which you can use to link the split to other operations such as captures and refunds. This is required if `type` is **MarketPlace** or **BalanceAccount**. For the other types, we also recommend sending a reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. If the reference is not provided, the split is reported as part of the aggregated [TransferBalance record type](https://docs.adyen.com/reporting/marketpay-payments-accounting-report) in Adyen for Platforms. + /// Your reference for the split item. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/marketplaces-and-platforms)). For the other types, we also recommend sending a reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. [DataMember(Name = "reference", EmitDefaultValue = false)] public string Reference { get; set; } diff --git a/Adyen/Model/Payment/SplitAmount.cs b/Adyen/Model/Payment/SplitAmount.cs index ef48f5ca4..abade1268 100644 --- a/Adyen/Model/Payment/SplitAmount.cs +++ b/Adyen/Model/Payment/SplitAmount.cs @@ -40,8 +40,8 @@ protected SplitAmount() { } /// /// Initializes a new instance of the class. /// - /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). If this value is not provided, the currency in which the payment is made will be used.. - /// The amount 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). By default, this is the original payment currency.. + /// The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). (required). public SplitAmount(string currency = default(string), long? value = default(long?)) { this.Value = value; @@ -49,16 +49,16 @@ protected SplitAmount() { } } /// - /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). If this value is not provided, the currency in which the payment is made will be used. + /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. /// - /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). If this value is not provided, the currency in which the payment is made will be used. + /// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). By default, this is the original payment currency. [DataMember(Name = "currency", EmitDefaultValue = false)] public string Currency { get; set; } /// - /// The amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). + /// The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). /// - /// The amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). + /// The value of the split amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). [DataMember(Name = "value", IsRequired = false, EmitDefaultValue = false)] public long? Value { get; set; } diff --git a/Adyen/Model/Payout/Recurring.cs b/Adyen/Model/Payout/Recurring.cs index b5b3a4952..7e4237d58 100644 --- a/Adyen/Model/Payout/Recurring.cs +++ b/Adyen/Model/Payout/Recurring.cs @@ -83,7 +83,19 @@ public enum TokenServiceEnum /// Enum MCTOKENSERVICE for value: MCTOKENSERVICE /// [EnumMember(Value = "MCTOKENSERVICE")] - MCTOKENSERVICE = 2 + MCTOKENSERVICE = 2, + + /// + /// Enum AMEXTOKENSERVICE for value: AMEXTOKENSERVICE + /// + [EnumMember(Value = "AMEXTOKENSERVICE")] + AMEXTOKENSERVICE = 3, + + /// + /// Enum TOKENSHARING for value: TOKEN_SHARING + /// + [EnumMember(Value = "TOKEN_SHARING")] + TOKENSHARING = 4 } diff --git a/Adyen/Model/PlatformsAccount/PayoutScheduleResponse.cs b/Adyen/Model/PlatformsAccount/PayoutScheduleResponse.cs index 6efe66a17..fcabc93e5 100644 --- a/Adyen/Model/PlatformsAccount/PayoutScheduleResponse.cs +++ b/Adyen/Model/PlatformsAccount/PayoutScheduleResponse.cs @@ -39,100 +39,95 @@ public partial class PayoutScheduleResponse : IEquatable [JsonConverter(typeof(StringEnumConverter))] public enum ScheduleEnum { - /// - /// Enum DEFAULT for value: DEFAULT - /// - [EnumMember(Value = "DEFAULT")] - DEFAULT = 1, /// /// Enum BIWEEKLYON1STAND15THATMIDNIGHT for value: BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT /// [EnumMember(Value = "BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT")] - BIWEEKLYON1STAND15THATMIDNIGHT = 2, + BIWEEKLYON1STAND15THATMIDNIGHT = 1, /// /// Enum DAILY for value: DAILY /// [EnumMember(Value = "DAILY")] - DAILY = 3, + DAILY = 2, /// /// Enum DAILYAU for value: DAILY_AU /// [EnumMember(Value = "DAILY_AU")] - DAILYAU = 4, + DAILYAU = 3, /// /// Enum DAILYEU for value: DAILY_EU /// [EnumMember(Value = "DAILY_EU")] - DAILYEU = 5, + DAILYEU = 4, /// /// Enum DAILYSG for value: DAILY_SG /// [EnumMember(Value = "DAILY_SG")] - DAILYSG = 6, + DAILYSG = 5, /// /// Enum DAILYUS for value: DAILY_US /// [EnumMember(Value = "DAILY_US")] - DAILYUS = 7, + DAILYUS = 6, /// /// Enum HOLD for value: HOLD /// [EnumMember(Value = "HOLD")] - HOLD = 8, + HOLD = 7, /// /// Enum MONTHLY for value: MONTHLY /// [EnumMember(Value = "MONTHLY")] - MONTHLY = 9, + MONTHLY = 8, /// /// Enum WEEKLY for value: WEEKLY /// [EnumMember(Value = "WEEKLY")] - WEEKLY = 10, + WEEKLY = 9, /// /// Enum WEEKLYMONTOFRIAU for value: WEEKLY_MON_TO_FRI_AU /// [EnumMember(Value = "WEEKLY_MON_TO_FRI_AU")] - WEEKLYMONTOFRIAU = 11, + WEEKLYMONTOFRIAU = 10, /// /// Enum WEEKLYMONTOFRIEU for value: WEEKLY_MON_TO_FRI_EU /// [EnumMember(Value = "WEEKLY_MON_TO_FRI_EU")] - WEEKLYMONTOFRIEU = 12, + WEEKLYMONTOFRIEU = 11, /// /// Enum WEEKLYMONTOFRIUS for value: WEEKLY_MON_TO_FRI_US /// [EnumMember(Value = "WEEKLY_MON_TO_FRI_US")] - WEEKLYMONTOFRIUS = 13, + WEEKLYMONTOFRIUS = 12, /// /// Enum WEEKLYONTUEFRIMIDNIGHT for value: WEEKLY_ON_TUE_FRI_MIDNIGHT /// [EnumMember(Value = "WEEKLY_ON_TUE_FRI_MIDNIGHT")] - WEEKLYONTUEFRIMIDNIGHT = 14, + WEEKLYONTUEFRIMIDNIGHT = 13, /// /// Enum WEEKLYSUNTOTHUAU for value: WEEKLY_SUN_TO_THU_AU /// [EnumMember(Value = "WEEKLY_SUN_TO_THU_AU")] - WEEKLYSUNTOTHUAU = 15, + WEEKLYSUNTOTHUAU = 14, /// /// Enum WEEKLYSUNTOTHUUS for value: WEEKLY_SUN_TO_THU_US /// [EnumMember(Value = "WEEKLY_SUN_TO_THU_US")] - WEEKLYSUNTOTHUUS = 16 + WEEKLYSUNTOTHUUS = 15 } diff --git a/Adyen/Model/PlatformsFund/AccountHolderTransactionListResponse.cs b/Adyen/Model/PlatformsFund/AccountHolderTransactionListResponse.cs index 4aa03ef98..6720a3f02 100644 --- a/Adyen/Model/PlatformsFund/AccountHolderTransactionListResponse.cs +++ b/Adyen/Model/PlatformsFund/AccountHolderTransactionListResponse.cs @@ -39,7 +39,7 @@ public partial class AccountHolderTransactionListResponse : IEquatableContains field validation errors that would prevent requests from being processed.. /// The reference of a request. Can be used to uniquely identify the request.. /// The result code.. - public AccountHolderTransactionListResponse(List accountTransactionLists = default(List), List invalidFields = default(List), string pspReference = default(string), string resultCode = default(string)) + public AccountHolderTransactionListResponse(List accountTransactionLists = default(List), List invalidFields = default(List), string pspReference = default(string), string resultCode = default(string)) { this.AccountTransactionLists = accountTransactionLists; this.InvalidFields = invalidFields; @@ -52,7 +52,7 @@ public partial class AccountHolderTransactionListResponse : IEquatable /// A list of the transactions. [DataMember(Name = "accountTransactionLists", EmitDefaultValue = false)] - public List AccountTransactionLists { get; set; } + public List AccountTransactionLists { get; set; } /// /// Contains field validation errors that would prevent requests from being processed. diff --git a/Adyen/Model/Recurring/Recurring.cs b/Adyen/Model/Recurring/Recurring.cs index 5ab7603ab..5a3ee7659 100644 --- a/Adyen/Model/Recurring/Recurring.cs +++ b/Adyen/Model/Recurring/Recurring.cs @@ -83,7 +83,19 @@ public enum TokenServiceEnum /// Enum MCTOKENSERVICE for value: MCTOKENSERVICE /// [EnumMember(Value = "MCTOKENSERVICE")] - MCTOKENSERVICE = 2 + MCTOKENSERVICE = 2, + + /// + /// Enum AMEXTOKENSERVICE for value: AMEXTOKENSERVICE + /// + [EnumMember(Value = "AMEXTOKENSERVICE")] + AMEXTOKENSERVICE = 3, + + /// + /// Enum TOKENSHARING for value: TOKEN_SHARING + /// + [EnumMember(Value = "TOKEN_SHARING")] + TOKENSHARING = 4 } diff --git a/Adyen/Model/Transfers/JSONObject.cs b/Adyen/Model/Transfers/JSONObject.cs deleted file mode 100644 index a4e602d75..000000000 --- a/Adyen/Model/Transfers/JSONObject.cs +++ /dev/null @@ -1,147 +0,0 @@ -/* -* Transfers API -* -* -* The version of the OpenAPI document: 4 -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter; - -namespace Adyen.Model.Transfers -{ - /// - /// JSONObject - /// - [DataContract(Name = "JSONObject")] - public partial class JSONObject : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// paths. - /// rootPath. - public JSONObject(List paths = default(List), JSONPath rootPath = default(JSONPath)) - { - this.Paths = paths; - this.RootPath = rootPath; - } - - /// - /// Gets or Sets Paths - /// - [DataMember(Name = "paths", EmitDefaultValue = false)] - public List Paths { get; set; } - - /// - /// Gets or Sets RootPath - /// - [DataMember(Name = "rootPath", EmitDefaultValue = false)] - public JSONPath RootPath { 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 JSONObject {\n"); - sb.Append(" Paths: ").Append(Paths).Append("\n"); - sb.Append(" RootPath: ").Append(RootPath).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 JSONObject); - } - - /// - /// Returns true if JSONObject instances are equal - /// - /// Instance of JSONObject to be compared - /// Boolean - public bool Equals(JSONObject input) - { - if (input == null) - { - return false; - } - return - ( - this.Paths == input.Paths || - this.Paths != null && - input.Paths != null && - this.Paths.SequenceEqual(input.Paths) - ) && - ( - this.RootPath == input.RootPath || - (this.RootPath != null && - this.RootPath.Equals(input.RootPath)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Paths != null) - { - hashCode = (hashCode * 59) + this.Paths.GetHashCode(); - } - if (this.RootPath != null) - { - hashCode = (hashCode * 59) + this.RootPath.GetHashCode(); - } - return hashCode; - } - } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/Adyen/Model/Transfers/JSONPath.cs b/Adyen/Model/Transfers/JSONPath.cs deleted file mode 100644 index e6950d220..000000000 --- a/Adyen/Model/Transfers/JSONPath.cs +++ /dev/null @@ -1,129 +0,0 @@ -/* -* Transfers API -* -* -* The version of the OpenAPI document: 4 -* -* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). -* https://openapi-generator.tech -* Do not edit the class manually. -*/ - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter; - -namespace Adyen.Model.Transfers -{ - /// - /// JSONPath - /// - [DataContract(Name = "JSONPath")] - public partial class JSONPath : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// content. - public JSONPath(List content = default(List)) - { - this.Content = content; - } - - /// - /// Gets or Sets Content - /// - [DataMember(Name = "content", EmitDefaultValue = false)] - public List Content { 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 JSONPath {\n"); - sb.Append(" Content: ").Append(Content).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 JSONPath); - } - - /// - /// Returns true if JSONPath instances are equal - /// - /// Instance of JSONPath to be compared - /// Boolean - public bool Equals(JSONPath input) - { - if (input == null) - { - return false; - } - return - ( - this.Content == input.Content || - this.Content != null && - input.Content != null && - this.Content.SequenceEqual(input.Content) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Content != null) - { - hashCode = (hashCode * 59) + this.Content.GetHashCode(); - } - return hashCode; - } - } - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - public IEnumerable Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/Adyen/Model/Transfers/RestServiceError.cs b/Adyen/Model/Transfers/RestServiceError.cs index 4b9c69d29..bf7f80378 100644 --- a/Adyen/Model/Transfers/RestServiceError.cs +++ b/Adyen/Model/Transfers/RestServiceError.cs @@ -45,11 +45,11 @@ protected RestServiceError() { } /// A unique URI that identifies the specific occurrence of the problem.. /// Detailed explanation of each validation error, when applicable.. /// A unique reference for the request, essentially the same as `pspReference`.. - /// response. + /// JSON response payload.. /// The HTTP status code. (required). /// A short, human-readable summary of the problem type. (required). /// A URI that identifies the problem type, pointing to human-readable documentation on this problem type. (required). - public RestServiceError(string detail = default(string), string errorCode = default(string), string instance = default(string), List invalidFields = default(List), string requestId = default(string), JSONObject response = default(JSONObject), int? status = default(int?), string title = default(string), string type = default(string)) + public RestServiceError(string detail = default(string), string errorCode = default(string), string instance = default(string), List invalidFields = default(List), string requestId = default(string), Object response = default(Object), int? status = default(int?), string title = default(string), string type = default(string)) { this.Detail = detail; this.ErrorCode = errorCode; @@ -98,10 +98,11 @@ protected RestServiceError() { } public string RequestId { get; set; } /// - /// Gets or Sets Response + /// JSON response payload. /// + /// JSON response payload. [DataMember(Name = "response", EmitDefaultValue = false)] - public JSONObject Response { get; set; } + public Object Response { get; set; } /// /// The HTTP status code. diff --git a/Adyen/Model/Transfers/Transaction.cs b/Adyen/Model/Transfers/Transaction.cs index e5add2ff2..73238e16d 100644 --- a/Adyen/Model/Transfers/Transaction.cs +++ b/Adyen/Model/Transfers/Transaction.cs @@ -74,12 +74,11 @@ protected Transaction() { } /// The unique identifier of the balance platform. (required). /// The date the transaction was booked into the balance account. (required). /// The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.. - /// The PSP reference of the transaction in the journal.. /// The unique identifier of the transaction. (required). /// The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. (required). /// transfer. /// The date the transfer amount becomes available in the balance account. (required). - public Transaction(ResourceReference accountHolder = default(ResourceReference), Amount amount = default(Amount), ResourceReference balanceAccount = default(ResourceReference), string balancePlatform = default(string), DateTime bookingDate = default(DateTime), DateTime creationDate = default(DateTime), string eventId = default(string), string id = default(string), StatusEnum status = default(StatusEnum), TransferData transfer = default(TransferData), DateTime valueDate = default(DateTime)) + public Transaction(ResourceReference accountHolder = default(ResourceReference), Amount amount = default(Amount), ResourceReference balanceAccount = default(ResourceReference), string balancePlatform = default(string), DateTime bookingDate = default(DateTime), DateTime creationDate = default(DateTime), string id = default(string), StatusEnum status = default(StatusEnum), TransferData transfer = default(TransferData), DateTime valueDate = default(DateTime)) { this.AccountHolder = accountHolder; this.Amount = amount; @@ -90,7 +89,6 @@ protected Transaction() { } this.Status = status; this.ValueDate = valueDate; this.CreationDate = creationDate; - this.EventId = eventId; this.Transfer = transfer; } @@ -133,13 +131,6 @@ protected Transaction() { } [DataMember(Name = "creationDate", EmitDefaultValue = false)] public DateTime CreationDate { get; set; } - /// - /// The PSP reference of the transaction in the journal. - /// - /// The PSP reference of the transaction in the journal. - [DataMember(Name = "eventId", EmitDefaultValue = false)] - public string EventId { get; set; } - /// /// The unique identifier of the transaction. /// @@ -174,7 +165,6 @@ public override string ToString() sb.Append(" BalancePlatform: ").Append(BalancePlatform).Append("\n"); sb.Append(" BookingDate: ").Append(BookingDate).Append("\n"); sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); - sb.Append(" EventId: ").Append(EventId).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" Transfer: ").Append(Transfer).Append("\n"); @@ -244,11 +234,6 @@ public bool Equals(Transaction input) (this.CreationDate != null && this.CreationDate.Equals(input.CreationDate)) ) && - ( - this.EventId == input.EventId || - (this.EventId != null && - this.EventId.Equals(input.EventId)) - ) && ( this.Id == input.Id || (this.Id != null && @@ -303,10 +288,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.CreationDate.GetHashCode(); } - if (this.EventId != null) - { - hashCode = (hashCode * 59) + this.EventId.GetHashCode(); - } if (this.Id != null) { hashCode = (hashCode * 59) + this.Id.GetHashCode();