Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update all services #1081

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
164 changes: 164 additions & 0 deletions Adyen/Model/BalancePlatform/AmountNonZeroDecimalsRequirement.cs
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;
}
}

}
14 changes: 10 additions & 4 deletions Adyen/Model/BalancePlatform/CreateSweepConfigurationV2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,29 +233,35 @@ public enum ReasonEnum
[EnumMember(Value = "refusedByCounterpartyBank")]
RefusedByCounterpartyBank = 18,

/// <summary>
/// Enum RefusedByCustomer for value: refusedByCustomer
/// </summary>
[EnumMember(Value = "refusedByCustomer")]
RefusedByCustomer = 19,

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

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

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

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

}

Expand Down
184 changes: 184 additions & 0 deletions Adyen/Model/BalancePlatform/IbanAccountIdentificationRequirement.cs
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;
}
}

}
Loading
Loading