Skip to content

Commit 32ca50d

Browse files
chore: generate code
1 parent 8cface6 commit 32ca50d

File tree

5 files changed

+114
-67
lines changed

5 files changed

+114
-67
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,18 @@ public ListTransactionsV21QueryParams changesSince(java.time.OffsetDateTime valu
678678
return this;
679679
}
680680

681+
/**
682+
* Sets the entry_modes[] query parameter.
683+
*
684+
* @param value Filters the returned results by the specified list of entry modes.
685+
* @return This ListTransactionsV21QueryParams instance.
686+
*/
687+
public ListTransactionsV21QueryParams entryModes(
688+
java.util.List<com.sumup.sdk.models.EntryModeFilter> value) {
689+
this.values.put("entry_modes[]", Objects.requireNonNull(value, "entryModes"));
690+
return this;
691+
}
692+
681693
/**
682694
* Sets the limit query parameter.
683695
*

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,18 @@ public ListTransactionsV21QueryParams changesSince(java.time.OffsetDateTime valu
666666
return this;
667667
}
668668

669+
/**
670+
* Sets the entry_modes[] query parameter.
671+
*
672+
* @param value Filters the returned results by the specified list of entry modes.
673+
* @return This ListTransactionsV21QueryParams instance.
674+
*/
675+
public ListTransactionsV21QueryParams entryModes(
676+
java.util.List<com.sumup.sdk.models.EntryModeFilter> value) {
677+
this.values.put("entry_modes[]", Objects.requireNonNull(value, "entryModes"));
678+
return this;
679+
}
680+
669681
/**
670682
* Sets the limit query parameter.
671683
*

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

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

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

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

77
/** Entry mode of the payment details. */
88
public enum EntryMode {
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-
NONE("NONE"),
25-
CHIP("CHIP"),
26-
MANUAL_ENTRY("MANUAL_ENTRY"),
27-
CUSTOMER_ENTRY("CUSTOMER_ENTRY"),
28-
MAGSTRIPE_FALLBACK("MAGSTRIPE_FALLBACK"),
29-
MAGSTRIPE("MAGSTRIPE"),
30-
DIRECT_DEBIT("DIRECT_DEBIT"),
31-
CONTACTLESS("CONTACTLESS"),
32-
MOTO("MOTO"),
33-
CONTACTLESS_MAGSTRIPE("CONTACTLESS_MAGSTRIPE"),
34-
N_A("N/A");
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+
NA("na");
3535

3636
private final String value;
3737

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
// Code generated by sumup-java/codegen. DO NOT EDIT.
2+
package com.sumup.sdk.models;
3+
4+
import com.fasterxml.jackson.annotation.JsonCreator;
5+
import com.fasterxml.jackson.annotation.JsonValue;
6+
7+
/** Entry mode value accepted by the `entry_modes[]` filter. */
8+
public enum EntryModeFilter {
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+
NONE("NONE"),
25+
CHIP("CHIP"),
26+
MANUAL_ENTRY("MANUAL_ENTRY"),
27+
CUSTOMER_ENTRY("CUSTOMER_ENTRY"),
28+
MAGSTRIPE_FALLBACK("MAGSTRIPE_FALLBACK"),
29+
MAGSTRIPE("MAGSTRIPE"),
30+
DIRECT_DEBIT("DIRECT_DEBIT"),
31+
CONTACTLESS("CONTACTLESS"),
32+
MOTO("MOTO"),
33+
CONTACTLESS_MAGSTRIPE("CONTACTLESS_MAGSTRIPE"),
34+
N_A("N/A");
35+
36+
private final String value;
37+
38+
EntryModeFilter(String value) {
39+
this.value = value;
40+
}
41+
42+
@JsonValue
43+
public String getValue() {
44+
return value;
45+
}
46+
47+
@Override
48+
public String toString() {
49+
return value;
50+
}
51+
52+
@JsonCreator
53+
public static EntryModeFilter fromValue(String value) {
54+
if (value == null) {
55+
return null;
56+
}
57+
for (EntryModeFilter entry : values()) {
58+
if (entry.value.equals(value)) {
59+
return entry;
60+
}
61+
}
62+
throw new IllegalArgumentException("Unknown EntryModeFilter value: " + value);
63+
}
64+
}

0 commit comments

Comments
 (0)