-
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
- Loading branch information
1 parent
b46c1de
commit 02bde5d
Showing
19 changed files
with
831 additions
and
288 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,187 @@ | ||
/* | ||
* 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> | ||
/// PriorityRestriction | ||
/// </summary> | ||
[DataContract(Name = "PriorityRestriction")] | ||
public partial class PriorityRestriction : IEquatable<PriorityRestriction>, IValidatableObject | ||
{ | ||
/// <summary> | ||
/// Defines Value | ||
/// </summary> | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum ValueEnum | ||
{ | ||
/// <summary> | ||
/// Enum CrossBorder for value: crossBorder | ||
/// </summary> | ||
[EnumMember(Value = "crossBorder")] | ||
CrossBorder = 1, | ||
|
||
/// <summary> | ||
/// Enum Fast for value: fast | ||
/// </summary> | ||
[EnumMember(Value = "fast")] | ||
Fast = 2, | ||
|
||
/// <summary> | ||
/// Enum Instant for value: instant | ||
/// </summary> | ||
[EnumMember(Value = "instant")] | ||
Instant = 3, | ||
|
||
/// <summary> | ||
/// Enum IntraBank for value: intraBank | ||
/// </summary> | ||
[EnumMember(Value = "intraBank")] | ||
IntraBank = 4, | ||
|
||
/// <summary> | ||
/// Enum Regular for value: regular | ||
/// </summary> | ||
[EnumMember(Value = "regular")] | ||
Regular = 5 | ||
|
||
} | ||
|
||
|
||
|
||
/// <summary> | ||
/// Gets or Sets Value | ||
/// </summary> | ||
[DataMember(Name = "value", EmitDefaultValue = false)] | ||
public List<ValueEnum> Value { get; set; } | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="PriorityRestriction" /> class. | ||
/// </summary> | ||
[JsonConstructorAttribute] | ||
protected PriorityRestriction() { } | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="PriorityRestriction" /> class. | ||
/// </summary> | ||
/// <param name="operation">Defines how the condition must be evaluated. (required).</param> | ||
/// <param name="value">value.</param> | ||
public PriorityRestriction(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 PriorityRestriction {\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 PriorityRestriction); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if PriorityRestriction instances are equal | ||
/// </summary> | ||
/// <param name="input">Instance of PriorityRestriction to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public bool Equals(PriorityRestriction 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; | ||
} | ||
} | ||
|
||
} |
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
Oops, something went wrong.