-
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 (#1044)
- Loading branch information
1 parent
5402e3a
commit 25d999f
Showing
66 changed files
with
5,379 additions
and
766 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,154 @@ | ||
/* | ||
* 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> | ||
/// Amounts | ||
/// </summary> | ||
[DataContract(Name = "Amounts")] | ||
public partial class Amounts : IEquatable<Amounts>, IValidatableObject | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="Amounts" /> class. | ||
/// </summary> | ||
[JsonConstructorAttribute] | ||
protected Amounts() { } | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="Amounts" /> class. | ||
/// </summary> | ||
/// <param name="currency">The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). (required).</param> | ||
/// <param name="values">The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)). (required).</param> | ||
public Amounts(string currency = default(string), List<long> values = default(List<long>)) | ||
{ | ||
this.Currency = currency; | ||
this.Values = values; | ||
} | ||
|
||
/// <summary> | ||
/// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/). | ||
/// </summary> | ||
/// <value>The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes/).</value> | ||
[DataMember(Name = "currency", IsRequired = false, EmitDefaultValue = false)] | ||
public string Currency { get; set; } | ||
|
||
/// <summary> | ||
/// The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)). | ||
/// </summary> | ||
/// <value>The amounts of the donation (in [minor units](https://docs.adyen.com/development-resources/currency-codes/)).</value> | ||
[DataMember(Name = "values", IsRequired = false, EmitDefaultValue = false)] | ||
public List<long> Values { 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 Amounts {\n"); | ||
sb.Append(" Currency: ").Append(Currency).Append("\n"); | ||
sb.Append(" Values: ").Append(Values).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 Amounts); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if Amounts instances are equal | ||
/// </summary> | ||
/// <param name="input">Instance of Amounts to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public bool Equals(Amounts input) | ||
{ | ||
if (input == null) | ||
{ | ||
return false; | ||
} | ||
return | ||
( | ||
this.Currency == input.Currency || | ||
(this.Currency != null && | ||
this.Currency.Equals(input.Currency)) | ||
) && | ||
( | ||
this.Values == input.Values || | ||
this.Values != null && | ||
input.Values != null && | ||
this.Values.SequenceEqual(input.Values) | ||
); | ||
} | ||
|
||
/// <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.Currency != null) | ||
{ | ||
hashCode = (hashCode * 59) + this.Currency.GetHashCode(); | ||
} | ||
if (this.Values != null) | ||
{ | ||
hashCode = (hashCode * 59) + this.Values.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
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.