diff --git a/Adyen/Payment/Models/ResponseAdditionalDataCard.cs b/Adyen/Payment/Models/ResponseAdditionalDataCard.cs index 9d19d9cc9..d201f8ea4 100644 --- a/Adyen/Payment/Models/ResponseAdditionalDataCard.cs +++ b/Adyen/Payment/Models/ResponseAdditionalDataCard.cs @@ -34,6 +34,7 @@ public partial class ResponseAdditionalDataCard /// /// Initializes a new instance of the class. /// + /// This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only in case of Ecommerce Card Payment in India /// The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 /// The cardholder name passed in the payment request. /// The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. @@ -44,8 +45,9 @@ public partial class ResponseAdditionalDataCard /// The last four digits of a card number. > Returned only in case of a card payment. /// The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 [JsonConstructor] - public ResponseAdditionalDataCard(Option cardBin = default, Option cardHolderName = default, Option cardIssuingBank = default, Option cardIssuingCountry = default, Option cardIssuingCurrency = default, Option cardPaymentMethod = default, Option cardProductId = default, Option cardSummary = default, Option issuerBin = default) + public ResponseAdditionalDataCard(Option cardAltID = default, Option cardBin = default, Option cardHolderName = default, Option cardIssuingBank = default, Option cardIssuingCountry = default, Option cardIssuingCurrency = default, Option cardPaymentMethod = default, Option cardProductId = default, Option cardSummary = default, Option issuerBin = default) { + _CardAltIDOption = cardAltID; _CardBinOption = cardBin; _CardHolderNameOption = cardHolderName; _CardIssuingBankOption = cardIssuingBank; @@ -265,6 +267,20 @@ public override void Write(Utf8JsonWriter writer, CardProductIdEnum value, JsonS [JsonPropertyName("cardProductId")] public CardProductIdEnum? CardProductId { get { return this._CardProductIdOption; } set { this._CardProductIdOption = new(value); } } + /// + /// This is used to track if an optional field is set. If set, will be populated. + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option _CardAltIDOption { get; private set; } + + /// + /// This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only in case of Ecommerce Card Payment in India + /// + /// This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only in case of Ecommerce Card Payment in India + [JsonPropertyName("cardAltID")] + public string? CardAltID { get { return this._CardAltIDOption; } set { this._CardAltIDOption = new(value); } } + /// /// This is used to track if an optional field is set. If set, will be populated. /// @@ -385,6 +401,7 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class ResponseAdditionalDataCard {\n"); + sb.Append(" CardAltID: ").Append(CardAltID).Append("\n"); sb.Append(" CardBin: ").Append(CardBin).Append("\n"); sb.Append(" CardHolderName: ").Append(CardHolderName).Append("\n"); sb.Append(" CardIssuingBank: ").Append(CardIssuingBank).Append("\n"); @@ -421,6 +438,7 @@ public override ResponseAdditionalDataCard Read(ref Utf8JsonReader utf8JsonReade JsonTokenType startingTokenType = utf8JsonReader.TokenType; + Option cardAltID = default; Option cardBin = default; Option cardHolderName = default; Option cardIssuingBank = default; @@ -446,6 +464,9 @@ public override ResponseAdditionalDataCard Read(ref Utf8JsonReader utf8JsonReade switch (jsonPropertyName) { + case "cardAltID": + cardAltID = new Option(utf8JsonReader.GetString()!); + break; case "cardBin": cardBin = new Option(utf8JsonReader.GetString()!); break; @@ -481,7 +502,7 @@ public override ResponseAdditionalDataCard Read(ref Utf8JsonReader utf8JsonReade } - return new ResponseAdditionalDataCard(cardBin, cardHolderName, cardIssuingBank, cardIssuingCountry, cardIssuingCurrency, cardPaymentMethod, cardProductId, cardSummary, issuerBin); + return new ResponseAdditionalDataCard(cardAltID, cardBin, cardHolderName, cardIssuingBank, cardIssuingCountry, cardIssuingCurrency, cardPaymentMethod, cardProductId, cardSummary, issuerBin); } /// @@ -510,6 +531,10 @@ public override void Write(Utf8JsonWriter writer, ResponseAdditionalDataCard res public void WriteProperties(Utf8JsonWriter writer, ResponseAdditionalDataCard responseAdditionalDataCard, JsonSerializerOptions jsonSerializerOptions) { + if (responseAdditionalDataCard._CardAltIDOption.IsSet) + if (responseAdditionalDataCard.CardAltID != null) + writer.WriteString("cardAltID", responseAdditionalDataCard.CardAltID); + if (responseAdditionalDataCard._CardBinOption.IsSet) if (responseAdditionalDataCard.CardBin != null) writer.WriteString("cardBin", responseAdditionalDataCard.CardBin); diff --git a/Adyen/Payment/Models/ResponseAdditionalDataCommon.cs b/Adyen/Payment/Models/ResponseAdditionalDataCommon.cs index be3ef4116..04950ce96 100644 --- a/Adyen/Payment/Models/ResponseAdditionalDataCommon.cs +++ b/Adyen/Payment/Models/ResponseAdditionalDataCommon.cs @@ -67,6 +67,7 @@ public partial class ResponseAdditionalDataCommon /// The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. /// The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). /// The reference provided for the transaction. + /// Indicates the processing flow. Possible values: * **sale**: no separate capture required, funds are captured as part of the transaction * **auth**: separate capture is required. This might be automatic, depending on your [capture settings](https://docs.adyen.com/online-payments/capture#types-of-capture). /// Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. /// The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. /// The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. @@ -98,7 +99,7 @@ public partial class ResponseAdditionalDataCommon /// The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. /// The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= [JsonConstructor] - public ResponseAdditionalDataCommon(Option acquirerAccountCode = default, Option acquirerCode = default, Option acquirerReference = default, Option alias = default, Option aliasType = default, Option authCode = default, Option authorisationMid = default, Option authorisedAmountCurrency = default, Option authorisedAmountValue = default, Option avsResult = default, Option avsResultRaw = default, Option bic = default, Option coBrandedWith = default, Option cvcResult = default, Option cvcResultRaw = default, Option dsTransID = default, Option eci = default, Option expiryDate = default, Option extraCostsCurrency = default, Option extraCostsValue = default, Option fraudCheckItemNrFraudCheckname = default, Option fraudManualReview = default, Option fraudResultType = default, Option fraudRiskLevel = default, Option fundingSource = default, Option fundsAvailability = default, Option inferredRefusalReason = default, Option isCardCommercial = default, Option issuerCountry = default, Option liabilityShift = default, Option mcBankNetReferenceNumber = default, Option merchantAdviceCode = default, Option merchantReference = default, Option networkTxReference = default, Option ownerName = default, Option paymentAccountReference = default, Option paymentMethod = default, Option paymentMethodVariant = default, Option payoutEligible = default, Option realtimeAccountUpdaterStatus = default, Option receiptFreeText = default, Option recurringContractTypes = default, Option recurringFirstPspReference = default, Option recurringRecurringDetailReference = default, Option recurringShopperReference = default, Option recurringProcessingModel = default, Option referred = default, Option refusalReasonRaw = default, Option requestAmount = default, Option requestCurrencyCode = default, Option shopperInteraction = default, Option shopperReference = default, Option terminalId = default, Option threeDAuthenticated = default, Option threeDAuthenticatedResponse = default, Option threeDOffered = default, Option threeDOfferedResponse = default, Option threeDSVersion = default, Option tokenizationShopperReference = default, Option tokenizationStoreOperationType = default, Option tokenizationStoredPaymentMethodId = default, Option visaTransactionId = default, Option xid = default) + public ResponseAdditionalDataCommon(Option acquirerAccountCode = default, Option acquirerCode = default, Option acquirerReference = default, Option alias = default, Option aliasType = default, Option authCode = default, Option authorisationMid = default, Option authorisedAmountCurrency = default, Option authorisedAmountValue = default, Option avsResult = default, Option avsResultRaw = default, Option bic = default, Option coBrandedWith = default, Option cvcResult = default, Option cvcResultRaw = default, Option dsTransID = default, Option eci = default, Option expiryDate = default, Option extraCostsCurrency = default, Option extraCostsValue = default, Option fraudCheckItemNrFraudCheckname = default, Option fraudManualReview = default, Option fraudResultType = default, Option fraudRiskLevel = default, Option fundingSource = default, Option fundsAvailability = default, Option inferredRefusalReason = default, Option isCardCommercial = default, Option issuerCountry = default, Option liabilityShift = default, Option mcBankNetReferenceNumber = default, Option merchantAdviceCode = default, Option merchantReference = default, Option networkProcessingMode = default, Option networkTxReference = default, Option ownerName = default, Option paymentAccountReference = default, Option paymentMethod = default, Option paymentMethodVariant = default, Option payoutEligible = default, Option realtimeAccountUpdaterStatus = default, Option receiptFreeText = default, Option recurringContractTypes = default, Option recurringFirstPspReference = default, Option recurringRecurringDetailReference = default, Option recurringShopperReference = default, Option recurringProcessingModel = default, Option referred = default, Option refusalReasonRaw = default, Option requestAmount = default, Option requestCurrencyCode = default, Option shopperInteraction = default, Option shopperReference = default, Option terminalId = default, Option threeDAuthenticated = default, Option threeDAuthenticatedResponse = default, Option threeDOffered = default, Option threeDOfferedResponse = default, Option threeDSVersion = default, Option tokenizationShopperReference = default, Option tokenizationStoreOperationType = default, Option tokenizationStoredPaymentMethodId = default, Option visaTransactionId = default, Option xid = default) { _AcquirerAccountCodeOption = acquirerAccountCode; _AcquirerCodeOption = acquirerCode; @@ -133,6 +134,7 @@ public ResponseAdditionalDataCommon(Option acquirerAccountCode = defaul _McBankNetReferenceNumberOption = mcBankNetReferenceNumber; _MerchantAdviceCodeOption = merchantAdviceCode; _MerchantReferenceOption = merchantReference; + _NetworkProcessingModeOption = networkProcessingMode; _NetworkTxReferenceOption = networkTxReference; _OwnerNameOption = ownerName; _PaymentAccountReferenceOption = paymentAccountReference; @@ -1133,6 +1135,20 @@ public override void Write(Utf8JsonWriter writer, TokenizationStoreOperationType [JsonPropertyName("merchantReference")] public string? MerchantReference { get { return this._MerchantReferenceOption; } set { this._MerchantReferenceOption = new(value); } } + /// + /// This is used to track if an optional field is set. If set, will be populated. + /// + [JsonIgnore] + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public Option _NetworkProcessingModeOption { get; private set; } + + /// + /// Indicates the processing flow. Possible values: * **sale**: no separate capture required, funds are captured as part of the transaction * **auth**: separate capture is required. This might be automatic, depending on your [capture settings](https://docs.adyen.com/online-payments/capture#types-of-capture). + /// + /// Indicates the processing flow. Possible values: * **sale**: no separate capture required, funds are captured as part of the transaction * **auth**: separate capture is required. This might be automatic, depending on your [capture settings](https://docs.adyen.com/online-payments/capture#types-of-capture). + [JsonPropertyName("networkProcessingMode")] + public string? NetworkProcessingMode { get { return this._NetworkProcessingModeOption; } set { this._NetworkProcessingModeOption = new(value); } } + /// /// This is used to track if an optional field is set. If set, will be populated. /// @@ -1568,6 +1584,7 @@ public override string ToString() sb.Append(" McBankNetReferenceNumber: ").Append(McBankNetReferenceNumber).Append("\n"); sb.Append(" MerchantAdviceCode: ").Append(MerchantAdviceCode).Append("\n"); sb.Append(" MerchantReference: ").Append(MerchantReference).Append("\n"); + sb.Append(" NetworkProcessingMode: ").Append(NetworkProcessingMode).Append("\n"); sb.Append(" NetworkTxReference: ").Append(NetworkTxReference).Append("\n"); sb.Append(" OwnerName: ").Append(OwnerName).Append("\n"); sb.Append(" PaymentAccountReference: ").Append(PaymentAccountReference).Append("\n"); @@ -1658,6 +1675,7 @@ public override ResponseAdditionalDataCommon Read(ref Utf8JsonReader utf8JsonRea Option mcBankNetReferenceNumber = default; Option merchantAdviceCode = default; Option merchantReference = default; + Option networkProcessingMode = default; Option networkTxReference = default; Option ownerName = default; Option paymentAccountReference = default; @@ -1805,6 +1823,9 @@ public override ResponseAdditionalDataCommon Read(ref Utf8JsonReader utf8JsonRea case "merchantReference": merchantReference = new Option(utf8JsonReader.GetString()!); break; + case "networkProcessingMode": + networkProcessingMode = new Option(utf8JsonReader.GetString()!); + break; case "networkTxReference": networkTxReference = new Option(utf8JsonReader.GetString()!); break; @@ -1904,7 +1925,7 @@ public override ResponseAdditionalDataCommon Read(ref Utf8JsonReader utf8JsonRea } - return new ResponseAdditionalDataCommon(acquirerAccountCode, acquirerCode, acquirerReference, alias, aliasType, authCode, authorisationMid, authorisedAmountCurrency, authorisedAmountValue, avsResult, avsResultRaw, bic, coBrandedWith, cvcResult, cvcResultRaw, dsTransID, eci, expiryDate, extraCostsCurrency, extraCostsValue, fraudCheckItemNrFraudCheckname, fraudManualReview, fraudResultType, fraudRiskLevel, fundingSource, fundsAvailability, inferredRefusalReason, isCardCommercial, issuerCountry, liabilityShift, mcBankNetReferenceNumber, merchantAdviceCode, merchantReference, networkTxReference, ownerName, paymentAccountReference, paymentMethod, paymentMethodVariant, payoutEligible, realtimeAccountUpdaterStatus, receiptFreeText, recurringContractTypes, recurringFirstPspReference, recurringRecurringDetailReference, recurringShopperReference, recurringProcessingModel, referred, refusalReasonRaw, requestAmount, requestCurrencyCode, shopperInteraction, shopperReference, terminalId, threeDAuthenticated, threeDAuthenticatedResponse, threeDOffered, threeDOfferedResponse, threeDSVersion, tokenizationShopperReference, tokenizationStoreOperationType, tokenizationStoredPaymentMethodId, visaTransactionId, xid); + return new ResponseAdditionalDataCommon(acquirerAccountCode, acquirerCode, acquirerReference, alias, aliasType, authCode, authorisationMid, authorisedAmountCurrency, authorisedAmountValue, avsResult, avsResultRaw, bic, coBrandedWith, cvcResult, cvcResultRaw, dsTransID, eci, expiryDate, extraCostsCurrency, extraCostsValue, fraudCheckItemNrFraudCheckname, fraudManualReview, fraudResultType, fraudRiskLevel, fundingSource, fundsAvailability, inferredRefusalReason, isCardCommercial, issuerCountry, liabilityShift, mcBankNetReferenceNumber, merchantAdviceCode, merchantReference, networkProcessingMode, networkTxReference, ownerName, paymentAccountReference, paymentMethod, paymentMethodVariant, payoutEligible, realtimeAccountUpdaterStatus, receiptFreeText, recurringContractTypes, recurringFirstPspReference, recurringRecurringDetailReference, recurringShopperReference, recurringProcessingModel, referred, refusalReasonRaw, requestAmount, requestCurrencyCode, shopperInteraction, shopperReference, terminalId, threeDAuthenticated, threeDAuthenticatedResponse, threeDOffered, threeDOfferedResponse, threeDSVersion, tokenizationShopperReference, tokenizationStoreOperationType, tokenizationStoredPaymentMethodId, visaTransactionId, xid); } /// @@ -2069,6 +2090,10 @@ public void WriteProperties(Utf8JsonWriter writer, ResponseAdditionalDataCommon if (responseAdditionalDataCommon.MerchantReference != null) writer.WriteString("merchantReference", responseAdditionalDataCommon.MerchantReference); + if (responseAdditionalDataCommon._NetworkProcessingModeOption.IsSet) + if (responseAdditionalDataCommon.NetworkProcessingMode != null) + writer.WriteString("networkProcessingMode", responseAdditionalDataCommon.NetworkProcessingMode); + if (responseAdditionalDataCommon._NetworkTxReferenceOption.IsSet) if (responseAdditionalDataCommon.NetworkTxReference != null) writer.WriteString("networkTxReference", responseAdditionalDataCommon.NetworkTxReference);