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 Dec 6, 2024
1 parent a31b40d commit dd05022
Show file tree
Hide file tree
Showing 13 changed files with 1,016 additions and 40 deletions.
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
35 changes: 33 additions & 2 deletions Adyen/Model/Checkout/CardDonations.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 CardDonations(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 CardDonations(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(CardDonations 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
12 changes: 6 additions & 6 deletions Adyen/Model/DisputeWebhooks/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
Loading

0 comments on commit dd05022

Please sign in to comment.