Skip to content

Commit

Permalink
false[adyen-sdk-automation] automated change (#1096)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdyenAutomationBot authored Dec 30, 2024
1 parent af0f3b7 commit 7c83fe5
Show file tree
Hide file tree
Showing 16 changed files with 554 additions and 52 deletions.
12 changes: 6 additions & 6 deletions Adyen/Model/BalancePlatform/Amount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,25 @@ protected Amount() { }
/// <summary>
/// Initializes a new instance of the <see cref="Amount" /> class.
/// </summary>
/// <param name="currency">The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). (required).</param>
/// <param name="value">The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). (required).</param>
/// <param name="currency">The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). (required).</param>
/// <param name="value">The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). (required).</param>
public Amount(string currency = default(string), long? value = default(long?))
{
this.Currency = currency;
this.Value = value;
}

/// <summary>
/// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
/// The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
/// </summary>
/// <value>The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).</value>
/// <value>The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).</value>
[DataMember(Name = "currency", IsRequired = false, EmitDefaultValue = false)]
public string Currency { get; set; }

/// <summary>
/// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
/// The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
/// </summary>
/// <value>The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).</value>
/// <value>The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).</value>
[DataMember(Name = "value", IsRequired = false, EmitDefaultValue = false)]
public long? Value { get; set; }

Expand Down
24 changes: 12 additions & 12 deletions Adyen/Model/BalancePlatform/Balance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ protected Balance() { }
/// <summary>
/// Initializes a new instance of the <see cref="Balance" /> class.
/// </summary>
/// <param name="available">The current balance minus any reserved balance. (required).</param>
/// <param name="balance">The current balance of funds in the balance account. These are the funds from all transactions with a value date in the past that have not yet been paid out. (required).</param>
/// <param name="available">The balance available for use. (required).</param>
/// <param name="balance">The sum of transactions that have already been settled. (required).</param>
/// <param name="currency">The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. (required).</param>
/// <param name="pending">The amount of funds that Adyen has processed for this account, but will be settled in a future date. For more information, see how to settle funds for users in your [platform](https://docs.adyen.com/platforms/settle-funds) and [marketplace](https://docs.adyen.com/marketplaces/settle-funds)..</param>
/// <param name="reserved">The amount reserved for payments that have been [authorised](https://docs.adyen.com/issuing/payment-stages/#authorised), but not yet [captured](https://docs.adyen.com/issuing/payment-stages/#captured) by the merchant. Applies only to [Adyen-issued cards](https://docs.adyen.com/issuing). (required).</param>
/// <param name="pending">The sum of the transactions that will be settled in the future..</param>
/// <param name="reserved">The balance currently held in reserve. (required).</param>
public Balance(long? available = default(long?), long? balance = default(long?), string currency = default(string), long? pending = default(long?), long? reserved = default(long?))
{
this.Available = available;
Expand All @@ -55,16 +55,16 @@ protected Balance() { }
}

/// <summary>
/// The current balance minus any reserved balance.
/// The balance available for use.
/// </summary>
/// <value>The current balance minus any reserved balance.</value>
/// <value>The balance available for use.</value>
[DataMember(Name = "available", IsRequired = false, EmitDefaultValue = false)]
public long? Available { get; set; }

/// <summary>
/// The current balance of funds in the balance account. These are the funds from all transactions with a value date in the past that have not yet been paid out.
/// The sum of transactions that have already been settled.
/// </summary>
/// <value>The current balance of funds in the balance account. These are the funds from all transactions with a value date in the past that have not yet been paid out.</value>
/// <value>The sum of transactions that have already been settled.</value>
[DataMember(Name = "balance", IsRequired = false, EmitDefaultValue = false)]
public long? _Balance { get; set; }

Expand All @@ -76,16 +76,16 @@ protected Balance() { }
public string Currency { get; set; }

/// <summary>
/// The amount of funds that Adyen has processed for this account, but will be settled in a future date. For more information, see how to settle funds for users in your [platform](https://docs.adyen.com/platforms/settle-funds) and [marketplace](https://docs.adyen.com/marketplaces/settle-funds).
/// The sum of the transactions that will be settled in the future.
/// </summary>
/// <value>The amount of funds that Adyen has processed for this account, but will be settled in a future date. For more information, see how to settle funds for users in your [platform](https://docs.adyen.com/platforms/settle-funds) and [marketplace](https://docs.adyen.com/marketplaces/settle-funds).</value>
/// <value>The sum of the transactions that will be settled in the future.</value>
[DataMember(Name = "pending", EmitDefaultValue = false)]
public long? Pending { get; set; }

/// <summary>
/// The amount reserved for payments that have been [authorised](https://docs.adyen.com/issuing/payment-stages/#authorised), but not yet [captured](https://docs.adyen.com/issuing/payment-stages/#captured) by the merchant. Applies only to [Adyen-issued cards](https://docs.adyen.com/issuing).
/// The balance currently held in reserve.
/// </summary>
/// <value>The amount reserved for payments that have been [authorised](https://docs.adyen.com/issuing/payment-stages/#authorised), but not yet [captured](https://docs.adyen.com/issuing/payment-stages/#captured) by the merchant. Applies only to [Adyen-issued cards](https://docs.adyen.com/issuing).</value>
/// <value>The balance currently held in reserve.</value>
[DataMember(Name = "reserved", IsRequired = false, EmitDefaultValue = false)]
public long? Reserved { get; set; }

Expand Down
6 changes: 3 additions & 3 deletions Adyen/Model/BalancePlatform/CounterpartyBankRestriction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected CounterpartyBankRestriction() { }
/// Initializes a new instance of the <see cref="CounterpartyBankRestriction" /> class.
/// </summary>
/// <param name="operation">Defines how the condition must be evaluated. (required).</param>
/// <param name="value">List of counterparty Bank Institutions and the operation..</param>
/// <param name="value">The list of counterparty bank institutions to be evaluated..</param>
public CounterpartyBankRestriction(string operation = default(string), List<BankIdentification> value = default(List<BankIdentification>))
{
this.Operation = operation;
Expand All @@ -56,9 +56,9 @@ protected CounterpartyBankRestriction() { }
public string Operation { get; set; }

/// <summary>
/// List of counterparty Bank Institutions and the operation.
/// The list of counterparty bank institutions to be evaluated.
/// </summary>
/// <value>List of counterparty Bank Institutions and the operation.</value>
/// <value>The list of counterparty bank institutions to be evaluated.</value>
[DataMember(Name = "value", EmitDefaultValue = false)]
public List<BankIdentification> Value { get; set; }

Expand Down
182 changes: 182 additions & 0 deletions Adyen/Model/BalancePlatform/CounterpartyTypesRestriction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
/*
* 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>
/// CounterpartyTypesRestriction
/// </summary>
[DataContract(Name = "CounterpartyTypesRestriction")]
public partial class CounterpartyTypesRestriction : IEquatable<CounterpartyTypesRestriction>, IValidatableObject
{
/// <summary>
/// Defines Value
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum ValueEnum
{
/// <summary>
/// Enum BalanceAccount for value: balanceAccount
/// </summary>
[EnumMember(Value = "balanceAccount")]
BalanceAccount = 1,

/// <summary>
/// Enum BankAccount for value: bankAccount
/// </summary>
[EnumMember(Value = "bankAccount")]
BankAccount = 2,

/// <summary>
/// Enum Card for value: card
/// </summary>
[EnumMember(Value = "card")]
Card = 3,

/// <summary>
/// Enum TransferInstrument for value: transferInstrument
/// </summary>
[EnumMember(Value = "transferInstrument")]
TransferInstrument = 4

}



/// <summary>
/// The list of counterparty types to be evaluated.
/// </summary>
/// <value>The list of counterparty types to be evaluated.</value>
[DataMember(Name = "value", EmitDefaultValue = false)]
public List<ValueEnum> Value { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="CounterpartyTypesRestriction" /> class.
/// </summary>
[JsonConstructorAttribute]
protected CounterpartyTypesRestriction() { }
/// <summary>
/// Initializes a new instance of the <see cref="CounterpartyTypesRestriction" /> class.
/// </summary>
/// <param name="operation">Defines how the condition must be evaluated. (required).</param>
/// <param name="value">The list of counterparty types to be evaluated..</param>
public CounterpartyTypesRestriction(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 CounterpartyTypesRestriction {\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 CounterpartyTypesRestriction);
}

/// <summary>
/// Returns true if CounterpartyTypesRestriction instances are equal
/// </summary>
/// <param name="input">Instance of CounterpartyTypesRestriction to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(CounterpartyTypesRestriction 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;
}
}

}
Loading

0 comments on commit 7c83fe5

Please sign in to comment.