Skip to content

Commit 0b26070

Browse files
committed
Reverting unwanted modifications
1 parent af1c6b2 commit 0b26070

File tree

7 files changed

+32
-223
lines changed

7 files changed

+32
-223
lines changed

src/main/java/com/adyen/model/binlookup/Recurring.java

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,14 @@ public class Recurring {
4141
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
4242
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
4343
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a
44-
* payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use
45-
* this when you store payment details and send the raw card number or network token directly in
46-
* your API request.
44+
* payout](https://docs.adyen.com/online-payments/online-payouts).
4745
*/
4846
public enum ContractEnum {
4947
ONECLICK(String.valueOf("ONECLICK")),
5048

51-
ONECLICK_RECURRING(String.valueOf("ONECLICK,RECURRING")),
52-
5349
RECURRING(String.valueOf("RECURRING")),
5450

55-
PAYOUT(String.valueOf("PAYOUT")),
56-
57-
EXTERNAL(String.valueOf("EXTERNAL"));
51+
PAYOUT(String.valueOf("PAYOUT"));
5852

5953
private static final Logger LOG = Logger.getLogger(ContractEnum.class.getName());
6054

@@ -163,9 +157,7 @@ public Recurring() {}
163157
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
164158
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
165159
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a
166-
* payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use
167-
* this when you store payment details and send the raw card number or network token directly in
168-
* your API request.
160+
* payout](https://docs.adyen.com/online-payments/online-payouts).
169161
*
170162
* @param contract The type of recurring contract to be used. Possible values: *
171163
* `ONECLICK` – Payment details can be used to initiate a one-click payment, where
@@ -176,9 +168,7 @@ public Recurring() {}
176168
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
177169
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
178170
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make
179-
* a payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` -
180-
* Use this when you store payment details and send the raw card number or network token
181-
* directly in your API request.
171+
* a payout](https://docs.adyen.com/online-payments/online-payouts).
182172
* @return the current {@code Recurring} instance, allowing for method chaining
183173
*/
184174
public Recurring contract(ContractEnum contract) {
@@ -196,9 +186,7 @@ public Recurring contract(ContractEnum contract) {
196186
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
197187
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
198188
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a
199-
* payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use
200-
* this when you store payment details and send the raw card number or network token directly in
201-
* your API request.
189+
* payout](https://docs.adyen.com/online-payments/online-payouts).
202190
*
203191
* @return contract The type of recurring contract to be used. Possible values: *
204192
* `ONECLICK` – Payment details can be used to initiate a one-click payment, where
@@ -209,9 +197,7 @@ public Recurring contract(ContractEnum contract) {
209197
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
210198
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
211199
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make
212-
* a payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` -
213-
* Use this when you store payment details and send the raw card number or network token
214-
* directly in your API request.
200+
* a payout](https://docs.adyen.com/online-payments/online-payouts).
215201
*/
216202
@JsonProperty(JSON_PROPERTY_CONTRACT)
217203
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -229,9 +215,7 @@ public ContractEnum getContract() {
229215
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
230216
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
231217
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a
232-
* payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use
233-
* this when you store payment details and send the raw card number or network token directly in
234-
* your API request.
218+
* payout](https://docs.adyen.com/online-payments/online-payouts).
235219
*
236220
* @param contract The type of recurring contract to be used. Possible values: *
237221
* `ONECLICK` – Payment details can be used to initiate a one-click payment, where
@@ -242,9 +226,7 @@ public ContractEnum getContract() {
242226
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
243227
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
244228
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make
245-
* a payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` -
246-
* Use this when you store payment details and send the raw card number or network token
247-
* directly in your API request.
229+
* a payout](https://docs.adyen.com/online-payments/online-payouts).
248230
*/
249231
@JsonProperty(JSON_PROPERTY_CONTRACT)
250232
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ public static ShopperInteractionEnum fromValue(String value) {
428428
private String shopperLocale;
429429

430430
public static final String JSON_PROPERTY_SHOPPER_NAME = "shopperName";
431-
private ShopperName shopperName;
431+
private Name shopperName;
432432

433433
public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference";
434434
private String shopperReference;
@@ -2582,7 +2582,7 @@ public void setShopperLocale(String shopperLocale) {
25822582
* @param shopperName
25832583
* @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining
25842584
*/
2585-
public CreateCheckoutSessionRequest shopperName(ShopperName shopperName) {
2585+
public CreateCheckoutSessionRequest shopperName(Name shopperName) {
25862586
this.shopperName = shopperName;
25872587
return this;
25882588
}
@@ -2594,7 +2594,7 @@ public CreateCheckoutSessionRequest shopperName(ShopperName shopperName) {
25942594
*/
25952595
@JsonProperty(JSON_PROPERTY_SHOPPER_NAME)
25962596
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2597-
public ShopperName getShopperName() {
2597+
public Name getShopperName() {
25982598
return shopperName;
25992599
}
26002600

@@ -2605,7 +2605,7 @@ public ShopperName getShopperName() {
26052605
*/
26062606
@JsonProperty(JSON_PROPERTY_SHOPPER_NAME)
26072607
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2608-
public void setShopperName(ShopperName shopperName) {
2608+
public void setShopperName(Name shopperName) {
26092609
this.shopperName = shopperName;
26102610
}
26112611

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ public static ShopperInteractionEnum fromValue(String value) {
436436
private String shopperLocale;
437437

438438
public static final String JSON_PROPERTY_SHOPPER_NAME = "shopperName";
439-
private ShopperName shopperName;
439+
private Name shopperName;
440440

441441
public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference";
442442
private String shopperReference;
@@ -2690,7 +2690,7 @@ public void setShopperLocale(String shopperLocale) {
26902690
* @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method
26912691
* chaining
26922692
*/
2693-
public CreateCheckoutSessionResponse shopperName(ShopperName shopperName) {
2693+
public CreateCheckoutSessionResponse shopperName(Name shopperName) {
26942694
this.shopperName = shopperName;
26952695
return this;
26962696
}
@@ -2702,7 +2702,7 @@ public CreateCheckoutSessionResponse shopperName(ShopperName shopperName) {
27022702
*/
27032703
@JsonProperty(JSON_PROPERTY_SHOPPER_NAME)
27042704
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2705-
public ShopperName getShopperName() {
2705+
public Name getShopperName() {
27062706
return shopperName;
27072707
}
27082708

@@ -2713,7 +2713,7 @@ public ShopperName getShopperName() {
27132713
*/
27142714
@JsonProperty(JSON_PROPERTY_SHOPPER_NAME)
27152715
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2716-
public void setShopperName(ShopperName shopperName) {
2716+
public void setShopperName(Name shopperName) {
27172717
this.shopperName = shopperName;
27182718
}
27192719

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ public static ShopperInteractionEnum fromValue(String value) {
342342
private String shopperLocale;
343343

344344
public static final String JSON_PROPERTY_SHOPPER_NAME = "shopperName";
345-
private ShopperName shopperName;
345+
private Name shopperName;
346346

347347
public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference";
348348
private String shopperReference;
@@ -2003,7 +2003,7 @@ public void setShopperLocale(String shopperLocale) {
20032003
* @param shopperName
20042004
* @return the current {@code DonationPaymentRequest} instance, allowing for method chaining
20052005
*/
2006-
public DonationPaymentRequest shopperName(ShopperName shopperName) {
2006+
public DonationPaymentRequest shopperName(Name shopperName) {
20072007
this.shopperName = shopperName;
20082008
return this;
20092009
}
@@ -2015,7 +2015,7 @@ public DonationPaymentRequest shopperName(ShopperName shopperName) {
20152015
*/
20162016
@JsonProperty(JSON_PROPERTY_SHOPPER_NAME)
20172017
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2018-
public ShopperName getShopperName() {
2018+
public Name getShopperName() {
20192019
return shopperName;
20202020
}
20212021

@@ -2026,7 +2026,7 @@ public ShopperName getShopperName() {
20262026
*/
20272027
@JsonProperty(JSON_PROPERTY_SHOPPER_NAME)
20282028
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2029-
public void setShopperName(ShopperName shopperName) {
2029+
public void setShopperName(Name shopperName) {
20302030
this.shopperName = shopperName;
20312031
}
20322032

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ public static ShopperInteractionEnum fromValue(String value) {
529529
private String shopperLocale;
530530

531531
public static final String JSON_PROPERTY_SHOPPER_NAME = "shopperName";
532-
private ShopperName shopperName;
532+
private Name shopperName;
533533

534534
public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference";
535535
private String shopperReference;
@@ -3151,7 +3151,7 @@ public void setShopperLocale(String shopperLocale) {
31513151
* @param shopperName
31523152
* @return the current {@code PaymentRequest} instance, allowing for method chaining
31533153
*/
3154-
public PaymentRequest shopperName(ShopperName shopperName) {
3154+
public PaymentRequest shopperName(Name shopperName) {
31553155
this.shopperName = shopperName;
31563156
return this;
31573157
}
@@ -3163,7 +3163,7 @@ public PaymentRequest shopperName(ShopperName shopperName) {
31633163
*/
31643164
@JsonProperty(JSON_PROPERTY_SHOPPER_NAME)
31653165
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
3166-
public ShopperName getShopperName() {
3166+
public Name getShopperName() {
31673167
return shopperName;
31683168
}
31693169

@@ -3174,7 +3174,7 @@ public ShopperName getShopperName() {
31743174
*/
31753175
@JsonProperty(JSON_PROPERTY_SHOPPER_NAME)
31763176
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
3177-
public void setShopperName(ShopperName shopperName) {
3177+
public void setShopperName(Name shopperName) {
31783178
this.shopperName = shopperName;
31793179
}
31803180

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

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,14 @@ public class Recurring {
4141
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
4242
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
4343
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a
44-
* payout](https://docs.adyen.com/online-payments/online-payouts).* `EXTERNAL` - Use
45-
* this when you store payment details and send the raw card number or network token directly in
46-
* your API request.
44+
* payout](https://docs.adyen.com/online-payments/online-payouts).
4745
*/
4846
public enum ContractEnum {
4947
ONECLICK(String.valueOf("ONECLICK")),
5048

51-
ONECLICK_RECURRING(String.valueOf("ONECLICK,RECURRING")),
52-
5349
RECURRING(String.valueOf("RECURRING")),
5450

55-
PAYOUT(String.valueOf("PAYOUT")),
56-
57-
EXTERNAL(String.valueOf("EXTERNAL"));
51+
PAYOUT(String.valueOf("PAYOUT"));
5852

5953
private static final Logger LOG = Logger.getLogger(ContractEnum.class.getName());
6054

@@ -163,9 +157,7 @@ public Recurring() {}
163157
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
164158
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
165159
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a
166-
* payout](https://docs.adyen.com/online-payments/online-payouts).* `EXTERNAL` - Use
167-
* this when you store payment details and send the raw card number or network token directly in
168-
* your API request.
160+
* payout](https://docs.adyen.com/online-payments/online-payouts).
169161
*
170162
* @param contract The type of recurring contract to be used. Possible values: *
171163
* `ONECLICK` – Payment details can be used to initiate a one-click payment, where
@@ -176,9 +168,7 @@ public Recurring() {}
176168
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
177169
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
178170
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make
179-
* a payout](https://docs.adyen.com/online-payments/online-payouts).* `EXTERNAL` -
180-
* Use this when you store payment details and send the raw card number or network token
181-
* directly in your API request.
171+
* a payout](https://docs.adyen.com/online-payments/online-payouts).
182172
* @return the current {@code Recurring} instance, allowing for method chaining
183173
*/
184174
public Recurring contract(ContractEnum contract) {
@@ -196,9 +186,7 @@ public Recurring contract(ContractEnum contract) {
196186
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
197187
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
198188
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a
199-
* payout](https://docs.adyen.com/online-payments/online-payouts).* `EXTERNAL` - Use
200-
* this when you store payment details and send the raw card number or network token directly in
201-
* your API request.
189+
* payout](https://docs.adyen.com/online-payments/online-payouts).
202190
*
203191
* @return contract The type of recurring contract to be used. Possible values: *
204192
* `ONECLICK` – Payment details can be used to initiate a one-click payment, where
@@ -209,9 +197,7 @@ public Recurring contract(ContractEnum contract) {
209197
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
210198
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
211199
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make
212-
* a payout](https://docs.adyen.com/online-payments/online-payouts).* `EXTERNAL` -
213-
* Use this when you store payment details and send the raw card number or network token
214-
* directly in your API request.
200+
* a payout](https://docs.adyen.com/online-payments/online-payouts).
215201
*/
216202
@JsonProperty(JSON_PROPERTY_CONTRACT)
217203
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -229,9 +215,7 @@ public ContractEnum getContract() {
229215
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
230216
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
231217
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a
232-
* payout](https://docs.adyen.com/online-payments/online-payouts).* `EXTERNAL` - Use
233-
* this when you store payment details and send the raw card number or network token directly in
234-
* your API request.
218+
* payout](https://docs.adyen.com/online-payments/online-payouts).
235219
*
236220
* @param contract The type of recurring contract to be used. Possible values: *
237221
* `ONECLICK` – Payment details can be used to initiate a one-click payment, where
@@ -242,9 +226,7 @@ public ContractEnum getContract() {
242226
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
243227
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
244228
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make
245-
* a payout](https://docs.adyen.com/online-payments/online-payouts).* `EXTERNAL` -
246-
* Use this when you store payment details and send the raw card number or network token
247-
* directly in your API request.
229+
* a payout](https://docs.adyen.com/online-payments/online-payouts).
248230
*/
249231
@JsonProperty(JSON_PROPERTY_CONTRACT)
250232
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

0 commit comments

Comments
 (0)