Skip to content

Commit de1ded3

Browse files
authored
chore: synced file(s) with sumup/apis (#10)
1 parent dcda1de commit de1ded3

File tree

6 files changed

+202
-102
lines changed

6 files changed

+202
-102
lines changed

openapi.json

Lines changed: 88 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,11 @@
934934
"$ref": "#/components/schemas/ErrorExtended"
935935
},
936936
{
937-
"$ref": "#/components/schemas/CheckoutErrorList"
937+
"type": "array",
938+
"description": "List of error messages.",
939+
"items": {
940+
"$ref": "#/components/schemas/ErrorExtended"
941+
}
938942
}
939943
]
940944
},
@@ -2245,6 +2249,18 @@
22452249
}
22462250
}
22472251
},
2252+
{
2253+
"name": "entry_modes[]",
2254+
"in": "query",
2255+
"description": "Filters the returned results by the specified list of entry modes.",
2256+
"required": false,
2257+
"schema": {
2258+
"type": "array",
2259+
"items": {
2260+
"$ref": "#/components/schemas/EntryModeFilter"
2261+
}
2262+
}
2263+
},
22482264
{
22492265
"name": "types",
22502266
"in": "query",
@@ -6193,6 +6209,18 @@
61936209
"type": "string"
61946210
}
61956211
},
6212+
"EntryModesFilter": {
6213+
"name": "entry_modes[]",
6214+
"in": "query",
6215+
"description": "Filters the returned results by the specified list of entry modes.",
6216+
"required": false,
6217+
"schema": {
6218+
"type": "array",
6219+
"items": {
6220+
"$ref": "#/components/schemas/EntryModeFilter"
6221+
}
6222+
}
6223+
},
61966224
"GeoCoordinatesFilter": {
61976225
"name": "geo_coordinates",
61986226
"in": "query",
@@ -7186,13 +7214,6 @@
71867214
}
71877215
]
71887216
},
7189-
"CheckoutErrorList": {
7190-
"description": "List of error messages.",
7191-
"type": "array",
7192-
"items": {
7193-
"$ref": "#/components/schemas/ErrorExtended"
7194-
}
7195-
},
71967217
"ErrorForbidden": {
71977218
"description": "Error message for forbidden requests.",
71987219
"type": "object",
@@ -8269,32 +8290,32 @@
82698290
"description": "Entry mode of the payment details.",
82708291
"type": "string",
82718292
"enum": [
8272-
"BOLETO",
8273-
"SOFORT",
8274-
"IDEAL",
8275-
"BANCONTACT",
8276-
"EPS",
8277-
"MYBANK",
8278-
"SATISPAY",
8279-
"BLIK",
8280-
"P24",
8281-
"GIROPAY",
8282-
"PIX",
8283-
"QR_CODE_PIX",
8284-
"APPLE_PAY",
8285-
"GOOGLE_PAY",
8286-
"PAYPAL",
8287-
"NONE",
8288-
"CHIP",
8289-
"MANUAL_ENTRY",
8290-
"CUSTOMER_ENTRY",
8291-
"MAGSTRIPE_FALLBACK",
8292-
"MAGSTRIPE",
8293-
"DIRECT_DEBIT",
8294-
"CONTACTLESS",
8295-
"MOTO",
8296-
"CONTACTLESS_MAGSTRIPE",
8297-
"N/A"
8293+
"none",
8294+
"magstripe",
8295+
"chip",
8296+
"manual entry",
8297+
"customer entry",
8298+
"magstripe fallback",
8299+
"contactless",
8300+
"moto",
8301+
"contactless magstripe",
8302+
"boleto",
8303+
"direct debit",
8304+
"sofort",
8305+
"ideal",
8306+
"bancontact",
8307+
"eps",
8308+
"mybank",
8309+
"satispay",
8310+
"blik",
8311+
"p24",
8312+
"giropay",
8313+
"pix",
8314+
"qr code pix",
8315+
"apple pay",
8316+
"google pay",
8317+
"paypal",
8318+
"na"
82988319
]
82998320
},
83008321
"CardType": {
@@ -11071,6 +11092,38 @@
1107111092
"date_of_birth",
1107211093
"address"
1107311094
]
11095+
},
11096+
"EntryModeFilter": {
11097+
"description": "Entry mode value accepted by the `entry_modes[]` filter.",
11098+
"type": "string",
11099+
"enum": [
11100+
"BOLETO",
11101+
"SOFORT",
11102+
"IDEAL",
11103+
"BANCONTACT",
11104+
"EPS",
11105+
"MYBANK",
11106+
"SATISPAY",
11107+
"BLIK",
11108+
"P24",
11109+
"GIROPAY",
11110+
"PIX",
11111+
"QR_CODE_PIX",
11112+
"APPLE_PAY",
11113+
"GOOGLE_PAY",
11114+
"PAYPAL",
11115+
"NONE",
11116+
"CHIP",
11117+
"MANUAL_ENTRY",
11118+
"CUSTOMER_ENTRY",
11119+
"MAGSTRIPE_FALLBACK",
11120+
"MAGSTRIPE",
11121+
"DIRECT_DEBIT",
11122+
"CONTACTLESS",
11123+
"MOTO",
11124+
"CONTACTLESS_MAGSTRIPE",
11125+
"N/A"
11126+
]
1107411127
}
1107511128
},
1107611129
"examples": {
@@ -12077,4 +12130,4 @@
1207712130
]
1207812131
}
1207912132
]
12080-
}
12133+
}

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)