diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCard.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCard.java index 6cc34e12a..b05d37039 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCard.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCard.java @@ -25,6 +25,7 @@ /** ResponseAdditionalDataCard */ @JsonPropertyOrder({ + ResponseAdditionalDataCard.JSON_PROPERTY_CARD_ALT_I_D, ResponseAdditionalDataCard.JSON_PROPERTY_CARD_BIN, ResponseAdditionalDataCard.JSON_PROPERTY_CARD_HOLDER_NAME, ResponseAdditionalDataCard.JSON_PROPERTY_CARD_ISSUING_BANK, @@ -36,6 +37,12 @@ ResponseAdditionalDataCard.JSON_PROPERTY_ISSUER_BIN }) public class ResponseAdditionalDataCard { + public static final String JSON_PROPERTY_CARD_ALT_I_D = "cardAltID"; + private String cardAltID; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetCardAltID = false; + public static final String JSON_PROPERTY_CARD_BIN = "cardBin"; private String cardBin; @@ -165,6 +172,47 @@ public static CardProductIdEnum fromValue(String value) { public ResponseAdditionalDataCard() {} + /** + * This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only in case of + * Ecommerce Card Payment in India + * + * @param cardAltID This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only in + * case of Ecommerce Card Payment in India + * @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining + */ + public ResponseAdditionalDataCard cardAltID(String cardAltID) { + this.cardAltID = cardAltID; + isSetCardAltID = true; // mark as set + return this; + } + + /** + * This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only in case of + * Ecommerce Card Payment in India + * + * @return cardAltID This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only + * in case of Ecommerce Card Payment in India + */ + @JsonProperty(JSON_PROPERTY_CARD_ALT_I_D) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCardAltID() { + return cardAltID; + } + + /** + * This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only in case of + * Ecommerce Card Payment in India + * + * @param cardAltID This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only in + * case of Ecommerce Card Payment in India + */ + @JsonProperty(JSON_PROPERTY_CARD_ALT_I_D) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCardAltID(String cardAltID) { + this.cardAltID = cardAltID; + isSetCardAltID = true; // mark as set + } + /** * 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) @@ -595,7 +643,9 @@ public boolean equals(Object o) { return false; } ResponseAdditionalDataCard responseAdditionalDataCard = (ResponseAdditionalDataCard) o; - return Objects.equals(this.cardBin, responseAdditionalDataCard.cardBin) + return Objects.equals(this.cardAltID, responseAdditionalDataCard.cardAltID) + && Objects.equals(this.isSetCardAltID, responseAdditionalDataCard.isSetCardAltID) + && Objects.equals(this.cardBin, responseAdditionalDataCard.cardBin) && Objects.equals(this.isSetCardBin, responseAdditionalDataCard.isSetCardBin) && Objects.equals(this.cardHolderName, responseAdditionalDataCard.cardHolderName) && Objects.equals(this.isSetCardHolderName, responseAdditionalDataCard.isSetCardHolderName) @@ -622,6 +672,8 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + cardAltID, + isSetCardAltID, cardBin, isSetCardBin, cardHolderName, @@ -646,6 +698,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseAdditionalDataCard {\n"); + sb.append(" cardAltID: ").append(toIndentedString(cardAltID)).append("\n"); sb.append(" cardBin: ").append(toIndentedString(cardBin)).append("\n"); sb.append(" cardHolderName: ").append(toIndentedString(cardHolderName)).append("\n"); sb.append(" cardIssuingBank: ").append(toIndentedString(cardIssuingBank)).append("\n"); @@ -681,6 +734,9 @@ public Map getExplicitNulls() { Map nulls = new HashMap<>(); + if (isSetCardAltID) { + addIfNull(nulls, JSON_PROPERTY_CARD_ALT_I_D, this.cardAltID); + } if (isSetCardBin) { addIfNull(nulls, JSON_PROPERTY_CARD_BIN, this.cardBin); } diff --git a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java index 1a6c0bb13..339342cf4 100644 --- a/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java +++ b/src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java @@ -58,6 +58,7 @@ ResponseAdditionalDataCommon.JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER, ResponseAdditionalDataCommon.JSON_PROPERTY_MERCHANT_ADVICE_CODE, ResponseAdditionalDataCommon.JSON_PROPERTY_MERCHANT_REFERENCE, + ResponseAdditionalDataCommon.JSON_PROPERTY_NETWORK_PROCESSING_MODE, ResponseAdditionalDataCommon.JSON_PROPERTY_NETWORK_TX_REFERENCE, ResponseAdditionalDataCommon.JSON_PROPERTY_OWNER_NAME, ResponseAdditionalDataCommon.JSON_PROPERTY_PAYMENT_ACCOUNT_REFERENCE, @@ -385,6 +386,12 @@ public static FraudRiskLevelEnum fromValue(String value) { /** Mark when the attribute has been explicitly set. */ private boolean isSetMerchantReference = false; + public static final String JSON_PROPERTY_NETWORK_PROCESSING_MODE = "networkProcessingMode"; + private String networkProcessingMode; + + /** Mark when the attribute has been explicitly set. */ + private boolean isSetNetworkProcessingMode = false; + public static final String JSON_PROPERTY_NETWORK_TX_REFERENCE = "networkTxReference"; private String networkTxReference; @@ -2078,6 +2085,59 @@ public void setMerchantReference(String merchantReference) { isSetMerchantReference = true; // mark as 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). + * + * @param networkProcessingMode 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). + * @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining + */ + public ResponseAdditionalDataCommon networkProcessingMode(String networkProcessingMode) { + this.networkProcessingMode = networkProcessingMode; + isSetNetworkProcessingMode = true; // mark as set + return this; + } + + /** + * 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). + * + * @return networkProcessingMode 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). + */ + @JsonProperty(JSON_PROPERTY_NETWORK_PROCESSING_MODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getNetworkProcessingMode() { + return networkProcessingMode; + } + + /** + * 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). + * + * @param networkProcessingMode 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). + */ + @JsonProperty(JSON_PROPERTY_NETWORK_PROCESSING_MODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNetworkProcessingMode(String networkProcessingMode) { + this.networkProcessingMode = networkProcessingMode; + isSetNetworkProcessingMode = true; // mark as set + } + /** * 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 @@ -3433,6 +3493,11 @@ public boolean equals(Object o) { && Objects.equals(this.merchantReference, responseAdditionalDataCommon.merchantReference) && Objects.equals( this.isSetMerchantReference, responseAdditionalDataCommon.isSetMerchantReference) + && Objects.equals( + this.networkProcessingMode, responseAdditionalDataCommon.networkProcessingMode) + && Objects.equals( + this.isSetNetworkProcessingMode, + responseAdditionalDataCommon.isSetNetworkProcessingMode) && Objects.equals(this.networkTxReference, responseAdditionalDataCommon.networkTxReference) && Objects.equals( this.isSetNetworkTxReference, responseAdditionalDataCommon.isSetNetworkTxReference) @@ -3621,6 +3686,8 @@ public int hashCode() { isSetMerchantAdviceCode, merchantReference, isSetMerchantReference, + networkProcessingMode, + isSetNetworkProcessingMode, networkTxReference, isSetNetworkTxReference, ownerName, @@ -3732,6 +3799,9 @@ public String toString() { .append("\n"); sb.append(" merchantAdviceCode: ").append(toIndentedString(merchantAdviceCode)).append("\n"); sb.append(" merchantReference: ").append(toIndentedString(merchantReference)).append("\n"); + sb.append(" networkProcessingMode: ") + .append(toIndentedString(networkProcessingMode)) + .append("\n"); sb.append(" networkTxReference: ").append(toIndentedString(networkTxReference)).append("\n"); sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n"); sb.append(" paymentAccountReference: ") @@ -3918,6 +3988,9 @@ public Map getExplicitNulls() { if (isSetMerchantReference) { addIfNull(nulls, JSON_PROPERTY_MERCHANT_REFERENCE, this.merchantReference); } + if (isSetNetworkProcessingMode) { + addIfNull(nulls, JSON_PROPERTY_NETWORK_PROCESSING_MODE, this.networkProcessingMode); + } if (isSetNetworkTxReference) { addIfNull(nulls, JSON_PROPERTY_NETWORK_TX_REFERENCE, this.networkTxReference); }