Skip to content

Commit 17bcfbf

Browse files
false[adyen-sdk-automation] automated change (#1311)
1 parent ac91e3c commit 17bcfbf

Some content is hidden

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

50 files changed

+1804
-108
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public class AccountHolder {
6161
private Map<String, AccountHolderCapability> capabilities = null;
6262

6363
public static final String JSON_PROPERTY_CONTACT_DETAILS = "contactDetails";
64+
@Deprecated
6465
private ContactDetails contactDetails;
6566

6667
public static final String JSON_PROPERTY_DESCRIPTION = "description";
@@ -201,6 +202,7 @@ public void setCapabilities(Map<String, AccountHolderCapability> capabilities) {
201202
}
202203

203204

205+
@Deprecated
204206
public AccountHolder contactDetails(ContactDetails contactDetails) {
205207
this.contactDetails = contactDetails;
206208
return this;
@@ -209,7 +211,9 @@ public AccountHolder contactDetails(ContactDetails contactDetails) {
209211
/**
210212
* Get contactDetails
211213
* @return contactDetails
214+
* @deprecated
212215
**/
216+
@Deprecated
213217
@ApiModelProperty(value = "")
214218
@JsonProperty(JSON_PROPERTY_CONTACT_DETAILS)
215219
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -224,6 +228,7 @@ public ContactDetails getContactDetails() {
224228
*
225229
* @param contactDetails
226230
*/
231+
@Deprecated
227232
@JsonProperty(JSON_PROPERTY_CONTACT_DETAILS)
228233
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
229234
public void setContactDetails(ContactDetails contactDetails) {

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public class AccountHolderInfo {
5555
private Map<String, AccountHolderCapability> capabilities = null;
5656

5757
public static final String JSON_PROPERTY_CONTACT_DETAILS = "contactDetails";
58+
@Deprecated
5859
private ContactDetails contactDetails;
5960

6061
public static final String JSON_PROPERTY_DESCRIPTION = "description";
@@ -146,6 +147,7 @@ public void setCapabilities(Map<String, AccountHolderCapability> capabilities) {
146147
}
147148

148149

150+
@Deprecated
149151
public AccountHolderInfo contactDetails(ContactDetails contactDetails) {
150152
this.contactDetails = contactDetails;
151153
return this;
@@ -154,7 +156,9 @@ public AccountHolderInfo contactDetails(ContactDetails contactDetails) {
154156
/**
155157
* Get contactDetails
156158
* @return contactDetails
159+
* @deprecated
157160
**/
161+
@Deprecated
158162
@ApiModelProperty(value = "")
159163
@JsonProperty(JSON_PROPERTY_CONTACT_DETAILS)
160164
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -169,6 +173,7 @@ public ContactDetails getContactDetails() {
169173
*
170174
* @param contactDetails
171175
*/
176+
@Deprecated
172177
@JsonProperty(JSON_PROPERTY_CONTACT_DETAILS)
173178
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
174179
public void setContactDetails(ContactDetails contactDetails) {

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public class AccountHolderUpdateRequest {
5959
private Map<String, AccountHolderCapability> capabilities = null;
6060

6161
public static final String JSON_PROPERTY_CONTACT_DETAILS = "contactDetails";
62+
@Deprecated
6263
private ContactDetails contactDetails;
6364

6465
public static final String JSON_PROPERTY_DESCRIPTION = "description";
@@ -193,6 +194,7 @@ public void setCapabilities(Map<String, AccountHolderCapability> capabilities) {
193194
}
194195

195196

197+
@Deprecated
196198
public AccountHolderUpdateRequest contactDetails(ContactDetails contactDetails) {
197199
this.contactDetails = contactDetails;
198200
return this;
@@ -201,7 +203,9 @@ public AccountHolderUpdateRequest contactDetails(ContactDetails contactDetails)
201203
/**
202204
* Get contactDetails
203205
* @return contactDetails
206+
* @deprecated
204207
**/
208+
@Deprecated
205209
@ApiModelProperty(value = "")
206210
@JsonProperty(JSON_PROPERTY_CONTACT_DETAILS)
207211
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -216,6 +220,7 @@ public ContactDetails getContactDetails() {
216220
*
217221
* @param contactDetails
218222
*/
223+
@Deprecated
219224
@JsonProperty(JSON_PROPERTY_CONTACT_DETAILS)
220225
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
221226
public void setContactDetails(ContactDetails contactDetails) {

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131

3232
/**
3333
* ContactDetails
34+
* @deprecated
3435
*/
36+
@Deprecated
3537
@JsonPropertyOrder({
3638
ContactDetails.JSON_PROPERTY_ADDRESS,
3739
ContactDetails.JSON_PROPERTY_EMAIL,

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ public enum ReasonEnum {
170170

171171
COUNTERPARTYBANKUNAVAILABLE("counterpartyBankUnavailable"),
172172

173+
DECLINED("declined"),
174+
173175
DECLINEDBYTRANSACTIONRULE("declinedByTransactionRule"),
174176

175177
ERROR("error"),
@@ -447,10 +449,10 @@ public CreateSweepConfigurationV2 addPrioritiesItem(PrioritiesEnum prioritiesIte
447449
}
448450

449451
/**
450-
* The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that&#39;s not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN). Set &#x60;category&#x60; to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
452+
* The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that&#39;s not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set &#x60;category&#x60; to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
451453
* @return priorities
452454
**/
453-
@ApiModelProperty(value = "The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).")
455+
@ApiModelProperty(value = "The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).")
454456
@JsonProperty(JSON_PROPERTY_PRIORITIES)
455457
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
456458

@@ -460,7 +462,7 @@ public List<PrioritiesEnum> getPriorities() {
460462

461463

462464
/**
463-
* The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that&#39;s not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN). Set &#x60;category&#x60; to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
465+
* The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that&#39;s not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set &#x60;category&#x60; to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
464466
*
465467
* @param priorities
466468
*/
Lines changed: 220 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,220 @@
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+
13+
package com.adyen.model.balanceplatform;
14+
15+
import java.util.Objects;
16+
import java.util.Arrays;
17+
import java.util.Map;
18+
import java.util.HashMap;
19+
import com.fasterxml.jackson.annotation.JsonInclude;
20+
import com.fasterxml.jackson.annotation.JsonProperty;
21+
import com.fasterxml.jackson.annotation.JsonCreator;
22+
import com.fasterxml.jackson.annotation.JsonTypeName;
23+
import com.fasterxml.jackson.annotation.JsonValue;
24+
import io.swagger.annotations.ApiModel;
25+
import io.swagger.annotations.ApiModelProperty;
26+
import java.util.ArrayList;
27+
import java.util.List;
28+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
29+
import com.fasterxml.jackson.core.JsonProcessingException;
30+
31+
32+
/**
33+
* MatchingValuesRestriction
34+
*/
35+
@JsonPropertyOrder({
36+
MatchingValuesRestriction.JSON_PROPERTY_OPERATION,
37+
MatchingValuesRestriction.JSON_PROPERTY_VALUE
38+
})
39+
40+
public class MatchingValuesRestriction {
41+
public static final String JSON_PROPERTY_OPERATION = "operation";
42+
private String operation;
43+
44+
/**
45+
* Gets or Sets value
46+
*/
47+
public enum ValueEnum {
48+
ACQUIRERID("acquirerId"),
49+
50+
AMOUNT("amount"),
51+
52+
CURRENCY("currency"),
53+
54+
MERCHANTID("merchantId"),
55+
56+
MERCHANTNAME("merchantName");
57+
58+
private String value;
59+
60+
ValueEnum(String value) {
61+
this.value = value;
62+
}
63+
64+
@JsonValue
65+
public String getValue() {
66+
return value;
67+
}
68+
69+
@Override
70+
public String toString() {
71+
return String.valueOf(value);
72+
}
73+
74+
@JsonCreator
75+
public static ValueEnum fromValue(String value) {
76+
for (ValueEnum b : ValueEnum.values()) {
77+
if (b.value.equals(value)) {
78+
return b;
79+
}
80+
}
81+
throw new IllegalArgumentException("Unexpected value '" + value + "'");
82+
}
83+
}
84+
85+
public static final String JSON_PROPERTY_VALUE = "value";
86+
private List<ValueEnum> value = null;
87+
88+
public MatchingValuesRestriction() {
89+
}
90+
91+
public MatchingValuesRestriction operation(String operation) {
92+
this.operation = operation;
93+
return this;
94+
}
95+
96+
/**
97+
* Defines how the condition must be evaluated.
98+
* @return operation
99+
**/
100+
@ApiModelProperty(required = true, value = "Defines how the condition must be evaluated.")
101+
@JsonProperty(JSON_PROPERTY_OPERATION)
102+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
103+
104+
public String getOperation() {
105+
return operation;
106+
}
107+
108+
109+
/**
110+
* Defines how the condition must be evaluated.
111+
*
112+
* @param operation
113+
*/
114+
@JsonProperty(JSON_PROPERTY_OPERATION)
115+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
116+
public void setOperation(String operation) {
117+
this.operation = operation;
118+
}
119+
120+
121+
public MatchingValuesRestriction value(List<ValueEnum> value) {
122+
this.value = value;
123+
return this;
124+
}
125+
126+
public MatchingValuesRestriction addValueItem(ValueEnum valueItem) {
127+
if (this.value == null) {
128+
this.value = new ArrayList<>();
129+
}
130+
this.value.add(valueItem);
131+
return this;
132+
}
133+
134+
/**
135+
* Get value
136+
* @return value
137+
**/
138+
@ApiModelProperty(value = "")
139+
@JsonProperty(JSON_PROPERTY_VALUE)
140+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
141+
142+
public List<ValueEnum> getValue() {
143+
return value;
144+
}
145+
146+
147+
/**
148+
* value
149+
*
150+
* @param value
151+
*/
152+
@JsonProperty(JSON_PROPERTY_VALUE)
153+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
154+
public void setValue(List<ValueEnum> value) {
155+
this.value = value;
156+
}
157+
158+
159+
/**
160+
* Return true if this MatchingValuesRestriction object is equal to o.
161+
*/
162+
@Override
163+
public boolean equals(Object o) {
164+
if (this == o) {
165+
return true;
166+
}
167+
if (o == null || getClass() != o.getClass()) {
168+
return false;
169+
}
170+
MatchingValuesRestriction matchingValuesRestriction = (MatchingValuesRestriction) o;
171+
return Objects.equals(this.operation, matchingValuesRestriction.operation) &&
172+
Objects.equals(this.value, matchingValuesRestriction.value);
173+
}
174+
175+
@Override
176+
public int hashCode() {
177+
return Objects.hash(operation, value);
178+
}
179+
180+
@Override
181+
public String toString() {
182+
StringBuilder sb = new StringBuilder();
183+
sb.append("class MatchingValuesRestriction {\n");
184+
sb.append(" operation: ").append(toIndentedString(operation)).append("\n");
185+
sb.append(" value: ").append(toIndentedString(value)).append("\n");
186+
sb.append("}");
187+
return sb.toString();
188+
}
189+
190+
/**
191+
* Convert the given object to string with each line indented by 4 spaces
192+
* (except the first line).
193+
*/
194+
private String toIndentedString(Object o) {
195+
if (o == null) {
196+
return "null";
197+
}
198+
return o.toString().replace("\n", "\n ");
199+
}
200+
201+
/**
202+
* Create an instance of MatchingValuesRestriction given an JSON string
203+
*
204+
* @param jsonString JSON string
205+
* @return An instance of MatchingValuesRestriction
206+
* @throws JsonProcessingException if the JSON string is invalid with respect to MatchingValuesRestriction
207+
*/
208+
public static MatchingValuesRestriction fromJson(String jsonString) throws JsonProcessingException {
209+
return JSON.getMapper().readValue(jsonString, MatchingValuesRestriction.class);
210+
}
211+
/**
212+
* Convert an instance of MatchingValuesRestriction to an JSON string
213+
*
214+
* @return JSON string
215+
*/
216+
public String toJson() throws JsonProcessingException {
217+
return JSON.getMapper().writeValueAsString(this);
218+
}
219+
}
220+

0 commit comments

Comments
 (0)