Skip to content

Commit e5a01f3

Browse files
false[adyen-sdk-automation] automated change (#1090)
1 parent a31b40d commit e5a01f3

Some content is hidden

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

47 files changed

+3322
-151
lines changed

Adyen/Model/AcsWebhooks/Amount.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,25 @@ protected Amount() { }
4040
/// <summary>
4141
/// Initializes a new instance of the <see cref="Amount" /> class.
4242
/// </summary>
43-
/// <param name="currency">The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). (required).</param>
44-
/// <param name="value">The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). (required).</param>
43+
/// <param name="currency">The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). (required).</param>
44+
/// <param name="value">The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). (required).</param>
4545
public Amount(string currency = default(string), long? value = default(long?))
4646
{
4747
this.Currency = currency;
4848
this.Value = value;
4949
}
5050

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

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

Adyen/Model/AcsWebhooks/AuthenticationNotificationRequest.cs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,14 @@ protected AuthenticationNotificationRequest() { }
6464
/// </summary>
6565
/// <param name="data">data (required).</param>
6666
/// <param name="environment">The environment from which the webhook originated. Possible values: **test**, **live**. (required).</param>
67+
/// <param name="timestamp">When the event was queued..</param>
6768
/// <param name="type">Type of notification. (required).</param>
68-
public AuthenticationNotificationRequest(AuthenticationNotificationData data = default(AuthenticationNotificationData), string environment = default(string), TypeEnum type = default(TypeEnum))
69+
public AuthenticationNotificationRequest(AuthenticationNotificationData data = default(AuthenticationNotificationData), string environment = default(string), DateTime timestamp = default(DateTime), TypeEnum type = default(TypeEnum))
6970
{
7071
this.Data = data;
7172
this.Environment = environment;
7273
this.Type = type;
74+
this.Timestamp = timestamp;
7375
}
7476

7577
/// <summary>
@@ -85,6 +87,13 @@ protected AuthenticationNotificationRequest() { }
8587
[DataMember(Name = "environment", IsRequired = false, EmitDefaultValue = false)]
8688
public string Environment { get; set; }
8789

90+
/// <summary>
91+
/// When the event was queued.
92+
/// </summary>
93+
/// <value>When the event was queued.</value>
94+
[DataMember(Name = "timestamp", EmitDefaultValue = false)]
95+
public DateTime Timestamp { get; set; }
96+
8897
/// <summary>
8998
/// Returns the string presentation of the object
9099
/// </summary>
@@ -95,6 +104,7 @@ public override string ToString()
95104
sb.Append("class AuthenticationNotificationRequest {\n");
96105
sb.Append(" Data: ").Append(Data).Append("\n");
97106
sb.Append(" Environment: ").Append(Environment).Append("\n");
107+
sb.Append(" Timestamp: ").Append(Timestamp).Append("\n");
98108
sb.Append(" Type: ").Append(Type).Append("\n");
99109
sb.Append("}\n");
100110
return sb.ToString();
@@ -141,6 +151,11 @@ public bool Equals(AuthenticationNotificationRequest input)
141151
(this.Environment != null &&
142152
this.Environment.Equals(input.Environment))
143153
) &&
154+
(
155+
this.Timestamp == input.Timestamp ||
156+
(this.Timestamp != null &&
157+
this.Timestamp.Equals(input.Timestamp))
158+
) &&
144159
(
145160
this.Type == input.Type ||
146161
this.Type.Equals(input.Type)
@@ -164,6 +179,10 @@ public override int GetHashCode()
164179
{
165180
hashCode = (hashCode * 59) + this.Environment.GetHashCode();
166181
}
182+
if (this.Timestamp != null)
183+
{
184+
hashCode = (hashCode * 59) + this.Timestamp.GetHashCode();
185+
}
167186
hashCode = (hashCode * 59) + this.Type.GetHashCode();
168187
return hashCode;
169188
}

Adyen/Model/BinLookup/Amount.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,25 @@ protected Amount() { }
4040
/// <summary>
4141
/// Initializes a new instance of the <see cref="Amount" /> class.
4242
/// </summary>
43-
/// <param name="currency">The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). (required).</param>
44-
/// <param name="value">The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). (required).</param>
43+
/// <param name="currency">The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). (required).</param>
44+
/// <param name="value">The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). (required).</param>
4545
public Amount(string currency = default(string), long? value = default(long?))
4646
{
4747
this.Currency = currency;
4848
this.Value = value;
4949
}
5050

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

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

Adyen/Model/Checkout/CardDetails.cs

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,13 @@ public enum TypeEnum
9595
/// Enum Card for value: card
9696
/// </summary>
9797
[EnumMember(Value = "card")]
98-
Card = 5
98+
Card = 5,
99+
100+
/// <summary>
101+
/// Enum Clicktopay for value: clicktopay
102+
/// </summary>
103+
[EnumMember(Value = "clicktopay")]
104+
Clicktopay = 6
99105

100106
}
101107

