-
Notifications
You must be signed in to change notification settings - Fork 114
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 (#1031)
- Loading branch information
1 parent
37458e6
commit 619512c
Showing
3 changed files
with
277 additions
and
67 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,183 @@ | ||
/* | ||
* 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> | ||
/// PayByBankDetails | ||
/// </summary> | ||
[DataContract(Name = "PayByBankDetails")] | ||
public partial class PayByBankDetails : IEquatable<PayByBankDetails>, IValidatableObject | ||
{ | ||
/// <summary> | ||
/// **paybybank** | ||
/// </summary> | ||
/// <value>**paybybank**</value> | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum TypeEnum | ||
{ | ||
/// <summary> | ||
/// Enum Paybybank for value: paybybank | ||
/// </summary> | ||
[EnumMember(Value = "paybybank")] | ||
Paybybank = 1 | ||
|
||
} | ||
|
||
|
||
/// <summary> | ||
/// **paybybank** | ||
/// </summary> | ||
/// <value>**paybybank**</value> | ||
[DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)] | ||
public TypeEnum Type { get; set; } | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="PayByBankDetails" /> class. | ||
/// </summary> | ||
[JsonConstructorAttribute] | ||
protected PayByBankDetails() { } | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="PayByBankDetails" /> class. | ||
/// </summary> | ||
/// <param name="checkoutAttemptId">The checkout attempt identifier..</param> | ||
/// <param name="issuer">The PayByBank issuer value of the shopper's selected bank..</param> | ||
/// <param name="type">**paybybank** (required) (default to TypeEnum.Paybybank).</param> | ||
public PayByBankDetails(string checkoutAttemptId = default(string), string issuer = default(string), TypeEnum type = TypeEnum.Paybybank) | ||
{ | ||
this.Type = type; | ||
this.CheckoutAttemptId = checkoutAttemptId; | ||
this.Issuer = issuer; | ||
} | ||
|
||
/// <summary> | ||
/// The checkout attempt identifier. | ||
/// </summary> | ||
/// <value>The checkout attempt identifier.</value> | ||
[DataMember(Name = "checkoutAttemptId", EmitDefaultValue = false)] | ||
public string CheckoutAttemptId { get; set; } | ||
|
||
/// <summary> | ||
/// The PayByBank issuer value of the shopper's selected bank. | ||
/// </summary> | ||
/// <value>The PayByBank issuer value of the shopper's selected bank.</value> | ||
[DataMember(Name = "issuer", EmitDefaultValue = false)] | ||
public string Issuer { 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 PayByBankDetails {\n"); | ||
sb.Append(" CheckoutAttemptId: ").Append(CheckoutAttemptId).Append("\n"); | ||
sb.Append(" Issuer: ").Append(Issuer).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 PayByBankDetails); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if PayByBankDetails instances are equal | ||
/// </summary> | ||
/// <param name="input">Instance of PayByBankDetails to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public bool Equals(PayByBankDetails input) | ||
{ | ||
if (input == null) | ||
{ | ||
return false; | ||
} | ||
return | ||
( | ||
this.CheckoutAttemptId == input.CheckoutAttemptId || | ||
(this.CheckoutAttemptId != null && | ||
this.CheckoutAttemptId.Equals(input.CheckoutAttemptId)) | ||
) && | ||
( | ||
this.Issuer == input.Issuer || | ||
(this.Issuer != null && | ||
this.Issuer.Equals(input.Issuer)) | ||
) && | ||
( | ||
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(); | ||
} | ||
if (this.Issuer != null) | ||
{ | ||
hashCode = (hashCode * 59) + this.Issuer.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.