Skip to content

Commit 309c62b

Browse files
false[adyen-sdk-automation] automated change (#1416)
1 parent 4b1d5b4 commit 309c62b

12 files changed

+343
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,225 @@
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+
* PriorityRestriction
34+
*/
35+
@JsonPropertyOrder({
36+
PriorityRestriction.JSON_PROPERTY_OPERATION,
37+
PriorityRestriction.JSON_PROPERTY_VALUE
38+
})
39+
40+
public class PriorityRestriction {
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+
CROSSBORDER("crossBorder"),
49+
50+
FAST("fast"),
51+
52+
INSTANT("instant"),
53+
54+
INTRABANK("intraBank"),
55+
56+
REGULAR("regular");
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 PriorityRestriction() {
89+
}
90+
91+
/**
92+
* Defines how the condition must be evaluated.
93+
*
94+
* @param operation
95+
* @return the current {@code PriorityRestriction} instance, allowing for method chaining
96+
*/
97+
public PriorityRestriction operation(String operation) {
98+
this.operation = operation;
99+
return this;
100+
}
101+
102+
/**
103+
* Defines how the condition must be evaluated.
104+
* @return operation
105+
*/
106+
@ApiModelProperty(required = true, value = "Defines how the condition must be evaluated.")
107+
@JsonProperty(JSON_PROPERTY_OPERATION)
108+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
109+
public String getOperation() {
110+
return operation;
111+
}
112+
113+
/**
114+
* Defines how the condition must be evaluated.
115+
*
116+
* @param operation
117+
*/
118+
@JsonProperty(JSON_PROPERTY_OPERATION)
119+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
120+
public void setOperation(String operation) {
121+
this.operation = operation;
122+
}
123+
124+
/**
125+
* value
126+
*
127+
* @param value
128+
* @return the current {@code PriorityRestriction} instance, allowing for method chaining
129+
*/
130+
public PriorityRestriction value(List<ValueEnum> value) {
131+
this.value = value;
132+
return this;
133+
}
134+
135+
public PriorityRestriction addValueItem(ValueEnum valueItem) {
136+
if (this.value == null) {
137+
this.value = new ArrayList<>();
138+
}
139+
this.value.add(valueItem);
140+
return this;
141+
}
142+
143+
/**
144+
* value
145+
* @return value
146+
*/
147+
@ApiModelProperty(value = "")
148+
@JsonProperty(JSON_PROPERTY_VALUE)
149+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
150+
public List<ValueEnum> getValue() {
151+
return value;
152+
}
153+
154+
/**
155+
* value
156+
*
157+
* @param value
158+
*/
159+
@JsonProperty(JSON_PROPERTY_VALUE)
160+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
161+
public void setValue(List<ValueEnum> value) {
162+
this.value = value;
163+
}
164+
165+
/**
166+
* Return true if this PriorityRestriction object is equal to o.
167+
*/
168+
@Override
169+
public boolean equals(Object o) {
170+
if (this == o) {
171+
return true;
172+
}
173+
if (o == null || getClass() != o.getClass()) {
174+
return false;
175+
}
176+
PriorityRestriction priorityRestriction = (PriorityRestriction) o;
177+
return Objects.equals(this.operation, priorityRestriction.operation) &&
178+
Objects.equals(this.value, priorityRestriction.value);
179+
}
180+
181+
@Override
182+
public int hashCode() {
183+
return Objects.hash(operation, value);
184+
}
185+
186+
@Override
187+
public String toString() {
188+
StringBuilder sb = new StringBuilder();
189+
sb.append("class PriorityRestriction {\n");
190+
sb.append(" operation: ").append(toIndentedString(operation)).append("\n");
191+
sb.append(" value: ").append(toIndentedString(value)).append("\n");
192+
sb.append("}");
193+
return sb.toString();
194+
}
195+
196+
/**
197+
* Convert the given object to string with each line indented by 4 spaces
198+
* (except the first line).
199+
*/
200+
private String toIndentedString(Object o) {
201+
if (o == null) {
202+
return "null";
203+
}
204+
return o.toString().replace("\n", "\n ");
205+
}
206+
207+
/**
208+
* Create an instance of PriorityRestriction given an JSON string
209+
*
210+
* @param jsonString JSON string
211+
* @return An instance of PriorityRestriction
212+
* @throws JsonProcessingException if the JSON string is invalid with respect to PriorityRestriction
213+
*/
214+
public static PriorityRestriction fromJson(String jsonString) throws JsonProcessingException {
215+
return JSON.getMapper().readValue(jsonString, PriorityRestriction.class);
216+
}
217+
/**
218+
* Convert an instance of PriorityRestriction to an JSON string
219+
*
220+
* @return JSON string
221+
*/
222+
public String toJson() throws JsonProcessingException {
223+
return JSON.getMapper().writeValueAsString(this);
224+
}
225+
}

Diff for: src/main/java/com/adyen/model/balanceplatform/TransactionRuleRestrictions.java

+41-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import com.adyen.model.balanceplatform.MccsRestriction;
3131
import com.adyen.model.balanceplatform.MerchantNamesRestriction;
3232
import com.adyen.model.balanceplatform.MerchantsRestriction;
33+
import com.adyen.model.balanceplatform.PriorityRestriction;
3334
import com.adyen.model.balanceplatform.ProcessingTypesRestriction;
3435
import com.adyen.model.balanceplatform.RiskScoresRestriction;
3536
import com.adyen.model.balanceplatform.SameAmountRestriction;
@@ -66,6 +67,7 @@
6667
TransactionRuleRestrictions.JSON_PROPERTY_MCCS,
6768
TransactionRuleRestrictions.JSON_PROPERTY_MERCHANT_NAMES,
6869
TransactionRuleRestrictions.JSON_PROPERTY_MERCHANTS,
70+
TransactionRuleRestrictions.JSON_PROPERTY_PRIORITY,
6971
TransactionRuleRestrictions.JSON_PROPERTY_PROCESSING_TYPES,
7072
TransactionRuleRestrictions.JSON_PROPERTY_RISK_SCORES,
7173
TransactionRuleRestrictions.JSON_PROPERTY_SAME_AMOUNT_RESTRICTION,
@@ -118,6 +120,9 @@ public class TransactionRuleRestrictions {
118120
public static final String JSON_PROPERTY_MERCHANTS = "merchants";
119121
private MerchantsRestriction merchants;
120122

123+
public static final String JSON_PROPERTY_PRIORITY = "priority";
124+
private PriorityRestriction priority;
125+
121126
public static final String JSON_PROPERTY_PROCESSING_TYPES = "processingTypes";
122127
private ProcessingTypesRestriction processingTypes;
123128

@@ -604,6 +609,39 @@ public void setMerchants(MerchantsRestriction merchants) {
604609
this.merchants = merchants;
605610
}
606611

612+
/**
613+
* priority
614+
*
615+
* @param priority
616+
* @return the current {@code TransactionRuleRestrictions} instance, allowing for method chaining
617+
*/
618+
public TransactionRuleRestrictions priority(PriorityRestriction priority) {
619+
this.priority = priority;
620+
return this;
621+
}
622+
623+
/**
624+
* priority
625+
* @return priority
626+
*/
627+
@ApiModelProperty(value = "")
628+
@JsonProperty(JSON_PROPERTY_PRIORITY)
629+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
630+
public PriorityRestriction getPriority() {
631+
return priority;
632+
}
633+
634+
/**
635+
* priority
636+
*
637+
* @param priority
638+
*/
639+
@JsonProperty(JSON_PROPERTY_PRIORITY)
640+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
641+
public void setPriority(PriorityRestriction priority) {
642+
this.priority = priority;
643+
}
644+
607645
/**
608646
* processingTypes
609647
*
@@ -861,6 +899,7 @@ public boolean equals(Object o) {
861899
Objects.equals(this.mccs, transactionRuleRestrictions.mccs) &&
862900
Objects.equals(this.merchantNames, transactionRuleRestrictions.merchantNames) &&
863901
Objects.equals(this.merchants, transactionRuleRestrictions.merchants) &&
902+
Objects.equals(this.priority, transactionRuleRestrictions.priority) &&
864903
Objects.equals(this.processingTypes, transactionRuleRestrictions.processingTypes) &&
865904
Objects.equals(this.riskScores, transactionRuleRestrictions.riskScores) &&
866905
Objects.equals(this.sameAmountRestriction, transactionRuleRestrictions.sameAmountRestriction) &&
@@ -872,7 +911,7 @@ public boolean equals(Object o) {
872911

873912
@Override
874913
public int hashCode() {
875-
return Objects.hash(activeNetworkTokens, brandVariants, counterpartyBank, counterpartyTypes, countries, dayOfWeek, differentCurrencies, entryModes, internationalTransaction, matchingTransactions, matchingValues, mccs, merchantNames, merchants, processingTypes, riskScores, sameAmountRestriction, sameCounterpartyRestriction, sourceAccountTypes, timeOfDay, totalAmount);
914+
return Objects.hash(activeNetworkTokens, brandVariants, counterpartyBank, counterpartyTypes, countries, dayOfWeek, differentCurrencies, entryModes, internationalTransaction, matchingTransactions, matchingValues, mccs, merchantNames, merchants, priority, processingTypes, riskScores, sameAmountRestriction, sameCounterpartyRestriction, sourceAccountTypes, timeOfDay, totalAmount);
876915
}
877916

878917
@Override
@@ -893,6 +932,7 @@ public String toString() {
893932
sb.append(" mccs: ").append(toIndentedString(mccs)).append("\n");
894933
sb.append(" merchantNames: ").append(toIndentedString(merchantNames)).append("\n");
895934
sb.append(" merchants: ").append(toIndentedString(merchants)).append("\n");
935+
sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
896936
sb.append(" processingTypes: ").append(toIndentedString(processingTypes)).append("\n");
897937
sb.append(" riskScores: ").append(toIndentedString(riskScores)).append("\n");
898938
sb.append(" sameAmountRestriction: ").append(toIndentedString(sameAmountRestriction)).append("\n");

Diff for: src/main/java/com/adyen/model/balanceplatform/VerificationDeadline.java

+8
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ public enum CapabilitiesEnum {
8686

8787
ISSUECARDCONSUMER("issueCardConsumer"),
8888

89+
ISSUECHARGECARD("issueChargeCard"),
90+
91+
ISSUECHARGECARDCOMMERCIAL("issueChargeCardCommercial"),
92+
8993
ISSUECREDITLIMIT("issueCreditLimit"),
9094

9195
LOCALACCEPTANCE("localAcceptance"),
@@ -134,6 +138,10 @@ public enum CapabilitiesEnum {
134138

135139
USECARDINRESTRICTEDINDUSTRIESCONSUMER("useCardInRestrictedIndustriesConsumer"),
136140

141+
USECHARGECARD("useChargeCard"),
142+
143+
USECHARGECARDCOMMERCIAL("useChargeCardCommercial"),
144+
137145
WITHDRAWFROMATM("withdrawFromAtm"),
138146

139147
WITHDRAWFROMATMCOMMERCIAL("withdrawFromAtmCommercial"),

Diff for: src/main/java/com/adyen/model/balanceplatform/VerificationError.java

+8
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ public enum CapabilitiesEnum {
9090

9191
ISSUECARDCONSUMER("issueCardConsumer"),
9292

93+
ISSUECHARGECARD("issueChargeCard"),
94+
95+
ISSUECHARGECARDCOMMERCIAL("issueChargeCardCommercial"),
96+
9397
ISSUECREDITLIMIT("issueCreditLimit"),
9498

9599
LOCALACCEPTANCE("localAcceptance"),
@@ -138,6 +142,10 @@ public enum CapabilitiesEnum {
138142

139143
USECARDINRESTRICTEDINDUSTRIESCONSUMER("useCardInRestrictedIndustriesConsumer"),
140144

145+
USECHARGECARD("useChargeCard"),
146+
147+
USECHARGECARDCOMMERCIAL("useChargeCardCommercial"),
148+
141149
WITHDRAWFROMATM("withdrawFromAtm"),
142150

143151
WITHDRAWFROMATMCOMMERCIAL("withdrawFromAtmCommercial"),

Diff for: src/main/java/com/adyen/model/balanceplatform/VerificationErrorRecursive.java

+8
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ public enum CapabilitiesEnum {
8989

9090
ISSUECARDCONSUMER("issueCardConsumer"),
9191

92+
ISSUECHARGECARD("issueChargeCard"),
93+
94+
ISSUECHARGECARDCOMMERCIAL("issueChargeCardCommercial"),
95+
9296
ISSUECREDITLIMIT("issueCreditLimit"),
9397

9498
LOCALACCEPTANCE("localAcceptance"),
@@ -137,6 +141,10 @@ public enum CapabilitiesEnum {
137141

138142
USECARDINRESTRICTEDINDUSTRIESCONSUMER("useCardInRestrictedIndustriesConsumer"),
139143

144+
USECHARGECARD("useChargeCard"),
145+
146+
USECHARGECARDCOMMERCIAL("useChargeCardCommercial"),
147+
140148
WITHDRAWFROMATM("withdrawFromAtm"),
141149

142150
WITHDRAWFROMATMCOMMERCIAL("withdrawFromAtmCommercial"),

0 commit comments

Comments
 (0)