@@ -113,6 +119,7 @@ public enum TypeEnum
113119
/// <param name="checkoutAttemptId">The checkout attempt identifier..</param>
114120
/// <param name="cupsecureplusSmscode">cupsecureplusSmscode.</param>
115121
/// <param name="cvc">The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide)..</param>
122+
/// <param name="encryptedCard">Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details..</param>
116123
/// <param name="encryptedCardNumber">The encrypted card number..</param>
117124
/// <param name="encryptedExpiryMonth">The encrypted card expiry month..</param>
118125
/// <param name="encryptedExpiryYear">The encrypted card expiry year..</param>
@@ -132,12 +139,13 @@ public enum TypeEnum
132139
/// <param name="storedPaymentMethodId">This is the &#x60;recurringDetailReference&#x60; returned in the response when you created the token..</param>
133140
/// <param name="threeDS2SdkVersion">Required for mobile integrations. Version of the 3D Secure 2 mobile SDK..</param>
134141
/// <param name="type">Default payment method details. Common for scheme payment methods, and for simple payment method details. (default to TypeEnum.Scheme).</param>
135-
public CardDetails(string brand = default(string), string checkoutAttemptId = default(string), string cupsecureplusSmscode = default(string), string cvc = default(string), string encryptedCardNumber = default(string), string encryptedExpiryMonth = default(string), string encryptedExpiryYear = default(string), string encryptedSecurityCode = default(string), string expiryMonth = default(string), string expiryYear = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string holderName = default(string), string networkPaymentReference = default(string), string number = default(string), string recurringDetailReference = default(string), string shopperNotificationReference = default(string), string srcCorrelationId = default(string), string srcDigitalCardId = default(string), string srcScheme = default(string), string srcTokenReference = default(string), string storedPaymentMethodId = default(string), string threeDS2SdkVersion = default(string), TypeEnum? type = TypeEnum.Scheme)
142+
public CardDetails(string brand = default(string), string checkoutAttemptId = default(string), string cupsecureplusSmscode = default(string), string cvc = default(string), string encryptedCard = default(string), string encryptedCardNumber = default(string), string encryptedExpiryMonth = default(string), string encryptedExpiryYear = default(string), string encryptedSecurityCode = default(string), string expiryMonth = default(string), string expiryYear = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string holderName = default(string), string networkPaymentReference = default(string), string number = default(string), string recurringDetailReference = default(string), string shopperNotificationReference = default(string), string srcCorrelationId = default(string), string srcDigitalCardId = default(string), string srcScheme = default(string), string srcTokenReference = default(string), string storedPaymentMethodId = default(string), string threeDS2SdkVersion = default(string), TypeEnum? type = TypeEnum.Scheme)
136143
{
137144
this.Brand = brand;
138145
this.CheckoutAttemptId = checkoutAttemptId;
139146
this.CupsecureplusSmscode = cupsecureplusSmscode;
140147
this.Cvc = cvc;
148+
this.EncryptedCard = encryptedCard;
141149
this.EncryptedCardNumber = encryptedCardNumber;
142150
this.EncryptedExpiryMonth = encryptedExpiryMonth;
143151
this.EncryptedExpiryYear = encryptedExpiryYear;
@@ -187,6 +195,13 @@ public enum TypeEnum
187195
[DataMember(Name = "cvc", EmitDefaultValue = false)]
188196
public string Cvc { get; set; }
189197

198+
/// <summary>
199+
/// Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details.
200+
/// </summary>
201+
/// <value>Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details.</value>
202+
[DataMember(Name = "encryptedCard", EmitDefaultValue = false)]
203+
public string EncryptedCard { get; set; }
204+
190205
/// <summary>
191206
/// The encrypted card number.
192207
/// </summary>
@@ -319,6 +334,7 @@ public override string ToString()
319334
sb.Append(" CheckoutAttemptId: ").Append(CheckoutAttemptId).Append("\n");
320335
sb.Append(" CupsecureplusSmscode: ").Append(CupsecureplusSmscode).Append("\n");
321336
sb.Append(" Cvc: ").Append(Cvc).Append("\n");
337+
sb.Append(" EncryptedCard: ").Append(EncryptedCard).Append("\n");
322338
sb.Append(" EncryptedCardNumber: ").Append(EncryptedCardNumber).Append("\n");
323339
sb.Append(" EncryptedExpiryMonth: ").Append(EncryptedExpiryMonth).Append("\n");
324340
sb.Append(" EncryptedExpiryYear: ").Append(EncryptedExpiryYear).Append("\n");
@@ -393,6 +409,11 @@ public bool Equals(CardDetails input)
393409
(this.Cvc != null &&
394410
this.Cvc.Equals(input.Cvc))
395411
) &&
412+
(
413+
this.EncryptedCard == input.EncryptedCard ||
414+
(this.EncryptedCard != null &&
415+
this.EncryptedCard.Equals(input.EncryptedCard))
416+
) &&
396417
(
397418
this.EncryptedCardNumber == input.EncryptedCardNumber ||
398419
(this.EncryptedCardNumber != null &&
@@ -513,6 +534,10 @@ public override int GetHashCode()
513534
{
514535
hashCode = (hashCode * 59) + this.Cvc.GetHashCode();
515536
}
537+
if (this.EncryptedCard != null)
538+
{
539+
hashCode = (hashCode * 59) + this.EncryptedCard.GetHashCode();
540+
}
516541
if (this.EncryptedCardNumber != null)
517542
{
518543
hashCode = (hashCode * 59) + this.EncryptedCardNumber.GetHashCode();
@@ -593,6 +618,12 @@ public override int GetHashCode()
593618
/// <returns>Validation Result</returns>
594619
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
595620
{
621+
// EncryptedCard (string) maxLength
622+
if (this.EncryptedCard != null && this.EncryptedCard.Length > 40000)
623+
{
624+
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EncryptedCard, length must be less than 40000.", new [] { "EncryptedCard" });
625+
}
626+
596627
// EncryptedCardNumber (string) maxLength
597628
if (this.EncryptedCardNumber != null && this.EncryptedCardNumber.Length > 15000)
598629
{

0 commit comments

Comments
 (0)