Skip to content
Open
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
89 changes: 64 additions & 25 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2565,7 +2565,7 @@
"merchant_code": "MH4H92C7",
"vat_amount": 6,
"tip_amount": 3,
"entry_mode": "CUSTOMER_ENTRY",
"entry_mode": "customer entry",
"auth_code": "053201"
}
}
Expand Down Expand Up @@ -2750,8 +2750,8 @@
"schema": {
"type": "array",
"example": [
"CUSTOMER_ENTRY",
"CHIP"
"customer entry",
"chip"
],
"items": {
"$ref": "#/components/schemas/EntryMode"
Expand Down Expand Up @@ -7401,6 +7401,14 @@
},
{
"$ref": "#/components/schemas/TransactionCheckoutInfo"
},
{
"type": "object",
"properties": {
"entry_mode": {
"$ref": "#/components/schemas/CheckoutEntryMode"
}
}
}
]
}
Expand Down Expand Up @@ -8913,9 +8921,6 @@
"description": "Tip included in the total transaction amount, in major units of the transaction's currency.",
"example": 3
},
"entry_mode": {
"$ref": "#/components/schemas/EntryMode"
},
"auth_code": {
"type": "string",
"description": "Authorization code for the transaction sent by the payment card issuer or bank. Applicable only to card payments.",
Expand All @@ -8928,6 +8933,9 @@
"description": "Additional transaction fields used by history and detailed views.",
"type": "object",
"properties": {
"entry_mode": {
"$ref": "#/components/schemas/EntryMode"
},
"product_summary": {
"type": "string",
"description": "Short description of the payment. The value is taken from the `description` property of the related checkout resource.",
Expand Down Expand Up @@ -9042,13 +9050,16 @@
],
"example": "ECOM"
},
"EntryMode": {
"title": "Entry Mode",
"CheckoutEntryMode": {
"title": "Checkout Entry Mode",
"type": "string",
"description": "How the payment details were captured, for example `CHIP` or `CONTACTLESS` for card-present payments and `CUSTOMER_ENTRY` for card details entered by the payer. For wallet and alternative payment methods, this can identify the method, such as `APPLE_PAY` or `BLIK`.",
"description": "How the payment details were captured for a checkout transaction, for example `CUSTOMER_ENTRY` for card details entered by the payer or `APPLE_PAY` for an Apple Pay payment. Checkout entry modes use uppercase values, unlike entry modes returned by the Transactions endpoints.",
"enum": [
"CUSTOMER_ENTRY",
"MOTO",
"CARD",
"BOLETO",
"SOFORT",
"DIRECT_DEBIT",
"IDEAL",
"BANCONTACT",
"EPS",
Expand All @@ -9059,24 +9070,52 @@
"GIROPAY",
"PIX",
"QR_CODE_PIX",
"KLARNA",
"BANCOMATPAY",
"APPLE_PAY",
"GOOGLE_PAY",
"PAYPAL",
"TWINT",
"NONE",
"CHIP",
"MANUAL_ENTRY",
"CUSTOMER_ENTRY",
"MAGSTRIPE_FALLBACK",
"MAGSTRIPE",
"DIRECT_DEBIT",
"CONTACTLESS",
"MOTO",
"CONTACTLESS_MAGSTRIPE",
"N/A"
"GOOGLE_PAY"
],
"example": "CUSTOMER_ENTRY"
},
"EntryMode": {
"title": "Entry Mode",
"type": "string",
"description": "How the payment details were captured, for example `chip` or `contactless` for card-present payments and `customer entry` for card details entered by the payer. For wallet and alternative payment methods, this can identify the method, such as `apple pay` or `blik`.",
"enum": [
"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",
"sumup gift card",
"paypal",
"twint",
"iris",
"sumup pay",
"na"
],
"example": "customer entry"
},
"CardType": {
"title": "Card Type",
"type": "string",
Expand Down Expand Up @@ -14087,8 +14126,8 @@
"schema": {
"type": "array",
"example": [
"CUSTOMER_ENTRY",
"CHIP"
"customer entry",
"chip"
],
"items": {
"$ref": "#/components/schemas/EntryMode"
Expand Down
76 changes: 76 additions & 0 deletions src/main/java/com/sumup/sdk/models/CheckoutEntryMode.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
// 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;
import java.util.Objects;

/**
* How the payment details were captured for a checkout transaction, for example `CUSTOMER_ENTRY`
* for card details entered by the payer or `APPLE_PAY` for an Apple Pay payment. Checkout entry
* modes use uppercase values, unlike entry modes returned by the Transactions endpoints.
*/
public final class CheckoutEntryMode {
public static final CheckoutEntryMode CUSTOMER_ENTRY = new CheckoutEntryMode("CUSTOMER_ENTRY");
public static final CheckoutEntryMode MOTO = new CheckoutEntryMode("MOTO");
public static final CheckoutEntryMode CARD = new CheckoutEntryMode("CARD");
public static final CheckoutEntryMode BOLETO = new CheckoutEntryMode("BOLETO");
public static final CheckoutEntryMode DIRECT_DEBIT = new CheckoutEntryMode("DIRECT_DEBIT");
public static final CheckoutEntryMode IDEAL = new CheckoutEntryMode("IDEAL");
public static final CheckoutEntryMode BANCONTACT = new CheckoutEntryMode("BANCONTACT");
public static final CheckoutEntryMode EPS = new CheckoutEntryMode("EPS");
public static final CheckoutEntryMode MYBANK = new CheckoutEntryMode("MYBANK");
public static final CheckoutEntryMode SATISPAY = new CheckoutEntryMode("SATISPAY");
public static final CheckoutEntryMode BLIK = new CheckoutEntryMode("BLIK");
public static final CheckoutEntryMode P24 = new CheckoutEntryMode("P24");
public static final CheckoutEntryMode GIROPAY = new CheckoutEntryMode("GIROPAY");
public static final CheckoutEntryMode PIX = new CheckoutEntryMode("PIX");
public static final CheckoutEntryMode QR_CODE_PIX = new CheckoutEntryMode("QR_CODE_PIX");
public static final CheckoutEntryMode KLARNA = new CheckoutEntryMode("KLARNA");
public static final CheckoutEntryMode BANCOMATPAY = new CheckoutEntryMode("BANCOMATPAY");
public static final CheckoutEntryMode APPLE_PAY = new CheckoutEntryMode("APPLE_PAY");
public static final CheckoutEntryMode PAYPAL = new CheckoutEntryMode("PAYPAL");
public static final CheckoutEntryMode GOOGLE_PAY = new CheckoutEntryMode("GOOGLE_PAY");

private final String value;

private CheckoutEntryMode(String value) {
this.value = Objects.requireNonNull(value, "value");
}

/**
* Creates a CheckoutEntryMode for a value not yet known to this SDK version.
*
* @param value Wire value sent to or received from the API.
* @return Open enum value wrapping {@code value}.
*/
public static CheckoutEntryMode of(String value) {
return new CheckoutEntryMode(value);
}

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

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

@JsonCreator
public static CheckoutEntryMode fromValue(String value) {
return value == null ? null : new CheckoutEntryMode(value);
}

@Override
public boolean equals(Object other) {
return this == other
|| (other instanceof CheckoutEntryMode that && this.value.equals(that.value));
}

@Override
public int hashCode() {
return value.hashCode();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ public record CheckoutSuccessTransactionsItem(
com.sumup.sdk.models.Currency currency,

/**
* How the payment details were captured, for example `CHIP` or `CONTACTLESS` for card-present
* payments and `CUSTOMER_ENTRY` for card details entered by the payer. For wallet and
* alternative payment methods, this can identify the method, such as `APPLE_PAY` or `BLIK`.
* How the payment details were captured for a checkout transaction, for example
* `CUSTOMER_ENTRY` for card details entered by the payer or `APPLE_PAY` for an Apple Pay
* payment. Checkout entry modes use uppercase values, unlike entry modes returned by the
* Transactions endpoints.
*/
com.sumup.sdk.models.EntryMode entryMode,
com.sumup.sdk.models.CheckoutEntryMode entryMode,

/** Unique identifier of the transaction. */
String id,
Expand Down Expand Up @@ -85,7 +86,7 @@ public static final class Builder {
private Float amount;
private String authCode;
private com.sumup.sdk.models.Currency currency;
private com.sumup.sdk.models.EntryMode entryMode;
private com.sumup.sdk.models.CheckoutEntryMode entryMode;
private String id;
private Long installmentsCount;
private String merchantCode;
Expand Down Expand Up @@ -137,13 +138,13 @@ public Builder currency(com.sumup.sdk.models.Currency currency) {
/**
* Sets the value for {@code entryMode}.
*
* @param entryMode How the payment details were captured, for example `CHIP` or `CONTACTLESS`
* for card-present payments and `CUSTOMER_ENTRY` for card details entered by the payer. For
* wallet and alternative payment methods, this can identify the method, such as `APPLE_PAY`
* or `BLIK`.
* @param entryMode How the payment details were captured for a checkout transaction, for
* example `CUSTOMER_ENTRY` for card details entered by the payer or `APPLE_PAY` for an
* Apple Pay payment. Checkout entry modes use uppercase values, unlike entry modes returned
* by the Transactions endpoints.
* @return This builder instance.
*/
public Builder entryMode(com.sumup.sdk.models.EntryMode entryMode) {
public Builder entryMode(com.sumup.sdk.models.CheckoutEntryMode entryMode) {
this.entryMode = entryMode;
return this;
}
Expand Down
21 changes: 11 additions & 10 deletions src/main/java/com/sumup/sdk/models/CheckoutTransactionsItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ public record CheckoutTransactionsItem(
com.sumup.sdk.models.Currency currency,

/**
* How the payment details were captured, for example `CHIP` or `CONTACTLESS` for card-present
* payments and `CUSTOMER_ENTRY` for card details entered by the payer. For wallet and
* alternative payment methods, this can identify the method, such as `APPLE_PAY` or `BLIK`.
* How the payment details were captured for a checkout transaction, for example
* `CUSTOMER_ENTRY` for card details entered by the payer or `APPLE_PAY` for an Apple Pay
* payment. Checkout entry modes use uppercase values, unlike entry modes returned by the
* Transactions endpoints.
*/
com.sumup.sdk.models.EntryMode entryMode,
com.sumup.sdk.models.CheckoutEntryMode entryMode,

/** Unique identifier of the transaction. */
String id,
Expand Down Expand Up @@ -85,7 +86,7 @@ public static final class Builder {
private Float amount;
private String authCode;
private com.sumup.sdk.models.Currency currency;
private com.sumup.sdk.models.EntryMode entryMode;
private com.sumup.sdk.models.CheckoutEntryMode entryMode;
private String id;
private Long installmentsCount;
private String merchantCode;
Expand Down Expand Up @@ -137,13 +138,13 @@ public Builder currency(com.sumup.sdk.models.Currency currency) {
/**
* Sets the value for {@code entryMode}.
*
* @param entryMode How the payment details were captured, for example `CHIP` or `CONTACTLESS`
* for card-present payments and `CUSTOMER_ENTRY` for card details entered by the payer. For
* wallet and alternative payment methods, this can identify the method, such as `APPLE_PAY`
* or `BLIK`.
* @param entryMode How the payment details were captured for a checkout transaction, for
* example `CUSTOMER_ENTRY` for card details entered by the payer or `APPLE_PAY` for an
* Apple Pay payment. Checkout entry modes use uppercase values, unlike entry modes returned
* by the Transactions endpoints.
* @return This builder instance.
*/
public Builder entryMode(com.sumup.sdk.models.EntryMode entryMode) {
public Builder entryMode(com.sumup.sdk.models.CheckoutEntryMode entryMode) {
this.entryMode = entryMode;
return this;
}
Expand Down
63 changes: 33 additions & 30 deletions src/main/java/com/sumup/sdk/models/EntryMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,41 @@
import java.util.Objects;

/**
* How the payment details were captured, for example `CHIP` or `CONTACTLESS` for card-present
* payments and `CUSTOMER_ENTRY` for card details entered by the payer. For wallet and alternative
* payment methods, this can identify the method, such as `APPLE_PAY` or `BLIK`.
* How the payment details were captured, for example `chip` or `contactless` for card-present
* payments and `customer entry` for card details entered by the payer. For wallet and alternative
* payment methods, this can identify the method, such as `apple pay` or `blik`.
*/
public final class EntryMode {
public static final EntryMode BOLETO = new EntryMode("BOLETO");
public static final EntryMode SOFORT = new EntryMode("SOFORT");
public static final EntryMode IDEAL = new EntryMode("IDEAL");
public static final EntryMode BANCONTACT = new EntryMode("BANCONTACT");
public static final EntryMode EPS = new EntryMode("EPS");
public static final EntryMode MYBANK = new EntryMode("MYBANK");
public static final EntryMode SATISPAY = new EntryMode("SATISPAY");
public static final EntryMode BLIK = new EntryMode("BLIK");
public static final EntryMode P24 = new EntryMode("P24");
public static final EntryMode GIROPAY = new EntryMode("GIROPAY");
public static final EntryMode PIX = new EntryMode("PIX");
public static final EntryMode QR_CODE_PIX = new EntryMode("QR_CODE_PIX");
public static final EntryMode APPLE_PAY = new EntryMode("APPLE_PAY");
public static final EntryMode GOOGLE_PAY = new EntryMode("GOOGLE_PAY");
public static final EntryMode PAYPAL = new EntryMode("PAYPAL");
public static final EntryMode TWINT = new EntryMode("TWINT");
public static final EntryMode NONE = new EntryMode("NONE");
public static final EntryMode CHIP = new EntryMode("CHIP");
public static final EntryMode MANUAL_ENTRY = new EntryMode("MANUAL_ENTRY");
public static final EntryMode CUSTOMER_ENTRY = new EntryMode("CUSTOMER_ENTRY");
public static final EntryMode MAGSTRIPE_FALLBACK = new EntryMode("MAGSTRIPE_FALLBACK");
public static final EntryMode MAGSTRIPE = new EntryMode("MAGSTRIPE");
public static final EntryMode DIRECT_DEBIT = new EntryMode("DIRECT_DEBIT");
public static final EntryMode CONTACTLESS = new EntryMode("CONTACTLESS");
public static final EntryMode MOTO = new EntryMode("MOTO");
public static final EntryMode CONTACTLESS_MAGSTRIPE = new EntryMode("CONTACTLESS_MAGSTRIPE");
public static final EntryMode N_A = new EntryMode("N/A");
public static final EntryMode NONE = new EntryMode("none");
public static final EntryMode MAGSTRIPE = new EntryMode("magstripe");
public static final EntryMode CHIP = new EntryMode("chip");
public static final EntryMode MANUAL_ENTRY = new EntryMode("manual entry");
public static final EntryMode CUSTOMER_ENTRY = new EntryMode("customer entry");
public static final EntryMode MAGSTRIPE_FALLBACK = new EntryMode("magstripe fallback");
public static final EntryMode CONTACTLESS = new EntryMode("contactless");
public static final EntryMode MOTO = new EntryMode("moto");
public static final EntryMode CONTACTLESS_MAGSTRIPE = new EntryMode("contactless magstripe");
public static final EntryMode BOLETO = new EntryMode("boleto");
public static final EntryMode DIRECT_DEBIT = new EntryMode("direct debit");
public static final EntryMode SOFORT = new EntryMode("sofort");
public static final EntryMode IDEAL = new EntryMode("ideal");
public static final EntryMode BANCONTACT = new EntryMode("bancontact");
public static final EntryMode EPS = new EntryMode("eps");
public static final EntryMode MYBANK = new EntryMode("mybank");
public static final EntryMode SATISPAY = new EntryMode("satispay");
public static final EntryMode BLIK = new EntryMode("blik");
public static final EntryMode P24 = new EntryMode("p24");
public static final EntryMode GIROPAY = new EntryMode("giropay");
public static final EntryMode PIX = new EntryMode("pix");
public static final EntryMode QR_CODE_PIX = new EntryMode("qr code pix");
public static final EntryMode APPLE_PAY = new EntryMode("apple pay");
public static final EntryMode GOOGLE_PAY = new EntryMode("google pay");
public static final EntryMode SUMUP_GIFT_CARD = new EntryMode("sumup gift card");
public static final EntryMode PAYPAL = new EntryMode("paypal");
public static final EntryMode TWINT = new EntryMode("twint");
public static final EntryMode IRIS = new EntryMode("iris");
public static final EntryMode SUMUP_PAY = new EntryMode("sumup pay");
public static final EntryMode NA = new EntryMode("na");

private final String value;

Expand Down
Loading
Loading