Skip to content

Commit 226de92

Browse files
AdyenAutomationBotgcatanese
authored andcommitted
[payment] Automated update from Adyen/adyen-openapi@6f2bb26
1 parent cae64f2 commit 226de92

2 files changed

Lines changed: 130 additions & 1 deletion

File tree

src/main/java/com/adyen/model/payment/ResponseAdditionalDataCard.java

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
/** ResponseAdditionalDataCard */
2727
@JsonPropertyOrder({
28+
ResponseAdditionalDataCard.JSON_PROPERTY_CARD_ALT_I_D,
2829
ResponseAdditionalDataCard.JSON_PROPERTY_CARD_BIN,
2930
ResponseAdditionalDataCard.JSON_PROPERTY_CARD_HOLDER_NAME,
3031
ResponseAdditionalDataCard.JSON_PROPERTY_CARD_ISSUING_BANK,
@@ -36,6 +37,12 @@
3637
ResponseAdditionalDataCard.JSON_PROPERTY_ISSUER_BIN
3738
})
3839
public class ResponseAdditionalDataCard {
40+
public static final String JSON_PROPERTY_CARD_ALT_I_D = "cardAltID";
41+
private String cardAltID;
42+
43+
/** Mark when the attribute has been explicitly set. */
44+
private boolean isSetCardAltID = false;
45+
3946
public static final String JSON_PROPERTY_CARD_BIN = "cardBin";
4047
private String cardBin;
4148

@@ -165,6 +172,47 @@ public static CardProductIdEnum fromValue(String value) {
165172

166173
public ResponseAdditionalDataCard() {}
167174

175+
/**
176+
* This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only in case of
177+
* Ecommerce Card Payment in India
178+
*
179+
* @param cardAltID This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only in
180+
* case of Ecommerce Card Payment in India
181+
* @return the current {@code ResponseAdditionalDataCard} instance, allowing for method chaining
182+
*/
183+
public ResponseAdditionalDataCard cardAltID(String cardAltID) {
184+
this.cardAltID = cardAltID;
185+
isSetCardAltID = true; // mark as set
186+
return this;
187+
}
188+
189+
/**
190+
* This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only in case of
191+
* Ecommerce Card Payment in India
192+
*
193+
* @return cardAltID This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only
194+
* in case of Ecommerce Card Payment in India
195+
*/
196+
@JsonProperty(JSON_PROPERTY_CARD_ALT_I_D)
197+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
198+
public String getCardAltID() {
199+
return cardAltID;
200+
}
201+
202+
/**
203+
* This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only in case of
204+
* Ecommerce Card Payment in India
205+
*
206+
* @param cardAltID This is an ALT ID (alternate ID) mapped to the Card PAN. > Returned only in
207+
* case of Ecommerce Card Payment in India
208+
*/
209+
@JsonProperty(JSON_PROPERTY_CARD_ALT_I_D)
210+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
211+
public void setCardAltID(String cardAltID) {
212+
this.cardAltID = cardAltID;
213+
isSetCardAltID = true; // mark as set
214+
}
215+
168216
/**
169217
* The first six digits of the card number. This is the [Bank Identification Number
170218
* (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin)
@@ -595,7 +643,9 @@ public boolean equals(Object o) {
595643
return false;
596644
}
597645
ResponseAdditionalDataCard responseAdditionalDataCard = (ResponseAdditionalDataCard) o;
598-
return Objects.equals(this.cardBin, responseAdditionalDataCard.cardBin)
646+
return Objects.equals(this.cardAltID, responseAdditionalDataCard.cardAltID)
647+
&& Objects.equals(this.isSetCardAltID, responseAdditionalDataCard.isSetCardAltID)
648+
&& Objects.equals(this.cardBin, responseAdditionalDataCard.cardBin)
599649
&& Objects.equals(this.isSetCardBin, responseAdditionalDataCard.isSetCardBin)
600650
&& Objects.equals(this.cardHolderName, responseAdditionalDataCard.cardHolderName)
601651
&& Objects.equals(this.isSetCardHolderName, responseAdditionalDataCard.isSetCardHolderName)
@@ -622,6 +672,8 @@ public boolean equals(Object o) {
622672
@Override
623673
public int hashCode() {
624674
return Objects.hash(
675+
cardAltID,
676+
isSetCardAltID,
625677
cardBin,
626678
isSetCardBin,
627679
cardHolderName,
@@ -646,6 +698,7 @@ public int hashCode() {
646698
public String toString() {
647699
StringBuilder sb = new StringBuilder();
648700
sb.append("class ResponseAdditionalDataCard {\n");
701+
sb.append(" cardAltID: ").append(toIndentedString(cardAltID)).append("\n");
649702
sb.append(" cardBin: ").append(toIndentedString(cardBin)).append("\n");
650703
sb.append(" cardHolderName: ").append(toIndentedString(cardHolderName)).append("\n");
651704
sb.append(" cardIssuingBank: ").append(toIndentedString(cardIssuingBank)).append("\n");
@@ -681,6 +734,9 @@ public Map<String, Object> getExplicitNulls() {
681734

682735
Map<String, Object> nulls = new HashMap<>();
683736

737+
if (isSetCardAltID) {
738+
addIfNull(nulls, JSON_PROPERTY_CARD_ALT_I_D, this.cardAltID);
739+
}
684740
if (isSetCardBin) {
685741
addIfNull(nulls, JSON_PROPERTY_CARD_BIN, this.cardBin);
686742
}

src/main/java/com/adyen/model/payment/ResponseAdditionalDataCommon.java

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
ResponseAdditionalDataCommon.JSON_PROPERTY_MC_BANK_NET_REFERENCE_NUMBER,
5959
ResponseAdditionalDataCommon.JSON_PROPERTY_MERCHANT_ADVICE_CODE,
6060
ResponseAdditionalDataCommon.JSON_PROPERTY_MERCHANT_REFERENCE,
61+
ResponseAdditionalDataCommon.JSON_PROPERTY_NETWORK_PROCESSING_MODE,
6162
ResponseAdditionalDataCommon.JSON_PROPERTY_NETWORK_TX_REFERENCE,
6263
ResponseAdditionalDataCommon.JSON_PROPERTY_OWNER_NAME,
6364
ResponseAdditionalDataCommon.JSON_PROPERTY_PAYMENT_ACCOUNT_REFERENCE,
@@ -385,6 +386,12 @@ public static FraudRiskLevelEnum fromValue(String value) {
385386
/** Mark when the attribute has been explicitly set. */
386387
private boolean isSetMerchantReference = false;
387388

389+
public static final String JSON_PROPERTY_NETWORK_PROCESSING_MODE = "networkProcessingMode";
390+
private String networkProcessingMode;
391+
392+
/** Mark when the attribute has been explicitly set. */
393+
private boolean isSetNetworkProcessingMode = false;
394+
388395
public static final String JSON_PROPERTY_NETWORK_TX_REFERENCE = "networkTxReference";
389396
private String networkTxReference;
390397

@@ -2078,6 +2085,59 @@ public void setMerchantReference(String merchantReference) {
20782085
isSetMerchantReference = true; // mark as set
20792086
}
20802087

2088+
/**
2089+
* Indicates the processing flow. Possible values: * **sale**: no separate capture required, funds
2090+
* are captured as part of the transaction * **auth**: separate capture is required. This might be
2091+
* automatic, depending on your [capture
2092+
* settings](https://docs.adyen.com/online-payments/capture#types-of-capture).
2093+
*
2094+
* @param networkProcessingMode Indicates the processing flow. Possible values: * **sale**: no
2095+
* separate capture required, funds are captured as part of the transaction * **auth**:
2096+
* separate capture is required. This might be automatic, depending on your [capture
2097+
* settings](https://docs.adyen.com/online-payments/capture#types-of-capture).
2098+
* @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining
2099+
*/
2100+
public ResponseAdditionalDataCommon networkProcessingMode(String networkProcessingMode) {
2101+
this.networkProcessingMode = networkProcessingMode;
2102+
isSetNetworkProcessingMode = true; // mark as set
2103+
return this;
2104+
}
2105+
2106+
/**
2107+
* Indicates the processing flow. Possible values: * **sale**: no separate capture required, funds
2108+
* are captured as part of the transaction * **auth**: separate capture is required. This might be
2109+
* automatic, depending on your [capture
2110+
* settings](https://docs.adyen.com/online-payments/capture#types-of-capture).
2111+
*
2112+
* @return networkProcessingMode Indicates the processing flow. Possible values: * **sale**: no
2113+
* separate capture required, funds are captured as part of the transaction * **auth**:
2114+
* separate capture is required. This might be automatic, depending on your [capture
2115+
* settings](https://docs.adyen.com/online-payments/capture#types-of-capture).
2116+
*/
2117+
@JsonProperty(JSON_PROPERTY_NETWORK_PROCESSING_MODE)
2118+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2119+
public String getNetworkProcessingMode() {
2120+
return networkProcessingMode;
2121+
}
2122+
2123+
/**
2124+
* Indicates the processing flow. Possible values: * **sale**: no separate capture required, funds
2125+
* are captured as part of the transaction * **auth**: separate capture is required. This might be
2126+
* automatic, depending on your [capture
2127+
* settings](https://docs.adyen.com/online-payments/capture#types-of-capture).
2128+
*
2129+
* @param networkProcessingMode Indicates the processing flow. Possible values: * **sale**: no
2130+
* separate capture required, funds are captured as part of the transaction * **auth**:
2131+
* separate capture is required. This might be automatic, depending on your [capture
2132+
* settings](https://docs.adyen.com/online-payments/capture#types-of-capture).
2133+
*/
2134+
@JsonProperty(JSON_PROPERTY_NETWORK_PROCESSING_MODE)
2135+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2136+
public void setNetworkProcessingMode(String networkProcessingMode) {
2137+
this.networkProcessingMode = networkProcessingMode;
2138+
isSetNetworkProcessingMode = true; // mark as set
2139+
}
2140+
20812141
/**
20822142
* Returned in the response if you are not tokenizing with Adyen and are using the
20832143
* Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either
@@ -3433,6 +3493,11 @@ public boolean equals(Object o) {
34333493
&& Objects.equals(this.merchantReference, responseAdditionalDataCommon.merchantReference)
34343494
&& Objects.equals(
34353495
this.isSetMerchantReference, responseAdditionalDataCommon.isSetMerchantReference)
3496+
&& Objects.equals(
3497+
this.networkProcessingMode, responseAdditionalDataCommon.networkProcessingMode)
3498+
&& Objects.equals(
3499+
this.isSetNetworkProcessingMode,
3500+
responseAdditionalDataCommon.isSetNetworkProcessingMode)
34363501
&& Objects.equals(this.networkTxReference, responseAdditionalDataCommon.networkTxReference)
34373502
&& Objects.equals(
34383503
this.isSetNetworkTxReference, responseAdditionalDataCommon.isSetNetworkTxReference)
@@ -3621,6 +3686,8 @@ public int hashCode() {
36213686
isSetMerchantAdviceCode,
36223687
merchantReference,
36233688
isSetMerchantReference,
3689+
networkProcessingMode,
3690+
isSetNetworkProcessingMode,
36243691
networkTxReference,
36253692
isSetNetworkTxReference,
36263693
ownerName,
@@ -3732,6 +3799,9 @@ public String toString() {
37323799
.append("\n");
37333800
sb.append(" merchantAdviceCode: ").append(toIndentedString(merchantAdviceCode)).append("\n");
37343801
sb.append(" merchantReference: ").append(toIndentedString(merchantReference)).append("\n");
3802+
sb.append(" networkProcessingMode: ")
3803+
.append(toIndentedString(networkProcessingMode))
3804+
.append("\n");
37353805
sb.append(" networkTxReference: ").append(toIndentedString(networkTxReference)).append("\n");
37363806
sb.append(" ownerName: ").append(toIndentedString(ownerName)).append("\n");
37373807
sb.append(" paymentAccountReference: ")
@@ -3918,6 +3988,9 @@ public Map<String, Object> getExplicitNulls() {
39183988
if (isSetMerchantReference) {
39193989
addIfNull(nulls, JSON_PROPERTY_MERCHANT_REFERENCE, this.merchantReference);
39203990
}
3991+
if (isSetNetworkProcessingMode) {
3992+
addIfNull(nulls, JSON_PROPERTY_NETWORK_PROCESSING_MODE, this.networkProcessingMode);
3993+
}
39213994
if (isSetNetworkTxReference) {
39223995
addIfNull(nulls, JSON_PROPERTY_NETWORK_TX_REFERENCE, this.networkTxReference);
39233996
}

0 commit comments

Comments
 (0)