Skip to content

Commit ddf7e8f

Browse files
AdyenAutomationBotAdyenAutomationBotgcatanese
authored
Code generation: update services and models (#1557)
* false[adyen-sdk-automation] automated change * style(fmt): code formatted * Add tests for Transfer Limits endpoint * style(fmt): code formatted --------- Co-authored-by: AdyenAutomationBot <AdyenAutomationBot 38424300+AdyenAutomationBot@users.noreply.github.com> Co-authored-by: gcatanese <gcatanese@yahoo.com>
1 parent fc08005 commit ddf7e8f

Some content is hidden

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

46 files changed

+4223
-520
lines changed
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
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.*;
19+
import java.util.ArrayList;
20+
import java.util.List;
21+
22+
/** ApproveTransferLimitRequest */
23+
@JsonPropertyOrder({ApproveTransferLimitRequest.JSON_PROPERTY_TRANSFER_LIMIT_IDS})
24+
public class ApproveTransferLimitRequest {
25+
public static final String JSON_PROPERTY_TRANSFER_LIMIT_IDS = "transferLimitIds";
26+
private List<String> transferLimitIds;
27+
28+
public ApproveTransferLimitRequest() {}
29+
30+
/**
31+
* A list that includes the &#x60;transferLimitId&#x60; of all the pending transfer limits you
32+
* want to approve.
33+
*
34+
* @param transferLimitIds A list that includes the &#x60;transferLimitId&#x60; of all the pending
35+
* transfer limits you want to approve.
36+
* @return the current {@code ApproveTransferLimitRequest} instance, allowing for method chaining
37+
*/
38+
public ApproveTransferLimitRequest transferLimitIds(List<String> transferLimitIds) {
39+
this.transferLimitIds = transferLimitIds;
40+
return this;
41+
}
42+
43+
public ApproveTransferLimitRequest addTransferLimitIdsItem(String transferLimitIdsItem) {
44+
if (this.transferLimitIds == null) {
45+
this.transferLimitIds = new ArrayList<>();
46+
}
47+
this.transferLimitIds.add(transferLimitIdsItem);
48+
return this;
49+
}
50+
51+
/**
52+
* A list that includes the &#x60;transferLimitId&#x60; of all the pending transfer limits you
53+
* want to approve.
54+
*
55+
* @return transferLimitIds A list that includes the &#x60;transferLimitId&#x60; of all the
56+
* pending transfer limits you want to approve.
57+
*/
58+
@JsonProperty(JSON_PROPERTY_TRANSFER_LIMIT_IDS)
59+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
60+
public List<String> getTransferLimitIds() {
61+
return transferLimitIds;
62+
}
63+
64+
/**
65+
* A list that includes the &#x60;transferLimitId&#x60; of all the pending transfer limits you
66+
* want to approve.
67+
*
68+
* @param transferLimitIds A list that includes the &#x60;transferLimitId&#x60; of all the pending
69+
* transfer limits you want to approve.
70+
*/
71+
@JsonProperty(JSON_PROPERTY_TRANSFER_LIMIT_IDS)
72+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
73+
public void setTransferLimitIds(List<String> transferLimitIds) {
74+
this.transferLimitIds = transferLimitIds;
75+
}
76+
77+
/** Return true if this ApproveTransferLimitRequest object is equal to o. */
78+
@Override
79+
public boolean equals(Object o) {
80+
if (this == o) {
81+
return true;
82+
}
83+
if (o == null || getClass() != o.getClass()) {
84+
return false;
85+
}
86+
ApproveTransferLimitRequest approveTransferLimitRequest = (ApproveTransferLimitRequest) o;
87+
return Objects.equals(this.transferLimitIds, approveTransferLimitRequest.transferLimitIds);
88+
}
89+
90+
@Override
91+
public int hashCode() {
92+
return Objects.hash(transferLimitIds);
93+
}
94+
95+
@Override
96+
public String toString() {
97+
StringBuilder sb = new StringBuilder();
98+
sb.append("class ApproveTransferLimitRequest {\n");
99+
sb.append(" transferLimitIds: ").append(toIndentedString(transferLimitIds)).append("\n");
100+
sb.append("}");
101+
return sb.toString();
102+
}
103+
104+
/**
105+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
106+
*/
107+
private String toIndentedString(Object o) {
108+
if (o == null) {
109+
return "null";
110+
}
111+
return o.toString().replace("\n", "\n ");
112+
}
113+
114+
/**
115+
* Create an instance of ApproveTransferLimitRequest given an JSON string
116+
*
117+
* @param jsonString JSON string
118+
* @return An instance of ApproveTransferLimitRequest
119+
* @throws JsonProcessingException if the JSON string is invalid with respect to
120+
* ApproveTransferLimitRequest
121+
*/
122+
public static ApproveTransferLimitRequest fromJson(String jsonString)
123+
throws JsonProcessingException {
124+
return JSON.getMapper().readValue(jsonString, ApproveTransferLimitRequest.class);
125+
}
126+
127+
/**
128+
* Convert an instance of ApproveTransferLimitRequest to an JSON string
129+
*
130+
* @return JSON string
131+
*/
132+
public String toJson() throws JsonProcessingException {
133+
return JSON.getMapper().writeValueAsString(this);
134+
}
135+
}

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

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
BulkAddress.JSON_PROPERTY_COUNTRY,
2525
BulkAddress.JSON_PROPERTY_EMAIL,
2626
BulkAddress.JSON_PROPERTY_HOUSE_NUMBER_OR_NAME,
27+
BulkAddress.JSON_PROPERTY_LINE1,
28+
BulkAddress.JSON_PROPERTY_LINE2,
29+
BulkAddress.JSON_PROPERTY_LINE3,
2730
BulkAddress.JSON_PROPERTY_MOBILE,
2831
BulkAddress.JSON_PROPERTY_POSTAL_CODE,
2932
BulkAddress.JSON_PROPERTY_STATE_OR_PROVINCE,
@@ -45,6 +48,15 @@ public class BulkAddress {
4548
public static final String JSON_PROPERTY_HOUSE_NUMBER_OR_NAME = "houseNumberOrName";
4649
private String houseNumberOrName;
4750

51+
public static final String JSON_PROPERTY_LINE1 = "line1";
52+
private String line1;
53+
54+
public static final String JSON_PROPERTY_LINE2 = "line2";
55+
private String line2;
56+
57+
public static final String JSON_PROPERTY_LINE3 = "line3";
58+
private String line3;
59+
4860
public static final String JSON_PROPERTY_MOBILE = "mobile";
4961
private String mobile;
5062

@@ -224,6 +236,114 @@ public void setHouseNumberOrName(String houseNumberOrName) {
224236
this.houseNumberOrName = houseNumberOrName;
225237
}
226238

239+
/**
240+
* The name of the street and the number of the building. For example: **Simon Carmiggeltstraat
241+
* 6-50**.
242+
*
243+
* @param line1 The name of the street and the number of the building. For example: **Simon
244+
* Carmiggeltstraat 6-50**.
245+
* @return the current {@code BulkAddress} instance, allowing for method chaining
246+
*/
247+
public BulkAddress line1(String line1) {
248+
this.line1 = line1;
249+
return this;
250+
}
251+
252+
/**
253+
* The name of the street and the number of the building. For example: **Simon Carmiggeltstraat
254+
* 6-50**.
255+
*
256+
* @return line1 The name of the street and the number of the building. For example: **Simon
257+
* Carmiggeltstraat 6-50**.
258+
*/
259+
@JsonProperty(JSON_PROPERTY_LINE1)
260+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
261+
public String getLine1() {
262+
return line1;
263+
}
264+
265+
/**
266+
* The name of the street and the number of the building. For example: **Simon Carmiggeltstraat
267+
* 6-50**.
268+
*
269+
* @param line1 The name of the street and the number of the building. For example: **Simon
270+
* Carmiggeltstraat 6-50**.
271+
*/
272+
@JsonProperty(JSON_PROPERTY_LINE1)
273+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
274+
public void setLine1(String line1) {
275+
this.line1 = line1;
276+
}
277+
278+
/**
279+
* Additional information about the delivery address. For example, an apartment number.
280+
*
281+
* @param line2 Additional information about the delivery address. For example, an apartment
282+
* number.
283+
* @return the current {@code BulkAddress} instance, allowing for method chaining
284+
*/
285+
public BulkAddress line2(String line2) {
286+
this.line2 = line2;
287+
return this;
288+
}
289+
290+
/**
291+
* Additional information about the delivery address. For example, an apartment number.
292+
*
293+
* @return line2 Additional information about the delivery address. For example, an apartment
294+
* number.
295+
*/
296+
@JsonProperty(JSON_PROPERTY_LINE2)
297+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
298+
public String getLine2() {
299+
return line2;
300+
}
301+
302+
/**
303+
* Additional information about the delivery address. For example, an apartment number.
304+
*
305+
* @param line2 Additional information about the delivery address. For example, an apartment
306+
* number.
307+
*/
308+
@JsonProperty(JSON_PROPERTY_LINE2)
309+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
310+
public void setLine2(String line2) {
311+
this.line2 = line2;
312+
}
313+
314+
/**
315+
* Additional information about the delivery address.
316+
*
317+
* @param line3 Additional information about the delivery address.
318+
* @return the current {@code BulkAddress} instance, allowing for method chaining
319+
*/
320+
public BulkAddress line3(String line3) {
321+
this.line3 = line3;
322+
return this;
323+
}
324+
325+
/**
326+
* Additional information about the delivery address.
327+
*
328+
* @return line3 Additional information about the delivery address.
329+
*/
330+
@JsonProperty(JSON_PROPERTY_LINE3)
331+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
332+
public String getLine3() {
333+
return line3;
334+
}
335+
336+
/**
337+
* Additional information about the delivery address.
338+
*
339+
* @param line3 Additional information about the delivery address.
340+
*/
341+
@JsonProperty(JSON_PROPERTY_LINE3)
342+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
343+
public void setLine3(String line3) {
344+
this.line3 = line3;
345+
}
346+
227347
/**
228348
* The full telephone number.
229349
*
@@ -383,6 +503,9 @@ public boolean equals(Object o) {
383503
&& Objects.equals(this.country, bulkAddress.country)
384504
&& Objects.equals(this.email, bulkAddress.email)
385505
&& Objects.equals(this.houseNumberOrName, bulkAddress.houseNumberOrName)
506+
&& Objects.equals(this.line1, bulkAddress.line1)
507+
&& Objects.equals(this.line2, bulkAddress.line2)
508+
&& Objects.equals(this.line3, bulkAddress.line3)
386509
&& Objects.equals(this.mobile, bulkAddress.mobile)
387510
&& Objects.equals(this.postalCode, bulkAddress.postalCode)
388511
&& Objects.equals(this.stateOrProvince, bulkAddress.stateOrProvince)
@@ -397,6 +520,9 @@ public int hashCode() {
397520
country,
398521
email,
399522
houseNumberOrName,
523+
line1,
524+
line2,
525+
line3,
400526
mobile,
401527
postalCode,
402528
stateOrProvince,
@@ -412,6 +538,9 @@ public String toString() {
412538
sb.append(" country: ").append(toIndentedString(country)).append("\n");
413539
sb.append(" email: ").append(toIndentedString(email)).append("\n");
414540
sb.append(" houseNumberOrName: ").append(toIndentedString(houseNumberOrName)).append("\n");
541+
sb.append(" line1: ").append(toIndentedString(line1)).append("\n");
542+
sb.append(" line2: ").append(toIndentedString(line2)).append("\n");
543+
sb.append(" line3: ").append(toIndentedString(line3)).append("\n");
415544
sb.append(" mobile: ").append(toIndentedString(mobile)).append("\n");
416545
sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n");
417546
sb.append(" stateOrProvince: ").append(toIndentedString(stateOrProvince)).append("\n");

0 commit comments

Comments
 (0)