Skip to content

Commit

Permalink
false[adyen-sdk-automation] automated change (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdyenAutomationBot authored Dec 16, 2024
1 parent a31b40d commit e5a01f3
Show file tree
Hide file tree
Showing 47 changed files with 3,322 additions and 151 deletions.
12 changes: 6 additions & 6 deletions Adyen/Model/AcsWebhooks/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
21 changes: 20 additions & 1 deletion Adyen/Model/AcsWebhooks/AuthenticationNotificationRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,14 @@ protected AuthenticationNotificationRequest() { }
/// </summary>
/// <param name="data">data (required).</param>
/// <param name="environment">The environment from which the webhook originated. Possible values: **test**, **live**. (required).</param>
/// <param name="timestamp">When the event was queued..</param>
/// <param name="type">Type of notification. (required).</param>
public AuthenticationNotificationRequest(AuthenticationNotificationData data = default(AuthenticationNotificationData), string environment = default(string), TypeEnum type = default(TypeEnum))
public AuthenticationNotificationRequest(AuthenticationNotificationData data = default(AuthenticationNotificationData), string environment = default(string), DateTime timestamp = default(DateTime), TypeEnum type = default(TypeEnum))
{
this.Data = data;
this.Environment = environment;
this.Type = type;
this.Timestamp = timestamp;
}

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

/// <summary>
/// When the event was queued.
/// </summary>
/// <value>When the event was queued.</value>
[DataMember(Name = "timestamp", EmitDefaultValue = false)]
public DateTime Timestamp { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -95,6 +104,7 @@ public override string ToString()
sb.Append("class AuthenticationNotificationRequest {\n");
sb.Append(" Data: ").Append(Data).Append("\n");
sb.Append(" Environment: ").Append(Environment).Append("\n");
sb.Append(" Timestamp: ").Append(Timestamp).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
Expand Down Expand Up @@ -141,6 +151,11 @@ public bool Equals(AuthenticationNotificationRequest input)
(this.Environment != null &&
this.Environment.Equals(input.Environment))
) &&
(
this.Timestamp == input.Timestamp ||
(this.Timestamp != null &&
this.Timestamp.Equals(input.Timestamp))
) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
Expand All @@ -164,6 +179,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Environment.GetHashCode();
}
if (this.Timestamp != null)
{
hashCode = (hashCode * 59) + this.Timestamp.GetHashCode();
}
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
Expand Down
12 changes: 6 additions & 6 deletions Adyen/Model/BinLookup/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
35 changes: 33 additions & 2 deletions Adyen/Model/Checkout/CardDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,13 @@ public enum TypeEnum
/// Enum Card for value: card
/// </summary>
[EnumMember(Value = "card")]
Card = 5
Card = 5,

/// <summary>
/// Enum Clicktopay for value: clicktopay
/// </summary>
[EnumMember(Value = "clicktopay")]
Clicktopay = 6

}

Expand All @@ -113,6 +119,7 @@ public enum TypeEnum
/// <param name="checkoutAttemptId">The checkout attempt identifier..</param>
/// <param name="cupsecureplusSmscode">cupsecureplusSmscode.</param>
/// <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>
/// <param name="encryptedCard">Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details..</param>
/// <param name="encryptedCardNumber">The encrypted card number..</param>
/// <param name="encryptedExpiryMonth">The encrypted card expiry month..</param>
/// <param name="encryptedExpiryYear">The encrypted card expiry year..</param>
Expand All @@ -132,12 +139,13 @@ public enum TypeEnum
/// <param name="storedPaymentMethodId">This is the &#x60;recurringDetailReference&#x60; returned in the response when you created the token..</param>
/// <param name="threeDS2SdkVersion">Required for mobile integrations. Version of the 3D Secure 2 mobile SDK..</param>
/// <param name="type">Default payment method details. Common for scheme payment methods, and for simple payment method details. (default to TypeEnum.Scheme).</param>
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)
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)
{
this.Brand = brand;
this.CheckoutAttemptId = checkoutAttemptId;
this.CupsecureplusSmscode = cupsecureplusSmscode;
this.Cvc = cvc;
this.EncryptedCard = encryptedCard;
this.EncryptedCardNumber = encryptedCardNumber;
this.EncryptedExpiryMonth = encryptedExpiryMonth;
this.EncryptedExpiryYear = encryptedExpiryYear;
Expand Down Expand Up @@ -187,6 +195,13 @@ public enum TypeEnum
[DataMember(Name = "cvc", EmitDefaultValue = false)]
public string Cvc { get; set; }

/// <summary>
/// Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details.
/// </summary>
/// <value>Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details.</value>
[DataMember(Name = "encryptedCard", EmitDefaultValue = false)]
public string EncryptedCard { get; set; }

/// <summary>
/// The encrypted card number.
/// </summary>
Expand Down Expand Up @@ -319,6 +334,7 @@ public override string ToString()
sb.Append(" CheckoutAttemptId: ").Append(CheckoutAttemptId).Append("\n");
sb.Append(" CupsecureplusSmscode: ").Append(CupsecureplusSmscode).Append("\n");
sb.Append(" Cvc: ").Append(Cvc).Append("\n");
sb.Append(" EncryptedCard: ").Append(EncryptedCard).Append("\n");
sb.Append(" EncryptedCardNumber: ").Append(EncryptedCardNumber).Append("\n");
sb.Append(" EncryptedExpiryMonth: ").Append(EncryptedExpiryMonth).Append("\n");
sb.Append(" EncryptedExpiryYear: ").Append(EncryptedExpiryYear).Append("\n");
Expand Down Expand Up @@ -393,6 +409,11 @@ public bool Equals(CardDetails input)
(this.Cvc != null &&
this.Cvc.Equals(input.Cvc))
) &&
(
this.EncryptedCard == input.EncryptedCard ||
(this.EncryptedCard != null &&
this.EncryptedCard.Equals(input.EncryptedCard))
) &&
(
this.EncryptedCardNumber == input.EncryptedCardNumber ||
(this.EncryptedCardNumber != null &&
Expand Down Expand Up @@ -513,6 +534,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Cvc.GetHashCode();
}
if (this.EncryptedCard != null)
{
hashCode = (hashCode * 59) + this.EncryptedCard.GetHashCode();
}
if (this.EncryptedCardNumber != null)
{
hashCode = (hashCode * 59) + this.EncryptedCardNumber.GetHashCode();
Expand Down Expand Up @@ -593,6 +618,12 @@ public override int GetHashCode()
/// <returns>Validation Result</returns>
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
{
// EncryptedCard (string) maxLength
if (this.EncryptedCard != null && this.EncryptedCard.Length > 40000)
{
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EncryptedCard, length must be less than 40000.", new [] { "EncryptedCard" });
}

// EncryptedCardNumber (string) maxLength
if (this.EncryptedCardNumber != null && this.EncryptedCardNumber.Length > 15000)
{
Expand Down
Loading

0 comments on commit e5a01f3

Please sign in to comment.