Skip to content

Commit cc3a52d

Browse files
false[adyen-sdk-automation] automated change (#1375)
1 parent 342b722 commit cc3a52d

File tree

4 files changed

+95
-64
lines changed

4 files changed

+95
-64
lines changed

src/main/java/com/adyen/model/management/Currency.java

+40-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
@JsonPropertyOrder({
3434
Currency.JSON_PROPERTY_AMOUNT,
3535
Currency.JSON_PROPERTY_CURRENCY_CODE,
36+
Currency.JSON_PROPERTY_MAX_AMOUNT,
3637
Currency.JSON_PROPERTY_PERCENTAGE
3738
})
3839

@@ -43,6 +44,9 @@ public class Currency {
4344
public static final String JSON_PROPERTY_CURRENCY_CODE = "currencyCode";
4445
private String currencyCode;
4546

47+
public static final String JSON_PROPERTY_MAX_AMOUNT = "maxAmount";
48+
private Integer maxAmount;
49+
4650
public static final String JSON_PROPERTY_PERCENTAGE = "percentage";
4751
private Double percentage;
4852

@@ -115,6 +119,39 @@ public void setCurrencyCode(String currencyCode) {
115119
this.currencyCode = currencyCode;
116120
}
117121

122+
/**
123+
* The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
124+
*
125+
* @param maxAmount
126+
* @return the current {@code Currency} instance, allowing for method chaining
127+
*/
128+
public Currency maxAmount(Integer maxAmount) {
129+
this.maxAmount = maxAmount;
130+
return this;
131+
}
132+
133+
/**
134+
* The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
135+
* @return maxAmount
136+
*/
137+
@ApiModelProperty(value = "The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).")
138+
@JsonProperty(JSON_PROPERTY_MAX_AMOUNT)
139+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
140+
public Integer getMaxAmount() {
141+
return maxAmount;
142+
}
143+
144+
/**
145+
* The maximum surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
146+
*
147+
* @param maxAmount
148+
*/
149+
@JsonProperty(JSON_PROPERTY_MAX_AMOUNT)
150+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
151+
public void setMaxAmount(Integer maxAmount) {
152+
this.maxAmount = maxAmount;
153+
}
154+
118155
/**
119156
* Surcharge percentage per transaction. The maximum number of decimal places is two. For example, **1%** or **2.27%**.
120157
*
@@ -162,12 +199,13 @@ public boolean equals(Object o) {
162199
Currency currency = (Currency) o;
163200
return Objects.equals(this.amount, currency.amount) &&
164201
Objects.equals(this.currencyCode, currency.currencyCode) &&
202+
Objects.equals(this.maxAmount, currency.maxAmount) &&
165203
Objects.equals(this.percentage, currency.percentage);
166204
}
167205

168206
@Override
169207
public int hashCode() {
170-
return Objects.hash(amount, currencyCode, percentage);
208+
return Objects.hash(amount, currencyCode, maxAmount, percentage);
171209
}
172210

173211
@Override
@@ -176,6 +214,7 @@ public String toString() {
176214
sb.append("class Currency {\n");
177215
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
178216
sb.append(" currencyCode: ").append(toIndentedString(currencyCode)).append("\n");
217+
sb.append(" maxAmount: ").append(toIndentedString(maxAmount)).append("\n");
179218
sb.append(" percentage: ").append(toIndentedString(percentage)).append("\n");
180219
sb.append("}");
181220
return sb.toString();

src/main/java/com/adyen/model/management/ModelConfiguration.java

+48-9
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
*/
3636
@JsonPropertyOrder({
3737
ModelConfiguration.JSON_PROPERTY_BRAND,
38+
ModelConfiguration.JSON_PROPERTY_COMMERCIAL,
3839
ModelConfiguration.JSON_PROPERTY_COUNTRY,
3940
ModelConfiguration.JSON_PROPERTY_CURRENCIES,
4041
ModelConfiguration.JSON_PROPERTY_SOURCES
@@ -45,6 +46,9 @@ public class ModelConfiguration {
4546
public static final String JSON_PROPERTY_BRAND = "brand";
4647
private String brand;
4748

49+
public static final String JSON_PROPERTY_COMMERCIAL = "commercial";
50+
private Boolean commercial;
51+
4852
public static final String JSON_PROPERTY_COUNTRY = "country";
4953
private List<String> country = null;
5054

@@ -91,7 +95,40 @@ public void setBrand(String brand) {
9195
}
9296

9397
/**
94-
* Countries, to filter different surcharge amounts for domestic or international cards.
98+
* Set to **true** to apply surcharges only to commercial/business cards.
99+
*
100+
* @param commercial
101+
* @return the current {@code ModelConfiguration} instance, allowing for method chaining
102+
*/
103+
public ModelConfiguration commercial(Boolean commercial) {
104+
this.commercial = commercial;
105+
return this;
106+
}
107+
108+
/**
109+
* Set to **true** to apply surcharges only to commercial/business cards.
110+
* @return commercial
111+
*/
112+
@ApiModelProperty(value = "Set to **true** to apply surcharges only to commercial/business cards.")
113+
@JsonProperty(JSON_PROPERTY_COMMERCIAL)
114+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
115+
public Boolean getCommercial() {
116+
return commercial;
117+
}
118+
119+
/**
120+
* Set to **true** to apply surcharges only to commercial/business cards.
121+
*
122+
* @param commercial
123+
*/
124+
@JsonProperty(JSON_PROPERTY_COMMERCIAL)
125+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
126+
public void setCommercial(Boolean commercial) {
127+
this.commercial = commercial;
128+
}
129+
130+
/**
131+
* The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region.
95132
*
96133
* @param country
97134
* @return the current {@code ModelConfiguration} instance, allowing for method chaining
@@ -110,18 +147,18 @@ public ModelConfiguration addCountryItem(String countryItem) {
110147
}
111148

112149
/**
113-
* Countries, to filter different surcharge amounts for domestic or international cards.
150+
* The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region.
114151
* @return country
115152
*/
116-
@ApiModelProperty(value = "Countries, to filter different surcharge amounts for domestic or international cards.")
153+
@ApiModelProperty(value = "The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region.")
117154
@JsonProperty(JSON_PROPERTY_COUNTRY)
118155
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
119156
public List<String> getCountry() {
120157
return country;
121158
}
122159

123160
/**
124-
* Countries, to filter different surcharge amounts for domestic or international cards.
161+
* The country/region of the card issuer. If used, the surcharge settings only apply to the card issued in that country/region.
125162
*
126163
* @param country
127164
*/
@@ -132,7 +169,7 @@ public void setCountry(List<String> country) {
132169
}
133170

134171
/**
135-
* Currency, and surcharge percentage or amount.
172+
* Currency and percentage or amount of the surcharge.
136173
*
137174
* @param currencies
138175
* @return the current {@code ModelConfiguration} instance, allowing for method chaining
@@ -148,18 +185,18 @@ public ModelConfiguration addCurrenciesItem(Currency currenciesItem) {
148185
}
149186

150187
/**
151-
* Currency, and surcharge percentage or amount.
188+
* Currency and percentage or amount of the surcharge.
152189
* @return currencies
153190
*/
154-
@ApiModelProperty(required = true, value = "Currency, and surcharge percentage or amount.")
191+
@ApiModelProperty(required = true, value = "Currency and percentage or amount of the surcharge.")
155192
@JsonProperty(JSON_PROPERTY_CURRENCIES)
156193
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
157194
public List<Currency> getCurrencies() {
158195
return currencies;
159196
}
160197

161198
/**
162-
* Currency, and surcharge percentage or amount.
199+
* Currency and percentage or amount of the surcharge.
163200
*
164201
* @param currencies
165202
*/
@@ -223,21 +260,23 @@ public boolean equals(Object o) {
223260
}
224261
ModelConfiguration configuration = (ModelConfiguration) o;
225262
return Objects.equals(this.brand, configuration.brand) &&
263+
Objects.equals(this.commercial, configuration.commercial) &&
226264
Objects.equals(this.country, configuration.country) &&
227265
Objects.equals(this.currencies, configuration.currencies) &&
228266
Objects.equals(this.sources, configuration.sources);
229267
}
230268

231269
@Override
232270
public int hashCode() {
233-
return Objects.hash(brand, country, currencies, sources);
271+
return Objects.hash(brand, commercial, country, currencies, sources);
234272
}
235273

236274
@Override
237275
public String toString() {
238276
StringBuilder sb = new StringBuilder();
239277
sb.append("class ModelConfiguration {\n");
240278
sb.append(" brand: ").append(toIndentedString(brand)).append("\n");
279+
sb.append(" commercial: ").append(toIndentedString(commercial)).append("\n");
241280
sb.append(" country: ").append(toIndentedString(country)).append("\n");
242281
sb.append(" currencies: ").append(toIndentedString(currencies)).append("\n");
243282
sb.append(" sources: ").append(toIndentedString(sources)).append("\n");

src/main/java/com/adyen/model/management/SplitConfiguration.java

+3-50
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
@JsonPropertyOrder({
3737
SplitConfiguration.JSON_PROPERTY_DESCRIPTION,
3838
SplitConfiguration.JSON_PROPERTY_RULES,
39-
SplitConfiguration.JSON_PROPERTY_SPLIT_CONFIGURATION_ID,
40-
SplitConfiguration.JSON_PROPERTY_STORES
39+
SplitConfiguration.JSON_PROPERTY_SPLIT_CONFIGURATION_ID
4140
})
4241

4342
public class SplitConfiguration {
@@ -50,9 +49,6 @@ public class SplitConfiguration {
5049
public static final String JSON_PROPERTY_SPLIT_CONFIGURATION_ID = "splitConfigurationId";
5150
private String splitConfigurationId;
5251

53-
public static final String JSON_PROPERTY_STORES = "stores";
54-
private List<String> stores = null;
55-
5652
public SplitConfiguration() {
5753
}
5854

@@ -160,47 +156,6 @@ public void setSplitConfigurationId(String splitConfigurationId) {
160156
this.splitConfigurationId = splitConfigurationId;
161157
}
162158

163-
/**
164-
* List of stores to which the split configuration applies.
165-
*
166-
* @param stores
167-
* @return the current {@code SplitConfiguration} instance, allowing for method chaining
168-
*/
169-
public SplitConfiguration stores(List<String> stores) {
170-
this.stores = stores;
171-
return this;
172-
}
173-
174-
public SplitConfiguration addStoresItem(String storesItem) {
175-
if (this.stores == null) {
176-
this.stores = new ArrayList<>();
177-
}
178-
this.stores.add(storesItem);
179-
return this;
180-
}
181-
182-
/**
183-
* List of stores to which the split configuration applies.
184-
* @return stores
185-
*/
186-
@ApiModelProperty(value = "List of stores to which the split configuration applies.")
187-
@JsonProperty(JSON_PROPERTY_STORES)
188-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
189-
public List<String> getStores() {
190-
return stores;
191-
}
192-
193-
/**
194-
* List of stores to which the split configuration applies.
195-
*
196-
* @param stores
197-
*/
198-
@JsonProperty(JSON_PROPERTY_STORES)
199-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
200-
public void setStores(List<String> stores) {
201-
this.stores = stores;
202-
}
203-
204159
/**
205160
* Return true if this SplitConfiguration object is equal to o.
206161
*/
@@ -215,13 +170,12 @@ public boolean equals(Object o) {
215170
SplitConfiguration splitConfiguration = (SplitConfiguration) o;
216171
return Objects.equals(this.description, splitConfiguration.description) &&
217172
Objects.equals(this.rules, splitConfiguration.rules) &&
218-
Objects.equals(this.splitConfigurationId, splitConfiguration.splitConfigurationId) &&
219-
Objects.equals(this.stores, splitConfiguration.stores);
173+
Objects.equals(this.splitConfigurationId, splitConfiguration.splitConfigurationId);
220174
}
221175

222176
@Override
223177
public int hashCode() {
224-
return Objects.hash(description, rules, splitConfigurationId, stores);
178+
return Objects.hash(description, rules, splitConfigurationId);
225179
}
226180

227181
@Override
@@ -231,7 +185,6 @@ public String toString() {
231185
sb.append(" description: ").append(toIndentedString(description)).append("\n");
232186
sb.append(" rules: ").append(toIndentedString(rules)).append("\n");
233187
sb.append(" splitConfigurationId: ").append(toIndentedString(splitConfigurationId)).append("\n");
234-
sb.append(" stores: ").append(toIndentedString(stores)).append("\n");
235188
sb.append("}");
236189
return sb.toString();
237190
}

src/main/java/com/adyen/model/management/Surcharge.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void setAskConfirmation(Boolean askConfirmation) {
8282
}
8383

8484
/**
85-
* Surcharge fees or percentages for specific payment methods, funding sources (credit or debit), and currencies.
85+
* Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies.
8686
*
8787
* @param configurations
8888
* @return the current {@code Surcharge} instance, allowing for method chaining
@@ -101,18 +101,18 @@ public Surcharge addConfigurationsItem(ModelConfiguration configurationsItem) {
101101
}
102102

103103
/**
104-
* Surcharge fees or percentages for specific payment methods, funding sources (credit or debit), and currencies.
104+
* Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies.
105105
* @return configurations
106106
*/
107-
@ApiModelProperty(value = "Surcharge fees or percentages for specific payment methods, funding sources (credit or debit), and currencies.")
107+
@ApiModelProperty(value = "Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies.")
108108
@JsonProperty(JSON_PROPERTY_CONFIGURATIONS)
109109
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
110110
public List<ModelConfiguration> getConfigurations() {
111111
return configurations;
112112
}
113113

114114
/**
115-
* Surcharge fees or percentages for specific payment methods, funding sources (credit or debit), and currencies.
115+
* Surcharge fees or percentages for specific cards, funding sources (credit or debit), and currencies.
116116
*
117117
* @param configurations
118118
*/

0 commit comments

Comments
 (0)