Skip to content

Commit 59765a0

Browse files
authored
Merge pull request #1365 from Adyen/sdk-automation/models
Update all services
2 parents f192c83 + f7b2795 commit 59765a0

File tree

14 files changed

+916
-248
lines changed

14 files changed

+916
-248
lines changed

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

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,21 @@
3535
*/
3636
@JsonPropertyOrder({
3737
CardDetailsResponse.JSON_PROPERTY_BRANDS,
38+
CardDetailsResponse.JSON_PROPERTY_FUNDING_SOURCE,
39+
CardDetailsResponse.JSON_PROPERTY_IS_CARD_COMMERCIAL,
3840
CardDetailsResponse.JSON_PROPERTY_ISSUING_COUNTRY_CODE
3941
})
4042

4143
public class CardDetailsResponse {
4244
public static final String JSON_PROPERTY_BRANDS = "brands";
4345
private List<CardBrandDetails> brands = null;
4446

47+
public static final String JSON_PROPERTY_FUNDING_SOURCE = "fundingSource";
48+
private String fundingSource;
49+
50+
public static final String JSON_PROPERTY_IS_CARD_COMMERCIAL = "isCardCommercial";
51+
private Boolean isCardCommercial;
52+
4553
public static final String JSON_PROPERTY_ISSUING_COUNTRY_CODE = "issuingCountryCode";
4654
private String issuingCountryCode;
4755

@@ -86,6 +94,66 @@ public void setBrands(List<CardBrandDetails> brands) {
8694
}
8795

8896

97+
public CardDetailsResponse fundingSource(String fundingSource) {
98+
this.fundingSource = fundingSource;
99+
return this;
100+
}
101+
102+
/**
103+
* The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**.
104+
* @return fundingSource
105+
**/
106+
@ApiModelProperty(value = "The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**.")
107+
@JsonProperty(JSON_PROPERTY_FUNDING_SOURCE)
108+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
109+
110+
public String getFundingSource() {
111+
return fundingSource;
112+
}
113+
114+
115+
/**
116+
* The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**.
117+
*
118+
* @param fundingSource
119+
*/
120+
@JsonProperty(JSON_PROPERTY_FUNDING_SOURCE)
121+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
122+
public void setFundingSource(String fundingSource) {
123+
this.fundingSource = fundingSource;
124+
}
125+
126+
127+
public CardDetailsResponse isCardCommercial(Boolean isCardCommercial) {
128+
this.isCardCommercial = isCardCommercial;
129+
return this;
130+
}
131+
132+
/**
133+
* Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card.
134+
* @return isCardCommercial
135+
**/
136+
@ApiModelProperty(value = "Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card.")
137+
@JsonProperty(JSON_PROPERTY_IS_CARD_COMMERCIAL)
138+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
139+
140+
public Boolean getIsCardCommercial() {
141+
return isCardCommercial;
142+
}
143+
144+
145+
/**
146+
* Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card.
147+
*
148+
* @param isCardCommercial
149+
*/
150+
@JsonProperty(JSON_PROPERTY_IS_CARD_COMMERCIAL)
151+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
152+
public void setIsCardCommercial(Boolean isCardCommercial) {
153+
this.isCardCommercial = isCardCommercial;
154+
}
155+
156+
89157
public CardDetailsResponse issuingCountryCode(String issuingCountryCode) {
90158
this.issuingCountryCode = issuingCountryCode;
91159
return this;
@@ -129,19 +197,23 @@ public boolean equals(Object o) {
129197
}
130198
CardDetailsResponse cardDetailsResponse = (CardDetailsResponse) o;
131199
return Objects.equals(this.brands, cardDetailsResponse.brands) &&
200+
Objects.equals(this.fundingSource, cardDetailsResponse.fundingSource) &&
201+
Objects.equals(this.isCardCommercial, cardDetailsResponse.isCardCommercial) &&
132202
Objects.equals(this.issuingCountryCode, cardDetailsResponse.issuingCountryCode);
133203
}
134204

135205
@Override
136206
public int hashCode() {
137-
return Objects.hash(brands, issuingCountryCode);
207+
return Objects.hash(brands, fundingSource, isCardCommercial, issuingCountryCode);
138208
}
139209

140210
@Override
141211
public String toString() {
142212
StringBuilder sb = new StringBuilder();
143213
sb.append("class CardDetailsResponse {\n");
144214
sb.append(" brands: ").append(toIndentedString(brands)).append("\n");
215+
sb.append(" fundingSource: ").append(toIndentedString(fundingSource)).append("\n");
216+
sb.append(" isCardCommercial: ").append(toIndentedString(isCardCommercial)).append("\n");
145217
sb.append(" issuingCountryCode: ").append(toIndentedString(issuingCountryCode)).append("\n");
146218
sb.append("}");
147219
return sb.toString();

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ public CreateOrderRequest expiresAt(String expiresAt) {
9090
}
9191

9292
/**
93-
* The date that order expires; e.g. 2019-03-23T12:25:28Z. If not provided, the default expiry duration is 1 day.
93+
* The date when the order should expire. If not provided, the default expiry duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**.
9494
* @return expiresAt
9595
**/
96-
@ApiModelProperty(value = "The date that order expires; e.g. 2019-03-23T12:25:28Z. If not provided, the default expiry duration is 1 day.")
96+
@ApiModelProperty(value = "The date when the order should expire. If not provided, the default expiry duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**.")
9797
@JsonProperty(JSON_PROPERTY_EXPIRES_AT)
9898
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
9999

@@ -103,7 +103,7 @@ public String getExpiresAt() {
103103

104104

105105
/**
106-
* The date that order expires; e.g. 2019-03-23T12:25:28Z. If not provided, the default expiry duration is 1 day.
106+
* The date when the order should expire. If not provided, the default expiry duration is 1 day. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**.
107107
*
108108
* @param expiresAt
109109
*/

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

Lines changed: 80 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
FundRecipient.JSON_PROPERTY_SUB_MERCHANT,
4646
FundRecipient.JSON_PROPERTY_TELEPHONE_NUMBER,
4747
FundRecipient.JSON_PROPERTY_WALLET_IDENTIFIER,
48-
FundRecipient.JSON_PROPERTY_WALLET_OWNER_TAX_ID
48+
FundRecipient.JSON_PROPERTY_WALLET_OWNER_TAX_ID,
49+
FundRecipient.JSON_PROPERTY_WALLET_PURPOSE
4950
})
5051

5152
public class FundRecipient {
@@ -82,6 +83,50 @@ public class FundRecipient {
8283
public static final String JSON_PROPERTY_WALLET_OWNER_TAX_ID = "walletOwnerTaxId";
8384
private String walletOwnerTaxId;
8485

86+
/**
87+
* The purpose of a digital wallet transaction
88+
*/
89+
public enum WalletPurposeEnum {
90+
IDENTIFIEDBOLETO("identifiedBoleto"),
91+
92+
TRANSFERDIFFERENTWALLET("transferDifferentWallet"),
93+
94+
TRANSFEROWNWALLET("transferOwnWallet"),
95+
96+
TRANSFERSAMEWALLET("transferSameWallet"),
97+
98+
UNIDENTIFIEDBOLETO("unidentifiedBoleto");
99+
100+
private String value;
101+
102+
WalletPurposeEnum(String value) {
103+
this.value = value;
104+
}
105+
106+
@JsonValue
107+
public String getValue() {
108+
return value;
109+
}
110+
111+
@Override
112+
public String toString() {
113+
return String.valueOf(value);
114+
}
115+
116+
@JsonCreator
117+
public static WalletPurposeEnum fromValue(String value) {
118+
for (WalletPurposeEnum b : WalletPurposeEnum.values()) {
119+
if (b.value.equals(value)) {
120+
return b;
121+
}
122+
}
123+
throw new IllegalArgumentException("Unexpected value '" + value + "'");
124+
}
125+
}
126+
127+
public static final String JSON_PROPERTY_WALLET_PURPOSE = "walletPurpose";
128+
private WalletPurposeEnum walletPurpose;
129+
85130
public FundRecipient() {
86131
}
87132

@@ -415,6 +460,36 @@ public void setWalletOwnerTaxId(String walletOwnerTaxId) {
415460
}
416461

417462

463+
public FundRecipient walletPurpose(WalletPurposeEnum walletPurpose) {
464+
this.walletPurpose = walletPurpose;
465+
return this;
466+
}
467+
468+
/**
469+
* The purpose of a digital wallet transaction
470+
* @return walletPurpose
471+
**/
472+
@ApiModelProperty(value = "The purpose of a digital wallet transaction")
473+
@JsonProperty(JSON_PROPERTY_WALLET_PURPOSE)
474+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
475+
476+
public WalletPurposeEnum getWalletPurpose() {
477+
return walletPurpose;
478+
}
479+
480+
481+
/**
482+
* The purpose of a digital wallet transaction
483+
*
484+
* @param walletPurpose
485+
*/
486+
@JsonProperty(JSON_PROPERTY_WALLET_PURPOSE)
487+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
488+
public void setWalletPurpose(WalletPurposeEnum walletPurpose) {
489+
this.walletPurpose = walletPurpose;
490+
}
491+
492+
418493
/**
419494
* Return true if this FundRecipient object is equal to o.
420495
*/
@@ -437,12 +512,13 @@ public boolean equals(Object o) {
437512
Objects.equals(this.subMerchant, fundRecipient.subMerchant) &&
438513
Objects.equals(this.telephoneNumber, fundRecipient.telephoneNumber) &&
439514
Objects.equals(this.walletIdentifier, fundRecipient.walletIdentifier) &&
440-
Objects.equals(this.walletOwnerTaxId, fundRecipient.walletOwnerTaxId);
515+
Objects.equals(this.walletOwnerTaxId, fundRecipient.walletOwnerTaxId) &&
516+
Objects.equals(this.walletPurpose, fundRecipient.walletPurpose);
441517
}
442518

443519
@Override
444520
public int hashCode() {
445-
return Objects.hash(IBAN, billingAddress, paymentMethod, shopperEmail, shopperName, shopperReference, storedPaymentMethodId, subMerchant, telephoneNumber, walletIdentifier, walletOwnerTaxId);
521+
return Objects.hash(IBAN, billingAddress, paymentMethod, shopperEmail, shopperName, shopperReference, storedPaymentMethodId, subMerchant, telephoneNumber, walletIdentifier, walletOwnerTaxId, walletPurpose);
446522
}
447523

448524
@Override
@@ -460,6 +536,7 @@ public String toString() {
460536
sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n");
461537
sb.append(" walletIdentifier: ").append(toIndentedString(walletIdentifier)).append("\n");
462538
sb.append(" walletOwnerTaxId: ").append(toIndentedString(walletOwnerTaxId)).append("\n");
539+
sb.append(" walletPurpose: ").append(toIndentedString(walletPurpose)).append("\n");
463540
sb.append("}");
464541
return sb.toString();
465542
}

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

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,26 @@
3232
*/
3333
@JsonPropertyOrder({
3434
PayToDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID,
35+
PayToDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE,
3536
PayToDetails.JSON_PROPERTY_SHOPPER_ACCOUNT_IDENTIFIER,
37+
PayToDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID,
3638
PayToDetails.JSON_PROPERTY_TYPE
3739
})
3840

3941
public class PayToDetails {
4042
public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId";
4143
private String checkoutAttemptId;
4244

45+
public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE = "recurringDetailReference";
46+
@Deprecated
47+
private String recurringDetailReference;
48+
4349
public static final String JSON_PROPERTY_SHOPPER_ACCOUNT_IDENTIFIER = "shopperAccountIdentifier";
4450
private String shopperAccountIdentifier;
4551

52+
public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId";
53+
private String storedPaymentMethodId;
54+
4655
/**
4756
* **payto**
4857
*/
@@ -112,6 +121,40 @@ public void setCheckoutAttemptId(String checkoutAttemptId) {
112121
}
113122

114123

124+
@Deprecated
125+
public PayToDetails recurringDetailReference(String recurringDetailReference) {
126+
this.recurringDetailReference = recurringDetailReference;
127+
return this;
128+
}
129+
130+
/**
131+
* This is the &#x60;recurringDetailReference&#x60; returned in the response when you created the token.
132+
* @return recurringDetailReference
133+
* @deprecated
134+
**/
135+
@Deprecated
136+
@ApiModelProperty(value = "This is the `recurringDetailReference` returned in the response when you created the token.")
137+
@JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE)
138+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
139+
140+
public String getRecurringDetailReference() {
141+
return recurringDetailReference;
142+
}
143+
144+
145+
/**
146+
* This is the &#x60;recurringDetailReference&#x60; returned in the response when you created the token.
147+
*
148+
* @param recurringDetailReference
149+
*/
150+
@Deprecated
151+
@JsonProperty(JSON_PROPERTY_RECURRING_DETAIL_REFERENCE)
152+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
153+
public void setRecurringDetailReference(String recurringDetailReference) {
154+
this.recurringDetailReference = recurringDetailReference;
155+
}
156+
157+
115158
public PayToDetails shopperAccountIdentifier(String shopperAccountIdentifier) {
116159
this.shopperAccountIdentifier = shopperAccountIdentifier;
117160
return this;
@@ -142,6 +185,36 @@ public void setShopperAccountIdentifier(String shopperAccountIdentifier) {
142185
}
143186

144187

188+
public PayToDetails storedPaymentMethodId(String storedPaymentMethodId) {
189+
this.storedPaymentMethodId = storedPaymentMethodId;
190+
return this;
191+
}
192+
193+
/**
194+
* This is the &#x60;recurringDetailReference&#x60; returned in the response when you created the token.
195+
* @return storedPaymentMethodId
196+
**/
197+
@ApiModelProperty(value = "This is the `recurringDetailReference` returned in the response when you created the token.")
198+
@JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID)
199+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
200+
201+
public String getStoredPaymentMethodId() {
202+
return storedPaymentMethodId;
203+
}
204+
205+
206+
/**
207+
* This is the &#x60;recurringDetailReference&#x60; returned in the response when you created the token.
208+
*
209+
* @param storedPaymentMethodId
210+
*/
211+
@JsonProperty(JSON_PROPERTY_STORED_PAYMENT_METHOD_ID)
212+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
213+
public void setStoredPaymentMethodId(String storedPaymentMethodId) {
214+
this.storedPaymentMethodId = storedPaymentMethodId;
215+
}
216+
217+
145218
public PayToDetails type(TypeEnum type) {
146219
this.type = type;
147220
return this;
@@ -185,21 +258,25 @@ public boolean equals(Object o) {
185258
}
186259
PayToDetails payToDetails = (PayToDetails) o;
187260
return Objects.equals(this.checkoutAttemptId, payToDetails.checkoutAttemptId) &&
261+
Objects.equals(this.recurringDetailReference, payToDetails.recurringDetailReference) &&
188262
Objects.equals(this.shopperAccountIdentifier, payToDetails.shopperAccountIdentifier) &&
263+
Objects.equals(this.storedPaymentMethodId, payToDetails.storedPaymentMethodId) &&
189264
Objects.equals(this.type, payToDetails.type);
190265
}
191266

192267
@Override
193268
public int hashCode() {
194-
return Objects.hash(checkoutAttemptId, shopperAccountIdentifier, type);
269+
return Objects.hash(checkoutAttemptId, recurringDetailReference, shopperAccountIdentifier, storedPaymentMethodId, type);
195270
}
196271

197272
@Override
198273
public String toString() {
199274
StringBuilder sb = new StringBuilder();
200275
sb.append("class PayToDetails {\n");
201276
sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n");
277+
sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n");
202278
sb.append(" shopperAccountIdentifier: ").append(toIndentedString(shopperAccountIdentifier)).append("\n");
279+
sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n");
203280
sb.append(" type: ").append(toIndentedString(type)).append("\n");
204281
sb.append("}");
205282
return sb.toString();

0 commit comments

Comments
 (0)