|
| 1 | +/* |
| 2 | +* Configuration API |
| 3 | +* |
| 4 | +* |
| 5 | +* The version of the OpenAPI document: 2 |
| 6 | +* |
| 7 | +* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| 8 | +* https://openapi-generator.tech |
| 9 | +* Do not edit the class manually. |
| 10 | +*/ |
| 11 | + |
| 12 | +using System; |
| 13 | +using System.Collections; |
| 14 | +using System.Collections.Generic; |
| 15 | +using System.Collections.ObjectModel; |
| 16 | +using System.Linq; |
| 17 | +using System.IO; |
| 18 | +using System.Runtime.Serialization; |
| 19 | +using System.Text; |
| 20 | +using System.Text.RegularExpressions; |
| 21 | +using Newtonsoft.Json; |
| 22 | +using Newtonsoft.Json.Converters; |
| 23 | +using Newtonsoft.Json.Linq; |
| 24 | +using System.ComponentModel.DataAnnotations; |
| 25 | +using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter; |
| 26 | + |
| 27 | +namespace Adyen.Model.BalancePlatform |
| 28 | +{ |
| 29 | + /// <summary> |
| 30 | + /// AssociationDelegatedAuthenticationData |
| 31 | + /// </summary> |
| 32 | + [DataContract(Name = "AssociationDelegatedAuthenticationData")] |
| 33 | + public partial class AssociationDelegatedAuthenticationData : IEquatable<AssociationDelegatedAuthenticationData>, IValidatableObject |
| 34 | + { |
| 35 | + /// <summary> |
| 36 | + /// Initializes a new instance of the <see cref="AssociationDelegatedAuthenticationData" /> class. |
| 37 | + /// </summary> |
| 38 | + [JsonConstructorAttribute] |
| 39 | + protected AssociationDelegatedAuthenticationData() { } |
| 40 | + /// <summary> |
| 41 | + /// Initializes a new instance of the <see cref="AssociationDelegatedAuthenticationData" /> class. |
| 42 | + /// </summary> |
| 43 | + /// <param name="sdkOutput">A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK. (required).</param> |
| 44 | + public AssociationDelegatedAuthenticationData(string sdkOutput = default(string)) |
| 45 | + { |
| 46 | + this.SdkOutput = sdkOutput; |
| 47 | + } |
| 48 | + |
| 49 | + /// <summary> |
| 50 | + /// A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK. |
| 51 | + /// </summary> |
| 52 | + /// <value>A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK.</value> |
| 53 | + [DataMember(Name = "sdkOutput", IsRequired = false, EmitDefaultValue = false)] |
| 54 | + public string SdkOutput { get; set; } |
| 55 | + |
| 56 | + /// <summary> |
| 57 | + /// Returns the string presentation of the object |
| 58 | + /// </summary> |
| 59 | + /// <returns>String presentation of the object</returns> |
| 60 | + public override string ToString() |
| 61 | + { |
| 62 | + StringBuilder sb = new StringBuilder(); |
| 63 | + sb.Append("class AssociationDelegatedAuthenticationData {\n"); |
| 64 | + sb.Append(" SdkOutput: ").Append(SdkOutput).Append("\n"); |
| 65 | + sb.Append("}\n"); |
| 66 | + return sb.ToString(); |
| 67 | + } |
| 68 | + |
| 69 | + /// <summary> |
| 70 | + /// Returns the JSON string presentation of the object |
| 71 | + /// </summary> |
| 72 | + /// <returns>JSON string presentation of the object</returns> |
| 73 | + public virtual string ToJson() |
| 74 | + { |
| 75 | + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); |
| 76 | + } |
| 77 | + |
| 78 | + /// <summary> |
| 79 | + /// Returns true if objects are equal |
| 80 | + /// </summary> |
| 81 | + /// <param name="input">Object to be compared</param> |
| 82 | + /// <returns>Boolean</returns> |
| 83 | + public override bool Equals(object input) |
| 84 | + { |
| 85 | + return this.Equals(input as AssociationDelegatedAuthenticationData); |
| 86 | + } |
| 87 | + |
| 88 | + /// <summary> |
| 89 | + /// Returns true if AssociationDelegatedAuthenticationData instances are equal |
| 90 | + /// </summary> |
| 91 | + /// <param name="input">Instance of AssociationDelegatedAuthenticationData to be compared</param> |
| 92 | + /// <returns>Boolean</returns> |
| 93 | + public bool Equals(AssociationDelegatedAuthenticationData input) |
| 94 | + { |
| 95 | + if (input == null) |
| 96 | + { |
| 97 | + return false; |
| 98 | + } |
| 99 | + return |
| 100 | + ( |
| 101 | + this.SdkOutput == input.SdkOutput || |
| 102 | + (this.SdkOutput != null && |
| 103 | + this.SdkOutput.Equals(input.SdkOutput)) |
| 104 | + ); |
| 105 | + } |
| 106 | + |
| 107 | + /// <summary> |
| 108 | + /// Gets the hash code |
| 109 | + /// </summary> |
| 110 | + /// <returns>Hash code</returns> |
| 111 | + public override int GetHashCode() |
| 112 | + { |
| 113 | + unchecked // Overflow is fine, just wrap |
| 114 | + { |
| 115 | + int hashCode = 41; |
| 116 | + if (this.SdkOutput != null) |
| 117 | + { |
| 118 | + hashCode = (hashCode * 59) + this.SdkOutput.GetHashCode(); |
| 119 | + } |
| 120 | + return hashCode; |
| 121 | + } |
| 122 | + } |
| 123 | + /// <summary> |
| 124 | + /// To validate all properties of the instance |
| 125 | + /// </summary> |
| 126 | + /// <param name="validationContext">Validation context</param> |
| 127 | + /// <returns>Validation Result</returns> |
| 128 | + public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext) |
| 129 | + { |
| 130 | + // SdkOutput (string) maxLength |
| 131 | + if (this.SdkOutput != null && this.SdkOutput.Length > 20000) |
| 132 | + { |
| 133 | + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SdkOutput, length must be less than 20000.", new [] { "SdkOutput" }); |
| 134 | + } |
| 135 | + |
| 136 | + yield break; |
| 137 | + } |
| 138 | + } |
| 139 | + |
| 140 | +} |
0 commit comments