Skip to content

Commit 048f7c6

Browse files
AdyenAutomationBotAdyenAutomationBotgcataneseAdyenAutomationBot
authored
Code generation: update services and models (#1497)
* false[adyen-sdk-automation] automated change * style(fmt): code formatted * Add tests for AuthorizedCardUsersApi * style(fmt): code formatted * Revert capabilities not read-only Avoid breaking change in this release * style(fmt): code formatted --------- Co-authored-by: AdyenAutomationBot <Adyen Automation plugins_dev@adyen.com> Co-authored-by: gcatanese <gcatanese@yahoo.com> Co-authored-by: AdyenAutomationBot <AdyenAutomationBot 38424300+AdyenAutomationBot@users.noreply.github.com>
1 parent ba0778a commit 048f7c6

Some content is hidden

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

48 files changed

+2103
-496
lines changed
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
/*
2+
* Configuration API
3+
*
4+
* The version of the OpenAPI document: 2
5+
*
6+
*
7+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8+
* https://openapi-generator.tech
9+
* Do not edit the class manually.
10+
*/
11+
12+
package com.adyen.model.balanceplatform;
13+
14+
import com.fasterxml.jackson.annotation.JsonInclude;
15+
import com.fasterxml.jackson.annotation.JsonProperty;
16+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
17+
import com.fasterxml.jackson.core.JsonProcessingException;
18+
import java.util.ArrayList;
19+
import java.util.List;
20+
import java.util.Objects;
21+
22+
/** AuthorisedCardUsers */
23+
@JsonPropertyOrder({AuthorisedCardUsers.JSON_PROPERTY_LEGAL_ENTITY_IDS})
24+
public class AuthorisedCardUsers {
25+
public static final String JSON_PROPERTY_LEGAL_ENTITY_IDS = "legalEntityIds";
26+
private List<String> legalEntityIds;
27+
28+
public AuthorisedCardUsers() {}
29+
30+
/**
31+
* The legal entity IDs of the authorized card users linked to the specified payment instrument.
32+
*
33+
* @param legalEntityIds The legal entity IDs of the authorized card users linked to the specified
34+
* payment instrument.
35+
* @return the current {@code AuthorisedCardUsers} instance, allowing for method chaining
36+
*/
37+
public AuthorisedCardUsers legalEntityIds(List<String> legalEntityIds) {
38+
this.legalEntityIds = legalEntityIds;
39+
return this;
40+
}
41+
42+
public AuthorisedCardUsers addLegalEntityIdsItem(String legalEntityIdsItem) {
43+
if (this.legalEntityIds == null) {
44+
this.legalEntityIds = new ArrayList<>();
45+
}
46+
this.legalEntityIds.add(legalEntityIdsItem);
47+
return this;
48+
}
49+
50+
/**
51+
* The legal entity IDs of the authorized card users linked to the specified payment instrument.
52+
*
53+
* @return legalEntityIds The legal entity IDs of the authorized card users linked to the
54+
* specified payment instrument.
55+
*/
56+
@JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_IDS)
57+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
58+
public List<String> getLegalEntityIds() {
59+
return legalEntityIds;
60+
}
61+
62+
/**
63+
* The legal entity IDs of the authorized card users linked to the specified payment instrument.
64+
*
65+
* @param legalEntityIds The legal entity IDs of the authorized card users linked to the specified
66+
* payment instrument.
67+
*/
68+
@JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_IDS)
69+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
70+
public void setLegalEntityIds(List<String> legalEntityIds) {
71+
this.legalEntityIds = legalEntityIds;
72+
}
73+
74+
/** Return true if this AuthorisedCardUsers object is equal to o. */
75+
@Override
76+
public boolean equals(Object o) {
77+
if (this == o) {
78+
return true;
79+
}
80+
if (o == null || getClass() != o.getClass()) {
81+
return false;
82+
}
83+
AuthorisedCardUsers authorisedCardUsers = (AuthorisedCardUsers) o;
84+
return Objects.equals(this.legalEntityIds, authorisedCardUsers.legalEntityIds);
85+
}
86+
87+
@Override
88+
public int hashCode() {
89+
return Objects.hash(legalEntityIds);
90+
}
91+
92+
@Override
93+
public String toString() {
94+
StringBuilder sb = new StringBuilder();
95+
sb.append("class AuthorisedCardUsers {\n");
96+
sb.append(" legalEntityIds: ").append(toIndentedString(legalEntityIds)).append("\n");
97+
sb.append("}");
98+
return sb.toString();
99+
}
100+
101+
/**
102+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
103+
*/
104+
private String toIndentedString(Object o) {
105+
if (o == null) {
106+
return "null";
107+
}
108+
return o.toString().replace("\n", "\n ");
109+
}
110+
111+
/**
112+
* Create an instance of AuthorisedCardUsers given an JSON string
113+
*
114+
* @param jsonString JSON string
115+
* @return An instance of AuthorisedCardUsers
116+
* @throws JsonProcessingException if the JSON string is invalid with respect to
117+
* AuthorisedCardUsers
118+
*/
119+
public static AuthorisedCardUsers fromJson(String jsonString) throws JsonProcessingException {
120+
return JSON.getMapper().readValue(jsonString, AuthorisedCardUsers.class);
121+
}
122+
123+
/**
124+
* Convert an instance of AuthorisedCardUsers to an JSON string
125+
*
126+
* @return JSON string
127+
*/
128+
public String toJson() throws JsonProcessingException {
129+
return JSON.getMapper().writeValueAsString(this);
130+
}
131+
}

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -513,13 +513,13 @@ public String getNumber() {
513513
}
514514

