-
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 (#1104)
- Loading branch information
1 parent
afcbb47
commit 8eceb43
Showing
7 changed files
with
547 additions
and
118 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,159 @@ | ||
/* | ||
* Adyen Checkout API | ||
* | ||
* | ||
* The version of the OpenAPI document: 71 | ||
* | ||
* 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.Checkout | ||
{ | ||
/// <summary> | ||
/// AffirmDetails | ||
/// </summary> | ||
[DataContract(Name = "AffirmDetails")] | ||
public partial class AffirmDetails : IEquatable<AffirmDetails>, IValidatableObject | ||
{ | ||
/// <summary> | ||
/// **affirm** | ||
/// </summary> | ||
/// <value>**affirm**</value> | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum TypeEnum | ||
{ | ||
/// <summary> | ||
/// Enum Affirm for value: affirm | ||
/// </summary> | ||
[EnumMember(Value = "affirm")] | ||
Affirm = 1 | ||
|
||
} | ||
|
||
|
||
/// <summary> | ||
/// **affirm** | ||
/// </summary> | ||
/// <value>**affirm**</value> | ||
[DataMember(Name = "type", EmitDefaultValue = false)] | ||
public TypeEnum? Type { get; set; } | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="AffirmDetails" /> class. | ||
/// </summary> | ||
/// <param name="checkoutAttemptId">The checkout attempt identifier..</param> | ||
/// <param name="type">**affirm** (default to TypeEnum.Affirm).</param> | ||
public AffirmDetails(string checkoutAttemptId = default(string), TypeEnum? type = TypeEnum.Affirm) | ||
{ | ||
this.CheckoutAttemptId = checkoutAttemptId; | ||
this.Type = type; | ||
} | ||
|
||
/// <summary> | ||
/// The checkout attempt identifier. | ||
/// </summary> | ||
/// <value>The checkout attempt identifier.</value> | ||
[DataMember(Name = "checkoutAttemptId", EmitDefaultValue = false)] | ||
public string CheckoutAttemptId { 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 AffirmDetails {\n"); | ||
sb.Append(" CheckoutAttemptId: ").Append(CheckoutAttemptId).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 AffirmDetails); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if AffirmDetails instances are equal | ||
/// </summary> | ||
/// <param name="input">Instance of AffirmDetails to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public bool Equals(AffirmDetails input) | ||
{ | ||
if (input == null) | ||
{ | ||
return false; | ||
} | ||
return | ||
( | ||
this.CheckoutAttemptId == input.CheckoutAttemptId || | ||
(this.CheckoutAttemptId != null && | ||
this.CheckoutAttemptId.Equals(input.CheckoutAttemptId)) | ||
) && | ||
( | ||
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.CheckoutAttemptId != null) | ||
{ | ||
hashCode = (hashCode * 59) + this.CheckoutAttemptId.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.