-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
false[adyen-sdk-automation] automated change
- Loading branch information
1 parent
1ce8a9a
commit 0f40dca
Showing
28 changed files
with
904 additions
and
122 deletions.
There are no files selected for viewing
164 changes: 164 additions & 0 deletions
164
Adyen/Model/BalancePlatform/AmountNonZeroDecimalsRequirement.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
/* | ||
* Configuration API | ||
* | ||
* | ||
* The version of the OpenAPI document: 2 | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
using System.Linq; | ||
using System.IO; | ||
using System.Runtime.Serialization; | ||
using System.Text; | ||
using System.Text.RegularExpressions; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
using Newtonsoft.Json.Linq; | ||
using System.ComponentModel.DataAnnotations; | ||
using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter; | ||
|
||
namespace Adyen.Model.BalancePlatform | ||
{ | ||
/// <summary> | ||
/// AmountNonZeroDecimalsRequirement | ||
/// </summary> | ||
[DataContract(Name = "AmountNonZeroDecimalsRequirement")] | ||
public partial class AmountNonZeroDecimalsRequirement : IEquatable<AmountNonZeroDecimalsRequirement>, IValidatableObject | ||
{ | ||
/// <summary> | ||
/// **amountNonZeroDecimalsRequirement** | ||
/// </summary> | ||
/// <value>**amountNonZeroDecimalsRequirement**</value> | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum TypeEnum | ||
{ | ||
/// <summary> | ||
/// Enum AmountNonZeroDecimalsRequirement for value: amountNonZeroDecimalsRequirement | ||
/// </summary> | ||
[EnumMember(Value = "amountNonZeroDecimalsRequirement")] | ||
AmountNonZeroDecimalsRequirement = 1 | ||
|
||
} | ||
|
||
|
||
/// <summary> | ||
/// **amountNonZeroDecimalsRequirement** | ||
/// </summary> | ||
/// <value>**amountNonZeroDecimalsRequirement**</value> | ||
[DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)] | ||
public TypeEnum Type { get; set; } | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="AmountNonZeroDecimalsRequirement" /> class. | ||
/// </summary> | ||
[JsonConstructorAttribute] | ||
protected AmountNonZeroDecimalsRequirement() { } | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="AmountNonZeroDecimalsRequirement" /> class. | ||
/// </summary> | ||
/// <param name="description">Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers..</param> | ||
/// <param name="type">**amountNonZeroDecimalsRequirement** (required) (default to TypeEnum.AmountNonZeroDecimalsRequirement).</param> | ||
public AmountNonZeroDecimalsRequirement(string description = default(string), TypeEnum type = TypeEnum.AmountNonZeroDecimalsRequirement) | ||
{ | ||
this.Type = type; | ||
this.Description = description; | ||
} | ||
|
||
/// <summary> | ||
/// Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers. | ||
/// </summary> | ||
/// <value>Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers.</value> | ||
[DataMember(Name = "description", EmitDefaultValue = false)] | ||
public string Description { get; set; } | ||
|
||
/// <summary> | ||
/// Returns the string presentation of the object | ||
/// </summary> | ||
/// <returns>String presentation of the object</returns> | ||
public override string ToString() | ||
{ | ||
StringBuilder sb = new StringBuilder(); | ||
sb.Append("class AmountNonZeroDecimalsRequirement {\n"); | ||
sb.Append(" Description: ").Append(Description).Append("\n"); | ||
sb.Append(" Type: ").Append(Type).Append("\n"); | ||
sb.Append("}\n"); | ||
return sb.ToString(); | ||
} | ||
|
||
/// <summary> | ||
/// Returns the JSON string presentation of the object | ||
/// </summary> | ||
/// <returns>JSON string presentation of the object</returns> | ||
public virtual string ToJson() | ||
{ | ||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if objects are equal | ||
/// </summary> | ||
/// <param name="input">Object to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public override bool Equals(object input) | ||
{ | ||
return this.Equals(input as AmountNonZeroDecimalsRequirement); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if AmountNonZeroDecimalsRequirement instances are equal | ||
/// </summary> | ||
/// <param name="input">Instance of AmountNonZeroDecimalsRequirement to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public bool Equals(AmountNonZeroDecimalsRequirement input) | ||
{ | ||
if (input == null) | ||
{ | ||
return false; | ||
} | ||
return | ||
( | ||
this.Description == input.Description || | ||
(this.Description != null && | ||
this.Description.Equals(input.Description)) | ||
) && | ||
( | ||
this.Type == input.Type || | ||
this.Type.Equals(input.Type) | ||
); | ||
} | ||
|
||
/// <summary> | ||
/// Gets the hash code | ||
/// </summary> | ||
/// <returns>Hash code</returns> | ||
public override int GetHashCode() | ||
{ | ||
unchecked // Overflow is fine, just wrap | ||
{ | ||
int hashCode = 41; | ||
if (this.Description != null) | ||
{ | ||
hashCode = (hashCode * 59) + this.Description.GetHashCode(); | ||
} | ||
hashCode = (hashCode * 59) + this.Type.GetHashCode(); | ||
return hashCode; | ||
} | ||
} | ||
/// <summary> | ||
/// To validate all properties of the instance | ||
/// </summary> | ||
/// <param name="validationContext">Validation context</param> | ||
/// <returns>Validation Result</returns> | ||
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext) | ||
{ | ||
yield break; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
184 changes: 184 additions & 0 deletions
184
Adyen/Model/BalancePlatform/IbanAccountIdentificationRequirement.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,184 @@ | ||
/* | ||
* Configuration API | ||
* | ||
* | ||
* The version of the OpenAPI document: 2 | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
using System.Linq; | ||
using System.IO; | ||
using System.Runtime.Serialization; | ||
using System.Text; | ||
using System.Text.RegularExpressions; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
using Newtonsoft.Json.Linq; | ||
using System.ComponentModel.DataAnnotations; | ||
using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter; | ||
|
||
namespace Adyen.Model.BalancePlatform | ||
{ | ||
/// <summary> | ||
/// IbanAccountIdentificationRequirement | ||
/// </summary> | ||
[DataContract(Name = "IbanAccountIdentificationRequirement")] | ||
public partial class IbanAccountIdentificationRequirement : IEquatable<IbanAccountIdentificationRequirement>, IValidatableObject | ||
{ | ||
/// <summary> | ||
/// **ibanAccountIdentificationRequirement** | ||
/// </summary> | ||
/// <value>**ibanAccountIdentificationRequirement**</value> | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum TypeEnum | ||
{ | ||
/// <summary> | ||
/// Enum IbanAccountIdentificationRequirement for value: ibanAccountIdentificationRequirement | ||
/// </summary> | ||
[EnumMember(Value = "ibanAccountIdentificationRequirement")] | ||
IbanAccountIdentificationRequirement = 1 | ||
|
||
} | ||
|
||
|
||
/// <summary> | ||
/// **ibanAccountIdentificationRequirement** | ||
/// </summary> | ||
/// <value>**ibanAccountIdentificationRequirement**</value> | ||
[DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)] | ||
public TypeEnum Type { get; set; } | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="IbanAccountIdentificationRequirement" /> class. | ||
/// </summary> | ||
[JsonConstructorAttribute] | ||
protected IbanAccountIdentificationRequirement() { } | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="IbanAccountIdentificationRequirement" /> class. | ||
/// </summary> | ||
/// <param name="description">Specifies the allowed prefixes for the international bank account number as defined in the ISO-13616 standard..</param> | ||
/// <param name="ibanPrefixes">Contains the list of allowed prefixes for international bank accounts. For example: NL, US, UK..</param> | ||
/// <param name="type">**ibanAccountIdentificationRequirement** (required) (default to TypeEnum.IbanAccountIdentificationRequirement).</param> | ||
public IbanAccountIdentificationRequirement(string description = default(string), List<string> ibanPrefixes = default(List<string>), TypeEnum type = TypeEnum.IbanAccountIdentificationRequirement) | ||
{ | ||
this.Type = type; | ||
this.Description = description; | ||
this.IbanPrefixes = ibanPrefixes; | ||
} | ||
|
||
/// <summary> | ||
/// Specifies the allowed prefixes for the international bank account number as defined in the ISO-13616 standard. | ||
/// </summary> | ||
/// <value>Specifies the allowed prefixes for the international bank account number as defined in the ISO-13616 standard.</value> | ||
[DataMember(Name = "description", EmitDefaultValue = false)] | ||
public string Description { get; set; } | ||
|
||
/// <summary> | ||
/// Contains the list of allowed prefixes for international bank accounts. For example: NL, US, UK. | ||
/// </summary> | ||
/// <value>Contains the list of allowed prefixes for international bank accounts. For example: NL, US, UK.</value> | ||
[DataMember(Name = "ibanPrefixes", EmitDefaultValue = false)] | ||
public List<string> IbanPrefixes { get; set; } | ||
|
||
/// <summary> | ||
/// Returns the string presentation of the object | ||
/// </summary> | ||
/// <returns>String presentation of the object</returns> | ||
public override string ToString() | ||
{ | ||
StringBuilder sb = new StringBuilder(); | ||
sb.Append("class IbanAccountIdentificationRequirement {\n"); | ||
sb.Append(" Description: ").Append(Description).Append("\n"); | ||
sb.Append(" IbanPrefixes: ").Append(IbanPrefixes).Append("\n"); | ||
sb.Append(" Type: ").Append(Type).Append("\n"); | ||
sb.Append("}\n"); | ||
return sb.ToString(); | ||
} | ||
|
||
/// <summary> | ||
/// Returns the JSON string presentation of the object | ||
/// </summary> | ||
/// <returns>JSON string presentation of the object</returns> | ||
public virtual string ToJson() | ||
{ | ||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if objects are equal | ||
/// </summary> | ||
/// <param name="input">Object to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public override bool Equals(object input) | ||
{ | ||
return this.Equals(input as IbanAccountIdentificationRequirement); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if IbanAccountIdentificationRequirement instances are equal | ||
/// </summary> | ||
/// <param name="input">Instance of IbanAccountIdentificationRequirement to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public bool Equals(IbanAccountIdentificationRequirement input) | ||
{ | ||
if (input == null) | ||
{ | ||
return false; | ||
} | ||
return | ||
( | ||
this.Description == input.Description || | ||
(this.Description != null && | ||
this.Description.Equals(input.Description)) | ||
) && | ||
( | ||
this.IbanPrefixes == input.IbanPrefixes || | ||
this.IbanPrefixes != null && | ||
input.IbanPrefixes != null && | ||
this.IbanPrefixes.SequenceEqual(input.IbanPrefixes) | ||
) && | ||
( | ||
this.Type == input.Type || | ||
this.Type.Equals(input.Type) | ||
); | ||
} | ||
|
||
/// <summary> | ||
/// Gets the hash code | ||
/// </summary> | ||
/// <returns>Hash code</returns> | ||
public override int GetHashCode() | ||
{ | ||
unchecked // Overflow is fine, just wrap | ||
{ | ||
int hashCode = 41; | ||
if (this.Description != null) | ||
{ | ||
hashCode = (hashCode * 59) + this.Description.GetHashCode(); | ||
} | ||
if (this.IbanPrefixes != null) | ||
{ | ||
hashCode = (hashCode * 59) + this.IbanPrefixes.GetHashCode(); | ||
} | ||
hashCode = (hashCode * 59) + this.Type.GetHashCode(); | ||
return hashCode; | ||
} | ||
} | ||
/// <summary> | ||
/// To validate all properties of the instance | ||
/// </summary> | ||
/// <param name="validationContext">Validation context</param> | ||
/// <returns>Validation Result</returns> | ||
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext) | ||
{ | ||
yield break; | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.