Skip to content

Commit 7332c77

Browse files
false[adyen-sdk-automation] automated change (#1016)
1 parent ecf301e commit 7332c77

File tree

96 files changed

+5078
-1088
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+5078
-1088
lines changed

Adyen/Model/BalancePlatform/BRLocalAccountIdentification.cs

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,15 @@ protected BRLocalAccountIdentification() { }
6565
/// <param name="accountNumber">The bank account number, without separators or whitespace. (required).</param>
6666
/// <param name="bankCode">The 3-digit bank code, with leading zeros. (required).</param>
6767
/// <param name="branchNumber">The bank account branch number, without separators or whitespace. (required).</param>
68+
/// <param name="ispb">The 8-digit ISPB, with leading zeros..</param>
6869
/// <param name="type">**brLocal** (required) (default to TypeEnum.BrLocal).</param>
69-
public BRLocalAccountIdentification(string accountNumber = default(string), string bankCode = default(string), string branchNumber = default(string), TypeEnum type = TypeEnum.BrLocal)
70+
public BRLocalAccountIdentification(string accountNumber = default(string), string bankCode = default(string), string branchNumber = default(string), string ispb = default(string), TypeEnum type = TypeEnum.BrLocal)
7071
{
7172
this.AccountNumber = accountNumber;
7273
this.BankCode = bankCode;
7374
this.BranchNumber = branchNumber;
7475
this.Type = type;
76+
this.Ispb = ispb;
7577
}
7678

7779
/// <summary>
@@ -95,6 +97,13 @@ protected BRLocalAccountIdentification() { }
9597
[DataMember(Name = "branchNumber", IsRequired = false, EmitDefaultValue = false)]
9698
public string BranchNumber { get; set; }
9799

100+
/// <summary>
101+
/// The 8-digit ISPB, with leading zeros.
102+
/// </summary>
103+
/// <value>The 8-digit ISPB, with leading zeros.</value>
104+
[DataMember(Name = "ispb", EmitDefaultValue = false)]
105+
public string Ispb { get; set; }
106+
98107
/// <summary>
99108
/// Returns the string presentation of the object
100109
/// </summary>
@@ -106,6 +115,7 @@ public override string ToString()
106115
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
107116
sb.Append(" BankCode: ").Append(BankCode).Append("\n");
108117
sb.Append(" BranchNumber: ").Append(BranchNumber).Append("\n");
118+
sb.Append(" Ispb: ").Append(Ispb).Append("\n");
109119
sb.Append(" Type: ").Append(Type).Append("\n");
110120
sb.Append("}\n");
111121
return sb.ToString();
@@ -157,6 +167,11 @@ public bool Equals(BRLocalAccountIdentification input)
157167
(this.BranchNumber != null &&
158168
this.BranchNumber.Equals(input.BranchNumber))
159169
) &&
170+
(
171+
this.Ispb == input.Ispb ||
172+
(this.Ispb != null &&
173+
this.Ispb.Equals(input.Ispb))
174+
) &&
160175
(
161176
this.Type == input.Type ||
162177
this.Type.Equals(input.Type)
@@ -184,6 +199,10 @@ public override int GetHashCode()
184199
{
185200
hashCode = (hashCode * 59) + this.BranchNumber.GetHashCode();
186201
}
202+
if (this.Ispb != null)
203+
{
204+
hashCode = (hashCode * 59) + this.Ispb.GetHashCode();
205+
}
187206
hashCode = (hashCode * 59) + this.Type.GetHashCode();
188207
return hashCode;
189208
}
@@ -231,6 +250,18 @@ public override int GetHashCode()
231250
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BranchNumber, length must be greater than 1.", new [] { "BranchNumber" });
232251
}
233252

253+
// Ispb (string) maxLength
254+
if (this.Ispb != null && this.Ispb.Length > 8)
255+
{
256+
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Ispb, length must be less than 8.", new [] { "Ispb" });
257+
}
258+
259+
// Ispb (string) minLength
260+
if (this.Ispb != null && this.Ispb.Length < 8)
261+
{
262+
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Ispb, length must be greater than 8.", new [] { "Ispb" });
263+
}
264+
234265
yield break;
235266
}
236267
}

