Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 88 additions & 35 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,11 @@
"$ref": "#/components/schemas/ErrorExtended"
},
{
"$ref": "#/components/schemas/CheckoutErrorList"
"type": "array",
"description": "List of error messages.",
"items": {
"$ref": "#/components/schemas/ErrorExtended"
}
}
]
},
Expand Down Expand Up @@ -2245,6 +2249,18 @@
}
}
},
{
"name": "entry_modes[]",
"in": "query",
"description": "Filters the returned results by the specified list of entry modes.",
"required": false,
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/EntryModeFilter"
}
}
},
{
"name": "types",
"in": "query",
Expand Down Expand Up @@ -6193,6 +6209,18 @@
"type": "string"
}
},
"EntryModesFilter": {
"name": "entry_modes[]",
"in": "query",
"description": "Filters the returned results by the specified list of entry modes.",
"required": false,
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/EntryModeFilter"
}
}
},
"GeoCoordinatesFilter": {
"name": "geo_coordinates",
"in": "query",
Expand Down Expand Up @@ -7186,13 +7214,6 @@
}
]
},
"CheckoutErrorList": {
"description": "List of error messages.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ErrorExtended"
}
},
"ErrorForbidden": {
"description": "Error message for forbidden requests.",
"type": "object",
Expand Down Expand Up @@ -8269,32 +8290,32 @@
"description": "Entry mode of the payment details.",
"type": "string",
"enum": [
"BOLETO",
"SOFORT",
"IDEAL",
"BANCONTACT",
"EPS",
"MYBANK",
"SATISPAY",
"BLIK",
"P24",
"GIROPAY",
"PIX",
"QR_CODE_PIX",
"APPLE_PAY",
"GOOGLE_PAY",
"PAYPAL",
"NONE",
"CHIP",
"MANUAL_ENTRY",
"CUSTOMER_ENTRY",
"MAGSTRIPE_FALLBACK",
"MAGSTRIPE",
"DIRECT_DEBIT",
"CONTACTLESS",
"MOTO",
"CONTACTLESS_MAGSTRIPE",
"N/A"
"none",
"magstripe",
"chip",
"manual entry",
"customer entry",
"magstripe fallback",
"contactless",
"moto",
"contactless magstripe",
"boleto",
"direct debit",
"sofort",
"ideal",
"bancontact",
"eps",
"mybank",
"satispay",
"blik",
"p24",
"giropay",
"pix",
"qr code pix",
"apple pay",
"google pay",
"paypal",
"na"
]
},
"CardType": {
Expand Down Expand Up @@ -11071,6 +11092,38 @@
"date_of_birth",
"address"
]
},
"EntryModeFilter": {
"description": "Entry mode value accepted by the `entry_modes[]` filter.",
"type": "string",
"enum": [
"BOLETO",
"SOFORT",
"IDEAL",
"BANCONTACT",
"EPS",
"MYBANK",
"SATISPAY",
"BLIK",
"P24",
"GIROPAY",
"PIX",
"QR_CODE_PIX",
"APPLE_PAY",
"GOOGLE_PAY",
"PAYPAL",
"NONE",
"CHIP",
"MANUAL_ENTRY",
"CUSTOMER_ENTRY",
"MAGSTRIPE_FALLBACK",
"MAGSTRIPE",
"DIRECT_DEBIT",
"CONTACTLESS",
"MOTO",
"CONTACTLESS_MAGSTRIPE",
"N/A"
]
}
},
"examples": {
Expand Down Expand Up @@ -12077,4 +12130,4 @@
]
}
]
}
}
12 changes: 12 additions & 0 deletions src/main/java/com/sumup/sdk/clients/TransactionsAsyncClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,18 @@ public ListTransactionsV21QueryParams changesSince(java.time.OffsetDateTime valu
return this;
}

/**
* Sets the entry_modes[] query parameter.
*
* @param value Filters the returned results by the specified list of entry modes.
* @return This ListTransactionsV21QueryParams instance.
*/
public ListTransactionsV21QueryParams entryModes(
java.util.List<com.sumup.sdk.models.EntryModeFilter> value) {
this.values.put("entry_modes[]", Objects.requireNonNull(value, "entryModes"));
return this;
}

/**
* Sets the limit query parameter.
*
Expand Down
12 changes: 12 additions & 0 deletions src/main/java/com/sumup/sdk/clients/TransactionsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,18 @@ public ListTransactionsV21QueryParams changesSince(java.time.OffsetDateTime valu
return this;
}

/**
* Sets the entry_modes[] query parameter.
*
* @param value Filters the returned results by the specified list of entry modes.
* @return This ListTransactionsV21QueryParams instance.
*/
public ListTransactionsV21QueryParams entryModes(
java.util.List<com.sumup.sdk.models.EntryModeFilter> value) {
this.values.put("entry_modes[]", Objects.requireNonNull(value, "entryModes"));
return this;
}

