Skip to content

Commit 41954a2

Browse files
chore: generate code
1 parent 6d1790b commit 41954a2

12 files changed

Lines changed: 305 additions & 130 deletions

src/main/java/com/sumup/sdk/clients/TransactionsAsyncClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ public ListTransactionsV21QueryParams changesSince(java.time.OffsetDateTime valu
679679
* @return This ListTransactionsV21QueryParams instance.
680680
*/
681681
public ListTransactionsV21QueryParams entryModes(
682-
java.util.List<com.sumup.sdk.models.EntryModeFilter> value) {
682+
java.util.List<com.sumup.sdk.models.EntryMode> value) {
683683
this.values.put("entry_modes[]", Objects.requireNonNull(value, "entryModes"));
684684
return this;
685685
}

src/main/java/com/sumup/sdk/clients/TransactionsClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ public ListTransactionsV21QueryParams changesSince(java.time.OffsetDateTime valu
667667
* @return This ListTransactionsV21QueryParams instance.
668668
*/
669669
public ListTransactionsV21QueryParams entryModes(
670-
java.util.List<com.sumup.sdk.models.EntryModeFilter> value) {
670+
java.util.List<com.sumup.sdk.models.EntryMode> value) {
671671
this.values.put("entry_modes[]", Objects.requireNonNull(value, "entryModes"));
672672
return this;
673673
}

src/main/java/com/sumup/sdk/models/AddressPayloadLegacy.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ public record AddressPayloadLegacy(
3232
/** Postal code */
3333
String postCode,
3434

35-
/** Country region id */
36-
Double regionId,
37-
3835
/** Country region name */
3936
String regionName) {
4037
/**
@@ -57,7 +54,6 @@ public static final class Builder {
5754
private String landline;
5855
private String lastName;
5956
private String postCode;
60-
private Double regionId;
6157
private String regionName;
6258

6359
private Builder() {}
@@ -161,17 +157,6 @@ public Builder postCode(String postCode) {
161157
return this;
162158
}
163159

164-
/**
165-
* Sets the value for {@code regionId}.
166-
*
167-
* @param regionId Country region id
168-
* @return This builder instance.
169-
*/
170-
public Builder regionId(Double regionId) {
171-
this.regionId = regionId;
172-
return this;
173-
}
174-
175160
/**
176161
* Sets the value for {@code regionName}.
177162
*
@@ -199,7 +184,6 @@ public AddressPayloadLegacy build() {
199184
landline,
200185
lastName,
201186
Objects.requireNonNull(postCode, "postCode"),
202-
regionId,
203187
regionName);
204188
}
205189
}

src/main/java/com/sumup/sdk/models/AddressWithDetails.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ public record AddressWithDetails(
3636
/** Region code */
3737
String regionCode,
3838

39-
/** Country region id */
40-
Double regionId,
41-
4239
/** Region name */
4340
String regionName,
4441

@@ -69,7 +66,6 @@ public static final class Builder {
6966
private String lastName;
7067
private String postCode;
7168
private String regionCode;
72-
private Double regionId;
7369
private String regionName;
7470
private String stateId;
7571
private com.sumup.sdk.models.TimeoffsetDetails timeoffsetDetails;
@@ -197,17 +193,6 @@ public Builder regionCode(String regionCode) {
197193
return this;
198194
}
199195

200-
/**
201-
* Sets the value for {@code regionId}.
202-
*
203-
* @param regionId Country region id
204-
* @return This builder instance.
205-
*/
206-
public Builder regionId(Double regionId) {
207-
this.regionId = regionId;
208-
return this;
209-
}
210-
211196
/**
212197
* Sets the value for {@code regionName}.
213198
*
@@ -259,7 +244,6 @@ public AddressWithDetails build() {
259244
lastName,
260245
postCode,
261246
regionCode,
262-
regionId,
263247
regionName,
264248
stateId,
265249
timeoffsetDetails);

src/main/java/com/sumup/sdk/models/EntryMode.java

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,33 @@
66

77
/** Entry mode of the payment details. */
88
public enum EntryMode {
9-
NONE("none"),
10-
MAGSTRIPE("magstripe"),
11-
CHIP("chip"),
12-
MANUAL_ENTRY("manual entry"),
13-
CUSTOMER_ENTRY("customer entry"),
14-
MAGSTRIPE_FALLBACK("magstripe fallback"),
15-
CONTACTLESS("contactless"),
16-
MOTO("moto"),
17-
CONTACTLESS_MAGSTRIPE("contactless magstripe"),
18-
BOLETO("boleto"),
19-
DIRECT_DEBIT("direct debit"),
20-
SOFORT("sofort"),
21-
IDEAL("ideal"),
22-
BANCONTACT("bancontact"),
23-
EPS("eps"),
24-
MYBANK("mybank"),
25-
SATISPAY("satispay"),
26-
BLIK("blik"),
27-
P24("p24"),
28-
GIROPAY("giropay"),
29-
PIX("pix"),
30-
QR_CODE_PIX("qr code pix"),
31-
APPLE_PAY("apple pay"),
32-
GOOGLE_PAY("google pay"),
33-
PAYPAL("paypal"),
34-
TWINT("twint"),
35-
NA("na");
9+
BOLETO("BOLETO"),
10+
SOFORT("SOFORT"),
11+
IDEAL("IDEAL"),
12+
BANCONTACT("BANCONTACT"),
13+
EPS("EPS"),
14+
MYBANK("MYBANK"),
15+
SATISPAY("SATISPAY"),
16+
BLIK("BLIK"),
17+
P24("P24"),
18+
GIROPAY("GIROPAY"),
19+
PIX("PIX"),
20+
QR_CODE_PIX("QR_CODE_PIX"),
21+
APPLE_PAY("APPLE_PAY"),
22+
GOOGLE_PAY("GOOGLE_PAY"),
23+
PAYPAL("PAYPAL"),
24+
TWINT("TWINT"),
25+
NONE("NONE"),
26+
CHIP("CHIP"),
27+
MANUAL_ENTRY("MANUAL_ENTRY"),
28+
CUSTOMER_ENTRY("CUSTOMER_ENTRY"),
29+
MAGSTRIPE_FALLBACK("MAGSTRIPE_FALLBACK"),
30+
MAGSTRIPE("MAGSTRIPE"),
31+
DIRECT_DEBIT("DIRECT_DEBIT"),
32+
CONTACTLESS("CONTACTLESS"),
33+
MOTO("MOTO"),
34+
CONTACTLESS_MAGSTRIPE("CONTACTLESS_MAGSTRIPE"),
35+
N_A("N/A");
3636

3737
private final String value;
3838

src/main/java/com/sumup/sdk/models/EntryModeFilter.java

Lines changed: 0 additions & 65 deletions
This file was deleted.

src/main/java/com/sumup/sdk/models/ReceiptMerchantDataMerchantProfile.java

Lines changed: 62 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@
55
public record ReceiptMerchantDataMerchantProfile(
66
com.sumup.sdk.models.ReceiptMerchantDataMerchantProfileAddress address,
77
String businessName,
8+
String companyRegistrationNumber,
89
String email,
9-
String merchantCode) {
10+
String language,
11+
String merchantCode,
12+
String vatId,
13+
String website) {
1014
/**
1115
* Creates a builder for ReceiptMerchantDataMerchantProfile.
1216
*
@@ -20,8 +24,12 @@ public static Builder builder() {
2024
public static final class Builder {
2125
private com.sumup.sdk.models.ReceiptMerchantDataMerchantProfileAddress address;
2226
private String businessName;
27+
private String companyRegistrationNumber;
2328
private String email;
29+
private String language;
2430
private String merchantCode;
31+
private String vatId;
32+
private String website;
2533

2634
private Builder() {}
2735

@@ -47,6 +55,17 @@ public Builder businessName(String businessName) {
4755
return this;
4856
}
4957

58+
/**
59+
* Sets the value for {@code companyRegistrationNumber}.
60+
*
61+
* @param companyRegistrationNumber Value for the companyRegistrationNumber field.
62+
* @return This builder instance.
63+
*/
64+
public Builder companyRegistrationNumber(String companyRegistrationNumber) {
65+
this.companyRegistrationNumber = companyRegistrationNumber;
66+
return this;
67+
}
68+
5069
/**
5170
* Sets the value for {@code email}.
5271
*
@@ -58,6 +77,17 @@ public Builder email(String email) {
5877
return this;
5978
}
6079

80+
/**
81+
* Sets the value for {@code language}.
82+
*
83+
* @param language Value for the language field.
84+
* @return This builder instance.
85+
*/
86+
public Builder language(String language) {
87+
this.language = language;
88+
return this;
89+
}
90+
6191
/**
6292
* Sets the value for {@code merchantCode}.
6393
*
@@ -69,13 +99,43 @@ public Builder merchantCode(String merchantCode) {
6999
return this;
70100
}
71101

102+
/**
103+
* Sets the value for {@code vatId}.
104+
*
105+
* @param vatId Value for the vatId field.
106+
* @return This builder instance.
107+
*/
108+
public Builder vatId(String vatId) {
109+
this.vatId = vatId;
110+
return this;
111+
}
112+
113+
/**
114+
* Sets the value for {@code website}.
115+
*
116+
* @param website Value for the website field.
117+
* @return This builder instance.
118+
*/
119+
public Builder website(String website) {
120+
this.website = website;
121+
return this;
122+
}
123+
72124
/**
73125
* Builds an immutable ReceiptMerchantDataMerchantProfile instance.
74126
*
75127
* @return Immutable ReceiptMerchantDataMerchantProfile.
76128
*/
77129
public ReceiptMerchantDataMerchantProfile build() {
78-
return new ReceiptMerchantDataMerchantProfile(address, businessName, email, merchantCode);
130+
return new ReceiptMerchantDataMerchantProfile(
131+
address,
132+
businessName,
133+
companyRegistrationNumber,
134+
email,
135+
language,
136+
merchantCode,
137+
vatId,
138+
website);
79139
}
80140
}
81141
}

0 commit comments

Comments
 (0)