Adyen/Model/BalancePlatform/BankAccountDTO.cs renamed to Adyen/Model/BalancePlatform/BankAccountDetails.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@
2727
namespace Adyen.Model.BalancePlatform
2828
{
2929
/// <summary>
30-
/// BankAccountDTO
30+
/// BankAccountDetails
3131
/// </summary>
32-
[DataContract(Name = "BankAccountDTO")]
33-
public partial class BankAccountDTO : IEquatable<BankAccountDTO>, IValidatableObject
32+
[DataContract(Name = "BankAccountDetails")]
33+
public partial class BankAccountDetails : IEquatable<BankAccountDetails>, IValidatableObject
3434
{
3535
/// <summary>
36-
/// Initializes a new instance of the <see cref="BankAccountDTO" /> class.
36+
/// Initializes a new instance of the <see cref="BankAccountDetails" /> class.
3737
/// </summary>
3838
[JsonConstructorAttribute]
39-
protected BankAccountDTO() { }
39+
protected BankAccountDetails() { }
4040
/// <summary>
41-
/// Initializes a new instance of the <see cref="BankAccountDTO" /> class.
41+
/// Initializes a new instance of the <see cref="BankAccountDetails" /> class.
4242
/// </summary>
4343
/// <param name="accountNumber">The bank account number, without separators or whitespace..</param>
4444
/// <param name="accountType">The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. (default to &quot;checking&quot;).</param>
@@ -47,7 +47,7 @@ protected BankAccountDTO() { }
4747
/// <param name="routingNumber">The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace..</param>
4848
/// <param name="sortCode">The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace..</param>
4949
/// <param name="type">**iban** or **usLocal** or **ukLocal** (required) (default to &quot;iban&quot;).</param>
50-
public BankAccountDTO(string accountNumber = default(string), string accountType = "checking", string formFactor = "physical", string iban = default(string), string routingNumber = default(string), string sortCode = default(string), string type = "iban")
50+
public BankAccountDetails(string accountNumber = default(string), string accountType = "checking", string formFactor = "physical", string iban = default(string), string routingNumber = default(string), string sortCode = default(string), string type = "iban")
5151
{
5252
this.Type = type;
5353
this.AccountNumber = accountNumber;
@@ -116,7 +116,7 @@ protected BankAccountDTO() { }
116116
public override string ToString()
117117
{
118118
StringBuilder sb = new StringBuilder();
119-
sb.Append("class BankAccountDTO {\n");
119+
sb.Append("class BankAccountDetails {\n");
120120
sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n");
121121
sb.Append(" AccountType: ").Append(AccountType).Append("\n");
122122
sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
@@ -144,15 +144,15 @@ public virtual string ToJson()
144144
/// <returns>Boolean</returns>
145145
public override bool Equals(object input)
146146
{
147-
return this.Equals(input as BankAccountDTO);
147+
return this.Equals(input as BankAccountDetails);
148148
}
149149

150150
/// <summary>
151-
/// Returns true if BankAccountDTO instances are equal
151+
/// Returns true if BankAccountDetails instances are equal
152152
/// </summary>
153-
/// <param name="input">Instance of BankAccountDTO to be compared</param>
153+
/// <param name="input">Instance of BankAccountDetails to be compared</param>
154154
/// <returns>Boolean</returns>
155-
public bool Equals(BankAccountDTO input)
155+
public bool Equals(BankAccountDetails input)
156156
{
157157
if (input == null)
158158
{

Adyen/Model/BalancePlatform/PaymentInstrument.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ protected PaymentInstrument() { }
190190
/// <param name="status">The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the &#x60;card.formFactor&#x60; and the &#x60;issuingCountryCode&#x60;. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. .</param>
191191
/// <param name="statusReason">The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the &#x60;statusComment&#x60; parameter describing the status change..</param>
192192
/// <param name="type">Type of payment instrument. Possible value: **card**, **bankAccount**. (required).</param>
193-
public PaymentInstrument(List<PaymentInstrumentAdditionalBankAccountIdentificationsInner> additionalBankAccountIdentifications = default(List<PaymentInstrumentAdditionalBankAccountIdentificationsInner>), string balanceAccountId = default(string), BankAccountDTO bankAccount = default(BankAccountDTO), Card card = default(Card), string description = default(string), string id = default(string), string issuingCountryCode = default(string), string paymentInstrumentGroupId = default(string), string reference = default(string), StatusEnum? status = default(StatusEnum?), StatusReasonEnum? statusReason = default(StatusReasonEnum?), TypeEnum type = default(TypeEnum))
193+
public PaymentInstrument(List<PaymentInstrumentAdditionalBankAccountIdentificationsInner> additionalBankAccountIdentifications = default(List<PaymentInstrumentAdditionalBankAccountIdentificationsInner>), string balanceAccountId = default(string), BankAccountDetails bankAccount = default(BankAccountDetails), Card card = default(Card), string description = default(string), string id = default(string), string issuingCountryCode = default(string), string paymentInstrumentGroupId = default(string), string reference = default(string), StatusEnum? status = default(StatusEnum?), StatusReasonEnum? statusReason = default(StatusReasonEnum?), TypeEnum type = default(TypeEnum))
194194
{
195195
this.BalanceAccountId = balanceAccountId;
196196
this.Id = id;
@@ -225,7 +225,7 @@ protected PaymentInstrument() { }
225225
/// Gets or Sets BankAccount
226226
/// </summary>
227227
[DataMember(Name = "bankAccount", EmitDefaultValue = false)]
228-
public BankAccountDTO BankAccount { get; set; }
228+
public BankAccountDetails BankAccount { get; set; }
229229

230230
/// <summary>
231231
/// Gets or Sets Card

Adyen/Model/BalancePlatform/UpdatePaymentInstrument.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ protected UpdatePaymentInstrument() { }
191191
/// <param name="statusComment">Comment for the status of the payment instrument. Required if &#x60;statusReason&#x60; is **other**..</param>
192192
/// <param name="statusReason">The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the &#x60;statusComment&#x60; parameter describing the status change..</param>
193193
/// <param name="type">Type of payment instrument. Possible value: **card**, **bankAccount**. (required).</param>
194-
public UpdatePaymentInstrument(List<PaymentInstrumentAdditionalBankAccountIdentificationsInner> additionalBankAccountIdentifications = default(List<PaymentInstrumentAdditionalBankAccountIdentificationsInner>), string balanceAccountId = default(string), BankAccountDTO bankAccount = default(BankAccountDTO), Card card = default(Card), string description = default(string), string id = default(string), string issuingCountryCode = default(string), string paymentInstrumentGroupId = default(string), string reference = default(string), StatusEnum? status = default(StatusEnum?), string statusComment = default(string), StatusReasonEnum? statusReason = default(StatusReasonEnum?), TypeEnum type = default(TypeEnum))
194+
public UpdatePaymentInstrument(List<PaymentInstrumentAdditionalBankAccountIdentificationsInner> additionalBankAccountIdentifications = default(List<PaymentInstrumentAdditionalBankAccountIdentificationsInner>), string balanceAccountId = default(string), BankAccountDetails bankAccount = default(BankAccountDetails), Card card = default(Card), string description = default(string), string id = default(string), string issuingCountryCode = default(string), string paymentInstrumentGroupId = default(string), string reference = default(string), StatusEnum? status = default(StatusEnum?), string statusComment = default(string), StatusReasonEnum? statusReason = default(StatusReasonEnum?), TypeEnum type = default(TypeEnum))
195195
{
196196
this.BalanceAccountId = balanceAccountId;
197197
this.Id = id;
@@ -227,7 +227,7 @@ protected UpdatePaymentInstrument() { }
227227
/// Gets or Sets BankAccount
228228
/// </summary>
229229
[DataMember(Name = "bankAccount", EmitDefaultValue = false)]
230-
public BankAccountDTO BankAccount { get; set; }
230+
public BankAccountDetails BankAccount { get; set; }
231231

232232
/// <summary>
233233
/// Gets or Sets Card

0 commit comments

Comments
 (0)