Skip to content

Commit 964c7f7

Browse files
Update all services (#1386)
* false[adyen-sdk-automation] automated change * Correct enums (legacy) * Add unit testing for new methods --------- Co-authored-by: gcatanese <gcatanese@yahoo.com>
1 parent 106cc96 commit 964c7f7

19 files changed

+1163
-34
lines changed
Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
27+
import com.fasterxml.jackson.core.JsonProcessingException;
28+
29+
30+
/**
31+
* AmountNonZeroDecimalsRequirement
32+
*/
33+
@JsonPropertyOrder({
34+
AmountNonZeroDecimalsRequirement.JSON_PROPERTY_DESCRIPTION,
35+
AmountNonZeroDecimalsRequirement.JSON_PROPERTY_TYPE
36+
})
37+
38+
public class AmountNonZeroDecimalsRequirement {
39+
public static final String JSON_PROPERTY_DESCRIPTION = "description";
40+
private String description;
41+
42+
/**
43+
* **amountNonZeroDecimalsRequirement**
44+
*/
45+
public enum TypeEnum {
46+
AMOUNTNONZERODECIMALSREQUIREMENT("amountNonZeroDecimalsRequirement");
47+
48+
private String value;
49+
50+
TypeEnum(String value) {
51+
this.value = value;
52+
}
53+
54+
@JsonValue
55+
public String getValue() {
56+
return value;
57+
}
58+
59+
@Override
60+
public String toString() {
61+
return String.valueOf(value);
62+
}
63+
64+
@JsonCreator
65+
public static TypeEnum fromValue(String value) {
66+
for (TypeEnum b : TypeEnum.values()) {
67+
if (b.value.equals(value)) {
68+
return b;
69+
}
70+
}
71+
throw new IllegalArgumentException("Unexpected value '" + value + "'");
72+
}
73+
}
74+
75+
public static final String JSON_PROPERTY_TYPE = "type";
76+
private TypeEnum type;
77+
78+
public AmountNonZeroDecimalsRequirement() {
79+
}
80+
81+
/**
82+
* Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers.
83+
*
84+
* @param description
85+
* @return the current {@code AmountNonZeroDecimalsRequirement} instance, allowing for method chaining
86+
*/
87+
public AmountNonZeroDecimalsRequirement description(String description) {
88+
this.description = description;
89+
return this;
90+
}
91+
92+
/**
93+
* Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers.
94+
* @return description
95+
*/
96+
@ApiModelProperty(value = "Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers.")
97+
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
98+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
99+
public String getDescription() {
100+
return description;
101+
}
102+
103+
/**
104+
* Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers.
105+
*
106+
* @param description
107+
*/
108+
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
109+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
110+
public void setDescription(String description) {
111+
this.description = description;
112+
}
113+
114+
/**
115+
* **amountNonZeroDecimalsRequirement**
116+
*
117+
* @param type
118+
* @return the current {@code AmountNonZeroDecimalsRequirement} instance, allowing for method chaining
119+
*/
120+
public AmountNonZeroDecimalsRequirement type(TypeEnum type) {
121+
this.type = type;
122+
return this;
123+
}
124+
125+
/**
126+
* **amountNonZeroDecimalsRequirement**
127+
* @return type
128+
*/
129+
@ApiModelProperty(required = true, value = "**amountNonZeroDecimalsRequirement**")
130+
@JsonProperty(JSON_PROPERTY_TYPE)
131+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
132+
public TypeEnum getType() {
133+
return type;
134+
}
135+
136+
/**
137+
* **amountNonZeroDecimalsRequirement**
138+
*
139+
* @param type
140+
*/
141+
@JsonProperty(JSON_PROPERTY_TYPE)
142+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
143+
public void setType(TypeEnum type) {
144+
this.type = type;
145+
}
146+
147+
/**
148+
* Return true if this AmountNonZeroDecimalsRequirement object is equal to o.
149+
*/
150+
@Override
151+
public boolean equals(Object o) {
152+
if (this == o) {
153+
return true;
154+
}
155+
if (o == null || getClass() != o.getClass()) {
156+
return false;
157+
}
158+
AmountNonZeroDecimalsRequirement amountNonZeroDecimalsRequirement = (AmountNonZeroDecimalsRequirement) o;
159+
return Objects.equals(this.description, amountNonZeroDecimalsRequirement.description) &&
160+
Objects.equals(this.type, amountNonZeroDecimalsRequirement.type);
161+
}
162+
163+
@Override
164+
public int hashCode() {
165+
return Objects.hash(description, type);
166+
}
167+
168+
@Override
169+
public String toString() {
170+
StringBuilder sb = new StringBuilder();
171+
sb.append("class AmountNonZeroDecimalsRequirement {\n");
172+
sb.append(" description: ").append(toIndentedString(description)).append("\n");
173+
sb.append(" type: ").append(toIndentedString(type)).append("\n");
174+
sb.append("}");
175+
return sb.toString();
176+
}
177+
178+
/**
179+
* Convert the given object to string with each line indented by 4 spaces
180+
* (except the first line).
181+
*/
182+
private String toIndentedString(Object o) {
183+
if (o == null) {
184+
return "null";
185+
}
186+
return o.toString().replace("\n", "\n ");
187+
}
188+
189+
/**
190+
* Create an instance of AmountNonZeroDecimalsRequirement given an JSON string
191+
*
192+
* @param jsonString JSON string
193+
* @return An instance of AmountNonZeroDecimalsRequirement
194+
* @throws JsonProcessingException if the JSON string is invalid with respect to AmountNonZeroDecimalsRequirement
195+
*/
196+
public static AmountNonZeroDecimalsRequirement fromJson(String jsonString) throws JsonProcessingException {
197+
return JSON.getMapper().readValue(jsonString, AmountNonZeroDecimalsRequirement.class);
198+
}
199+
/**
200+
* Convert an instance of AmountNonZeroDecimalsRequirement to an JSON string
201+
*
202+
* @return JSON string
203+
*/
204+
public String toJson() throws JsonProcessingException {
205+
return JSON.getMapper().writeValueAsString(this);
206+
}
207+
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ public enum ReasonEnum {
188188

189189
REFUSEDBYCOUNTERPARTYBANK("refusedByCounterpartyBank"),
190190

191+
REFUSEDBYCUSTOMER("refusedByCustomer"),
192+
191193
ROUTENOTFOUND("routeNotFound"),
192194

193195
SCAFAILED("scaFailed"),

0 commit comments

Comments
 (0)