diff --git a/openapi.json b/openapi.json index 0711ccb..f398e3c 100644 --- a/openapi.json +++ b/openapi.json @@ -2565,7 +2565,7 @@ "merchant_code": "MH4H92C7", "vat_amount": 6, "tip_amount": 3, - "entry_mode": "CUSTOMER_ENTRY", + "entry_mode": "customer entry", "auth_code": "053201" } } @@ -2750,8 +2750,8 @@ "schema": { "type": "array", "example": [ - "CUSTOMER_ENTRY", - "CHIP" + "customer entry", + "chip" ], "items": { "$ref": "#/components/schemas/EntryMode" @@ -7401,6 +7401,14 @@ }, { "$ref": "#/components/schemas/TransactionCheckoutInfo" + }, + { + "type": "object", + "properties": { + "entry_mode": { + "$ref": "#/components/schemas/CheckoutEntryMode" + } + } } ] } @@ -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.", @@ -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.", @@ -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", @@ -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", @@ -14087,8 +14126,8 @@ "schema": { "type": "array", "example": [ - "CUSTOMER_ENTRY", - "CHIP" + "customer entry", + "chip" ], "items": { "$ref": "#/components/schemas/EntryMode" diff --git a/src/main/java/com/sumup/sdk/models/CheckoutEntryMode.java b/src/main/java/com/sumup/sdk/models/CheckoutEntryMode.java new file mode 100644 index 0000000..cb4c792 --- /dev/null +++ b/src/main/java/com/sumup/sdk/models/CheckoutEntryMode.java @@ -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(); + } +} diff --git a/src/main/java/com/sumup/sdk/models/CheckoutSuccessTransactionsItem.java b/src/main/java/com/sumup/sdk/models/CheckoutSuccessTransactionsItem.java index 040c5b4..825cabb 100644 --- a/src/main/java/com/sumup/sdk/models/CheckoutSuccessTransactionsItem.java +++ b/src/main/java/com/sumup/sdk/models/CheckoutSuccessTransactionsItem.java @@ -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, @@ -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; @@ -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; } diff --git a/src/main/java/com/sumup/sdk/models/CheckoutTransactionsItem.java b/src/main/java/com/sumup/sdk/models/CheckoutTransactionsItem.java index a8a83c0..560398e 100644 --- a/src/main/java/com/sumup/sdk/models/CheckoutTransactionsItem.java +++ b/src/main/java/com/sumup/sdk/models/CheckoutTransactionsItem.java @@ -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, @@ -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; @@ -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; } diff --git a/src/main/java/com/sumup/sdk/models/EntryMode.java b/src/main/java/com/sumup/sdk/models/EntryMode.java index 00f6a24..ad4aa6f 100644 --- a/src/main/java/com/sumup/sdk/models/EntryMode.java +++ b/src/main/java/com/sumup/sdk/models/EntryMode.java @@ -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; diff --git a/src/main/java/com/sumup/sdk/models/TransactionCheckoutInfo.java b/src/main/java/com/sumup/sdk/models/TransactionCheckoutInfo.java index 46d5dd6..1c095f1 100644 --- a/src/main/java/com/sumup/sdk/models/TransactionCheckoutInfo.java +++ b/src/main/java/com/sumup/sdk/models/TransactionCheckoutInfo.java @@ -9,13 +9,6 @@ public record TransactionCheckoutInfo( */ String authCode, - /** - * 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`. - */ - com.sumup.sdk.models.EntryMode entryMode, - /** Unique code of the registered merchant to whom the payment is made. */ String merchantCode, @@ -40,7 +33,6 @@ public static Builder builder() { /** Builder for TransactionCheckoutInfo instances. */ public static final class Builder { private String authCode; - private com.sumup.sdk.models.EntryMode entryMode; private String merchantCode; private Float tipAmount; private Float vatAmount; @@ -59,20 +51,6 @@ public Builder authCode(String authCode) { return this; } - /** - * 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`. - * @return This builder instance. - */ - public Builder entryMode(com.sumup.sdk.models.EntryMode entryMode) { - this.entryMode = entryMode; - return this; - } - /** * Sets the value for {@code merchantCode}. * @@ -114,7 +92,7 @@ public Builder vatAmount(Float vatAmount) { * @return Immutable TransactionCheckoutInfo. */ public TransactionCheckoutInfo build() { - return new TransactionCheckoutInfo(authCode, entryMode, merchantCode, tipAmount, vatAmount); + return new TransactionCheckoutInfo(authCode, merchantCode, tipAmount, vatAmount); } } } diff --git a/src/main/java/com/sumup/sdk/models/TransactionFull.java b/src/main/java/com/sumup/sdk/models/TransactionFull.java index 3b9e967..ea14af9 100644 --- a/src/main/java/com/sumup/sdk/models/TransactionFull.java +++ b/src/main/java/com/sumup/sdk/models/TransactionFull.java @@ -33,9 +33,9 @@ public record TransactionFull( com.sumup.sdk.models.ElvCardAccount elvAccount, /** - * 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`. */ com.sumup.sdk.models.EntryMode entryMode, @@ -323,10 +323,10 @@ public Builder elvAccount(com.sumup.sdk.models.ElvCardAccount elvAccount) { /** * 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 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`. * @return This builder instance. */ public Builder entryMode(com.sumup.sdk.models.EntryMode entryMode) { diff --git a/src/main/java/com/sumup/sdk/models/TransactionHistory.java b/src/main/java/com/sumup/sdk/models/TransactionHistory.java index 458a86d..a9e0c34 100644 --- a/src/main/java/com/sumup/sdk/models/TransactionHistory.java +++ b/src/main/java/com/sumup/sdk/models/TransactionHistory.java @@ -20,6 +20,13 @@ public record TransactionHistory( */ 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`. + */ + com.sumup.sdk.models.EntryMode entryMode, + /** Unique identifier of the transaction. */ String id, @@ -100,6 +107,7 @@ public static final class Builder { private com.sumup.sdk.models.CardType cardType; private String clientTransactionId; private com.sumup.sdk.models.Currency currency; + private com.sumup.sdk.models.EntryMode entryMode; private String id; private Long installmentsCount; private com.sumup.sdk.models.PaymentType paymentType; @@ -165,6 +173,20 @@ public Builder currency(com.sumup.sdk.models.Currency currency) { return this; } + /** + * 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`. + * @return This builder instance. + */ + public Builder entryMode(com.sumup.sdk.models.EntryMode entryMode) { + this.entryMode = entryMode; + return this; + } + /** * Sets the value for {@code id}. * @@ -366,6 +388,7 @@ public TransactionHistory build() { cardType, clientTransactionId, currency, + entryMode, id, installmentsCount, paymentType, diff --git a/src/main/java/com/sumup/sdk/models/TransactionMixinHistory.java b/src/main/java/com/sumup/sdk/models/TransactionMixinHistory.java index 89237cc..77ce230 100644 --- a/src/main/java/com/sumup/sdk/models/TransactionMixinHistory.java +++ b/src/main/java/com/sumup/sdk/models/TransactionMixinHistory.java @@ -3,6 +3,13 @@ /** Additional transaction fields used by history and detailed views. */ public record TransactionMixinHistory( + /** + * 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`. + */ + com.sumup.sdk.models.EntryMode entryMode, + /** Payout plan of the registered user at the time when the transaction was made. */ com.sumup.sdk.models.TransactionMixinHistoryPayoutPlan payoutPlan, @@ -28,6 +35,7 @@ public static Builder builder() { /** Builder for TransactionMixinHistory instances. */ public static final class Builder { + private com.sumup.sdk.models.EntryMode entryMode; private com.sumup.sdk.models.TransactionMixinHistoryPayoutPlan payoutPlan; private Long payoutsReceived; private Long payoutsTotal; @@ -35,6 +43,20 @@ public static final class Builder { private Builder() {} + /** + * 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`. + * @return This builder instance. + */ + public Builder entryMode(com.sumup.sdk.models.EntryMode entryMode) { + this.entryMode = entryMode; + return this; + } + /** * Sets the value for {@code payoutPlan}. * @@ -89,7 +111,8 @@ public Builder productSummary(String productSummary) { * @return Immutable TransactionMixinHistory. */ public TransactionMixinHistory build() { - return new TransactionMixinHistory(payoutPlan, payoutsReceived, payoutsTotal, productSummary); + return new TransactionMixinHistory( + entryMode, payoutPlan, payoutsReceived, payoutsTotal, productSummary); } } }