515515
/**
516-
* Allocates a specific product range for either a physical or a virtual card. Possible values:
517-
* **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the values
518-
* relevant for your integration.
516+
* The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**,
517+
* **secureCorporate**. &gt; Reach out to your Adyen contact to get the values relevant for your
518+
* integration.
519519
*
520-
* @param threeDSecure Allocates a specific product range for either a physical or a virtual card.
521-
* Possible values: **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen
522-
* contact to get the values relevant for your integration.
520+
* @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values:
521+
* **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the
522+
* values relevant for your integration.
523523
* @return the current {@code Card} instance, allowing for method chaining
524524
*/
525525
public Card threeDSecure(String threeDSecure) {
@@ -528,13 +528,13 @@ public Card threeDSecure(String threeDSecure) {
528528
}
529529

530530
/**
531-
* Allocates a specific product range for either a physical or a virtual card. Possible values:
532-
* **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the values
533-
* relevant for your integration.
531+
* The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**,
532+
* **secureCorporate**. &gt; Reach out to your Adyen contact to get the values relevant for your
533+
* integration.
534534
*
535-
* @return threeDSecure Allocates a specific product range for either a physical or a virtual
536-
* card. Possible values: **fullySupported**, **secureCorporate**. &gt; Reach out to your
537-
* Adyen contact to get the values relevant for your integration.
535+
* @return threeDSecure The 3DS configuration of the physical or the virtual card. Possible
536+
* values: **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to
537+
* get the values relevant for your integration.
538538
*/
539539
@JsonProperty(JSON_PROPERTY_THREE_D_SECURE)
540540
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -543,13 +543,13 @@ public String getThreeDSecure() {
543543
}
544544

545545
/**
546-
* Allocates a specific product range for either a physical or a virtual card. Possible values:
547-
* **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the values
548-
* relevant for your integration.
546+
* The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**,
547+
* **secureCorporate**. &gt; Reach out to your Adyen contact to get the values relevant for your
548+
* integration.
549549
*
550-
* @param threeDSecure Allocates a specific product range for either a physical or a virtual card.
551-
* Possible values: **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen
552-
* contact to get the values relevant for your integration.
550+
* @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values:
551+
* **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the
552+
* values relevant for your integration.
553553
*/
554554
@JsonProperty(JSON_PROPERTY_THREE_D_SECURE)
555555
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -336,13 +336,13 @@ public void setFormFactor(FormFactorEnum formFactor) {
336336
}
337337

338338
/**
339-
* Allocates a specific product range for either a physical or a virtual card. Possible values:
340-
* **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the values
341-
* relevant for your integration.
339+
* The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**,
340+
* **secureCorporate**. &gt; Reach out to your Adyen contact to get the values relevant for your
341+
* integration.
342342
*
343-
* @param threeDSecure Allocates a specific product range for either a physical or a virtual card.
344-
* Possible values: **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen
345-
* contact to get the values relevant for your integration.
343+
* @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values:
344+
* **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the
345+
* values relevant for your integration.
346346
* @return the current {@code CardInfo} instance, allowing for method chaining
347347
*/
348348
public CardInfo threeDSecure(String threeDSecure) {
@@ -351,13 +351,13 @@ public CardInfo threeDSecure(String threeDSecure) {
351351
}
352352

353353
/**
354-
* Allocates a specific product range for either a physical or a virtual card. Possible values:
355-
* **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the values
356-
* relevant for your integration.
354+
* The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**,
355+
* **secureCorporate**. &gt; Reach out to your Adyen contact to get the values relevant for your
356+
* integration.
357357
*
358-
* @return threeDSecure Allocates a specific product range for either a physical or a virtual
359-
* card. Possible values: **fullySupported**, **secureCorporate**. &gt; Reach out to your
360-
* Adyen contact to get the values relevant for your integration.
358+
* @return threeDSecure The 3DS configuration of the physical or the virtual card. Possible
359+
* values: **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to
360+
* get the values relevant for your integration.
361361
*/
362362
@JsonProperty(JSON_PROPERTY_THREE_D_SECURE)
363363
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -366,13 +366,13 @@ public String getThreeDSecure() {
366366
}
367367

368368
/**
369-
* Allocates a specific product range for either a physical or a virtual card. Possible values:
370-
* **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the values
371-
* relevant for your integration.
369+
* The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**,
370+
* **secureCorporate**. &gt; Reach out to your Adyen contact to get the values relevant for your
371+
* integration.
372372
*
373-
* @param threeDSecure Allocates a specific product range for either a physical or a virtual card.
374-
* Possible values: **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen
375-
* contact to get the values relevant for your integration.
373+
* @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values:
374+
* **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the
375+
* values relevant for your integration.
376376
*/
377377
@JsonProperty(JSON_PROPERTY_THREE_D_SECURE)
378378
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

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

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,9 @@ public void setDescription(String description) {
536536
* Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to
537537
* transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions.
538538
* * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for
539-
* high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA
540-
* countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). *
539+
* high-priority, high-value transactions. * **instant**: for instant funds transfers within the
540+
* United States and in [SEPA
541+
* locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). *
541542
* **crossBorder**: for high-value transfers to a recipient in a different country. *
542543
* **internal**: for transfers to an Adyen-issued business bank account (by bank account
543544
* number/IBAN). Set &#x60;category&#x60; to **bank**. For more details, see optional priorities
@@ -559,8 +560,8 @@ public void setDescription(String description) {
559560
* way to transfer funds, but the fees are higher. Recommended for high-priority, low-value
560561
* transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees.
561562
* Recommended for high-priority, high-value transactions. * **instant**: for instant funds
562-
* transfers in [SEPA
563-
* countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). *
563+
* transfers within the United States and in [SEPA
564+
* locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). *
564565
* **crossBorder**: for high-value transfers to a recipient in a different country. *
565566
* **internal**: for transfers to an Adyen-issued business bank account (by bank account
566567
* number/IBAN). Set &#x60;category&#x60; to **bank**. For more details, see optional
@@ -595,8 +596,9 @@ public CreateSweepConfigurationV2 addPrioritiesItem(PrioritiesEnum prioritiesIte
595596
* Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to
596597
* transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions.
597598
* * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for
598-
* high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA
599-
* countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). *
599+
* high-priority, high-value transactions. * **instant**: for instant funds transfers within the
600+
* United States and in [SEPA
601+
* locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). *
600602
* **crossBorder**: for high-value transfers to a recipient in a different country. *
601603
* **internal**: for transfers to an Adyen-issued business bank account (by bank account
602604
* number/IBAN). Set &#x60;category&#x60; to **bank**. For more details, see optional priorities
@@ -618,8 +620,8 @@ public CreateSweepConfigurationV2 addPrioritiesItem(PrioritiesEnum prioritiesIte
618620
* way to transfer funds, but the fees are higher. Recommended for high-priority, low-value
619621
* transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees.
620622
* Recommended for high-priority, high-value transactions. * **instant**: for instant funds
621-
* transfers in [SEPA
622-
* countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). *
623+
* transfers within the United States and in [SEPA
624+
* locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). *
623625
* **crossBorder**: for high-value transfers to a recipient in a different country. *
624626
* **internal**: for transfers to an Adyen-issued business bank account (by bank account
625627
* number/IBAN). Set &#x60;category&#x60; to **bank**. For more details, see optional
@@ -646,8 +648,9 @@ public List<PrioritiesEnum> getPriorities() {
646648
* Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to
647649
* transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions.
648650
* * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for
649-
* high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA
650-
* countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). *
651+
* high-priority, high-value transactions. * **instant**: for instant funds transfers within the
652+
* United States and in [SEPA
653+
* locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). *
651654
* **crossBorder**: for high-value transfers to a recipient in a different country. *
652655
* **internal**: for transfers to an Adyen-issued business bank account (by bank account
653656
* number/IBAN). Set &#x60;category&#x60; to **bank**. For more details, see optional priorities
@@ -669,8 +672,8 @@ public List<PrioritiesEnum> getPriorities() {
669672
* way to transfer funds, but the fees are higher. Recommended for high-priority, low-value
670673
* transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees.
671674
* Recommended for high-priority, high-value transactions. * **instant**: for instant funds
672-
* transfers in [SEPA
673-
* countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). *
675+
* transfers within the United States and in [SEPA
676+
* locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). *
674677
* **crossBorder**: for high-value transfers to a recipient in a different country. *
675678
* **internal**: for transfers to an Adyen-issued business bank account (by bank account
676679
* number/IBAN). Set &#x60;category&#x60; to **bank**. For more details, see optional

0 commit comments

Comments
 (0)