Skip to content

Commit 4a37f1b

Browse files
AdyenAutomationBotAdyenAutomationBotgcatanese
authored
Code generation: update services and models (#1575)
* false[adyen-sdk-automation] automated change * style(fmt): code formatted * Restore missing enums * style(fmt): code formatted --------- Co-authored-by: AdyenAutomationBot <AdyenAutomationBot 38424300+AdyenAutomationBot@users.noreply.github.com> Co-authored-by: gcatanese <gcatanese@yahoo.com>
1 parent 0059c8b commit 4a37f1b

File tree

170 files changed

+6540
-906
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+6540
-906
lines changed

src/main/java/com/adyen/model/RequestOptions.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@
2323
import java.util.HashMap;
2424

2525
/**
26-
* Container for optional HTTP headers that can be included in API requests.
27-
* These options can be used to specify headers such as the Idempotency-Key, WWW-Authenticate
28-
* or other custom headers.
26+
* Container for optional HTTP headers that can be included in API requests. These options can be
27+
* used to specify headers such as the Idempotency-Key, WWW-Authenticate or other custom headers.
2928
*/
3029
public class RequestOptions {
3130
private String idempotencyKey;

src/main/java/com/adyen/model/balanceplatform/BalanceWebhookSettingAllOf.java

Lines changed: 0 additions & 137 deletions
This file was deleted.

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

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
AchDetails.JSON_PROPERTY_ENCRYPTED_BANK_LOCATION_ID,
3333
AchDetails.JSON_PROPERTY_OWNER_NAME,
3434
AchDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE,
35+
AchDetails.JSON_PROPERTY_SDK_DATA,
3536
AchDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID,
3637
AchDetails.JSON_PROPERTY_TRANSFER_INSTRUMENT_ID,
3738
AchDetails.JSON_PROPERTY_TYPE
@@ -158,6 +159,9 @@ public static BankAccountTypeEnum fromValue(String value) {
158159
@Deprecated // deprecated since Adyen Checkout API v49: Use `storedPaymentMethodId` instead.
159160
private String recurringDetailReference;
160161

162+
public static final String JSON_PROPERTY_SDK_DATA = "sdkData";
163+
private String sdkData;
164+
161165
public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId";
162166
private String storedPaymentMethodId;
163167

@@ -579,6 +583,40 @@ public void setRecurringDetailReference(String recurringDetailReference) {
579583
this.recurringDetailReference = recurringDetailReference;
580584
}
581585

586+
/**
587+
* Base64-encoded JSON object containing SDK related parameters required by the SDK
588+
*
589+
* @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK
590+
* @return the current {@code AchDetails} instance, allowing for method chaining
591+
*/
592+
public AchDetails sdkData(String sdkData) {
593+
this.sdkData = sdkData;
594+
return this;
595+
}
596+
597+
/**
598+
* Base64-encoded JSON object containing SDK related parameters required by the SDK
599+
*
600+
* @return sdkData Base64-encoded JSON object containing SDK related parameters required by the
601+
* SDK
602+
*/
603+
@JsonProperty(JSON_PROPERTY_SDK_DATA)
604+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
605+
public String getSdkData() {
606+
return sdkData;
607+
}
608+
609+
/**
610+
* Base64-encoded JSON object containing SDK related parameters required by the SDK
611+
*
612+
* @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK
613+
*/
614+
@JsonProperty(JSON_PROPERTY_SDK_DATA)
615+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
616+
public void setSdkData(String sdkData) {
617+
this.sdkData = sdkData;
618+
}
619+
582620
/**
583621
* This is the &#x60;recurringDetailReference&#x60; returned in the response when you created the
584622
* token.
@@ -709,6 +747,7 @@ public boolean equals(Object o) {
709747
&& Objects.equals(this.encryptedBankLocationId, achDetails.encryptedBankLocationId)
710748
&& Objects.equals(this.ownerName, achDetails.ownerName)
711749
&& Objects.equals(this.recurringDetailReference, achDetails.recurringDetailReference)
750+
&& Objects.equals(this.sdkData, achDetails.sdkData)
712751
&& Objects.equals(this.storedPaymentMethodId, achDetails.storedPaymentMethodId)
713752
&& Objects.equals(this.transferInstrumentId, achDetails.transferInstrumentId)
714753
&& Objects.equals(this.type, achDetails.type);
@@ -726,6 +765,7 @@ public int hashCode() {
726765
encryptedBankLocationId,
727766
ownerName,
728767
recurringDetailReference,
768+
sdkData,
729769
storedPaymentMethodId,
730770
transferInstrumentId,
731771
type);
@@ -750,6 +790,7 @@ public String toString() {
750790
sb.append(" recurringDetailReference: ")
751791
.append(toIndentedString(recurringDetailReference))
752792
.append("\n");
793+
sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n");
753794
sb.append(" storedPaymentMethodId: ")
754795
.append(toIndentedString(storedPaymentMethodId))
755796
.append("\n");

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

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -397,15 +397,16 @@ public void setEnhancedSchemeDataFreightAmount(String enhancedSchemeDataFreightA
397397

398398
/**
399399
* The code that identifies the item in a standardized commodity coding scheme. There are
400-
* different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS
401-
* commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS
402-
* commodity codes](https://www.census.gov/naics/) * [NAPCS commodity
400+
* different commodity coding schemes: * [UNSPSC commodity
401+
* codes](https://www.ungm.org/public/unspsc) * [HS commodity
402+
* codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity
403+
* codes](https://www.census.gov/naics/) * [NAPCS commodity
403404
* codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters *
404405
* Must not start with a space or be all spaces. * Must not be all zeros.
405406
*
406407
* @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in
407408
* a standardized commodity coding scheme. There are different commodity coding schemes: *
408-
* [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity
409+
* [UNSPSC commodity codes](https://www.ungm.org/public/unspsc) * [HS commodity
409410
* codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity
410411
* codes](https://www.census.gov/naics/) * [NAPCS commodity
411412
* codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters *
@@ -421,15 +422,16 @@ public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrCommodityCode
421422

422423
/**
423424
* The code that identifies the item in a standardized commodity coding scheme. There are
424-
* different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS
425-
* commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS
426-
* commodity codes](https://www.census.gov/naics/) * [NAPCS commodity
425+
* different commodity coding schemes: * [UNSPSC commodity
426+
* codes](https://www.ungm.org/public/unspsc) * [HS commodity
427+
* codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity
428+
* codes](https://www.census.gov/naics/) * [NAPCS commodity
427429
* codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters *
428430
* Must not start with a space or be all spaces. * Must not be all zeros.
429431
*
430432
* @return enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item
431433
* in a standardized commodity coding scheme. There are different commodity coding schemes: *
432-
* [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity
434+
* [UNSPSC commodity codes](https://www.ungm.org/public/unspsc) * [HS commodity
433435
* codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity
434436
* codes](https://www.census.gov/naics/) * [NAPCS commodity
435437
* codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters *
@@ -443,15 +445,16 @@ public String getEnhancedSchemeDataItemDetailLineItemNrCommodityCode() {
443445

444446
/**
445447
* The code that identifies the item in a standardized commodity coding scheme. There are
446-
* different commodity coding schemes: * [UNSPSC commodity codes](https://www.unspsc.org/) * [HS
447-
* commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS
448-
* commodity codes](https://www.census.gov/naics/) * [NAPCS commodity
448+
* different commodity coding schemes: * [UNSPSC commodity
449+
* codes](https://www.ungm.org/public/unspsc) * [HS commodity
450+
* codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity
451+
* codes](https://www.census.gov/naics/) * [NAPCS commodity
449452
* codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters *
450453
* Must not start with a space or be all spaces. * Must not be all zeros.
451454
*
452455
* @param enhancedSchemeDataItemDetailLineItemNrCommodityCode The code that identifies the item in
453456
* a standardized commodity coding scheme. There are different commodity coding schemes: *
454-
* [UNSPSC commodity codes](https://www.unspsc.org/) * [HS commodity
457+
* [UNSPSC commodity codes](https://www.ungm.org/public/unspsc) * [HS commodity
455458
* codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity
456459
* codes](https://www.census.gov/naics/) * [NAPCS commodity
457460
* codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters *

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

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@
2424
/** AffirmDetails */
2525
@JsonPropertyOrder({
2626
AffirmDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID,
27+
AffirmDetails.JSON_PROPERTY_SDK_DATA,
2728
AffirmDetails.JSON_PROPERTY_TYPE
2829
})
2930
public class AffirmDetails {
3031
public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId";
3132
private String checkoutAttemptId;
3233

34+
public static final String JSON_PROPERTY_SDK_DATA = "sdkData";
35+
private String sdkData;
36+
3337
/** **affirm** */
3438
public enum TypeEnum {
3539
AFFIRM(String.valueOf("affirm"));
@@ -107,6 +111,40 @@ public void setCheckoutAttemptId(String checkoutAttemptId) {
107111
this.checkoutAttemptId = checkoutAttemptId;
108112
}
109113

114+
/**
115+
* Base64-encoded JSON object containing SDK related parameters required by the SDK
116+
*
117+
* @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK
118+
* @return the current {@code AffirmDetails} instance, allowing for method chaining
119+
*/
120+
public AffirmDetails sdkData(String sdkData) {
121+
this.sdkData = sdkData;
122+
return this;
123+
}
124+
125+
/**
126+
* Base64-encoded JSON object containing SDK related parameters required by the SDK
127+
*
128+
* @return sdkData Base64-encoded JSON object containing SDK related parameters required by the
129+
* SDK
130+
*/
131+
@JsonProperty(JSON_PROPERTY_SDK_DATA)
132+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
133+
public String getSdkData() {
134+
return sdkData;
135+
}
136+
137+
/**
138+
* Base64-encoded JSON object containing SDK related parameters required by the SDK
139+
*
140+
* @param sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK
141+
*/
142+
@JsonProperty(JSON_PROPERTY_SDK_DATA)
143+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
144+
public void setSdkData(String sdkData) {
145+
this.sdkData = sdkData;
146+
}
147+
110148
/**
111149
* **affirm**
112150
*
@@ -151,19 +189,21 @@ public boolean equals(Object o) {
151189
}
152190
AffirmDetails affirmDetails = (AffirmDetails) o;
153191
return Objects.equals(this.checkoutAttemptId, affirmDetails.checkoutAttemptId)
192+
&& Objects.equals(this.sdkData, affirmDetails.sdkData)
154193
&& Objects.equals(this.type, affirmDetails.type);
155194
}
156195

157196
@Override
158197
public int hashCode() {
159-
return Objects.hash(checkoutAttemptId, type);
198+
return Objects.hash(checkoutAttemptId, sdkData, type);
160199
}
161200

162201
@Override
163202
public String toString() {
164203
StringBuilder sb = new StringBuilder();
165204
sb.append("class AffirmDetails {\n");
166205
sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n");
206+
sb.append(" sdkData: ").append(toIndentedString(sdkData)).append("\n");
167207
sb.append(" type: ").append(toIndentedString(type)).append("\n");
168208
sb.append("}");
169209
return sb.toString();

0 commit comments

Comments
 (0)