Skip to content

Commit 5774975

Browse files
authored
Merge branch 'main' into sdk-automation/negativebalancewarningwebhooks
2 parents 3340e5d + 4d52bd3 commit 5774975

File tree

4 files changed

+177
-1
lines changed

4 files changed

+177
-1
lines changed

src/main/java/com/adyen/model/checkout/CheckoutForwardRequest.java

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
@JsonPropertyOrder({
2424
CheckoutForwardRequest.JSON_PROPERTY_BASE_URL,
2525
CheckoutForwardRequest.JSON_PROPERTY_MERCHANT_ACCOUNT,
26+
CheckoutForwardRequest.JSON_PROPERTY_MERCHANT_REFERENCE,
2627
CheckoutForwardRequest.JSON_PROPERTY_OPTIONS,
2728
CheckoutForwardRequest.JSON_PROPERTY_PAYMENT_METHOD,
2829
CheckoutForwardRequest.JSON_PROPERTY_REQUEST,
@@ -42,6 +43,12 @@ public class CheckoutForwardRequest {
4243
/** Mark when the attribute has been explicitly set. */
4344
private boolean isSetMerchantAccount = false;
4445

46+
public static final String JSON_PROPERTY_MERCHANT_REFERENCE = "merchantReference";
47+
private String merchantReference;
48+
49+
/** Mark when the attribute has been explicitly set. */
50+
private boolean isSetMerchantReference = false;
51+
4552
public static final String JSON_PROPERTY_OPTIONS = "options";
4653
private CheckoutForwardRequestOptions options;
4754

@@ -156,6 +163,41 @@ public void setMerchantAccount(String merchantAccount) {
156163
isSetMerchantAccount = true; // mark as set
157164
}
158165

166+
/**
167+
* Merchant defined payment reference.
168+
*
169+
* @param merchantReference Merchant defined payment reference.
170+
* @return the current {@code CheckoutForwardRequest} instance, allowing for method chaining
171+
*/
172+
public CheckoutForwardRequest merchantReference(String merchantReference) {
173+
this.merchantReference = merchantReference;
174+
isSetMerchantReference = true; // mark as set
175+
return this;
176+
}
177+
178+
/**
179+
* Merchant defined payment reference.
180+
*
181+
* @return merchantReference Merchant defined payment reference.
182+
*/
183+
@JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE)
184+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
185+
public String getMerchantReference() {
186+
return merchantReference;
187+
}
188+
189+
/**
190+
* Merchant defined payment reference.
191+
*
192+
* @param merchantReference Merchant defined payment reference.
193+
*/
194+
@JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE)
195+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
196+
public void setMerchantReference(String merchantReference) {
197+
this.merchantReference = merchantReference;
198+
isSetMerchantReference = true; // mark as set
199+
}
200+
159201
/**
160202
* options
161203
*
@@ -389,6 +431,9 @@ public boolean equals(Object o) {
389431
&& Objects.equals(this.isSetBaseUrl, checkoutForwardRequest.isSetBaseUrl)
390432
&& Objects.equals(this.merchantAccount, checkoutForwardRequest.merchantAccount)
391433
&& Objects.equals(this.isSetMerchantAccount, checkoutForwardRequest.isSetMerchantAccount)
434+
&& Objects.equals(this.merchantReference, checkoutForwardRequest.merchantReference)
435+
&& Objects.equals(
436+
this.isSetMerchantReference, checkoutForwardRequest.isSetMerchantReference)
392437
&& Objects.equals(this.options, checkoutForwardRequest.options)
393438
&& Objects.equals(this.isSetOptions, checkoutForwardRequest.isSetOptions)
394439
&& Objects.equals(this.paymentMethod, checkoutForwardRequest.paymentMethod)
@@ -409,6 +454,8 @@ public int hashCode() {
409454
isSetBaseUrl,
410455
merchantAccount,
411456
isSetMerchantAccount,
457+
merchantReference,
458+
isSetMerchantReference,
412459
options,
413460
isSetOptions,
414461
paymentMethod,
@@ -427,6 +474,7 @@ public String toString() {
427474
sb.append("class CheckoutForwardRequest {\n");
428475
sb.append(" baseUrl: ").append(toIndentedString(baseUrl)).append("\n");
429476
sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n");
477+
sb.append(" merchantReference: ").append(toIndentedString(merchantReference)).append("\n");
430478
sb.append(" options: ").append(toIndentedString(options)).append("\n");
431479
sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n");
432480
sb.append(" request: ").append(toIndentedString(request)).append("\n");
@@ -464,6 +512,9 @@ public Map<String, Object> getExplicitNulls() {
464512
if (isSetMerchantAccount) {
465513
addIfNull(nulls, JSON_PROPERTY_MERCHANT_ACCOUNT, this.merchantAccount);
466514
}
515+
if (isSetMerchantReference) {
516+
addIfNull(nulls, JSON_PROPERTY_MERCHANT_REFERENCE, this.merchantReference);
517+
}
467518
if (isSetOptions) {
468519
addIfNull(nulls, JSON_PROPERTY_OPTIONS, this.options);
469520
}

src/main/java/com/adyen/model/checkout/CheckoutForwardResponse.java

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,18 @@
2121

2222
/** CheckoutForwardResponse */
2323
@JsonPropertyOrder({
24+
CheckoutForwardResponse.JSON_PROPERTY_MERCHANT_REFERENCE,
2425
CheckoutForwardResponse.JSON_PROPERTY_PSP_REFERENCE,
2526
CheckoutForwardResponse.JSON_PROPERTY_RESPONSE,
2627
CheckoutForwardResponse.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID
2728
})
2829
public class CheckoutForwardResponse {
30+
public static final String JSON_PROPERTY_MERCHANT_REFERENCE = "merchantReference";
31+
private String merchantReference;
32+
33+
/** Mark when the attribute has been explicitly set. */
34+
private boolean isSetMerchantReference = false;
35+
2936
public static final String JSON_PROPERTY_PSP_REFERENCE = "pspReference";
3037
private String pspReference;
3138

@@ -52,6 +59,41 @@ public class CheckoutForwardResponse {
5259

5360
public CheckoutForwardResponse() {}
5461

62+
/**
63+
* Merchant defined payment reference.
64+
*
65+
* @param merchantReference Merchant defined payment reference.
66+
* @return the current {@code CheckoutForwardResponse} instance, allowing for method chaining
67+
*/
68+
public CheckoutForwardResponse merchantReference(String merchantReference) {
69+
this.merchantReference = merchantReference;
70+
isSetMerchantReference = true; // mark as set
71+
return this;
72+
}
73+
74+
/**
75+
* Merchant defined payment reference.
76+
*
77+
* @return merchantReference Merchant defined payment reference.
78+
*/
79+
@JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE)
80+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
81+
public String getMerchantReference() {
82+
return merchantReference;
83+
}
84+
85+
/**
86+
* Merchant defined payment reference.
87+
*
88+
* @param merchantReference Merchant defined payment reference.
89+
*/
90+
@JsonProperty(JSON_PROPERTY_MERCHANT_REFERENCE)
91+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
92+
public void setMerchantReference(String merchantReference) {
93+
this.merchantReference = merchantReference;
94+
isSetMerchantReference = true; // mark as set
95+
}
96+
5597
/**
5698
* Adyen&#39;s 16-character reference associated with the transaction/request. This value is
5799
* globally unique. Use this reference when you communicate with us about this request.
@@ -196,7 +238,10 @@ public boolean equals(Object o) {
196238
return false;
197239
}
198240
CheckoutForwardResponse checkoutForwardResponse = (CheckoutForwardResponse) o;
199-
return Objects.equals(this.pspReference, checkoutForwardResponse.pspReference)
241+
return Objects.equals(this.merchantReference, checkoutForwardResponse.merchantReference)
242+
&& Objects.equals(
243+
this.isSetMerchantReference, checkoutForwardResponse.isSetMerchantReference)
244+
&& Objects.equals(this.pspReference, checkoutForwardResponse.pspReference)
200245
&& Objects.equals(this.isSetPspReference, checkoutForwardResponse.isSetPspReference)
201246
&& Objects.equals(this.response, checkoutForwardResponse.response)
202247
&& Objects.equals(this.isSetResponse, checkoutForwardResponse.isSetResponse)
@@ -208,6 +253,8 @@ public boolean equals(Object o) {
208253
@Override
209254
public int hashCode() {
210255
return Objects.hash(
256+
merchantReference,
257+
isSetMerchantReference,
211258
pspReference,
212259
isSetPspReference,
213260
response,
@@ -220,6 +267,7 @@ public int hashCode() {
220267
public String toString() {
221268
StringBuilder sb = new StringBuilder();
222269
sb.append("class CheckoutForwardResponse {\n");
270+
sb.append(" merchantReference: ").append(toIndentedString(merchantReference)).append("\n");
223271
sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n");
224272
sb.append(" response: ").append(toIndentedString(response)).append("\n");
225273
sb.append(" storedPaymentMethodId: ")
@@ -249,6 +297,9 @@ public Map<String, Object> getExplicitNulls() {
249297

250298
Map<String, Object> nulls = new HashMap<>();
251299

300+
if (isSetMerchantReference) {
301+
addIfNull(nulls, JSON_PROPERTY_MERCHANT_REFERENCE, this.merchantReference);
302+
}
252303
if (isSetPspReference) {
253304
addIfNull(nulls, JSON_PROPERTY_PSP_REFERENCE, this.pspReference);
254305
}

src/main/java/com/adyen/model/checkout/StoredPaymentMethodDetails.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,30 @@ public class StoredPaymentMethodDetails {
5959

6060
/** The payment method type. */
6161
public enum TypeEnum {
62+
ALIPAY_PLUS(String.valueOf("alipay_plus")),
63+
64+
ALIPAY_PLUS_ALIPAY_CN(String.valueOf("alipay_plus_alipay_cn")),
65+
66+
ALIPAY_PLUS_ALIPAY_HK(String.valueOf("alipay_plus_alipay_hk")),
67+
68+
ALIPAY_PLUS_DANA(String.valueOf("alipay_plus_dana")),
69+
70+
ALIPAY_PLUS_GCASH(String.valueOf("alipay_plus_gcash")),
71+
72+
ALIPAY_PLUS_KAKAOPAY(String.valueOf("alipay_plus_kakaopay")),
73+
74+
ALIPAY_PLUS_KPLUS(String.valueOf("alipay_plus_kplus")),
75+
76+
ALIPAY_PLUS_NAVERPAY(String.valueOf("alipay_plus_naverpay")),
77+
78+
ALIPAY_PLUS_RABBITLINEPAY(String.valueOf("alipay_plus_rabbitlinepay")),
79+
80+
ALIPAY_PLUS_TOSSPAY(String.valueOf("alipay_plus_tosspay")),
81+
82+
ALIPAY_PLUS_TOUCHNGO(String.valueOf("alipay_plus_touchngo")),
83+
84+
ALIPAY_PLUS_TRUEMONEY(String.valueOf("alipay_plus_truemoney")),
85+
6286
BCMC_MOBILE(String.valueOf("bcmc_mobile")),
6387

6488
BCMC_MOBILE_QR(String.valueOf("bcmc_mobile_QR")),

src/main/java/com/adyen/model/checkout/StoredPaymentMethodResource.java

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
/** StoredPaymentMethodResource */
2525
@JsonPropertyOrder({
2626
StoredPaymentMethodResource.JSON_PROPERTY_BRAND,
27+
StoredPaymentMethodResource.JSON_PROPERTY_CARD_BIN,
2728
StoredPaymentMethodResource.JSON_PROPERTY_EXPIRY_MONTH,
2829
StoredPaymentMethodResource.JSON_PROPERTY_EXPIRY_YEAR,
2930
StoredPaymentMethodResource.JSON_PROPERTY_EXTERNAL_RESPONSE_CODE,
@@ -49,6 +50,12 @@ public class StoredPaymentMethodResource {
4950
/** Mark when the attribute has been explicitly set. */
5051
private boolean isSetBrand = false;
5152

53+
public static final String JSON_PROPERTY_CARD_BIN = "cardBin";
54+
private String cardBin;
55+
56+
/** Mark when the attribute has been explicitly set. */
57+
private boolean isSetCardBin = false;
58+
5259
public static final String JSON_PROPERTY_EXPIRY_MONTH = "expiryMonth";
5360
private String expiryMonth;
5461

@@ -195,6 +202,41 @@ public void setBrand(String brand) {
195202
isSetBrand = true; // mark as set
196203
}
197204

205+
/**
206+
* The bank identification number (BIN) of the card.
207+
*
208+
* @param cardBin The bank identification number (BIN) of the card.
209+
* @return the current {@code StoredPaymentMethodResource} instance, allowing for method chaining
210+
*/
211+
public StoredPaymentMethodResource cardBin(String cardBin) {
212+
this.cardBin = cardBin;
213+
isSetCardBin = true; // mark as set
214+
return this;
215+
}
216+
217+
/**
218+
* The bank identification number (BIN) of the card.
219+
*
220+
* @return cardBin The bank identification number (BIN) of the card.
221+
*/
222+
@JsonProperty(JSON_PROPERTY_CARD_BIN)
223+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
224+
public String getCardBin() {
225+
return cardBin;
226+
}
227+
228+
/**
229+
* The bank identification number (BIN) of the card.
230+
*
231+
* @param cardBin The bank identification number (BIN) of the card.
232+
*/
233+
@JsonProperty(JSON_PROPERTY_CARD_BIN)
234+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
235+
public void setCardBin(String cardBin) {
236+
this.cardBin = cardBin;
237+
isSetCardBin = true; // mark as set
238+
}
239+
198240
/**
199241
* The month the card expires.
200242
*
@@ -917,6 +959,8 @@ public boolean equals(Object o) {
917959
StoredPaymentMethodResource storedPaymentMethodResource = (StoredPaymentMethodResource) o;
918960
return Objects.equals(this.brand, storedPaymentMethodResource.brand)
919961
&& Objects.equals(this.isSetBrand, storedPaymentMethodResource.isSetBrand)
962+
&& Objects.equals(this.cardBin, storedPaymentMethodResource.cardBin)
963+
&& Objects.equals(this.isSetCardBin, storedPaymentMethodResource.isSetCardBin)
920964
&& Objects.equals(this.expiryMonth, storedPaymentMethodResource.expiryMonth)
921965
&& Objects.equals(this.isSetExpiryMonth, storedPaymentMethodResource.isSetExpiryMonth)
922966
&& Objects.equals(this.expiryYear, storedPaymentMethodResource.expiryYear)
@@ -969,6 +1013,8 @@ public int hashCode() {
9691013
return Objects.hash(
9701014
brand,
9711015
isSetBrand,
1016+
cardBin,
1017+
isSetCardBin,
9721018
expiryMonth,
9731019
isSetExpiryMonth,
9741020
expiryYear,
@@ -1010,6 +1056,7 @@ public String toString() {
10101056
StringBuilder sb = new StringBuilder();
10111057
sb.append("class StoredPaymentMethodResource {\n");
10121058
sb.append(" brand: ").append(toIndentedString(brand)).append("\n");
1059+
sb.append(" cardBin: ").append(toIndentedString(cardBin)).append("\n");
10131060
sb.append(" expiryMonth: ").append(toIndentedString(expiryMonth)).append("\n");
10141061
sb.append(" expiryYear: ").append(toIndentedString(expiryYear)).append("\n");
10151062
sb.append(" externalResponseCode: ")
@@ -1060,6 +1107,9 @@ public Map<String, Object> getExplicitNulls() {
10601107
if (isSetBrand) {
10611108
addIfNull(nulls, JSON_PROPERTY_BRAND, this.brand);
10621109
}
1110+
if (isSetCardBin) {
1111+
addIfNull(nulls, JSON_PROPERTY_CARD_BIN, this.cardBin);
1112+
}
10631113
if (isSetExpiryMonth) {
10641114
addIfNull(nulls, JSON_PROPERTY_EXPIRY_MONTH, this.expiryMonth);
10651115
}

0 commit comments

Comments
 (0)