-
Notifications
You must be signed in to change notification settings - Fork 115
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 (#1096)
- Loading branch information
1 parent
af0f3b7
commit 7c83fe5
Showing
16 changed files
with
554 additions
and
52 deletions.
There are no files selected for viewing
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
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
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
182 changes: 182 additions & 0 deletions
182
Adyen/Model/BalancePlatform/CounterpartyTypesRestriction.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,182 @@ | ||
/* | ||
* Configuration API | ||
* | ||
* | ||
* The version of the OpenAPI document: 2 | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
using System.Linq; | ||
using System.IO; | ||
using System.Runtime.Serialization; | ||
using System.Text; | ||
using System.Text.RegularExpressions; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
using Newtonsoft.Json.Linq; | ||
using System.ComponentModel.DataAnnotations; | ||
using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter; | ||
|
||
namespace Adyen.Model.BalancePlatform | ||
{ | ||
/// <summary> | ||
/// CounterpartyTypesRestriction | ||
/// </summary> | ||
[DataContract(Name = "CounterpartyTypesRestriction")] | ||
public partial class CounterpartyTypesRestriction : IEquatable<CounterpartyTypesRestriction>, IValidatableObject | ||
{ | ||
/// <summary> | ||
/// Defines Value | ||
/// </summary> | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum ValueEnum | ||
{ | ||
/// <summary> | ||
/// Enum BalanceAccount for value: balanceAccount | ||
/// </summary> | ||
[EnumMember(Value = "balanceAccount")] | ||
BalanceAccount = 1, | ||
|
||
/// <summary> | ||
/// Enum BankAccount for value: bankAccount | ||
/// </summary> | ||
[EnumMember(Value = "bankAccount")] | ||
BankAccount = 2, | ||
|
||
/// <summary> | ||
/// Enum Card for value: card | ||
/// </summary> | ||
[EnumMember(Value = "card")] | ||
Card = 3, | ||
|
||
/// <summary> | ||
/// Enum TransferInstrument for value: transferInstrument | ||
/// </summary> | ||
[EnumMember(Value = "transferInstrument")] | ||
TransferInstrument = 4 | ||
|
||
} | ||
|
||
|
||
|
||
/// <summary> | ||
/// The list of counterparty types to be evaluated. | ||
/// </summary> | ||
/// <value>The list of counterparty types to be evaluated.</value> | ||
[DataMember(Name = "value", EmitDefaultValue = false)] | ||
public List<ValueEnum> Value { get; set; } | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="CounterpartyTypesRestriction" /> class. | ||
/// </summary> | ||
[JsonConstructorAttribute] | ||
protected CounterpartyTypesRestriction() { } | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="CounterpartyTypesRestriction" /> class. | ||
/// </summary> | ||
/// <param name="operation">Defines how the condition must be evaluated. (required).</param> | ||
/// <param name="value">The list of counterparty types to be evaluated..</param> | ||
public CounterpartyTypesRestriction(string operation = default(string), List<ValueEnum> value = default(List<ValueEnum>)) | ||
{ | ||
this.Operation = operation; | ||
this.Value = value; | ||
} | ||
|
||
/// <summary> | ||
/// Defines how the condition must be evaluated. | ||
/// </summary> | ||
/// <value>Defines how the condition must be evaluated.</value> | ||
[DataMember(Name = "operation", IsRequired = false, EmitDefaultValue = false)] | ||
public string Operation { 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 CounterpartyTypesRestriction {\n"); | ||
sb.Append(" Operation: ").Append(Operation).Append("\n"); | ||
sb.Append(" Value: ").Append(Value).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 CounterpartyTypesRestriction); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if CounterpartyTypesRestriction instances are equal | ||
/// </summary> | ||
/// <param name="input">Instance of CounterpartyTypesRestriction to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public bool Equals(CounterpartyTypesRestriction input) | ||
{ | ||
if (input == null) | ||
{ | ||
return false; | ||
} | ||
return | ||
( | ||
this.Operation == input.Operation || | ||
(this.Operation != null && | ||
this.Operation.Equals(input.Operation)) | ||
) && | ||
( | ||
this.Value == input.Value || | ||
this.Value.SequenceEqual(input.Value) | ||
); | ||
} | ||
|
||
/// <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.Operation != null) | ||
{ | ||
hashCode = (hashCode * 59) + this.Operation.GetHashCode(); | ||
} | ||
hashCode = (hashCode * 59) + this.Value.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.