Skip to content

Commit 9d57f72

Browse files
false[adyen-sdk-automation] automated change (#1101)
1 parent b46c1de commit 9d57f72

19 files changed

+831
-288
lines changed

Adyen/Model/BalancePlatform/Balance.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected Balance() { }
4141
/// Initializes a new instance of the <see cref="Balance" /> class.
4242
/// </summary>
4343
/// <param name="available">The balance available for use. (required).</param>
44-
/// <param name="balance">The sum of transactions that have already been settled. (required).</param>
44+
/// <param name="balance">The sum of the transactions that have already been settled. (required).</param>
4545
/// <param name="currency">The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. (required).</param>
4646
/// <param name="pending">The sum of the transactions that will be settled in the future..</param>
4747
/// <param name="reserved">The balance currently held in reserve. (required).</param>
@@ -62,9 +62,9 @@ protected Balance() { }
6262
public long? Available { get; set; }
6363

6464
/// <summary>
65-
/// The sum of transactions that have already been settled.
65+
/// The sum of the transactions that have already been settled.
6666
/// </summary>
67-
/// <value>The sum of transactions that have already been settled.</value>
67+
/// <value>The sum of the transactions that have already been settled.</value>
6868
[DataMember(Name = "balance", IsRequired = false, EmitDefaultValue = false)]
6969
public long? _Balance { get; set; }
7070

Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
/*
2+
* Configuration API
3+
*
4+
*
5+
* The version of the OpenAPI document: 2
6+
*
7+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8+
* https://openapi-generator.tech
9+
* Do not edit the class manually.
10+
*/
11+
12+
using System;
13+
using System.Collections;
14+
using System.Collections.Generic;
15+
using System.Collections.ObjectModel;
16+
using System.Linq;
17+
using System.IO;
18+
using System.Runtime.Serialization;
19+
using System.Text;
20+
using System.Text.RegularExpressions;
21+
using Newtonsoft.Json;
22+
using Newtonsoft.Json.Converters;
23+
using Newtonsoft.Json.Linq;
24+
using System.ComponentModel.DataAnnotations;
25+
using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
26+
27+
namespace Adyen.Model.BalancePlatform
28+
{
29+
/// <summary>
30+
/// PriorityRestriction
31+
/// </summary>
32+
[DataContract(Name = "PriorityRestriction")]
33+
public partial class PriorityRestriction : IEquatable<PriorityRestriction>, IValidatableObject
34+
{
35+
/// <summary>
36+
/// Defines Value
37+
/// </summary>
38+
[JsonConverter(typeof(StringEnumConverter))]
39+
public enum ValueEnum
40+
{
41+
/// <summary>
42+
/// Enum CrossBorder for value: crossBorder
43+
/// </summary>
44+
[EnumMember(Value = "crossBorder")]
45+
CrossBorder = 1,
46+
47+
/// <summary>
48+
/// Enum Fast for value: fast
49+
/// </summary>
50+
[EnumMember(Value = "fast")]
51+
Fast = 2,
52+
53+
/// <summary>
54+
/// Enum Instant for value: instant
55+
/// </summary>
56+
[EnumMember(Value = "instant")]
57+
Instant = 3,
58+
59+
/// <summary>
60+
/// Enum IntraBank for value: intraBank
61+
/// </summary>
62+
[EnumMember(Value = "intraBank")]
63+
IntraBank = 4,
64+
65+
/// <summary>
66+
/// Enum Regular for value: regular
67+
/// </summary>
68+
[EnumMember(Value = "regular")]
69+
Regular = 5
70+
71+
}
72+
73+
74+
75+
/// <summary>
76+
/// Gets or Sets Value
77+
/// </summary>
78+
[DataMember(Name = "value", EmitDefaultValue = false)]
79+
public List<ValueEnum> Value { get; set; }
80+
/// <summary>
81+
/// Initializes a new instance of the <see cref="PriorityRestriction" /> class.
82+
/// </summary>
83+
[JsonConstructorAttribute]
84+
protected PriorityRestriction() { }
85+
/// <summary>
86+
/// Initializes a new instance of the <see cref="PriorityRestriction" /> class.
87+
/// </summary>
88+
/// <param name="operation">Defines how the condition must be evaluated. (required).</param>
89+
/// <param name="value">value.</param>
90+
public PriorityRestriction(string operation = default(string), List<ValueEnum> value = default(List<ValueEnum>))
91+
{
92+
this.Operation = operation;
93+
this.Value = value;
94+
}
95+
96+
/// <summary>
97+
/// Defines how the condition must be evaluated.
98+
/// </summary>
99+
/// <value>Defines how the condition must be evaluated.</value>
100+
[DataMember(Name = "operation", IsRequired = false, EmitDefaultValue = false)]
101+
public string Operation { get; set; }
102+
103+
/// <summary>
104+
/// Returns the string presentation of the object
105+
/// </summary>
106+
/// <returns>String presentation of the object</returns>
107+
public override string ToString()
108+
{
109+
StringBuilder sb = new StringBuilder();
110+
sb.Append("class PriorityRestriction {\n");
111+
sb.Append(" Operation: ").Append(Operation).Append("\n");
112+
sb.Append(" Value: ").Append(Value).Append("\n");
113+
sb.Append("}\n");
114+
return sb.ToString();
115+
}
116+
117+
/// <summary>
118+
/// Returns the JSON string presentation of the object
119+
/// </summary>
120+
/// <returns>JSON string presentation of the object</returns>
121+
public virtual string ToJson()
122+
{
123+
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
124+
}
125+
126+
/// <summary>
127+
/// Returns true if objects are equal
128+
/// </summary>
129+
/// <param name="input">Object to be compared</param>
130+
/// <returns>Boolean</returns>
131+
public override bool Equals(object input)
132+
{
133+
return this.Equals(input as PriorityRestriction);
134+
}
135+
136+
/// <summary>
137+
/// Returns true if PriorityRestriction instances are equal
138+
/// </summary>
139+
/// <param name="input">Instance of PriorityRestriction to be compared</param>
140+
/// <returns>Boolean</returns>
141+
public bool Equals(PriorityRestriction input)
142+
{
143+
if (input == null)
144+
{
145+
return false;
146+
}
147+
return
148+
(
149+
this.Operation == input.Operation ||
150+
(this.Operation != null &&
151+
this.Operation.Equals(input.Operation))
152+
) &&
153+
(
154+
this.Value == input.Value ||
155+
this.Value.SequenceEqual(input.Value)
156+
);
157+
}
158+
159+
/// <summary>
160+
/// Gets the hash code
161+
/// </summary>
162+
/// <returns>Hash code</returns>
163+
public override int GetHashCode()
164+
{
165+
unchecked // Overflow is fine, just wrap
166+
{
167+
int hashCode = 41;
168+
if (this.Operation != null)
169+
{
170+
hashCode = (hashCode * 59) + this.Operation.GetHashCode();
171+
}
172+
hashCode = (hashCode * 59) + this.Value.GetHashCode();
173+
return hashCode;
174+
}
175+
}
176+
/// <summary>
177+
/// To validate all properties of the instance
178+
/// </summary>
179+
/// <param name="validationContext">Validation context</param>
180+
/// <returns>Validation Result</returns>
181+
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
182+
{
183+
yield break;
184+
}
185+
}
186+
187+
}

Adyen/Model/BalancePlatform/TransactionRuleRestrictions.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,15 @@ public partial class TransactionRuleRestrictions : IEquatable<TransactionRuleRes
4949
/// <param name="mccs">mccs.</param>
5050
/// <param name="merchantNames">merchantNames.</param>
5151
/// <param name="merchants">merchants.</param>
52+
/// <param name="priority">priority.</param>
5253
/// <param name="processingTypes">processingTypes.</param>
5354
/// <param name="riskScores">riskScores.</param>
5455
/// <param name="sameAmountRestriction">sameAmountRestriction.</param>
5556
/// <param name="sameCounterpartyRestriction">sameCounterpartyRestriction.</param>
5657
/// <param name="sourceAccountTypes">sourceAccountTypes.</param>
5758
/// <param name="timeOfDay">timeOfDay.</param>
5859
/// <param name="totalAmount">totalAmount.</param>
59-
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))
60+
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))
6061
{
6162
this.ActiveNetworkTokens = activeNetworkTokens;
6263
this.BrandVariants = brandVariants;
@@ -72,6 +73,7 @@ public partial class TransactionRuleRestrictions : IEquatable<TransactionRuleRes
7273
this.Mccs = mccs;
7374
this.MerchantNames = merchantNames;
7475
this.Merchants = merchants;
76+
this.Priority = priority;
7577
this.ProcessingTypes = processingTypes;
7678
this.RiskScores = riskScores;
7779
this.SameAmountRestriction = sameAmountRestriction;
@@ -165,6 +167,12 @@ public partial class TransactionRuleRestrictions : IEquatable<TransactionRuleRes
165167
[DataMember(Name = "merchants", EmitDefaultValue = false)]
166168
public MerchantsRestriction Merchants { get; set; }
167169

170+
/// <summary>
171+
/// Gets or Sets Priority
172+
/// </summary>
173+
[DataMember(Name = "priority", EmitDefaultValue = false)]
174+
public PriorityRestriction Priority { get; set; }
175+
168176
/// <summary>
169177
/// Gets or Sets ProcessingTypes
170178
/// </summary>
@@ -229,6 +237,7 @@ public override string ToString()
229237
sb.Append(" Mccs: ").Append(Mccs).Append("\n");
230238
sb.Append(" MerchantNames: ").Append(MerchantNames).Append("\n");
231239
sb.Append(" Merchants: ").Append(Merchants).Append("\n");
240+
sb.Append(" Priority: ").Append(Priority).Append("\n");
232241
sb.Append(" ProcessingTypes: ").Append(ProcessingTypes).Append("\n");
233242
sb.Append(" RiskScores: ").Append(RiskScores).Append("\n");
234243
sb.Append(" SameAmountRestriction: ").Append(SameAmountRestriction).Append("\n");
@@ -341,6 +350,11 @@ public bool Equals(TransactionRuleRestrictions input)
341350
(this.Merchants != null &&
342351
this.Merchants.Equals(input.Merchants))
343352
) &&
353+
(
354+
this.Priority == input.Priority ||
355+
(this.Priority != null &&
356+
this.Priority.Equals(input.Priority))
357+
) &&
344358
(
345359
this.ProcessingTypes == input.ProcessingTypes ||
346360
(this.ProcessingTypes != null &&
@@ -443,6 +457,10 @@ public override int GetHashCode()
443457
{
444458
hashCode = (hashCode * 59) + this.Merchants.GetHashCode();
445459
}
460+
if (this.Priority != null)
461+
{
462+
hashCode = (hashCode * 59) + this.Priority.GetHashCode();
463+
}
446464
if (this.ProcessingTypes != null)
447465
{
448466
hashCode = (hashCode * 59) + this.ProcessingTypes.GetHashCode();

0 commit comments

Comments
 (0)