Skip to content

Commit

Permalink
false[adyen-sdk-automation] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
AdyenAutomationBot committed Jan 6, 2025
1 parent b46c1de commit e5b5104
Show file tree
Hide file tree
Showing 14 changed files with 727 additions and 279 deletions.
187 changes: 187 additions & 0 deletions Adyen/Model/BalancePlatform/PriorityRestriction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
/*
* 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>
/// PriorityRestriction
/// </summary>
[DataContract(Name = "PriorityRestriction")]
public partial class PriorityRestriction : IEquatable<PriorityRestriction>, IValidatableObject
{
/// <summary>
/// Defines Value
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum ValueEnum
{
/// <summary>
/// Enum CrossBorder for value: crossBorder
/// </summary>
[EnumMember(Value = "crossBorder")]
CrossBorder = 1,

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

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

/// <summary>
/// Enum IntraBank for value: intraBank
/// </summary>
[EnumMember(Value = "intraBank")]
IntraBank = 4,

/// <summary>
/// Enum Regular for value: regular
/// </summary>
[EnumMember(Value = "regular")]
Regular = 5

}



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

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

}
20 changes: 19 additions & 1 deletion Adyen/Model/BalancePlatform/TransactionRuleRestrictions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,15 @@ public partial class TransactionRuleRestrictions : IEquatable<TransactionRuleRes
/// <param name="mccs">mccs.</param>
/// <param name="merchantNames">merchantNames.</param>
/// <param name="merchants">merchants.</param>
/// <param name="priority">priority.</param>
/// <param name="processingTypes">processingTypes.</param>
/// <param name="riskScores">riskScores.</param>
/// <param name="sameAmountRestriction">sameAmountRestriction.</param>
/// <param name="sameCounterpartyRestriction">sameCounterpartyRestriction.</param>
/// <param name="sourceAccountTypes">sourceAccountTypes.</param>
/// <param name="timeOfDay">timeOfDay.</param>
/// <param name="totalAmount">totalAmount.</param>
public TransactionRuleRestrictions(ActiveNetworkTokensRestriction activeNetworkTokens = default(ActiveNetworkTokensRestriction), BrandVariantsRestriction brandVariants = default(BrandVariantsRestriction), CounterpartyBankRestriction counterpartyBank = default(CounterpartyBankRestriction), CounterpartyTypesRestriction counterpartyTypes = default(CounterpartyTypesRestriction), CountriesRestriction countries = default(CountriesRestriction), DayOfWeekRestriction dayOfWeek = default(DayOfWeekRestriction), DifferentCurrenciesRestriction differentCurrencies = default(DifferentCurrenciesRestriction), EntryModesRestriction entryModes = default(EntryModesRestriction), InternationalTransactionRestriction internationalTransaction = default(InternationalTransactionRestriction), MatchingTransactionsRestriction matchingTransactions = default(MatchingTransactionsRestriction), MatchingValuesRestriction matchingValues = default(MatchingValuesRestriction), MccsRestriction mccs = default(MccsRestriction), MerchantNamesRestriction merchantNames = default(MerchantNamesRestriction), MerchantsRestriction merchants = default(MerchantsRestriction), ProcessingTypesRestriction processingTypes = default(ProcessingTypesRestriction), RiskScoresRestriction riskScores = default(RiskScoresRestriction), SameAmountRestriction sameAmountRestriction = default(SameAmountRestriction), SameCounterpartyRestriction sameCounterpartyRestriction = default(SameCounterpartyRestriction), SourceAccountTypesRestriction sourceAccountTypes = default(SourceAccountTypesRestriction), TimeOfDayRestriction timeOfDay = default(TimeOfDayRestriction), TotalAmountRestriction totalAmount = default(TotalAmountRestriction))
public TransactionRuleRestrictions(ActiveNetworkTokensRestriction activeNetworkTokens = default(ActiveNetworkTokensRestriction), BrandVariantsRestriction brandVariants = default(BrandVariantsRestriction), CounterpartyBankRestriction counterpartyBank = default(CounterpartyBankRestriction), CounterpartyTypesRestriction counterpartyTypes = default(CounterpartyTypesRestriction), CountriesRestriction countries = default(CountriesRestriction), DayOfWeekRestriction dayOfWeek = default(DayOfWeekRestriction), DifferentCurrenciesRestriction differentCurrencies = default(DifferentCurrenciesRestriction), EntryModesRestriction entryModes = default(EntryModesRestriction), InternationalTransactionRestriction internationalTransaction = default(InternationalTransactionRestriction), MatchingTransactionsRestriction matchingTransactions = default(MatchingTransactionsRestriction), MatchingValuesRestriction matchingValues = default(MatchingValuesRestriction), MccsRestriction mccs = default(MccsRestriction), MerchantNamesRestriction merchantNames = default(MerchantNamesRestriction), MerchantsRestriction merchants = default(MerchantsRestriction), PriorityRestriction priority = default(PriorityRestriction), ProcessingTypesRestriction processingTypes = default(ProcessingTypesRestriction), RiskScoresRestriction riskScores = default(RiskScoresRestriction), SameAmountRestriction sameAmountRestriction = default(SameAmountRestriction), SameCounterpartyRestriction sameCounterpartyRestriction = default(SameCounterpartyRestriction), SourceAccountTypesRestriction sourceAccountTypes = default(SourceAccountTypesRestriction), TimeOfDayRestriction timeOfDay = default(TimeOfDayRestriction), TotalAmountRestriction totalAmount = default(TotalAmountRestriction))
{
this.ActiveNetworkTokens = activeNetworkTokens;
this.BrandVariants = brandVariants;
Expand All @@ -72,6 +73,7 @@ public partial class TransactionRuleRestrictions : IEquatable<TransactionRuleRes
this.Mccs = mccs;
this.MerchantNames = merchantNames;
this.Merchants = merchants;
this.Priority = priority;
this.ProcessingTypes = processingTypes;
this.RiskScores = riskScores;
this.SameAmountRestriction = sameAmountRestriction;
Expand Down Expand Up @@ -165,6 +167,12 @@ public partial class TransactionRuleRestrictions : IEquatable<TransactionRuleRes
[DataMember(Name = "merchants", EmitDefaultValue = false)]
public MerchantsRestriction Merchants { get; set; }

/// <summary>
/// Gets or Sets Priority
/// </summary>
[DataMember(Name = "priority", EmitDefaultValue = false)]
public PriorityRestriction Priority { get; set; }

/// <summary>
/// Gets or Sets ProcessingTypes
/// </summary>
Expand Down Expand Up @@ -229,6 +237,7 @@ public override string ToString()
sb.Append(" Mccs: ").Append(Mccs).Append("\n");
sb.Append(" MerchantNames: ").Append(MerchantNames).Append("\n");
sb.Append(" Merchants: ").Append(Merchants).Append("\n");
sb.Append(" Priority: ").Append(Priority).Append("\n");
sb.Append(" ProcessingTypes: ").Append(ProcessingTypes).Append("\n");
sb.Append(" RiskScores: ").Append(RiskScores).Append("\n");
sb.Append(" SameAmountRestriction: ").Append(SameAmountRestriction).Append("\n");
Expand Down Expand Up @@ -341,6 +350,11 @@ public bool Equals(TransactionRuleRestrictions input)
(this.Merchants != null &&
this.Merchants.Equals(input.Merchants))
) &&
(
this.Priority == input.Priority ||
(this.Priority != null &&
this.Priority.Equals(input.Priority))
) &&
(
this.ProcessingTypes == input.ProcessingTypes ||
(this.ProcessingTypes != null &&
Expand Down Expand Up @@ -443,6 +457,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Merchants.GetHashCode();
}
if (this.Priority != null)
{
hashCode = (hashCode * 59) + this.Priority.GetHashCode();
}
if (this.ProcessingTypes != null)
{
hashCode = (hashCode * 59) + this.ProcessingTypes.GetHashCode();
Expand Down
Loading

0 comments on commit e5b5104

Please sign in to comment.