/**
* Sets the limit query parameter.
*
Expand Down
41 changes: 0 additions & 41 deletions src/main/java/com/sumup/sdk/models/CheckoutErrorList.java

This file was deleted.

52 changes: 26 additions & 26 deletions src/main/java/com/sumup/sdk/models/EntryMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,32 @@

/** Entry mode of the payment details. */
public enum EntryMode {
BOLETO("BOLETO"),
SOFORT("SOFORT"),
IDEAL("IDEAL"),
BANCONTACT("BANCONTACT"),
EPS("EPS"),
MYBANK("MYBANK"),
SATISPAY("SATISPAY"),
BLIK("BLIK"),
P24("P24"),
GIROPAY("GIROPAY"),
PIX("PIX"),
QR_CODE_PIX("QR_CODE_PIX"),
APPLE_PAY("APPLE_PAY"),
GOOGLE_PAY("GOOGLE_PAY"),
PAYPAL("PAYPAL"),
NONE("NONE"),
CHIP("CHIP"),
MANUAL_ENTRY("MANUAL_ENTRY"),
CUSTOMER_ENTRY("CUSTOMER_ENTRY"),
MAGSTRIPE_FALLBACK("MAGSTRIPE_FALLBACK"),
MAGSTRIPE("MAGSTRIPE"),
DIRECT_DEBIT("DIRECT_DEBIT"),
CONTACTLESS("CONTACTLESS"),
MOTO("MOTO"),
CONTACTLESS_MAGSTRIPE("CONTACTLESS_MAGSTRIPE"),
N_A("N/A");
NONE("none"),
MAGSTRIPE("magstripe"),
CHIP("chip"),
MANUAL_ENTRY("manual entry"),
CUSTOMER_ENTRY("customer entry"),
MAGSTRIPE_FALLBACK("magstripe fallback"),
CONTACTLESS("contactless"),
MOTO("moto"),
CONTACTLESS_MAGSTRIPE("contactless magstripe"),
BOLETO("boleto"),
DIRECT_DEBIT("direct debit"),
SOFORT("sofort"),
IDEAL("ideal"),
BANCONTACT("bancontact"),
EPS("eps"),
MYBANK("mybank"),
SATISPAY("satispay"),
BLIK("blik"),
P24("p24"),
GIROPAY("giropay"),
PIX("pix"),
QR_CODE_PIX("qr code pix"),
APPLE_PAY("apple pay"),
GOOGLE_PAY("google pay"),
PAYPAL("paypal"),
NA("na");

private final String value;

Expand Down
64 changes: 64 additions & 0 deletions src/main/java/com/sumup/sdk/models/EntryModeFilter.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
// Code generated by sumup-java/codegen. DO NOT EDIT.
package com.sumup.sdk.models;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/** Entry mode value accepted by the `entry_modes[]` filter. */
public enum EntryModeFilter {
BOLETO("BOLETO"),
SOFORT("SOFORT"),
IDEAL("IDEAL"),
BANCONTACT("BANCONTACT"),
EPS("EPS"),
MYBANK("MYBANK"),
SATISPAY("SATISPAY"),
BLIK("BLIK"),
P24("P24"),
GIROPAY("GIROPAY"),
PIX("PIX"),
QR_CODE_PIX("QR_CODE_PIX"),
APPLE_PAY("APPLE_PAY"),
GOOGLE_PAY("GOOGLE_PAY"),
PAYPAL("PAYPAL"),
NONE("NONE"),
CHIP("CHIP"),
MANUAL_ENTRY("MANUAL_ENTRY"),
CUSTOMER_ENTRY("CUSTOMER_ENTRY"),
MAGSTRIPE_FALLBACK("MAGSTRIPE_FALLBACK"),
MAGSTRIPE("MAGSTRIPE"),
DIRECT_DEBIT("DIRECT_DEBIT"),
CONTACTLESS("CONTACTLESS"),
MOTO("MOTO"),
CONTACTLESS_MAGSTRIPE("CONTACTLESS_MAGSTRIPE"),
N_A("N/A");

private final String value;

EntryModeFilter(String value) {
this.value = value;
}

@JsonValue
public String getValue() {
return value;
}

@Override
public String toString() {
return value;
}

@JsonCreator
public static EntryModeFilter fromValue(String value) {
if (value == null) {
return null;
}
for (EntryModeFilter entry : values()) {
if (entry.value.equals(value)) {
return entry;
}
}
throw new IllegalArgumentException("Unknown EntryModeFilter value: " + value);
}
}
Loading