diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 3fdaa4ab05d..e69de29bb2d 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +0,0 @@
-v1719
\ No newline at end of file
diff --git a/src/main/java/com/stripe/ApiVersion.java b/src/main/java/com/stripe/ApiVersion.java
index 69b0987197a..02176b8db3c 100644
--- a/src/main/java/com/stripe/ApiVersion.java
+++ b/src/main/java/com/stripe/ApiVersion.java
@@ -2,5 +2,5 @@
package com.stripe;
final class ApiVersion {
- public static final String CURRENT = "2025-04-30.basil";
+ public static final String CURRENT = "2025-05-28.basil";
}
diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java
index b15cbcc39d8..043a04fa4da 100644
--- a/src/main/java/com/stripe/model/Account.java
+++ b/src/main/java/com/stripe/model/Account.java
@@ -1225,6 +1225,15 @@ public static class Capabilities extends StripeObject {
@SerializedName("paynow_payments")
String paynowPayments;
+ /**
+ * The status of the pix payments capability of the account, or whether the account can directly
+ * process pix charges.
+ *
+ *
One of {@code active}, {@code inactive}, or {@code pending}.
+ */
+ @SerializedName("pix_payments")
+ String pixPayments;
+
/**
* The status of the promptpay payments capability of the account, or whether the account can
* directly process promptpay charges.
diff --git a/src/main/java/com/stripe/model/AccountSession.java b/src/main/java/com/stripe/model/AccountSession.java
index ec1f6523fcc..e40ef491a1b 100644
--- a/src/main/java/com/stripe/model/AccountSession.java
+++ b/src/main/java/com/stripe/model/AccountSession.java
@@ -135,6 +135,9 @@ public static class Components extends StripeObject {
@SerializedName("balances")
Balances balances;
+ @SerializedName("disputes_list")
+ DisputesList disputesList;
+
@SerializedName("documents")
Documents documents;
@@ -156,6 +159,9 @@ public static class Components extends StripeObject {
@SerializedName("payment_details")
PaymentDetails paymentDetails;
+ @SerializedName("payment_disputes")
+ PaymentDisputes paymentDisputes;
+
@SerializedName("payments")
Payments payments;
@@ -327,6 +333,56 @@ public static class Features extends StripeObject {
}
}
+ /**
+ * For more details about DisputesList, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DisputesList extends StripeObject {
+ /** Whether the embedded component is enabled. */
+ @SerializedName("enabled")
+ Boolean enabled;
+
+ @SerializedName("features")
+ Features features;
+
+ /**
+ * For more details about Features, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Features extends StripeObject {
+ /**
+ * Whether to allow capturing and cancelling payment intents. This is {@code true} by
+ * default.
+ */
+ @SerializedName("capture_payments")
+ Boolean capturePayments;
+
+ /**
+ * Whether to allow connected accounts to manage destination charges that are created on
+ * behalf of them. This is {@code false} by default.
+ */
+ @SerializedName("destination_on_behalf_of_charge_management")
+ Boolean destinationOnBehalfOfChargeManagement;
+
+ /**
+ * Whether to allow responding to disputes, including submitting evidence and accepting
+ * disputes. This is {@code true} by default.
+ */
+ @SerializedName("dispute_management")
+ Boolean disputeManagement;
+
+ /** Whether to allow sending refunds. This is {@code true} by default. */
+ @SerializedName("refund_management")
+ Boolean refundManagement;
+ }
+ }
+
/**
* For more details about Documents, please refer to the API Reference.
@@ -613,6 +669,49 @@ public static class Features extends StripeObject {
}
}
+ /**
+ * For more details about PaymentDisputes, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PaymentDisputes extends StripeObject {
+ /** Whether the embedded component is enabled. */
+ @SerializedName("enabled")
+ Boolean enabled;
+
+ @SerializedName("features")
+ Features features;
+
+ /**
+ * For more details about Features, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Features extends StripeObject {
+ /**
+ * Whether to allow connected accounts to manage destination charges that are created on
+ * behalf of them. This is {@code false} by default.
+ */
+ @SerializedName("destination_on_behalf_of_charge_management")
+ Boolean destinationOnBehalfOfChargeManagement;
+
+ /**
+ * Whether to allow responding to disputes, including submitting evidence and accepting
+ * disputes. This is {@code true} by default.
+ */
+ @SerializedName("dispute_management")
+ Boolean disputeManagement;
+
+ /** Whether to allow sending refunds. This is {@code true} by default. */
+ @SerializedName("refund_management")
+ Boolean refundManagement;
+ }
+ }
+
/**
* For more details about Payments, please refer to the API Reference.
diff --git a/src/main/java/com/stripe/model/Balance.java b/src/main/java/com/stripe/model/Balance.java
index 1e0c70549d6..217563f689f 100644
--- a/src/main/java/com/stripe/model/Balance.java
+++ b/src/main/java/com/stripe/model/Balance.java
@@ -81,6 +81,9 @@ public class Balance extends ApiResource {
@SerializedName("pending")
List pending;
+ @SerializedName("refund_and_dispute_prefunding")
+ RefundAndDisputePrefunding refundAndDisputePrefunding;
+
/**
* Retrieves the current account balance, based on the authentication that was used to make the
* request. For a sample request, see API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class RefundAndDisputePrefunding extends StripeObject {
+ /** Funds that are available for use. */
+ @SerializedName("available")
+ List available;
+
+ /** Funds that are pending. */
+ @SerializedName("pending")
+ List pending;
+
+ /**
+ * For more details about Available, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Available extends StripeObject {
+ /** Balance amount. */
+ @SerializedName("amount")
+ Long amount;
+
+ /**
+ * Three-letter ISO currency
+ * code, in lowercase. Must be a supported
+ * currency.
+ */
+ @SerializedName("currency")
+ String currency;
+
+ @SerializedName("source_types")
+ SourceTypes sourceTypes;
+
+ /**
+ * For more details about SourceTypes, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class SourceTypes extends StripeObject {
+ /**
+ * Amount coming from legacy US ACH
+ * payments.
+ */
+ @SerializedName("bank_account")
+ Long bankAccount;
+
+ /**
+ * Amount coming from most payment methods, including cards as well as non-legacy bank debits.
+ */
+ @SerializedName("card")
+ Long card;
+
+ /**
+ * Amount coming from FPX, a Malaysian
+ * payment method.
+ */
+ @SerializedName("fpx")
+ Long fpx;
+ }
+ }
+
+ /**
+ * For more details about Pending, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Pending extends StripeObject {
+ /** Balance amount. */
+ @SerializedName("amount")
+ Long amount;
+
+ /**
+ * Three-letter ISO currency
+ * code, in lowercase. Must be a supported
+ * currency.
+ */
+ @SerializedName("currency")
+ String currency;
+
+ @SerializedName("source_types")
+ SourceTypes sourceTypes;
+
+ /**
+ * For more details about SourceTypes, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class SourceTypes extends StripeObject {
+ /**
+ * Amount coming from legacy US ACH
+ * payments.
+ */
+ @SerializedName("bank_account")
+ Long bankAccount;
+
+ /**
+ * Amount coming from most payment methods, including cards as well as non-legacy bank debits.
+ */
+ @SerializedName("card")
+ Long card;
+
+ /**
+ * Amount coming from FPX, a Malaysian
+ * payment method.
+ */
+ @SerializedName("fpx")
+ Long fpx;
+ }
+ }
+ }
+
@Override
public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
trySetResponseGetter(issuing, responseGetter);
+ trySetResponseGetter(refundAndDisputePrefunding, responseGetter);
}
}
diff --git a/src/main/java/com/stripe/model/BalanceTransaction.java b/src/main/java/com/stripe/model/BalanceTransaction.java
index 5ea1c65f439..2c195229c91 100644
--- a/src/main/java/com/stripe/model/BalanceTransaction.java
+++ b/src/main/java/com/stripe/model/BalanceTransaction.java
@@ -40,6 +40,14 @@ public class BalanceTransaction extends ApiResource implements HasId {
@SerializedName("available_on")
Long availableOn;
+ /**
+ * The balance that this transaction impacts.
+ *
+ * One of {@code issuing}, {@code payments}, or {@code refund_and_dispute_prefunding}.
+ */
+ @SerializedName("balance_type")
+ String balanceType;
+
/** Time at which the object was created. Measured in seconds since the Unix epoch. */
@SerializedName("created")
Long created;
diff --git a/src/main/java/com/stripe/model/Capability.java b/src/main/java/com/stripe/model/Capability.java
index 9ee8106dfbe..75dd78dfcbf 100644
--- a/src/main/java/com/stripe/model/Capability.java
+++ b/src/main/java/com/stripe/model/Capability.java
@@ -340,9 +340,11 @@ public static class Requirements extends StripeObject {
List alternatives;
/**
- * Date by which the fields in {@code currently_due} must be collected to keep the capability
- * enabled for the account. These fields may disable the capability sooner if the next threshold
- * is reached before they are collected.
+ * The date by which all required account information must be both submitted and verified. This
+ * includes fields listed in {@code currently_due} as well as those in {@code
+ * pending_verification}. If any required information is missing or unverified by this date, the
+ * account may be disabled. Note that {@code current_deadline} may change if additional {@code
+ * currently_due} requirements are requested.
*/
@SerializedName("current_deadline")
Long currentDeadline;
diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java
index 5099bc9d71c..bb47e3291e7 100644
--- a/src/main/java/com/stripe/model/Charge.java
+++ b/src/main/java/com/stripe/model/Charge.java
@@ -1431,6 +1431,20 @@ public static class AcssDebit extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Affirm extends StripeObject {
+ /**
+ * ID of the location that this
+ * transaction's reader is assigned to.
+ */
+ @SerializedName("location")
+ String location;
+
+ /**
+ * ID of the reader this
+ * transaction was made on.
+ */
+ @SerializedName("reader")
+ String reader;
+
/** The Affirm transaction ID associated with this payment. */
@SerializedName("transaction_id")
String transactionId;
@@ -3827,6 +3841,20 @@ public static class WechatPay extends StripeObject {
@SerializedName("fingerprint")
String fingerprint;
+ /**
+ * ID of the location that this
+ * transaction's reader is assigned to.
+ */
+ @SerializedName("location")
+ String location;
+
+ /**
+ * ID of the reader this
+ * transaction was made on.
+ */
+ @SerializedName("reader")
+ String reader;
+
/** Transaction ID of this particular WeChat Pay transaction. */
@SerializedName("transaction_id")
String transactionId;
diff --git a/src/main/java/com/stripe/model/CreditNote.java b/src/main/java/com/stripe/model/CreditNote.java
index c064b70e851..8576cb7d60e 100644
--- a/src/main/java/com/stripe/model/CreditNote.java
+++ b/src/main/java/com/stripe/model/CreditNote.java
@@ -143,6 +143,20 @@ public class CreditNote extends ApiResource implements HasId, MetadataStore pretaxCreditAmounts;
@@ -274,56 +288,58 @@ public void setInvoiceObject(Invoice expandableObject) {
}
/**
- * Issue a credit note to adjust the amount of a finalized invoice. For a {@code status=open}
- * invoice, a credit note reduces its {@code amount_due}. For a {@code status=paid} invoice, a
- * credit note does not affect its {@code amount_due}. Instead, it can result in any combination
- * of the following:
+ * Issue a credit note to adjust the amount of a finalized invoice. A credit note will first
+ * reduce the invoice’s {@code amount_remaining} (and {@code amount_due}), but not below zero.
+ * This amount is indicated by the credit note’s {@code pre_payment_amount}. The excess amount is
+ * indicated by {@code post_payment_amount}, and it can result in any combination of the
+ * following:
*
*
*
*
- * - Refund: create a new refund (using {@code refund_amount}) or link an existing refund
- * (using {@code refund}).
+ *
- Refunds: create a new refund (using {@code refund_amount}) or link existing refunds
+ * (using {@code refunds}).
*
- Customer balance credit: credit the customer’s balance (using {@code credit_amount})
* which will be automatically applied to their next invoice when it’s finalized.
*
- Outside of Stripe credit: record the amount that is or will be credited outside of Stripe
* (using {@code out_of_band_amount}).
*
*
- * For post-payment credit notes the sum of the refund, credit and outside of Stripe amounts
- * must equal the credit note total.
+ *
The sum of refunds, customer balance credits, and outside of Stripe credits must equal the
+ * {@code post_payment_amount}.
*
- *
You may issue multiple credit notes for an invoice. Each credit note will increment the
- * invoice’s {@code pre_payment_credit_notes_amount} or {@code post_payment_credit_notes_amount}
- * depending on its {@code status} at the time of credit note creation.
+ *
You may issue multiple credit notes for an invoice. Each credit note may increment the
+ * invoice’s {@code pre_payment_credit_notes_amount}, {@code post_payment_credit_notes_amount}, or
+ * both, depending on the invoice’s {@code amount_remaining} at the time of credit note creation.
*/
public static CreditNote create(Map params) throws StripeException {
return create(params, (RequestOptions) null);
}
/**
- * Issue a credit note to adjust the amount of a finalized invoice. For a {@code status=open}
- * invoice, a credit note reduces its {@code amount_due}. For a {@code status=paid} invoice, a
- * credit note does not affect its {@code amount_due}. Instead, it can result in any combination
- * of the following:
+ * Issue a credit note to adjust the amount of a finalized invoice. A credit note will first
+ * reduce the invoice’s {@code amount_remaining} (and {@code amount_due}), but not below zero.
+ * This amount is indicated by the credit note’s {@code pre_payment_amount}. The excess amount is
+ * indicated by {@code post_payment_amount}, and it can result in any combination of the
+ * following:
*
*
*
*
- * - Refund: create a new refund (using {@code refund_amount}) or link an existing refund
- * (using {@code refund}).
+ *
- Refunds: create a new refund (using {@code refund_amount}) or link existing refunds
+ * (using {@code refunds}).
*
- Customer balance credit: credit the customer’s balance (using {@code credit_amount})
* which will be automatically applied to their next invoice when it’s finalized.
*
- Outside of Stripe credit: record the amount that is or will be credited outside of Stripe
* (using {@code out_of_band_amount}).
*
*
- * For post-payment credit notes the sum of the refund, credit and outside of Stripe amounts
- * must equal the credit note total.
+ *
The sum of refunds, customer balance credits, and outside of Stripe credits must equal the
+ * {@code post_payment_amount}.
*
- *
You may issue multiple credit notes for an invoice. Each credit note will increment the
- * invoice’s {@code pre_payment_credit_notes_amount} or {@code post_payment_credit_notes_amount}
- * depending on its {@code status} at the time of credit note creation.
+ *
You may issue multiple credit notes for an invoice. Each credit note may increment the
+ * invoice’s {@code pre_payment_credit_notes_amount}, {@code post_payment_credit_notes_amount}, or
+ * both, depending on the invoice’s {@code amount_remaining} at the time of credit note creation.
*/
public static CreditNote create(Map params, RequestOptions options)
throws StripeException {
@@ -334,56 +350,58 @@ public static CreditNote create(Map params, RequestOptions optio
}
/**
- * Issue a credit note to adjust the amount of a finalized invoice. For a {@code status=open}
- * invoice, a credit note reduces its {@code amount_due}. For a {@code status=paid} invoice, a
- * credit note does not affect its {@code amount_due}. Instead, it can result in any combination
- * of the following:
+ * Issue a credit note to adjust the amount of a finalized invoice. A credit note will first
+ * reduce the invoice’s {@code amount_remaining} (and {@code amount_due}), but not below zero.
+ * This amount is indicated by the credit note’s {@code pre_payment_amount}. The excess amount is
+ * indicated by {@code post_payment_amount}, and it can result in any combination of the
+ * following:
*
*
*
*
- * - Refund: create a new refund (using {@code refund_amount}) or link an existing refund
- * (using {@code refund}).
+ *
- Refunds: create a new refund (using {@code refund_amount}) or link existing refunds
+ * (using {@code refunds}).
*
- Customer balance credit: credit the customer’s balance (using {@code credit_amount})
* which will be automatically applied to their next invoice when it’s finalized.
*
- Outside of Stripe credit: record the amount that is or will be credited outside of Stripe
* (using {@code out_of_band_amount}).
*
*
- * For post-payment credit notes the sum of the refund, credit and outside of Stripe amounts
- * must equal the credit note total.
+ *
The sum of refunds, customer balance credits, and outside of Stripe credits must equal the
+ * {@code post_payment_amount}.
*
- *
You may issue multiple credit notes for an invoice. Each credit note will increment the
- * invoice’s {@code pre_payment_credit_notes_amount} or {@code post_payment_credit_notes_amount}
- * depending on its {@code status} at the time of credit note creation.
+ *
You may issue multiple credit notes for an invoice. Each credit note may increment the
+ * invoice’s {@code pre_payment_credit_notes_amount}, {@code post_payment_credit_notes_amount}, or
+ * both, depending on the invoice’s {@code amount_remaining} at the time of credit note creation.
*/
public static CreditNote create(CreditNoteCreateParams params) throws StripeException {
return create(params, (RequestOptions) null);
}
/**
- * Issue a credit note to adjust the amount of a finalized invoice. For a {@code status=open}
- * invoice, a credit note reduces its {@code amount_due}. For a {@code status=paid} invoice, a
- * credit note does not affect its {@code amount_due}. Instead, it can result in any combination
- * of the following:
+ * Issue a credit note to adjust the amount of a finalized invoice. A credit note will first
+ * reduce the invoice’s {@code amount_remaining} (and {@code amount_due}), but not below zero.
+ * This amount is indicated by the credit note’s {@code pre_payment_amount}. The excess amount is
+ * indicated by {@code post_payment_amount}, and it can result in any combination of the
+ * following:
*
*
*
*
- * - Refund: create a new refund (using {@code refund_amount}) or link an existing refund
- * (using {@code refund}).
+ *
- Refunds: create a new refund (using {@code refund_amount}) or link existing refunds
+ * (using {@code refunds}).
*
- Customer balance credit: credit the customer’s balance (using {@code credit_amount})
* which will be automatically applied to their next invoice when it’s finalized.
*
- Outside of Stripe credit: record the amount that is or will be credited outside of Stripe
* (using {@code out_of_band_amount}).
*
*
- * For post-payment credit notes the sum of the refund, credit and outside of Stripe amounts
- * must equal the credit note total.
+ *
The sum of refunds, customer balance credits, and outside of Stripe credits must equal the
+ * {@code post_payment_amount}.
*
- *
You may issue multiple credit notes for an invoice. Each credit note will increment the
- * invoice’s {@code pre_payment_credit_notes_amount} or {@code post_payment_credit_notes_amount}
- * depending on its {@code status} at the time of credit note creation.
+ *
You may issue multiple credit notes for an invoice. Each credit note may increment the
+ * invoice’s {@code pre_payment_credit_notes_amount}, {@code post_payment_credit_notes_amount}, or
+ * both, depending on the invoice’s {@code amount_remaining} at the time of credit note creation.
*/
public static CreditNote create(CreditNoteCreateParams params, RequestOptions options)
throws StripeException {
diff --git a/src/main/java/com/stripe/model/Dispute.java b/src/main/java/com/stripe/model/Dispute.java
index 2e2b58447e1..e5bb2ce2a77 100644
--- a/src/main/java/com/stripe/model/Dispute.java
+++ b/src/main/java/com/stripe/model/Dispute.java
@@ -125,9 +125,10 @@ public class Dispute extends ApiResource
* Reason given by cardholder for dispute. Possible values are {@code bank_cannot_process}, {@code
* check_returned}, {@code credit_not_processed}, {@code customer_initiated}, {@code
* debit_not_authorized}, {@code duplicate}, {@code fraudulent}, {@code general}, {@code
- * incorrect_account_details}, {@code insufficient_funds}, {@code product_not_received}, {@code
- * product_unacceptable}, {@code subscription_canceled}, or {@code unrecognized}. Learn more about
- * dispute reasons.
+ * incorrect_account_details}, {@code insufficient_funds}, {@code noncompliant}, {@code
+ * product_not_received}, {@code product_unacceptable}, {@code subscription_canceled}, or {@code
+ * unrecognized}. Learn more about dispute
+ * reasons.
*/
@SerializedName("reason")
String reason;
diff --git a/src/main/java/com/stripe/model/Event.java b/src/main/java/com/stripe/model/Event.java
index bf9c9585259..8259eb58f5c 100644
--- a/src/main/java/com/stripe/model/Event.java
+++ b/src/main/java/com/stripe/model/Event.java
@@ -62,6 +62,7 @@ public class Event extends ApiResource implements HasId {
@SerializedName("api_version")
String apiVersion;
+ /** Authentication context needed to fetch the event or related object. */
@SerializedName("context")
String context;
@@ -150,11 +151,12 @@ public class Event extends ApiResource implements HasId {
* invoice.paid}, {@code invoice.payment_action_required}, {@code invoice.payment_failed}, {@code
* invoice.payment_succeeded}, {@code invoice.sent}, {@code invoice.upcoming}, {@code
* invoice.updated}, {@code invoice.voided}, {@code invoice.will_be_due}, {@code
- * invoiceitem.created}, {@code invoiceitem.deleted}, {@code issuing_authorization.created},
- * {@code issuing_authorization.request}, {@code issuing_authorization.updated}, {@code
- * issuing_card.created}, {@code issuing_card.updated}, {@code issuing_cardholder.created}, {@code
- * issuing_cardholder.updated}, {@code issuing_dispute.closed}, {@code issuing_dispute.created},
- * {@code issuing_dispute.funds_reinstated}, {@code issuing_dispute.funds_rescinded}, {@code
+ * invoice_payment.paid}, {@code invoiceitem.created}, {@code invoiceitem.deleted}, {@code
+ * issuing_authorization.created}, {@code issuing_authorization.request}, {@code
+ * issuing_authorization.updated}, {@code issuing_card.created}, {@code issuing_card.updated},
+ * {@code issuing_cardholder.created}, {@code issuing_cardholder.updated}, {@code
+ * issuing_dispute.closed}, {@code issuing_dispute.created}, {@code
+ * issuing_dispute.funds_reinstated}, {@code issuing_dispute.funds_rescinded}, {@code
* issuing_dispute.submitted}, {@code issuing_dispute.updated}, {@code
* issuing_personalization_design.activated}, {@code issuing_personalization_design.deactivated},
* {@code issuing_personalization_design.rejected}, {@code
diff --git a/src/main/java/com/stripe/model/Invoice.java b/src/main/java/com/stripe/model/Invoice.java
index 8bfbd15e59d..1e44d0a03d4 100644
--- a/src/main/java/com/stripe/model/Invoice.java
+++ b/src/main/java/com/stripe/model/Invoice.java
@@ -12,6 +12,7 @@
import com.stripe.net.RequestOptions;
import com.stripe.net.StripeResponseGetter;
import com.stripe.param.InvoiceAddLinesParams;
+import com.stripe.param.InvoiceAttachPaymentParams;
import com.stripe.param.InvoiceCreateParams;
import com.stripe.param.InvoiceCreatePreviewParams;
import com.stripe.param.InvoiceFinalizeInvoiceParams;
@@ -357,9 +358,9 @@ public class Invoice extends ApiResource implements HasId, MetadataStoreRetrieve an
- * upcoming invoice for more details.
+ * Unique identifier for the object. For preview invoices created using the create preview endpoint, this id
+ * will be prefixed with {@code upcoming_in}.
*/
@Getter(onMethod_ = {@Override})
@SerializedName("id")
@@ -842,6 +843,130 @@ public Invoice addLines(InvoiceAddLinesParams params, RequestOptions options)
return getResponseGetter().request(request, Invoice.class);
}
+ /**
+ * Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of
+ * {@code payments}.
+ *
+ * For the PaymentIntent, when the PaymentIntent’s status changes to {@code succeeded}, the
+ * payment is credited to the invoice, increasing its {@code amount_paid}. When the invoice is
+ * fully paid, the invoice’s status becomes {@code paid}.
+ *
+ *
If the PaymentIntent’s status is already {@code succeeded} when it’s attached, it’s credited
+ * to the invoice immediately.
+ *
+ *
See: Partial payments to
+ * learn more.
+ */
+ public Invoice attachPayment() throws StripeException {
+ return attachPayment((Map) null, (RequestOptions) null);
+ }
+
+ /**
+ * Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of
+ * {@code payments}.
+ *
+ * For the PaymentIntent, when the PaymentIntent’s status changes to {@code succeeded}, the
+ * payment is credited to the invoice, increasing its {@code amount_paid}. When the invoice is
+ * fully paid, the invoice’s status becomes {@code paid}.
+ *
+ *
If the PaymentIntent’s status is already {@code succeeded} when it’s attached, it’s credited
+ * to the invoice immediately.
+ *
+ *
See: Partial payments to
+ * learn more.
+ */
+ public Invoice attachPayment(RequestOptions options) throws StripeException {
+ return attachPayment((Map) null, options);
+ }
+
+ /**
+ * Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of
+ * {@code payments}.
+ *
+ * For the PaymentIntent, when the PaymentIntent’s status changes to {@code succeeded}, the
+ * payment is credited to the invoice, increasing its {@code amount_paid}. When the invoice is
+ * fully paid, the invoice’s status becomes {@code paid}.
+ *
+ *
If the PaymentIntent’s status is already {@code succeeded} when it’s attached, it’s credited
+ * to the invoice immediately.
+ *
+ *
See: Partial payments to
+ * learn more.
+ */
+ public Invoice attachPayment(Map params) throws StripeException {
+ return attachPayment(params, (RequestOptions) null);
+ }
+
+ /**
+ * Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of
+ * {@code payments}.
+ *
+ * For the PaymentIntent, when the PaymentIntent’s status changes to {@code succeeded}, the
+ * payment is credited to the invoice, increasing its {@code amount_paid}. When the invoice is
+ * fully paid, the invoice’s status becomes {@code paid}.
+ *
+ *
If the PaymentIntent’s status is already {@code succeeded} when it’s attached, it’s credited
+ * to the invoice immediately.
+ *
+ *
See: Partial payments to
+ * learn more.
+ */
+ public Invoice attachPayment(Map params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format("/v1/invoices/%s/attach_payment", ApiResource.urlEncodeId(this.getId()));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return getResponseGetter().request(request, Invoice.class);
+ }
+
+ /**
+ * Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of
+ * {@code payments}.
+ *
+ * For the PaymentIntent, when the PaymentIntent’s status changes to {@code succeeded}, the
+ * payment is credited to the invoice, increasing its {@code amount_paid}. When the invoice is
+ * fully paid, the invoice’s status becomes {@code paid}.
+ *
+ *
If the PaymentIntent’s status is already {@code succeeded} when it’s attached, it’s credited
+ * to the invoice immediately.
+ *
+ *
See: Partial payments to
+ * learn more.
+ */
+ public Invoice attachPayment(InvoiceAttachPaymentParams params) throws StripeException {
+ return attachPayment(params, (RequestOptions) null);
+ }
+
+ /**
+ * Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of
+ * {@code payments}.
+ *
+ *
For the PaymentIntent, when the PaymentIntent’s status changes to {@code succeeded}, the
+ * payment is credited to the invoice, increasing its {@code amount_paid}. When the invoice is
+ * fully paid, the invoice’s status becomes {@code paid}.
+ *
+ *
If the PaymentIntent’s status is already {@code succeeded} when it’s attached, it’s credited
+ * to the invoice immediately.
+ *
+ *
See: Partial payments to
+ * learn more.
+ */
+ public Invoice attachPayment(InvoiceAttachPaymentParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format("/v1/invoices/%s/attach_payment", ApiResource.urlEncodeId(this.getId()));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getResponseGetter().request(request, Invoice.class);
+ }
+
/**
* This endpoint creates a draft invoice for a given customer. The invoice remains a draft until
* you finalize the invoice, which
@@ -902,19 +1027,20 @@ public static Invoice create(InvoiceCreateParams params, RequestOptions options)
* invoice item charges, etc. It will also show you any discounts that are applicable to the
* invoice.
*
+ *
You can also preview the effects of creating or updating a subscription or subscription
+ * schedule, including a preview of any prorations that will take place. To ensure that the actual
+ * proration is calculated exactly the same as the previewed proration, you should pass the {@code
+ * subscription_details.proration_date} parameter when doing the actual subscription update.
+ *
+ *
The recommended way to get only the prorations being previewed on the invoice is to consider
+ * line items where {@code parent.subscription_item_details.proration} is {@code true}.
+ *
*
Note that when you are viewing an upcoming invoice, you are simply viewing a preview – the
* invoice has not yet been created. As such, the upcoming invoice will not show up in invoice
* listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the
* amount that your customer will be billed, you can add, remove, or update pending invoice items,
* or update the customer’s discount.
*
- *
You can preview the effects of updating a subscription, including a preview of what
- * proration will take place. To ensure that the actual proration is calculated exactly the same
- * as the previewed proration, you should pass the {@code subscription_details.proration_date}
- * parameter when doing the actual subscription update. The recommended way to get only the
- * prorations being previewed is to consider only proration line items where {@code period[start]}
- * is equal to the {@code subscription_details.proration_date} value passed in the request.
- *
*
Note: Currency conversion calculations use the latest exchange rates. Exchange rates may
* vary between the time of the preview and the time of the actual invoice creation. Learn more
@@ -929,19 +1055,20 @@ public static Invoice createPreview() throws StripeException {
* invoice item charges, etc. It will also show you any discounts that are applicable to the
* invoice.
*
+ *
You can also preview the effects of creating or updating a subscription or subscription
+ * schedule, including a preview of any prorations that will take place. To ensure that the actual
+ * proration is calculated exactly the same as the previewed proration, you should pass the {@code
+ * subscription_details.proration_date} parameter when doing the actual subscription update.
+ *
+ *
The recommended way to get only the prorations being previewed on the invoice is to consider
+ * line items where {@code parent.subscription_item_details.proration} is {@code true}.
+ *
*
Note that when you are viewing an upcoming invoice, you are simply viewing a preview – the
* invoice has not yet been created. As such, the upcoming invoice will not show up in invoice
* listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the
* amount that your customer will be billed, you can add, remove, or update pending invoice items,
* or update the customer’s discount.
*
- *
You can preview the effects of updating a subscription, including a preview of what
- * proration will take place. To ensure that the actual proration is calculated exactly the same
- * as the previewed proration, you should pass the {@code subscription_details.proration_date}
- * parameter when doing the actual subscription update. The recommended way to get only the
- * prorations being previewed is to consider only proration line items where {@code period[start]}
- * is equal to the {@code subscription_details.proration_date} value passed in the request.
- *
*
Note: Currency conversion calculations use the latest exchange rates. Exchange rates may
* vary between the time of the preview and the time of the actual invoice creation. Learn more
@@ -956,19 +1083,20 @@ public static Invoice createPreview(RequestOptions options) throws StripeExcepti
* invoice item charges, etc. It will also show you any discounts that are applicable to the
* invoice.
*
+ *
You can also preview the effects of creating or updating a subscription or subscription
+ * schedule, including a preview of any prorations that will take place. To ensure that the actual
+ * proration is calculated exactly the same as the previewed proration, you should pass the {@code
+ * subscription_details.proration_date} parameter when doing the actual subscription update.
+ *
+ *
The recommended way to get only the prorations being previewed on the invoice is to consider
+ * line items where {@code parent.subscription_item_details.proration} is {@code true}.
+ *
*
Note that when you are viewing an upcoming invoice, you are simply viewing a preview – the
* invoice has not yet been created. As such, the upcoming invoice will not show up in invoice
* listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the
* amount that your customer will be billed, you can add, remove, or update pending invoice items,
* or update the customer’s discount.
*
- *
You can preview the effects of updating a subscription, including a preview of what
- * proration will take place. To ensure that the actual proration is calculated exactly the same
- * as the previewed proration, you should pass the {@code subscription_details.proration_date}
- * parameter when doing the actual subscription update. The recommended way to get only the
- * prorations being previewed is to consider only proration line items where {@code period[start]}
- * is equal to the {@code subscription_details.proration_date} value passed in the request.
- *
*
Note: Currency conversion calculations use the latest exchange rates. Exchange rates may
* vary between the time of the preview and the time of the actual invoice creation. Learn more
@@ -983,19 +1111,20 @@ public static Invoice createPreview(Map params) throws StripeExc
* invoice item charges, etc. It will also show you any discounts that are applicable to the
* invoice.
*
+ * You can also preview the effects of creating or updating a subscription or subscription
+ * schedule, including a preview of any prorations that will take place. To ensure that the actual
+ * proration is calculated exactly the same as the previewed proration, you should pass the {@code
+ * subscription_details.proration_date} parameter when doing the actual subscription update.
+ *
+ *
The recommended way to get only the prorations being previewed on the invoice is to consider
+ * line items where {@code parent.subscription_item_details.proration} is {@code true}.
+ *
*
Note that when you are viewing an upcoming invoice, you are simply viewing a preview – the
* invoice has not yet been created. As such, the upcoming invoice will not show up in invoice
* listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the
* amount that your customer will be billed, you can add, remove, or update pending invoice items,
* or update the customer’s discount.
*
- *
You can preview the effects of updating a subscription, including a preview of what
- * proration will take place. To ensure that the actual proration is calculated exactly the same
- * as the previewed proration, you should pass the {@code subscription_details.proration_date}
- * parameter when doing the actual subscription update. The recommended way to get only the
- * prorations being previewed is to consider only proration line items where {@code period[start]}
- * is equal to the {@code subscription_details.proration_date} value passed in the request.
- *
*
Note: Currency conversion calculations use the latest exchange rates. Exchange rates may
* vary between the time of the preview and the time of the actual invoice creation. Learn more
@@ -1014,19 +1143,20 @@ public static Invoice createPreview(Map params, RequestOptions o
* invoice item charges, etc. It will also show you any discounts that are applicable to the
* invoice.
*
+ * You can also preview the effects of creating or updating a subscription or subscription
+ * schedule, including a preview of any prorations that will take place. To ensure that the actual
+ * proration is calculated exactly the same as the previewed proration, you should pass the {@code
+ * subscription_details.proration_date} parameter when doing the actual subscription update.
+ *
+ *
The recommended way to get only the prorations being previewed on the invoice is to consider
+ * line items where {@code parent.subscription_item_details.proration} is {@code true}.
+ *
*
Note that when you are viewing an upcoming invoice, you are simply viewing a preview – the
* invoice has not yet been created. As such, the upcoming invoice will not show up in invoice
* listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the
* amount that your customer will be billed, you can add, remove, or update pending invoice items,
* or update the customer’s discount.
*
- *
You can preview the effects of updating a subscription, including a preview of what
- * proration will take place. To ensure that the actual proration is calculated exactly the same
- * as the previewed proration, you should pass the {@code subscription_details.proration_date}
- * parameter when doing the actual subscription update. The recommended way to get only the
- * prorations being previewed is to consider only proration line items where {@code period[start]}
- * is equal to the {@code subscription_details.proration_date} value passed in the request.
- *
*
Note: Currency conversion calculations use the latest exchange rates. Exchange rates may
* vary between the time of the preview and the time of the actual invoice creation. Learn more
@@ -1041,19 +1171,20 @@ public static Invoice createPreview(InvoiceCreatePreviewParams params) throws St
* invoice item charges, etc. It will also show you any discounts that are applicable to the
* invoice.
*
+ *
You can also preview the effects of creating or updating a subscription or subscription
+ * schedule, including a preview of any prorations that will take place. To ensure that the actual
+ * proration is calculated exactly the same as the previewed proration, you should pass the {@code
+ * subscription_details.proration_date} parameter when doing the actual subscription update.
+ *
+ *
The recommended way to get only the prorations being previewed on the invoice is to consider
+ * line items where {@code parent.subscription_item_details.proration} is {@code true}.
+ *
*
Note that when you are viewing an upcoming invoice, you are simply viewing a preview – the
* invoice has not yet been created. As such, the upcoming invoice will not show up in invoice
* listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the
* amount that your customer will be billed, you can add, remove, or update pending invoice items,
* or update the customer’s discount.
*
- *
You can preview the effects of updating a subscription, including a preview of what
- * proration will take place. To ensure that the actual proration is calculated exactly the same
- * as the previewed proration, you should pass the {@code subscription_details.proration_date}
- * parameter when doing the actual subscription update. The recommended way to get only the
- * prorations being previewed is to consider only proration line items where {@code period[start]}
- * is equal to the {@code subscription_details.proration_date} value passed in the request.
- *
*
Note: Currency conversion calculations use the latest exchange rates. Exchange rates may
* vary between the time of the preview and the time of the actual invoice creation. Learn more
diff --git a/src/main/java/com/stripe/model/InvoiceItem.java b/src/main/java/com/stripe/model/InvoiceItem.java
index 807afb0a190..d18f3752852 100644
--- a/src/main/java/com/stripe/model/InvoiceItem.java
+++ b/src/main/java/com/stripe/model/InvoiceItem.java
@@ -123,7 +123,7 @@ public class InvoiceItem extends ApiResource implements HasId, MetadataStoreInvoice resource. 2. By using the Invoice Payment
+ * retrieve and list endpoints.
+ *
+ * Invoice Payments include the mapping between payment objects, such as Payment Intent, and
+ * Invoices. This resource and its endpoints allows you to easily track if a payment is associated
+ * with a specific invoice and monitor the allocation details of the payments.
+ */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@@ -203,7 +212,11 @@ public static InvoicePayment retrieve(
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Payment extends StripeObject {
- /** ID of the successful charge for this payment when {@code type} is {@code charge}. */
+ /**
+ * ID of the successful charge for this payment when {@code type} is {@code charge}.Note: charge
+ * is only surfaced if the charge object is not associated with a payment intent. If the charge
+ * object does have a payment intent, the Invoice Payment surfaces the payment intent instead.
+ */
@SerializedName("charge")
@Getter(lombok.AccessLevel.NONE)
@Setter(lombok.AccessLevel.NONE)
diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java
index 62dc2725a3f..eb203e8210f 100644
--- a/src/main/java/com/stripe/model/PaymentIntent.java
+++ b/src/main/java/com/stripe/model/PaymentIntent.java
@@ -1562,8 +1562,9 @@ public static class NextAction extends StripeObject {
SwishHandleRedirectOrDisplayQrCode swishHandleRedirectOrDisplayQrCode;
/**
- * Type of the next action to perform, one of {@code redirect_to_url}, {@code use_stripe_sdk},
- * {@code alipay_handle_redirect}, {@code oxxo_display_details}, or {@code
+ * Type of the next action to perform. Refer to the other child attributes under {@code
+ * next_action} for available values. Examples include: {@code redirect_to_url}, {@code
+ * use_stripe_sdk}, {@code alipay_handle_redirect}, {@code oxxo_display_details}, or {@code
* verify_with_microdeposits}.
*/
@SerializedName("type")
@@ -2599,6 +2600,9 @@ public static class PaymentMethodOptions extends StripeObject {
@SerializedName("samsung_pay")
SamsungPay samsungPay;
+ @SerializedName("satispay")
+ Satispay satispay;
+
@SerializedName("sepa_debit")
SepaDebit sepaDebit;
@@ -3043,7 +3047,15 @@ public static class Bancontact extends StripeObject {
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
- public static class Billie extends StripeObject {}
+ public static class Billie extends StripeObject {
+ /**
+ * Controls when the funds will be captured from the customer's account.
+ *
+ *
Equal to {@code manual}.
+ */
+ @SerializedName("capture_method")
+ String captureMethod;
+ }
/**
* For more details about Blik, please refer to the API
@@ -4471,6 +4483,23 @@ public static class SamsungPay extends StripeObject {
String captureMethod;
}
+ /**
+ * For more details about Satispay, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Satispay extends StripeObject {
+ /**
+ * Controls when the funds will be captured from the customer's account.
+ *
+ *
Equal to {@code manual}.
+ */
+ @SerializedName("capture_method")
+ String captureMethod;
+ }
+
/**
* For more details about SepaDebit, please refer to the API Reference.
diff --git a/src/main/java/com/stripe/model/PaymentMethodConfiguration.java b/src/main/java/com/stripe/model/PaymentMethodConfiguration.java
index fa8e07d57e4..ad21e06edf3 100644
--- a/src/main/java/com/stripe/model/PaymentMethodConfiguration.java
+++ b/src/main/java/com/stripe/model/PaymentMethodConfiguration.java
@@ -141,12 +141,18 @@ public class PaymentMethodConfiguration extends ApiResource implements HasId {
@SerializedName("jcb")
Jcb jcb;
+ @SerializedName("kakao_pay")
+ KakaoPay kakaoPay;
+
@SerializedName("klarna")
Klarna klarna;
@SerializedName("konbini")
Konbini konbini;
+ @SerializedName("kr_card")
+ KrCard krCard;
+
@SerializedName("link")
Link link;
@@ -167,6 +173,9 @@ public class PaymentMethodConfiguration extends ApiResource implements HasId {
@SerializedName("name")
String name;
+ @SerializedName("naver_pay")
+ NaverPay naverPay;
+
@SerializedName("nz_bank_account")
NzBankAccount nzBankAccount;
@@ -191,6 +200,9 @@ public class PaymentMethodConfiguration extends ApiResource implements HasId {
@SerializedName("pay_by_bank")
PayByBank payByBank;
+ @SerializedName("payco")
+ Payco payco;
+
@SerializedName("paynow")
Paynow paynow;
@@ -206,6 +218,9 @@ public class PaymentMethodConfiguration extends ApiResource implements HasId {
@SerializedName("revolut_pay")
RevolutPay revolutPay;
+ @SerializedName("samsung_pay")
+ SamsungPay samsungPay;
+
@SerializedName("satispay")
Satispay satispay;
@@ -1608,6 +1623,57 @@ public static class DisplayPreference extends StripeObject {
}
}
+ /**
+ * For more details about KakaoPay, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class KakaoPay extends StripeObject {
+ /**
+ * Whether this payment method may be offered at checkout. True if {@code display_preference} is
+ * {@code on} and the payment method's capability is active.
+ */
+ @SerializedName("available")
+ Boolean available;
+
+ @SerializedName("display_preference")
+ DisplayPreference displayPreference;
+
+ /**
+ * For more details about DisplayPreference, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DisplayPreference extends StripeObject {
+ /**
+ * For child configs, whether or not the account's preference will be observed. If {@code
+ * false}, the parent configuration's default is used.
+ */
+ @SerializedName("overridable")
+ Boolean overridable;
+
+ /**
+ * The account's display preference.
+ *
+ *
One of {@code none}, {@code off}, or {@code on}.
+ */
+ @SerializedName("preference")
+ String preference;
+
+ /**
+ * The effective display preference value.
+ *
+ *
One of {@code off}, or {@code on}.
+ */
+ @SerializedName("value")
+ String value;
+ }
+ }
+
/**
* For more details about Klarna, please refer to the API
* Reference.
@@ -1710,6 +1776,57 @@ public static class DisplayPreference extends StripeObject {
}
}
+ /**
+ * For more details about KrCard, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class KrCard extends StripeObject {
+ /**
+ * Whether this payment method may be offered at checkout. True if {@code display_preference} is
+ * {@code on} and the payment method's capability is active.
+ */
+ @SerializedName("available")
+ Boolean available;
+
+ @SerializedName("display_preference")
+ DisplayPreference displayPreference;
+
+ /**
+ * For more details about DisplayPreference, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DisplayPreference extends StripeObject {
+ /**
+ * For child configs, whether or not the account's preference will be observed. If {@code
+ * false}, the parent configuration's default is used.
+ */
+ @SerializedName("overridable")
+ Boolean overridable;
+
+ /**
+ * The account's display preference.
+ *
+ *
One of {@code none}, {@code off}, or {@code on}.
+ */
+ @SerializedName("preference")
+ String preference;
+
+ /**
+ * The effective display preference value.
+ *
+ *
One of {@code off}, or {@code on}.
+ */
+ @SerializedName("value")
+ String value;
+ }
+ }
+
/**
* For more details about Link, please refer to the API
* Reference.
@@ -1863,6 +1980,57 @@ public static class DisplayPreference extends StripeObject {
}
}
+ /**
+ * For more details about NaverPay, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class NaverPay extends StripeObject {
+ /**
+ * Whether this payment method may be offered at checkout. True if {@code display_preference} is
+ * {@code on} and the payment method's capability is active.
+ */
+ @SerializedName("available")
+ Boolean available;
+
+ @SerializedName("display_preference")
+ DisplayPreference displayPreference;
+
+ /**
+ * For more details about DisplayPreference, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DisplayPreference extends StripeObject {
+ /**
+ * For child configs, whether or not the account's preference will be observed. If {@code
+ * false}, the parent configuration's default is used.
+ */
+ @SerializedName("overridable")
+ Boolean overridable;
+
+ /**
+ * The account's display preference.
+ *
+ *
One of {@code none}, {@code off}, or {@code on}.
+ */
+ @SerializedName("preference")
+ String preference;
+
+ /**
+ * The effective display preference value.
+ *
+ *
One of {@code off}, or {@code on}.
+ */
+ @SerializedName("value")
+ String value;
+ }
+ }
+
/**
* For more details about NzBankAccount, please refer to the API Reference.
@@ -2067,6 +2235,57 @@ public static class DisplayPreference extends StripeObject {
}
}
+ /**
+ * For more details about Payco, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Payco extends StripeObject {
+ /**
+ * Whether this payment method may be offered at checkout. True if {@code display_preference} is
+ * {@code on} and the payment method's capability is active.
+ */
+ @SerializedName("available")
+ Boolean available;
+
+ @SerializedName("display_preference")
+ DisplayPreference displayPreference;
+
+ /**
+ * For more details about DisplayPreference, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DisplayPreference extends StripeObject {
+ /**
+ * For child configs, whether or not the account's preference will be observed. If {@code
+ * false}, the parent configuration's default is used.
+ */
+ @SerializedName("overridable")
+ Boolean overridable;
+
+ /**
+ * The account's display preference.
+ *
+ *
One of {@code none}, {@code off}, or {@code on}.
+ */
+ @SerializedName("preference")
+ String preference;
+
+ /**
+ * The effective display preference value.
+ *
+ *
One of {@code off}, or {@code on}.
+ */
+ @SerializedName("value")
+ String value;
+ }
+ }
+
/**
* For more details about Paynow, please refer to the API
* Reference.
@@ -2322,6 +2541,57 @@ public static class DisplayPreference extends StripeObject {
}
}
+ /**
+ * For more details about SamsungPay, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class SamsungPay extends StripeObject {
+ /**
+ * Whether this payment method may be offered at checkout. True if {@code display_preference} is
+ * {@code on} and the payment method's capability is active.
+ */
+ @SerializedName("available")
+ Boolean available;
+
+ @SerializedName("display_preference")
+ DisplayPreference displayPreference;
+
+ /**
+ * For more details about DisplayPreference, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DisplayPreference extends StripeObject {
+ /**
+ * For child configs, whether or not the account's preference will be observed. If {@code
+ * false}, the parent configuration's default is used.
+ */
+ @SerializedName("overridable")
+ Boolean overridable;
+
+ /**
+ * The account's display preference.
+ *
+ *
One of {@code none}, {@code off}, or {@code on}.
+ */
+ @SerializedName("preference")
+ String preference;
+
+ /**
+ * The effective display preference value.
+ *
+ *
One of {@code off}, or {@code on}.
+ */
+ @SerializedName("value")
+ String value;
+ }
+ }
+
/**
* For more details about Satispay, please refer to the API
* Reference.
@@ -2757,20 +3027,25 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(grabpay, responseGetter);
trySetResponseGetter(ideal, responseGetter);
trySetResponseGetter(jcb, responseGetter);
+ trySetResponseGetter(kakaoPay, responseGetter);
trySetResponseGetter(klarna, responseGetter);
trySetResponseGetter(konbini, responseGetter);
+ trySetResponseGetter(krCard, responseGetter);
trySetResponseGetter(link, responseGetter);
trySetResponseGetter(mobilepay, responseGetter);
trySetResponseGetter(multibanco, responseGetter);
+ trySetResponseGetter(naverPay, responseGetter);
trySetResponseGetter(nzBankAccount, responseGetter);
trySetResponseGetter(oxxo, responseGetter);
trySetResponseGetter(p24, responseGetter);
trySetResponseGetter(payByBank, responseGetter);
+ trySetResponseGetter(payco, responseGetter);
trySetResponseGetter(paynow, responseGetter);
trySetResponseGetter(paypal, responseGetter);
trySetResponseGetter(pix, responseGetter);
trySetResponseGetter(promptpay, responseGetter);
trySetResponseGetter(revolutPay, responseGetter);
+ trySetResponseGetter(samsungPay, responseGetter);
trySetResponseGetter(satispay, responseGetter);
trySetResponseGetter(sepaDebit, responseGetter);
trySetResponseGetter(sofort, responseGetter);
diff --git a/src/main/java/com/stripe/model/Refund.java b/src/main/java/com/stripe/model/Refund.java
index 32601a7a0c5..e8c42536368 100644
--- a/src/main/java/com/stripe/model/Refund.java
+++ b/src/main/java/com/stripe/model/Refund.java
@@ -1031,7 +1031,14 @@ public static class Paynow extends StripeObject {}
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
- public static class Paypal extends StripeObject {}
+ public static class Paypal extends StripeObject {
+ /**
+ * For refunds declined by the network, a decline code provided by the network which indicates
+ * the reason the refund failed.
+ */
+ @SerializedName("network_decline_code")
+ String networkDeclineCode;
+ }
/**
* For more details about Pix, please refer to the API
diff --git a/src/main/java/com/stripe/model/SetupIntent.java b/src/main/java/com/stripe/model/SetupIntent.java
index d2526771c0e..937eccac83c 100644
--- a/src/main/java/com/stripe/model/SetupIntent.java
+++ b/src/main/java/com/stripe/model/SetupIntent.java
@@ -864,8 +864,9 @@ public static class NextAction extends StripeObject {
RedirectToUrl redirectToUrl;
/**
- * Type of the next action to perform, one of {@code redirect_to_url}, {@code use_stripe_sdk},
- * {@code alipay_handle_redirect}, {@code oxxo_display_details}, or {@code
+ * Type of the next action to perform. Refer to the other child attributes under {@code
+ * next_action} for available values. Examples include: {@code redirect_to_url}, {@code
+ * use_stripe_sdk}, {@code alipay_handle_redirect}, {@code oxxo_display_details}, or {@code
* verify_with_microdeposits}.
*/
@SerializedName("type")
diff --git a/src/main/java/com/stripe/model/StripeError.java b/src/main/java/com/stripe/model/StripeError.java
index 71bfa902b8a..d258c52348d 100644
--- a/src/main/java/com/stripe/model/StripeError.java
+++ b/src/main/java/com/stripe/model/StripeError.java
@@ -49,20 +49,20 @@ public class StripeError extends StripeObject {
* financial_connections_no_successful_transaction_refresh}, {@code forwarding_api_inactive},
* {@code forwarding_api_invalid_parameter}, {@code forwarding_api_retryable_upstream_error},
* {@code forwarding_api_upstream_connection_error}, {@code
- * forwarding_api_upstream_connection_timeout}, {@code idempotency_key_in_use}, {@code
- * incorrect_address}, {@code incorrect_cvc}, {@code incorrect_number}, {@code incorrect_zip},
- * {@code instant_payouts_config_disabled}, {@code instant_payouts_currency_disabled}, {@code
- * instant_payouts_limit_exceeded}, {@code instant_payouts_unsupported}, {@code
- * insufficient_funds}, {@code intent_invalid_state}, {@code intent_verification_method_missing},
- * {@code invalid_card_type}, {@code invalid_characters}, {@code invalid_charge_amount}, {@code
- * invalid_cvc}, {@code invalid_expiry_month}, {@code invalid_expiry_year}, {@code
- * invalid_mandate_reference_prefix_format}, {@code invalid_number}, {@code invalid_source_usage},
- * {@code invalid_tax_location}, {@code invoice_no_customer_line_items}, {@code
- * invoice_no_payment_method_types}, {@code invoice_no_subscription_line_items}, {@code
- * invoice_not_editable}, {@code invoice_on_behalf_of_not_editable}, {@code
- * invoice_payment_intent_requires_action}, {@code invoice_upcoming_none}, {@code
- * livemode_mismatch}, {@code lock_timeout}, {@code missing}, {@code no_account}, {@code
- * not_allowed_on_standard_account}, {@code out_of_inventory}, {@code
+ * forwarding_api_upstream_connection_timeout}, {@code forwarding_api_upstream_error}, {@code
+ * idempotency_key_in_use}, {@code incorrect_address}, {@code incorrect_cvc}, {@code
+ * incorrect_number}, {@code incorrect_zip}, {@code instant_payouts_config_disabled}, {@code
+ * instant_payouts_currency_disabled}, {@code instant_payouts_limit_exceeded}, {@code
+ * instant_payouts_unsupported}, {@code insufficient_funds}, {@code intent_invalid_state}, {@code
+ * intent_verification_method_missing}, {@code invalid_card_type}, {@code invalid_characters},
+ * {@code invalid_charge_amount}, {@code invalid_cvc}, {@code invalid_expiry_month}, {@code
+ * invalid_expiry_year}, {@code invalid_mandate_reference_prefix_format}, {@code invalid_number},
+ * {@code invalid_source_usage}, {@code invalid_tax_location}, {@code
+ * invoice_no_customer_line_items}, {@code invoice_no_payment_method_types}, {@code
+ * invoice_no_subscription_line_items}, {@code invoice_not_editable}, {@code
+ * invoice_on_behalf_of_not_editable}, {@code invoice_payment_intent_requires_action}, {@code
+ * invoice_upcoming_none}, {@code livemode_mismatch}, {@code lock_timeout}, {@code missing},
+ * {@code no_account}, {@code not_allowed_on_standard_account}, {@code out_of_inventory}, {@code
* ownership_declaration_not_allowed}, {@code parameter_invalid_empty}, {@code
* parameter_invalid_integer}, {@code parameter_invalid_string_blank}, {@code
* parameter_invalid_string_empty}, {@code parameter_missing}, {@code parameter_unknown}, {@code
diff --git a/src/main/java/com/stripe/model/Subscription.java b/src/main/java/com/stripe/model/Subscription.java
index db7f3c93578..ee52d6fb3c1 100644
--- a/src/main/java/com/stripe/model/Subscription.java
+++ b/src/main/java/com/stripe/model/Subscription.java
@@ -65,13 +65,21 @@ public class Subscription extends ApiResource implements HasId, MetadataStoreAPI Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BillingThresholds extends StripeObject {
+ /** Monetary threshold that triggers the subscription to create an invoice. */
+ @SerializedName("amount_gte")
+ Long amountGte;
+
+ /**
+ * Indicates if the {@code billing_cycle_anchor} should be reset when a threshold is reached. If
+ * true, {@code billing_cycle_anchor} will be updated to the date/time the threshold was last
+ * reached; otherwise, the value will remain unchanged. This value may not be {@code true} if
+ * the subscription contains items with plans that have {@code aggregate_usage=last_ever}.
+ */
+ @SerializedName("reset_billing_cycle_anchor")
+ Boolean resetBillingCycleAnchor;
+ }
+
/**
* For more details about CancellationDetails, please refer to the API Reference.
@@ -1997,6 +2030,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(application, responseGetter);
trySetResponseGetter(automaticTax, responseGetter);
trySetResponseGetter(billingCycleAnchorConfig, responseGetter);
+ trySetResponseGetter(billingThresholds, responseGetter);
trySetResponseGetter(cancellationDetails, responseGetter);
trySetResponseGetter(customer, responseGetter);
trySetResponseGetter(defaultPaymentMethod, responseGetter);
diff --git a/src/main/java/com/stripe/model/SubscriptionItem.java b/src/main/java/com/stripe/model/SubscriptionItem.java
index dcb60abdee9..0314d07543a 100644
--- a/src/main/java/com/stripe/model/SubscriptionItem.java
+++ b/src/main/java/com/stripe/model/SubscriptionItem.java
@@ -30,6 +30,13 @@
@EqualsAndHashCode(callSuper = false)
public class SubscriptionItem extends ApiResource
implements HasId, MetadataStore {
+ /**
+ * Define thresholds at which an invoice will be sent, and the related subscription advanced to a
+ * new billing period.
+ */
+ @SerializedName("billing_thresholds")
+ BillingThresholds billingThresholds;
+
/** Time at which the object was created. Measured in seconds since the Unix epoch. */
@SerializedName("created")
Long created;
@@ -380,9 +387,23 @@ public SubscriptionItem update(SubscriptionItemUpdateParams params, RequestOptio
return getResponseGetter().request(request, SubscriptionItem.class);
}
+ /**
+ * For more details about BillingThresholds, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BillingThresholds extends StripeObject {
+ /** Usage threshold that triggers the subscription to create an invoice. */
+ @SerializedName("usage_gte")
+ Long usageGte;
+ }
+
@Override
public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
+ trySetResponseGetter(billingThresholds, responseGetter);
trySetResponseGetter(plan, responseGetter);
trySetResponseGetter(price, responseGetter);
}
diff --git a/src/main/java/com/stripe/model/SubscriptionSchedule.java b/src/main/java/com/stripe/model/SubscriptionSchedule.java
index 12fd129cdba..b2536e3a58e 100644
--- a/src/main/java/com/stripe/model/SubscriptionSchedule.java
+++ b/src/main/java/com/stripe/model/SubscriptionSchedule.java
@@ -603,6 +603,13 @@ public static class DefaultSettings extends StripeObject {
@SerializedName("billing_cycle_anchor")
String billingCycleAnchor;
+ /**
+ * Define thresholds at which an invoice will be sent, and the subscription advanced to a new
+ * billing period.
+ */
+ @SerializedName("billing_thresholds")
+ BillingThresholds billingThresholds;
+
/**
* Either {@code charge_automatically}, or {@code send_invoice}. When charging automatically,
* Stripe will attempt to pay the underlying subscription at the end of each billing cycle using
@@ -758,6 +765,29 @@ public void setAccountObject(Account expandableObject) {
}
}
+ /**
+ * For more details about BillingThresholds, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BillingThresholds extends StripeObject {
+ /** Monetary threshold that triggers the subscription to create an invoice. */
+ @SerializedName("amount_gte")
+ Long amountGte;
+
+ /**
+ * Indicates if the {@code billing_cycle_anchor} should be reset when a threshold is reached.
+ * If true, {@code billing_cycle_anchor} will be updated to the date/time the threshold was
+ * last reached; otherwise, the value will remain unchanged. This value may not be {@code
+ * true} if the subscription contains items with plans that have {@code
+ * aggregate_usage=last_ever}.
+ */
+ @SerializedName("reset_billing_cycle_anchor")
+ Boolean resetBillingCycleAnchor;
+ }
+
/**
* For more details about InvoiceSettings, please refer to the API Reference.
@@ -950,6 +980,13 @@ public static class Phase extends StripeObject {
@SerializedName("billing_cycle_anchor")
String billingCycleAnchor;
+ /**
+ * Define thresholds at which an invoice will be sent, and the subscription advanced to a new
+ * billing period.
+ */
+ @SerializedName("billing_thresholds")
+ BillingThresholds billingThresholds;
+
/**
* Either {@code charge_automatically}, or {@code send_invoice}. When charging automatically,
* Stripe will attempt to pay the underlying subscription at the end of each billing cycle using
@@ -1035,8 +1072,8 @@ public static class Phase extends StripeObject {
ExpandableField onBehalfOf;
/**
- * If the subscription schedule will prorate when transitioning to this phase. Possible values
- * are {@code create_prorations} and {@code none}.
+ * When transitioning phases, controls how prorations are handled (if any). Possible values are
+ * {@code create_prorations}, {@code none}, and {@code always_invoice}.
*
* One of {@code always_invoice}, {@code create_prorations}, or {@code none}.
*/
@@ -1298,6 +1335,29 @@ public void setAccountObject(Account expandableObject) {
}
}
+ /**
+ * For more details about BillingThresholds, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BillingThresholds extends StripeObject {
+ /** Monetary threshold that triggers the subscription to create an invoice. */
+ @SerializedName("amount_gte")
+ Long amountGte;
+
+ /**
+ * Indicates if the {@code billing_cycle_anchor} should be reset when a threshold is reached.
+ * If true, {@code billing_cycle_anchor} will be updated to the date/time the threshold was
+ * last reached; otherwise, the value will remain unchanged. This value may not be {@code
+ * true} if the subscription contains items with plans that have {@code
+ * aggregate_usage=last_ever}.
+ */
+ @SerializedName("reset_billing_cycle_anchor")
+ Boolean resetBillingCycleAnchor;
+ }
+
/**
* For more details about Discount, please refer to the API Reference.
@@ -1503,6 +1563,13 @@ public void setAccountObject(Account expandableObject) {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Item extends StripeObject {
+ /**
+ * Define thresholds at which an invoice will be sent, and the related subscription advanced
+ * to a new billing period.
+ */
+ @SerializedName("billing_thresholds")
+ BillingThresholds billingThresholds;
+
/**
* The discounts applied to the subscription item. Subscription item discounts are applied
* before subscription discounts. Use {@code expand[]=discounts} to expand each discount.
@@ -1577,6 +1644,19 @@ public void setPriceObject(Price expandableObject) {
this.price = new ExpandableField(expandableObject.getId(), expandableObject);
}
+ /**
+ * For more details about BillingThresholds, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BillingThresholds extends StripeObject {
+ /** Usage threshold that triggers the subscription to create an invoice. */
+ @SerializedName("usage_gte")
+ Long usageGte;
+ }
+
/**
* For more details about Discount, please refer to the API Reference.
diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java
index 81d54bb35bb..1b6017d5452 100644
--- a/src/main/java/com/stripe/model/checkout/Session.java
+++ b/src/main/java/com/stripe/model/checkout/Session.java
@@ -413,7 +413,10 @@ public class Session extends ApiResource implements HasId, MetadataStoreSubscription for Checkout
+ * Sessions in {@code subscription} mode.
+ */
@SerializedName("subscription")
@Getter(lombok.AccessLevel.NONE)
@Setter(lombok.AccessLevel.NONE)
@@ -803,13 +806,23 @@ public static Session retrieve(
return getGlobalResponseGetter().request(request, Session.class);
}
- /** Updates a Checkout Session object. */
+ /**
+ * Updates a Checkout Session object.
+ *
+ * Related guide: Dynamically
+ * update Checkout.
+ */
@Override
public Session update(Map params) throws StripeException {
return update(params, (RequestOptions) null);
}
- /** Updates a Checkout Session object. */
+ /**
+ * Updates a Checkout Session object.
+ *
+ * Related guide: Dynamically
+ * update Checkout.
+ */
@Override
public Session update(Map params, RequestOptions options) throws StripeException {
String path = String.format("/v1/checkout/sessions/%s", ApiResource.urlEncodeId(this.getId()));
@@ -818,12 +831,22 @@ public Session update(Map params, RequestOptions options) throws
return getResponseGetter().request(request, Session.class);
}
- /** Updates a Checkout Session object. */
+ /**
+ * Updates a Checkout Session object.
+ *
+ * Related guide: Dynamically
+ * update Checkout.
+ */
public Session update(SessionUpdateParams params) throws StripeException {
return update(params, (RequestOptions) null);
}
- /** Updates a Checkout Session object. */
+ /**
+ * Updates a Checkout Session object.
+ *
+ *
Related guide: Dynamically
+ * update Checkout.
+ */
public Session update(SessionUpdateParams params, RequestOptions options) throws StripeException {
String path = String.format("/v1/checkout/sessions/%s", ApiResource.urlEncodeId(this.getId()));
ApiResource.checkNullTypedParams(path, params);
@@ -2967,6 +2990,30 @@ public static class NaverPay extends StripeObject {
*/
@SerializedName("capture_method")
String captureMethod;
+
+ /**
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ *
+ *
If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the
+ * Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ *
If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates
+ * and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ *
When processing card payments, Stripe uses {@code setup_future_usage} to help you comply
+ * with regional legislation and network rules, such as SCA.
+ *
+ *
One of {@code none}, or {@code off_session}.
+ */
+ @SerializedName("setup_future_usage")
+ String setupFutureUsage;
}
/**
diff --git a/src/main/java/com/stripe/model/identity/VerificationReport.java b/src/main/java/com/stripe/model/identity/VerificationReport.java
index ee0fef5d21a..e67fdcb1618 100644
--- a/src/main/java/com/stripe/model/identity/VerificationReport.java
+++ b/src/main/java/com/stripe/model/identity/VerificationReport.java
@@ -232,6 +232,14 @@ public static class Document extends StripeObject {
@SerializedName("number")
String number;
+ /**
+ * Sex of the person in the document.
+ *
+ *
One of {@code [redacted]}, {@code female}, {@code male}, or {@code unknown}.
+ */
+ @SerializedName("sex")
+ String sex;
+
/**
* Status of this {@code document} check.
*
@@ -248,6 +256,14 @@ public static class Document extends StripeObject {
@SerializedName("type")
String type;
+ /** Place of birth as it appears in the document. */
+ @SerializedName("unparsed_place_of_birth")
+ String unparsedPlaceOfBirth;
+
+ /** Sex as it appears in the document. */
+ @SerializedName("unparsed_sex")
+ String unparsedSex;
+
/** Point in Time. */
@Getter
@Setter
diff --git a/src/main/java/com/stripe/model/identity/VerificationSession.java b/src/main/java/com/stripe/model/identity/VerificationSession.java
index c38ef759f91..e065eed169b 100644
--- a/src/main/java/com/stripe/model/identity/VerificationSession.java
+++ b/src/main/java/com/stripe/model/identity/VerificationSession.java
@@ -875,6 +875,22 @@ public static class VerifiedOutputs extends StripeObject {
@SerializedName("phone")
String phone;
+ /**
+ * The user's verified sex.
+ *
+ *
One of {@code [redacted]}, {@code female}, {@code male}, or {@code unknown}.
+ */
+ @SerializedName("sex")
+ String sex;
+
+ /** The user's verified place of birth as it appears in the document. */
+ @SerializedName("unparsed_place_of_birth")
+ String unparsedPlaceOfBirth;
+
+ /** The user's verified sex as it appears in the document. */
+ @SerializedName("unparsed_sex")
+ String unparsedSex;
+
/** Point in Time. */
@Getter
@Setter
diff --git a/src/main/java/com/stripe/model/tax/CalculationLineItem.java b/src/main/java/com/stripe/model/tax/CalculationLineItem.java
index cd2fe05f733..157223e51d5 100644
--- a/src/main/java/com/stripe/model/tax/CalculationLineItem.java
+++ b/src/main/java/com/stripe/model/tax/CalculationLineItem.java
@@ -5,6 +5,7 @@
import com.stripe.model.HasId;
import com.stripe.model.StripeObject;
import java.util.List;
+import java.util.Map;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
@@ -40,6 +41,14 @@ public class CalculationLineItem extends StripeObject implements HasId {
@SerializedName("livemode")
Boolean livemode;
+ /**
+ * Set of key-value pairs that you can attach
+ * to an object. This can be useful for storing additional information about the object in a
+ * structured format.
+ */
+ @SerializedName("metadata")
+ Map metadata;
+
/**
* String representing the object's type. Objects of the same type share the same value.
*
diff --git a/src/main/java/com/stripe/model/terminal/Reader.java b/src/main/java/com/stripe/model/terminal/Reader.java
index 49283fa0e3d..d8b5d3c0fa1 100644
--- a/src/main/java/com/stripe/model/terminal/Reader.java
+++ b/src/main/java/com/stripe/model/terminal/Reader.java
@@ -18,6 +18,7 @@
import com.stripe.net.RequestOptions;
import com.stripe.net.StripeResponseGetter;
import com.stripe.param.terminal.ReaderCancelActionParams;
+import com.stripe.param.terminal.ReaderCollectInputsParams;
import com.stripe.param.terminal.ReaderCreateParams;
import com.stripe.param.terminal.ReaderListParams;
import com.stripe.param.terminal.ReaderPresentPaymentMethodParams;
@@ -26,6 +27,8 @@
import com.stripe.param.terminal.ReaderRefundPaymentParams;
import com.stripe.param.terminal.ReaderRetrieveParams;
import com.stripe.param.terminal.ReaderSetReaderDisplayParams;
+import com.stripe.param.terminal.ReaderSucceedInputCollectionParams;
+import com.stripe.param.terminal.ReaderTimeoutInputCollectionParams;
import com.stripe.param.terminal.ReaderUpdateParams;
import java.util.List;
import java.util.Map;
@@ -56,9 +59,11 @@ public class Reader extends ApiResource implements HasId, MetadataStore
String deviceSwVersion;
/**
- * Type of reader, one of {@code bbpos_wisepad3}, {@code stripe_m2}, {@code stripe_s700}, {@code
- * bbpos_chipper2x}, {@code bbpos_wisepos_e}, {@code verifone_P400}, {@code simulated_wisepos_e},
- * or {@code mobile_phone_reader}.
+ * Device type of the reader.
+ *
+ * One of {@code bbpos_chipper2x}, {@code bbpos_wisepad3}, {@code bbpos_wisepos_e}, {@code
+ * mobile_phone_reader}, {@code simulated_stripe_s700}, {@code simulated_wisepos_e}, {@code
+ * stripe_m2}, {@code stripe_s700}, or {@code verifone_P400}.
*/
@SerializedName("device_type")
String deviceType;
@@ -185,6 +190,44 @@ public Reader cancelAction(ReaderCancelActionParams params, RequestOptions optio
return getResponseGetter().request(request, Reader.class);
}
+ /** Initiates an input collection flow on a Reader. */
+ public Reader collectInputs(Map params) throws StripeException {
+ return collectInputs(params, (RequestOptions) null);
+ }
+
+ /** Initiates an input collection flow on a Reader. */
+ public Reader collectInputs(Map params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/terminal/readers/%s/collect_inputs", ApiResource.urlEncodeId(this.getId()));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return getResponseGetter().request(request, Reader.class);
+ }
+
+ /** Initiates an input collection flow on a Reader. */
+ public Reader collectInputs(ReaderCollectInputsParams params) throws StripeException {
+ return collectInputs(params, (RequestOptions) null);
+ }
+
+ /** Initiates an input collection flow on a Reader. */
+ public Reader collectInputs(ReaderCollectInputsParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/terminal/readers/%s/collect_inputs", ApiResource.urlEncodeId(this.getId()));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getResponseGetter().request(request, Reader.class);
+ }
+
/** Creates a new {@code Reader} object. */
public static Reader create(Map params) throws StripeException {
return create(params, (RequestOptions) null);
@@ -526,6 +569,10 @@ public Reader update(ReaderUpdateParams params, RequestOptions options) throws S
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Action extends StripeObject {
+ /** Represents a reader action to collect customer inputs. */
+ @SerializedName("collect_inputs")
+ CollectInputs collectInputs;
+
/** Failure code, only set if status is {@code failed}. */
@SerializedName("failure_code")
String failureCode;
@@ -561,12 +608,229 @@ public static class Action extends StripeObject {
/**
* Type of action performed by the reader.
*
- * One of {@code process_payment_intent}, {@code process_setup_intent}, {@code
- * refund_payment}, or {@code set_reader_display}.
+ *
One of {@code collect_inputs}, {@code process_payment_intent}, {@code
+ * process_setup_intent}, {@code refund_payment}, or {@code set_reader_display}.
*/
@SerializedName("type")
String type;
+ /** Represents a reader action to collect customer inputs. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CollectInputs extends StripeObject {
+ /** List of inputs to be collected. */
+ @SerializedName("inputs")
+ List inputs;
+
+ /**
+ * Set of key-value pairs that you can
+ * attach to an object. This can be useful for storing additional information about the object
+ * in a structured format.
+ */
+ @SerializedName("metadata")
+ Map metadata;
+
+ /** Represents an input to be collected using the reader. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Input extends StripeObject {
+ /** Default text of input being collected. */
+ @SerializedName("custom_text")
+ CustomText customText;
+
+ /** Information about a email being collected using a reader. */
+ @SerializedName("email")
+ Email email;
+
+ /** Information about a number being collected using a reader. */
+ @SerializedName("numeric")
+ Numeric numeric;
+
+ /** Information about a phone number being collected using a reader. */
+ @SerializedName("phone")
+ Phone phone;
+
+ /** Indicate that this input is required, disabling the skip button. */
+ @SerializedName("required")
+ Boolean required;
+
+ /** Information about a selection being collected using a reader. */
+ @SerializedName("selection")
+ Selection selection;
+
+ /** Information about a signature being collected using a reader. */
+ @SerializedName("signature")
+ Signature signature;
+
+ /** Indicate that this input was skipped by the user. */
+ @SerializedName("skipped")
+ Boolean skipped;
+
+ /** Information about text being collected using a reader. */
+ @SerializedName("text")
+ Text text;
+
+ /** List of toggles being collected. Values are present if collection is complete. */
+ @SerializedName("toggles")
+ List toggles;
+
+ /**
+ * Type of input being collected.
+ *
+ * One of {@code email}, {@code numeric}, {@code phone}, {@code selection}, {@code
+ * signature}, or {@code text}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /** Represents custom text to be displayed when collecting the input using a reader. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CustomText extends StripeObject {
+ /** Customize the default description for this input. */
+ @SerializedName("description")
+ String description;
+
+ /** Customize the default label for this input's skip button. */
+ @SerializedName("skip_button")
+ String skipButton;
+
+ /** Customize the default label for this input's submit button. */
+ @SerializedName("submit_button")
+ String submitButton;
+
+ /** Customize the default title for this input. */
+ @SerializedName("title")
+ String title;
+ }
+
+ /** Information about a email being collected using a reader. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Email extends StripeObject {
+ /** The collected email address. */
+ @SerializedName("value")
+ String value;
+ }
+
+ /** Information about a number being collected using a reader. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Numeric extends StripeObject {
+ /** The collected number. */
+ @SerializedName("value")
+ String value;
+ }
+
+ /** Information about a phone number being collected using a reader. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Phone extends StripeObject {
+ /** The collected phone number. */
+ @SerializedName("value")
+ String value;
+ }
+
+ /** Information about a selection being collected using a reader. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Selection extends StripeObject implements HasId {
+ /** List of possible choices to be selected. */
+ @SerializedName("choices")
+ List choices;
+
+ /** The id of the selected choice. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /** The text of the selected choice. */
+ @SerializedName("text")
+ String text;
+
+ /** Choice to be selected on a Reader. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Choice extends StripeObject implements HasId {
+ /** The id to be selected. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /**
+ * The button style for the choice
+ *
+ * One of {@code primary}, or {@code secondary}.
+ */
+ @SerializedName("style")
+ String style;
+
+ /** The text to be selected. */
+ @SerializedName("text")
+ String text;
+ }
+ }
+
+ /** Information about a signature being collected using a reader. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Signature extends StripeObject {
+ /** The File ID of a collected signature image. */
+ @SerializedName("value")
+ String value;
+ }
+
+ /** Information about text being collected using a reader. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Text extends StripeObject {
+ /** The collected text value. */
+ @SerializedName("value")
+ String value;
+ }
+
+ /** Information about an input's toggle. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Toggle extends StripeObject {
+ /**
+ * The toggle's default value
+ *
+ *
One of {@code disabled}, or {@code enabled}.
+ */
+ @SerializedName("default_value")
+ String defaultValue;
+
+ /** The toggle's description text. */
+ @SerializedName("description")
+ String description;
+
+ /** The toggle's title text. */
+ @SerializedName("title")
+ String title;
+
+ /**
+ * The toggle's collected value
+ *
+ *
One of {@code disabled}, or {@code enabled}.
+ */
+ @SerializedName("value")
+ String value;
+ }
+ }
+ }
+
/** Represents a reader action to process a payment intent. */
@Getter
@Setter
@@ -610,6 +874,13 @@ public static class ProcessConfig extends StripeObject {
@SerializedName("enable_customer_cancellation")
Boolean enableCustomerCancellation;
+ /**
+ * If the customer does not abandon authenticating the payment, they will be redirected to
+ * this specified URL after completion.
+ */
+ @SerializedName("return_url")
+ String returnUrl;
+
/** Override showing a tipping selection screen on this transaction. */
@SerializedName("skip_tipping")
Boolean skipTipping;
@@ -970,6 +1241,120 @@ public Reader presentPaymentMethod(
options);
return resource.getResponseGetter().request(request, Reader.class);
}
+
+ /** Use this endpoint to trigger a successful input collection on a simulated reader. */
+ public Reader succeedInputCollection() throws StripeException {
+ return succeedInputCollection((Map) null, (RequestOptions) null);
+ }
+
+ /** Use this endpoint to trigger a successful input collection on a simulated reader. */
+ public Reader succeedInputCollection(RequestOptions options) throws StripeException {
+ return succeedInputCollection((Map) null, options);
+ }
+
+ /** Use this endpoint to trigger a successful input collection on a simulated reader. */
+ public Reader succeedInputCollection(Map params) throws StripeException {
+ return succeedInputCollection(params, (RequestOptions) null);
+ }
+
+ /** Use this endpoint to trigger a successful input collection on a simulated reader. */
+ public Reader succeedInputCollection(Map params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/test_helpers/terminal/readers/%s/succeed_input_collection",
+ ApiResource.urlEncodeId(this.resource.getId()));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return resource.getResponseGetter().request(request, Reader.class);
+ }
+
+ /** Use this endpoint to trigger a successful input collection on a simulated reader. */
+ public Reader succeedInputCollection(ReaderSucceedInputCollectionParams params)
+ throws StripeException {
+ return succeedInputCollection(params, (RequestOptions) null);
+ }
+
+ /** Use this endpoint to trigger a successful input collection on a simulated reader. */
+ public Reader succeedInputCollection(
+ ReaderSucceedInputCollectionParams params, RequestOptions options) throws StripeException {
+ String path =
+ String.format(
+ "/v1/test_helpers/terminal/readers/%s/succeed_input_collection",
+ ApiResource.urlEncodeId(this.resource.getId()));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return resource.getResponseGetter().request(request, Reader.class);
+ }
+
+ /**
+ * Use this endpoint to complete an input collection with a timeout error on a simulated reader.
+ */
+ public Reader timeoutInputCollection() throws StripeException {
+ return timeoutInputCollection((Map) null, (RequestOptions) null);
+ }
+
+ /**
+ * Use this endpoint to complete an input collection with a timeout error on a simulated reader.
+ */
+ public Reader timeoutInputCollection(RequestOptions options) throws StripeException {
+ return timeoutInputCollection((Map) null, options);
+ }
+
+ /**
+ * Use this endpoint to complete an input collection with a timeout error on a simulated reader.
+ */
+ public Reader timeoutInputCollection(Map params) throws StripeException {
+ return timeoutInputCollection(params, (RequestOptions) null);
+ }
+
+ /**
+ * Use this endpoint to complete an input collection with a timeout error on a simulated reader.
+ */
+ public Reader timeoutInputCollection(Map params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/test_helpers/terminal/readers/%s/timeout_input_collection",
+ ApiResource.urlEncodeId(this.resource.getId()));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return resource.getResponseGetter().request(request, Reader.class);
+ }
+
+ /**
+ * Use this endpoint to complete an input collection with a timeout error on a simulated reader.
+ */
+ public Reader timeoutInputCollection(ReaderTimeoutInputCollectionParams params)
+ throws StripeException {
+ return timeoutInputCollection(params, (RequestOptions) null);
+ }
+
+ /**
+ * Use this endpoint to complete an input collection with a timeout error on a simulated reader.
+ */
+ public Reader timeoutInputCollection(
+ ReaderTimeoutInputCollectionParams params, RequestOptions options) throws StripeException {
+ String path =
+ String.format(
+ "/v1/test_helpers/terminal/readers/%s/timeout_input_collection",
+ ApiResource.urlEncodeId(this.resource.getId()));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return resource.getResponseGetter().request(request, Reader.class);
+ }
}
@Override
diff --git a/src/main/java/com/stripe/param/AccountCreateParams.java b/src/main/java/com/stripe/param/AccountCreateParams.java
index 57fc58b52aa..e503d5709bf 100644
--- a/src/main/java/com/stripe/param/AccountCreateParams.java
+++ b/src/main/java/com/stripe/param/AccountCreateParams.java
@@ -1448,6 +1448,10 @@ public static class Capabilities {
@SerializedName("paynow_payments")
PaynowPayments paynowPayments;
+ /** The pix_payments capability. */
+ @SerializedName("pix_payments")
+ PixPayments pixPayments;
+
/** The promptpay_payments capability. */
@SerializedName("promptpay_payments")
PromptpayPayments promptpayPayments;
@@ -1555,6 +1559,7 @@ private Capabilities(
PayByBankPayments payByBankPayments,
PaycoPayments paycoPayments,
PaynowPayments paynowPayments,
+ PixPayments pixPayments,
PromptpayPayments promptpayPayments,
RevolutPayPayments revolutPayPayments,
SamsungPayPayments samsungPayPayments,
@@ -1613,6 +1618,7 @@ private Capabilities(
this.payByBankPayments = payByBankPayments;
this.paycoPayments = paycoPayments;
this.paynowPayments = paynowPayments;
+ this.pixPayments = pixPayments;
this.promptpayPayments = promptpayPayments;
this.revolutPayPayments = revolutPayPayments;
this.samsungPayPayments = samsungPayPayments;
@@ -1720,6 +1726,8 @@ public static class Builder {
private PaynowPayments paynowPayments;
+ private PixPayments pixPayments;
+
private PromptpayPayments promptpayPayments;
private RevolutPayPayments revolutPayPayments;
@@ -1797,6 +1805,7 @@ public AccountCreateParams.Capabilities build() {
this.payByBankPayments,
this.paycoPayments,
this.paynowPayments,
+ this.pixPayments,
this.promptpayPayments,
this.revolutPayPayments,
this.samsungPayPayments,
@@ -2119,6 +2128,12 @@ public Builder setPaynowPayments(
return this;
}
+ /** The pix_payments capability. */
+ public Builder setPixPayments(AccountCreateParams.Capabilities.PixPayments pixPayments) {
+ this.pixPayments = pixPayments;
+ return this;
+ }
+
/** The promptpay_payments capability. */
public Builder setPromptpayPayments(
AccountCreateParams.Capabilities.PromptpayPayments promptpayPayments) {
@@ -5506,6 +5521,85 @@ public Builder setRequested(Boolean requested) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PixPayments {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * Passing true requests the capability for the account, if it is not already requested. A
+ * requested capability may not immediately become active. Any requirements to activate the
+ * capability are returned in the {@code requirements} arrays.
+ */
+ @SerializedName("requested")
+ Boolean requested;
+
+ private PixPayments(Map extraParams, Boolean requested) {
+ this.extraParams = extraParams;
+ this.requested = requested;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Boolean requested;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountCreateParams.Capabilities.PixPayments build() {
+ return new AccountCreateParams.Capabilities.PixPayments(this.extraParams, this.requested);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountCreateParams.Capabilities.PixPayments#extraParams} for the field
+ * documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountCreateParams.Capabilities.PixPayments#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Passing true requests the capability for the account, if it is not already requested. A
+ * requested capability may not immediately become active. Any requirements to activate the
+ * capability are returned in the {@code requirements} arrays.
+ */
+ public Builder setRequested(Boolean requested) {
+ this.requested = requested;
+ return this;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class PromptpayPayments {
diff --git a/src/main/java/com/stripe/param/AccountSessionCreateParams.java b/src/main/java/com/stripe/param/AccountSessionCreateParams.java
index 90ed1ac0cab..69a224784c6 100644
--- a/src/main/java/com/stripe/param/AccountSessionCreateParams.java
+++ b/src/main/java/com/stripe/param/AccountSessionCreateParams.java
@@ -149,6 +149,10 @@ public static class Components {
@SerializedName("balances")
Balances balances;
+ /** Configuration for the disputes list embedded component. */
+ @SerializedName("disputes_list")
+ DisputesList disputesList;
+
/** Configuration for the documents embedded component. */
@SerializedName("documents")
Documents documents;
@@ -186,6 +190,10 @@ public static class Components {
@SerializedName("payment_details")
PaymentDetails paymentDetails;
+ /** Configuration for the payment disputes embedded component. */
+ @SerializedName("payment_disputes")
+ PaymentDisputes paymentDisputes;
+
/** Configuration for the payments embedded component. */
@SerializedName("payments")
Payments payments;
@@ -210,6 +218,7 @@ private Components(
AccountManagement accountManagement,
AccountOnboarding accountOnboarding,
Balances balances,
+ DisputesList disputesList,
Documents documents,
Map extraParams,
FinancialAccount financialAccount,
@@ -218,6 +227,7 @@ private Components(
IssuingCardsList issuingCardsList,
NotificationBanner notificationBanner,
PaymentDetails paymentDetails,
+ PaymentDisputes paymentDisputes,
Payments payments,
Payouts payouts,
PayoutsList payoutsList,
@@ -226,6 +236,7 @@ private Components(
this.accountManagement = accountManagement;
this.accountOnboarding = accountOnboarding;
this.balances = balances;
+ this.disputesList = disputesList;
this.documents = documents;
this.extraParams = extraParams;
this.financialAccount = financialAccount;
@@ -234,6 +245,7 @@ private Components(
this.issuingCardsList = issuingCardsList;
this.notificationBanner = notificationBanner;
this.paymentDetails = paymentDetails;
+ this.paymentDisputes = paymentDisputes;
this.payments = payments;
this.payouts = payouts;
this.payoutsList = payoutsList;
@@ -252,6 +264,8 @@ public static class Builder {
private Balances balances;
+ private DisputesList disputesList;
+
private Documents documents;
private Map extraParams;
@@ -268,6 +282,8 @@ public static class Builder {
private PaymentDetails paymentDetails;
+ private PaymentDisputes paymentDisputes;
+
private Payments payments;
private Payouts payouts;
@@ -284,6 +300,7 @@ public AccountSessionCreateParams.Components build() {
this.accountManagement,
this.accountOnboarding,
this.balances,
+ this.disputesList,
this.documents,
this.extraParams,
this.financialAccount,
@@ -292,6 +309,7 @@ public AccountSessionCreateParams.Components build() {
this.issuingCardsList,
this.notificationBanner,
this.paymentDetails,
+ this.paymentDisputes,
this.payments,
this.payouts,
this.payoutsList,
@@ -319,6 +337,13 @@ public Builder setBalances(AccountSessionCreateParams.Components.Balances balanc
return this;
}
+ /** Configuration for the disputes list embedded component. */
+ public Builder setDisputesList(
+ AccountSessionCreateParams.Components.DisputesList disputesList) {
+ this.disputesList = disputesList;
+ return this;
+ }
+
/** Configuration for the documents embedded component. */
public Builder setDocuments(AccountSessionCreateParams.Components.Documents documents) {
this.documents = documents;
@@ -393,6 +418,13 @@ public Builder setPaymentDetails(
return this;
}
+ /** Configuration for the payment disputes embedded component. */
+ public Builder setPaymentDisputes(
+ AccountSessionCreateParams.Components.PaymentDisputes paymentDisputes) {
+ this.paymentDisputes = paymentDisputes;
+ return this;
+ }
+
/** Configuration for the payments embedded component. */
public Builder setPayments(AccountSessionCreateParams.Components.Payments payments) {
this.payments = payments;
@@ -1103,6 +1135,234 @@ public Builder setStandardPayouts(Boolean standardPayouts) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DisputesList {
+ /** Required. Whether the embedded component is enabled. */
+ @SerializedName("enabled")
+ Boolean enabled;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** The list of features enabled in the embedded component. */
+ @SerializedName("features")
+ Features features;
+
+ private DisputesList(Boolean enabled, Map extraParams, Features features) {
+ this.enabled = enabled;
+ this.extraParams = extraParams;
+ this.features = features;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Boolean enabled;
+
+ private Map extraParams;
+
+ private Features features;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountSessionCreateParams.Components.DisputesList build() {
+ return new AccountSessionCreateParams.Components.DisputesList(
+ this.enabled, this.extraParams, this.features);
+ }
+
+ /** Required. Whether the embedded component is enabled. */
+ public Builder setEnabled(Boolean enabled) {
+ this.enabled = enabled;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountSessionCreateParams.Components.DisputesList#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountSessionCreateParams.Components.DisputesList#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** The list of features enabled in the embedded component. */
+ public Builder setFeatures(
+ AccountSessionCreateParams.Components.DisputesList.Features features) {
+ this.features = features;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Features {
+ /**
+ * Whether to allow capturing and cancelling payment intents. This is {@code true} by
+ * default.
+ */
+ @SerializedName("capture_payments")
+ Boolean capturePayments;
+
+ /**
+ * Whether to allow connected accounts to manage destination charges that are created on
+ * behalf of them. This is {@code false} by default.
+ */
+ @SerializedName("destination_on_behalf_of_charge_management")
+ Boolean destinationOnBehalfOfChargeManagement;
+
+ /**
+ * Whether to allow responding to disputes, including submitting evidence and accepting
+ * disputes. This is {@code true} by default.
+ */
+ @SerializedName("dispute_management")
+ Boolean disputeManagement;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Whether to allow sending refunds. This is {@code true} by default. */
+ @SerializedName("refund_management")
+ Boolean refundManagement;
+
+ private Features(
+ Boolean capturePayments,
+ Boolean destinationOnBehalfOfChargeManagement,
+ Boolean disputeManagement,
+ Map extraParams,
+ Boolean refundManagement) {
+ this.capturePayments = capturePayments;
+ this.destinationOnBehalfOfChargeManagement = destinationOnBehalfOfChargeManagement;
+ this.disputeManagement = disputeManagement;
+ this.extraParams = extraParams;
+ this.refundManagement = refundManagement;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Boolean capturePayments;
+
+ private Boolean destinationOnBehalfOfChargeManagement;
+
+ private Boolean disputeManagement;
+
+ private Map extraParams;
+
+ private Boolean refundManagement;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountSessionCreateParams.Components.DisputesList.Features build() {
+ return new AccountSessionCreateParams.Components.DisputesList.Features(
+ this.capturePayments,
+ this.destinationOnBehalfOfChargeManagement,
+ this.disputeManagement,
+ this.extraParams,
+ this.refundManagement);
+ }
+
+ /**
+ * Whether to allow capturing and cancelling payment intents. This is {@code true} by
+ * default.
+ */
+ public Builder setCapturePayments(Boolean capturePayments) {
+ this.capturePayments = capturePayments;
+ return this;
+ }
+
+ /**
+ * Whether to allow connected accounts to manage destination charges that are created on
+ * behalf of them. This is {@code false} by default.
+ */
+ public Builder setDestinationOnBehalfOfChargeManagement(
+ Boolean destinationOnBehalfOfChargeManagement) {
+ this.destinationOnBehalfOfChargeManagement = destinationOnBehalfOfChargeManagement;
+ return this;
+ }
+
+ /**
+ * Whether to allow responding to disputes, including submitting evidence and accepting
+ * disputes. This is {@code true} by default.
+ */
+ public Builder setDisputeManagement(Boolean disputeManagement) {
+ this.disputeManagement = disputeManagement;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * AccountSessionCreateParams.Components.DisputesList.Features#extraParams} for the field
+ * documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * AccountSessionCreateParams.Components.DisputesList.Features#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Whether to allow sending refunds. This is {@code true} by default. */
+ public Builder setRefundManagement(Boolean refundManagement) {
+ this.refundManagement = refundManagement;
+ return this;
+ }
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Documents {
@@ -2512,6 +2772,213 @@ public Builder setRefundManagement(Boolean refundManagement) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PaymentDisputes {
+ /** Required. Whether the embedded component is enabled. */
+ @SerializedName("enabled")
+ Boolean enabled;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** The list of features enabled in the embedded component. */
+ @SerializedName("features")
+ Features features;
+
+ private PaymentDisputes(Boolean enabled, Map extraParams, Features features) {
+ this.enabled = enabled;
+ this.extraParams = extraParams;
+ this.features = features;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Boolean enabled;
+
+ private Map extraParams;
+
+ private Features features;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountSessionCreateParams.Components.PaymentDisputes build() {
+ return new AccountSessionCreateParams.Components.PaymentDisputes(
+ this.enabled, this.extraParams, this.features);
+ }
+
+ /** Required. Whether the embedded component is enabled. */
+ public Builder setEnabled(Boolean enabled) {
+ this.enabled = enabled;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountSessionCreateParams.Components.PaymentDisputes#extraParams} for
+ * the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountSessionCreateParams.Components.PaymentDisputes#extraParams} for
+ * the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** The list of features enabled in the embedded component. */
+ public Builder setFeatures(
+ AccountSessionCreateParams.Components.PaymentDisputes.Features features) {
+ this.features = features;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Features {
+ /**
+ * Whether to allow connected accounts to manage destination charges that are created on
+ * behalf of them. This is {@code false} by default.
+ */
+ @SerializedName("destination_on_behalf_of_charge_management")
+ Boolean destinationOnBehalfOfChargeManagement;
+
+ /**
+ * Whether to allow responding to disputes, including submitting evidence and accepting
+ * disputes. This is {@code true} by default.
+ */
+ @SerializedName("dispute_management")
+ Boolean disputeManagement;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Whether to allow sending refunds. This is {@code true} by default. */
+ @SerializedName("refund_management")
+ Boolean refundManagement;
+
+ private Features(
+ Boolean destinationOnBehalfOfChargeManagement,
+ Boolean disputeManagement,
+ Map extraParams,
+ Boolean refundManagement) {
+ this.destinationOnBehalfOfChargeManagement = destinationOnBehalfOfChargeManagement;
+ this.disputeManagement = disputeManagement;
+ this.extraParams = extraParams;
+ this.refundManagement = refundManagement;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Boolean destinationOnBehalfOfChargeManagement;
+
+ private Boolean disputeManagement;
+
+ private Map extraParams;
+
+ private Boolean refundManagement;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountSessionCreateParams.Components.PaymentDisputes.Features build() {
+ return new AccountSessionCreateParams.Components.PaymentDisputes.Features(
+ this.destinationOnBehalfOfChargeManagement,
+ this.disputeManagement,
+ this.extraParams,
+ this.refundManagement);
+ }
+
+ /**
+ * Whether to allow connected accounts to manage destination charges that are created on
+ * behalf of them. This is {@code false} by default.
+ */
+ public Builder setDestinationOnBehalfOfChargeManagement(
+ Boolean destinationOnBehalfOfChargeManagement) {
+ this.destinationOnBehalfOfChargeManagement = destinationOnBehalfOfChargeManagement;
+ return this;
+ }
+
+ /**
+ * Whether to allow responding to disputes, including submitting evidence and accepting
+ * disputes. This is {@code true} by default.
+ */
+ public Builder setDisputeManagement(Boolean disputeManagement) {
+ this.disputeManagement = disputeManagement;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * AccountSessionCreateParams.Components.PaymentDisputes.Features#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * AccountSessionCreateParams.Components.PaymentDisputes.Features#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Whether to allow sending refunds. This is {@code true} by default. */
+ public Builder setRefundManagement(Boolean refundManagement) {
+ this.refundManagement = refundManagement;
+ return this;
+ }
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Payments {
diff --git a/src/main/java/com/stripe/param/AccountUpdateParams.java b/src/main/java/com/stripe/param/AccountUpdateParams.java
index 0bfab1e65e2..8cd3d920707 100644
--- a/src/main/java/com/stripe/param/AccountUpdateParams.java
+++ b/src/main/java/com/stripe/param/AccountUpdateParams.java
@@ -1546,6 +1546,10 @@ public static class Capabilities {
@SerializedName("paynow_payments")
PaynowPayments paynowPayments;
+ /** The pix_payments capability. */
+ @SerializedName("pix_payments")
+ PixPayments pixPayments;
+
/** The promptpay_payments capability. */
@SerializedName("promptpay_payments")
PromptpayPayments promptpayPayments;
@@ -1653,6 +1657,7 @@ private Capabilities(
PayByBankPayments payByBankPayments,
PaycoPayments paycoPayments,
PaynowPayments paynowPayments,
+ PixPayments pixPayments,
PromptpayPayments promptpayPayments,
RevolutPayPayments revolutPayPayments,
SamsungPayPayments samsungPayPayments,
@@ -1711,6 +1716,7 @@ private Capabilities(
this.payByBankPayments = payByBankPayments;
this.paycoPayments = paycoPayments;
this.paynowPayments = paynowPayments;
+ this.pixPayments = pixPayments;
this.promptpayPayments = promptpayPayments;
this.revolutPayPayments = revolutPayPayments;
this.samsungPayPayments = samsungPayPayments;
@@ -1818,6 +1824,8 @@ public static class Builder {
private PaynowPayments paynowPayments;
+ private PixPayments pixPayments;
+
private PromptpayPayments promptpayPayments;
private RevolutPayPayments revolutPayPayments;
@@ -1895,6 +1903,7 @@ public AccountUpdateParams.Capabilities build() {
this.payByBankPayments,
this.paycoPayments,
this.paynowPayments,
+ this.pixPayments,
this.promptpayPayments,
this.revolutPayPayments,
this.samsungPayPayments,
@@ -2217,6 +2226,12 @@ public Builder setPaynowPayments(
return this;
}
+ /** The pix_payments capability. */
+ public Builder setPixPayments(AccountUpdateParams.Capabilities.PixPayments pixPayments) {
+ this.pixPayments = pixPayments;
+ return this;
+ }
+
/** The promptpay_payments capability. */
public Builder setPromptpayPayments(
AccountUpdateParams.Capabilities.PromptpayPayments promptpayPayments) {
@@ -5604,6 +5619,85 @@ public Builder setRequested(Boolean requested) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PixPayments {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * Passing true requests the capability for the account, if it is not already requested. A
+ * requested capability may not immediately become active. Any requirements to activate the
+ * capability are returned in the {@code requirements} arrays.
+ */
+ @SerializedName("requested")
+ Boolean requested;
+
+ private PixPayments(Map extraParams, Boolean requested) {
+ this.extraParams = extraParams;
+ this.requested = requested;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Boolean requested;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountUpdateParams.Capabilities.PixPayments build() {
+ return new AccountUpdateParams.Capabilities.PixPayments(this.extraParams, this.requested);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountUpdateParams.Capabilities.PixPayments#extraParams} for the field
+ * documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link AccountUpdateParams.Capabilities.PixPayments#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Passing true requests the capability for the account, if it is not already requested. A
+ * requested capability may not immediately become active. Any requirements to activate the
+ * capability are returned in the {@code requirements} arrays.
+ */
+ public Builder setRequested(Boolean requested) {
+ this.requested = requested;
+ return this;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class PromptpayPayments {
diff --git a/src/main/java/com/stripe/param/InvoiceAttachPaymentParams.java b/src/main/java/com/stripe/param/InvoiceAttachPaymentParams.java
new file mode 100644
index 00000000000..3cfd7b21ed9
--- /dev/null
+++ b/src/main/java/com/stripe/param/InvoiceAttachPaymentParams.java
@@ -0,0 +1,114 @@
+// File generated from our OpenAPI spec
+package com.stripe.param;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.net.ApiRequestParams;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+
+@Getter
+@EqualsAndHashCode(callSuper = false)
+public class InvoiceAttachPaymentParams extends ApiRequestParams {
+ /** Specifies which fields in the response should be expanded. */
+ @SerializedName("expand")
+ List expand;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** The ID of the PaymentIntent to attach to the invoice. */
+ @SerializedName("payment_intent")
+ String paymentIntent;
+
+ private InvoiceAttachPaymentParams(
+ List expand, Map extraParams, String paymentIntent) {
+ this.expand = expand;
+ this.extraParams = extraParams;
+ this.paymentIntent = paymentIntent;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private List expand;
+
+ private Map extraParams;
+
+ private String paymentIntent;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public InvoiceAttachPaymentParams build() {
+ return new InvoiceAttachPaymentParams(this.expand, this.extraParams, this.paymentIntent);
+ }
+
+ /**
+ * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * InvoiceAttachPaymentParams#expand} for the field documentation.
+ */
+ public Builder addExpand(String element) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
+ * subsequent calls adds additional elements to the original list. See {@link
+ * InvoiceAttachPaymentParams#expand} for the field documentation.
+ */
+ public Builder addAllExpand(List elements) {
+ if (this.expand == null) {
+ this.expand = new ArrayList<>();
+ }
+ this.expand.addAll(elements);
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * InvoiceAttachPaymentParams#extraParams} for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link InvoiceAttachPaymentParams#extraParams} for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** The ID of the PaymentIntent to attach to the invoice. */
+ public Builder setPaymentIntent(String paymentIntent) {
+ this.paymentIntent = paymentIntent;
+ return this;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java
index 7b2277cafe6..70bdf7781aa 100644
--- a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java
+++ b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java
@@ -3104,6 +3104,13 @@ public static class Phase {
@SerializedName("billing_cycle_anchor")
BillingCycleAnchor billingCycleAnchor;
+ /**
+ * Define thresholds at which an invoice will be sent, and the subscription advanced to a new
+ * billing period. Pass an empty string to remove previously-defined thresholds.
+ */
+ @SerializedName("billing_thresholds")
+ Object billingThresholds;
+
/**
* Either {@code charge_automatically}, or {@code send_invoice}. When charging automatically,
* Stripe will attempt to pay the underlying subscription at the end of each billing cycle
@@ -3213,14 +3220,13 @@ public static class Phase {
String onBehalfOf;
/**
- * Whether the subscription schedule will create prorations when
- * transitioning to this phase. The default value is {@code create_prorations}. This setting
- * controls prorations when a phase is started asynchronously and it is persisted as a field
- * on the phase. It's different from the request-level proration_behavior
* parameter which controls what happens if the update request affects the billing
- * configuration of the current phase.
+ * configuration (item price, quantity, etc.) of the current phase.
*/
@SerializedName("proration_behavior")
ProrationBehavior prorationBehavior;
@@ -3258,6 +3264,7 @@ private Phase(
BigDecimal applicationFeePercent,
AutomaticTax automaticTax,
BillingCycleAnchor billingCycleAnchor,
+ Object billingThresholds,
CollectionMethod collectionMethod,
String currency,
String defaultPaymentMethod,
@@ -3280,6 +3287,7 @@ private Phase(
this.applicationFeePercent = applicationFeePercent;
this.automaticTax = automaticTax;
this.billingCycleAnchor = billingCycleAnchor;
+ this.billingThresholds = billingThresholds;
this.collectionMethod = collectionMethod;
this.currency = currency;
this.defaultPaymentMethod = defaultPaymentMethod;
@@ -3314,6 +3322,8 @@ public static class Builder {
private BillingCycleAnchor billingCycleAnchor;
+ private Object billingThresholds;
+
private CollectionMethod collectionMethod;
private String currency;
@@ -3357,6 +3367,7 @@ public InvoiceCreatePreviewParams.ScheduleDetails.Phase build() {
this.applicationFeePercent,
this.automaticTax,
this.billingCycleAnchor,
+ this.billingThresholds,
this.collectionMethod,
this.currency,
this.defaultPaymentMethod,
@@ -3440,6 +3451,25 @@ public Builder setBillingCycleAnchor(
return this;
}
+ /**
+ * Define thresholds at which an invoice will be sent, and the subscription advanced to a
+ * new billing period. Pass an empty string to remove previously-defined thresholds.
+ */
+ public Builder setBillingThresholds(
+ InvoiceCreatePreviewParams.ScheduleDetails.Phase.BillingThresholds billingThresholds) {
+ this.billingThresholds = billingThresholds;
+ return this;
+ }
+
+ /**
+ * Define thresholds at which an invoice will be sent, and the subscription advanced to a
+ * new billing period. Pass an empty string to remove previously-defined thresholds.
+ */
+ public Builder setBillingThresholds(EmptyParam billingThresholds) {
+ this.billingThresholds = billingThresholds;
+ return this;
+ }
+
/**
* Either {@code charge_automatically}, or {@code send_invoice}. When charging
* automatically, Stripe will attempt to pay the underlying subscription at the end of each
@@ -3733,14 +3763,13 @@ public Builder setOnBehalfOf(String onBehalfOf) {
}
/**
- * Whether the subscription schedule will create prorations when
- * transitioning to this phase. The default value is {@code create_prorations}. This setting
- * controls prorations when a phase is started asynchronously and it is persisted as a field
- * on the phase. It's different from the request-level proration_behavior
* parameter which controls what happens if the update request affects the billing
- * configuration of the current phase.
+ * configuration (item price, quantity, etc.) of the current phase.
*/
public Builder setProrationBehavior(
InvoiceCreatePreviewParams.ScheduleDetails.Phase.ProrationBehavior prorationBehavior) {
@@ -4545,6 +4574,105 @@ public enum Type implements ApiRequestParams.EnumParam {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BillingThresholds {
+ /** Monetary threshold that triggers the subscription to advance to a new billing period. */
+ @SerializedName("amount_gte")
+ Long amountGte;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * Indicates if the {@code billing_cycle_anchor} should be reset when a threshold is
+ * reached. If true, {@code billing_cycle_anchor} will be updated to the date/time the
+ * threshold was last reached; otherwise, the value will remain unchanged.
+ */
+ @SerializedName("reset_billing_cycle_anchor")
+ Boolean resetBillingCycleAnchor;
+
+ private BillingThresholds(
+ Long amountGte, Map extraParams, Boolean resetBillingCycleAnchor) {
+ this.amountGte = amountGte;
+ this.extraParams = extraParams;
+ this.resetBillingCycleAnchor = resetBillingCycleAnchor;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Long amountGte;
+
+ private Map extraParams;
+
+ private Boolean resetBillingCycleAnchor;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public InvoiceCreatePreviewParams.ScheduleDetails.Phase.BillingThresholds build() {
+ return new InvoiceCreatePreviewParams.ScheduleDetails.Phase.BillingThresholds(
+ this.amountGte, this.extraParams, this.resetBillingCycleAnchor);
+ }
+
+ /**
+ * Monetary threshold that triggers the subscription to advance to a new billing period.
+ */
+ public Builder setAmountGte(Long amountGte) {
+ this.amountGte = amountGte;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * InvoiceCreatePreviewParams.ScheduleDetails.Phase.BillingThresholds#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * InvoiceCreatePreviewParams.ScheduleDetails.Phase.BillingThresholds#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Indicates if the {@code billing_cycle_anchor} should be reset when a threshold is
+ * reached. If true, {@code billing_cycle_anchor} will be updated to the date/time the
+ * threshold was last reached; otherwise, the value will remain unchanged.
+ */
+ public Builder setResetBillingCycleAnchor(Boolean resetBillingCycleAnchor) {
+ this.resetBillingCycleAnchor = resetBillingCycleAnchor;
+ return this;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Discount {
@@ -4919,6 +5047,13 @@ public enum Type implements ApiRequestParams.EnumParam {
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Item {
+ /**
+ * Define thresholds at which an invoice will be sent, and the subscription advanced to a
+ * new billing period. Pass an empty string to remove previously-defined thresholds.
+ */
+ @SerializedName("billing_thresholds")
+ Object billingThresholds;
+
/** The coupons to redeem into discounts for the subscription item. */
@SerializedName("discounts")
Object discounts;
@@ -4982,6 +5117,7 @@ public static class Item {
Object taxRates;
private Item(
+ Object billingThresholds,
Object discounts,
Map extraParams,
Map metadata,
@@ -4990,6 +5126,7 @@ private Item(
PriceData priceData,
Long quantity,
Object taxRates) {
+ this.billingThresholds = billingThresholds;
this.discounts = discounts;
this.extraParams = extraParams;
this.metadata = metadata;
@@ -5005,6 +5142,8 @@ public static Builder builder() {
}
public static class Builder {
+ private Object billingThresholds;
+
private Object discounts;
private Map extraParams;
@@ -5024,6 +5163,7 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item build() {
return new InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item(
+ this.billingThresholds,
this.discounts,
this.extraParams,
this.metadata,
@@ -5034,6 +5174,26 @@ public InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item build() {
this.taxRates);
}
+ /**
+ * Define thresholds at which an invoice will be sent, and the subscription advanced to a
+ * new billing period. Pass an empty string to remove previously-defined thresholds.
+ */
+ public Builder setBillingThresholds(
+ InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item.BillingThresholds
+ billingThresholds) {
+ this.billingThresholds = billingThresholds;
+ return this;
+ }
+
+ /**
+ * Define thresholds at which an invoice will be sent, and the subscription advanced to a
+ * new billing period. Pass an empty string to remove previously-defined thresholds.
+ */
+ public Builder setBillingThresholds(EmptyParam billingThresholds) {
+ this.billingThresholds = billingThresholds;
+ return this;
+ }
+
/**
* Add an element to `discounts` list. A list is initialized for the first `add/addAll`
* call, and subsequent calls adds additional elements to the original list. See {@link
@@ -5228,6 +5388,92 @@ public Builder setTaxRates(List taxRates) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BillingThresholds {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its
+ * parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * Required. Number of units that meets the billing threshold to advance
+ * the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 monetary
+ * threshold)
+ */
+ @SerializedName("usage_gte")
+ Long usageGte;
+
+ private BillingThresholds(Map extraParams, Long usageGte) {
+ this.extraParams = extraParams;
+ this.usageGte = usageGte;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Long usageGte;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item.BillingThresholds build() {
+ return new InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item.BillingThresholds(
+ this.extraParams, this.usageGte);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item.BillingThresholds#extraParams}
+ * for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item.BillingThresholds#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Required. Number of units that meets the billing threshold to
+ * advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet
+ * a $50 monetary
+ * threshold)
+ */
+ public Builder setUsageGte(Long usageGte) {
+ this.usageGte = usageGte;
+ return this;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Discount {
@@ -5929,7 +6175,8 @@ public static class SubscriptionDetails {
/**
* Indicate whether this subscription should cancel at the end of the current period ({@code
- * current_period_end}). Defaults to {@code false}.
+ * current_period_end}). Defaults to {@code false}. This param will be removed in a future API
+ * version. Please use {@code cancel_at} instead.
*/
@SerializedName("cancel_at_period_end")
Boolean cancelAtPeriodEnd;
@@ -6122,7 +6369,8 @@ public Builder setCancelAt(EmptyParam cancelAt) {
/**
* Indicate whether this subscription should cancel at the end of the current period ({@code
- * current_period_end}). Defaults to {@code false}.
+ * current_period_end}). Defaults to {@code false}. This param will be removed in a future API
+ * version. Please use {@code cancel_at} instead.
*/
public Builder setCancelAtPeriodEnd(Boolean cancelAtPeriodEnd) {
this.cancelAtPeriodEnd = cancelAtPeriodEnd;
@@ -6305,6 +6553,13 @@ public Builder setTrialEnd(Long trialEnd) {
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Item {
+ /**
+ * Define thresholds at which an invoice will be sent, and the subscription advanced to a new
+ * billing period. Pass an empty string to remove previously-defined thresholds.
+ */
+ @SerializedName("billing_thresholds")
+ Object billingThresholds;
+
/**
* Delete all usage for a given subscription item. You must pass this when deleting a usage
* records subscription item. {@code clear_usage} has no effect if the plan has a billing
@@ -6377,6 +6632,7 @@ public static class Item {
Object taxRates;
private Item(
+ Object billingThresholds,
Boolean clearUsage,
Boolean deleted,
Object discounts,
@@ -6388,6 +6644,7 @@ private Item(
PriceData priceData,
Long quantity,
Object taxRates) {
+ this.billingThresholds = billingThresholds;
this.clearUsage = clearUsage;
this.deleted = deleted;
this.discounts = discounts;
@@ -6406,6 +6663,8 @@ public static Builder builder() {
}
public static class Builder {
+ private Object billingThresholds;
+
private Boolean clearUsage;
private Boolean deleted;
@@ -6431,6 +6690,7 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public InvoiceCreatePreviewParams.SubscriptionDetails.Item build() {
return new InvoiceCreatePreviewParams.SubscriptionDetails.Item(
+ this.billingThresholds,
this.clearUsage,
this.deleted,
this.discounts,
@@ -6444,6 +6704,26 @@ public InvoiceCreatePreviewParams.SubscriptionDetails.Item build() {
this.taxRates);
}
+ /**
+ * Define thresholds at which an invoice will be sent, and the subscription advanced to a
+ * new billing period. Pass an empty string to remove previously-defined thresholds.
+ */
+ public Builder setBillingThresholds(
+ InvoiceCreatePreviewParams.SubscriptionDetails.Item.BillingThresholds
+ billingThresholds) {
+ this.billingThresholds = billingThresholds;
+ return this;
+ }
+
+ /**
+ * Define thresholds at which an invoice will be sent, and the subscription advanced to a
+ * new billing period. Pass an empty string to remove previously-defined thresholds.
+ */
+ public Builder setBillingThresholds(EmptyParam billingThresholds) {
+ this.billingThresholds = billingThresholds;
+ return this;
+ }
+
/**
* Delete all usage for a given subscription item. You must pass this when deleting a usage
* records subscription item. {@code clear_usage} has no effect if the plan has a billing
@@ -6682,6 +6962,91 @@ public Builder setTaxRates(List taxRates) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BillingThresholds {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * Required. Number of units that meets the billing threshold to advance
+ * the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 monetary
+ * threshold)
+ */
+ @SerializedName("usage_gte")
+ Long usageGte;
+
+ private BillingThresholds(Map extraParams, Long usageGte) {
+ this.extraParams = extraParams;
+ this.usageGte = usageGte;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Long usageGte;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public InvoiceCreatePreviewParams.SubscriptionDetails.Item.BillingThresholds build() {
+ return new InvoiceCreatePreviewParams.SubscriptionDetails.Item.BillingThresholds(
+ this.extraParams, this.usageGte);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * InvoiceCreatePreviewParams.SubscriptionDetails.Item.BillingThresholds#extraParams} for
+ * the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * InvoiceCreatePreviewParams.SubscriptionDetails.Item.BillingThresholds#extraParams} for
+ * the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Required. Number of units that meets the billing threshold to advance
+ * the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 monetary
+ * threshold)
+ */
+ public Builder setUsageGte(Long usageGte) {
+ this.usageGte = usageGte;
+ return this;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Discount {
diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
index 75b9c75c7d7..d92a2467291 100644
--- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
@@ -69,7 +69,10 @@ public class PaymentIntentConfirmParams extends ApiRequestParams {
/**
* ID of the payment method (a PaymentMethod, Card, or compatible
- * Source object) to attach to this PaymentIntent.
+ * Source object) to attach to this PaymentIntent. If the payment method is attached to a
+ * Customer, it must match the customer that is set on
+ * this PaymentIntent.
*/
@SerializedName("payment_method")
String paymentMethod;
@@ -381,7 +384,10 @@ public Builder setOffSession(PaymentIntentConfirmParams.OffSession offSession) {
/**
* ID of the payment method (a PaymentMethod, Card, or compatible
- * Source object) to attach to this PaymentIntent.
+ * Source object) to attach to this PaymentIntent. If the payment method is attached to a
+ * Customer, it must match the customer that is set on
+ * this PaymentIntent.
*/
public Builder setPaymentMethod(String paymentMethod) {
this.paymentMethod = paymentMethod;
@@ -6646,6 +6652,13 @@ public static class PaymentMethodOptions {
@SerializedName("samsung_pay")
Object samsungPay;
+ /**
+ * If this is a {@code satispay} PaymentMethod, this sub-hash contains details about the
+ * Satispay payment method options.
+ */
+ @SerializedName("satispay")
+ Object satispay;
+
/**
* If this is a {@code sepa_debit} PaymentIntent, this sub-hash contains details about the SEPA
* Debit payment method options.
@@ -6738,6 +6751,7 @@ private PaymentMethodOptions(
Object promptpay,
Object revolutPay,
Object samsungPay,
+ Object satispay,
Object sepaDebit,
Object sofort,
Object swish,
@@ -6787,6 +6801,7 @@ private PaymentMethodOptions(
this.promptpay = promptpay;
this.revolutPay = revolutPay;
this.samsungPay = samsungPay;
+ this.satispay = satispay;
this.sepaDebit = sepaDebit;
this.sofort = sofort;
this.swish = swish;
@@ -6885,6 +6900,8 @@ public static class Builder {
private Object samsungPay;
+ private Object satispay;
+
private Object sepaDebit;
private Object sofort;
@@ -6944,6 +6961,7 @@ public PaymentIntentConfirmParams.PaymentMethodOptions build() {
this.promptpay,
this.revolutPay,
this.samsungPay,
+ this.satispay,
this.sepaDebit,
this.sofort,
this.swish,
@@ -7730,6 +7748,25 @@ public Builder setSamsungPay(EmptyParam samsungPay) {
return this;
}
+ /**
+ * If this is a {@code satispay} PaymentMethod, this sub-hash contains details about the
+ * Satispay payment method options.
+ */
+ public Builder setSatispay(
+ PaymentIntentConfirmParams.PaymentMethodOptions.Satispay satispay) {
+ this.satispay = satispay;
+ return this;
+ }
+
+ /**
+ * If this is a {@code satispay} PaymentMethod, this sub-hash contains details about the
+ * Satispay payment method options.
+ */
+ public Builder setSatispay(EmptyParam satispay) {
+ this.satispay = satispay;
+ return this;
+ }
+
/**
* If this is a {@code sepa_debit} PaymentIntent, this sub-hash contains details about the
* SEPA Debit payment method options.
@@ -17556,6 +17593,124 @@ public enum CaptureMethod implements ApiRequestParams.EnumParam {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Satispay {
+ /**
+ * Controls when the funds are captured from the customer's account.
+ *
+ * If provided, this parameter overrides the behavior of the top-level capture_method
+ * for this payment method type when finalizing the payment with this payment method type.
+ *
+ *
If {@code capture_method} is already set on the PaymentIntent, providing an empty value
+ * for this parameter unsets the stored value for this payment method type.
+ */
+ @SerializedName("capture_method")
+ ApiRequestParams.EnumParam captureMethod;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private Satispay(ApiRequestParams.EnumParam captureMethod, Map extraParams) {
+ this.captureMethod = captureMethod;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private ApiRequestParams.EnumParam captureMethod;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentIntentConfirmParams.PaymentMethodOptions.Satispay build() {
+ return new PaymentIntentConfirmParams.PaymentMethodOptions.Satispay(
+ this.captureMethod, this.extraParams);
+ }
+
+ /**
+ * Controls when the funds are captured from the customer's account.
+ *
+ * If provided, this parameter overrides the behavior of the top-level capture_method
+ * for this payment method type when finalizing the payment with this payment method type.
+ *
+ *
If {@code capture_method} is already set on the PaymentIntent, providing an empty
+ * value for this parameter unsets the stored value for this payment method type.
+ */
+ public Builder setCaptureMethod(
+ PaymentIntentConfirmParams.PaymentMethodOptions.Satispay.CaptureMethod captureMethod) {
+ this.captureMethod = captureMethod;
+ return this;
+ }
+
+ /**
+ * Controls when the funds are captured from the customer's account.
+ *
+ *
If provided, this parameter overrides the behavior of the top-level capture_method
+ * for this payment method type when finalizing the payment with this payment method type.
+ *
+ *
If {@code capture_method} is already set on the PaymentIntent, providing an empty
+ * value for this parameter unsets the stored value for this payment method type.
+ */
+ public Builder setCaptureMethod(EmptyParam captureMethod) {
+ this.captureMethod = captureMethod;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link PaymentIntentConfirmParams.PaymentMethodOptions.Satispay#extraParams} for
+ * the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link PaymentIntentConfirmParams.PaymentMethodOptions.Satispay#extraParams} for
+ * the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+
+ public enum CaptureMethod implements ApiRequestParams.EnumParam {
+ @SerializedName("manual")
+ MANUAL("manual");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ CaptureMethod(String value) {
+ this.value = value;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class SepaDebit {
diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
index 43ef3723583..a65e2217502 100644
--- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
@@ -179,7 +179,10 @@ public class PaymentIntentCreateParams extends ApiRequestParams {
* If you don't provide the {@code payment_method} parameter or the {@code source} parameter
* with {@code confirm=true}, {@code source} automatically populates with {@code
* customer.default_source} to improve migration for users of the Charges API. We recommend that
- * you explicitly provide the {@code payment_method} moving forward.
+ * you explicitly provide the {@code payment_method} moving forward. If the payment method is
+ * attached to a Customer, you must also provide the ID of that Customer as the customer parameter of
+ * this PaymentIntent. end
*/
@SerializedName("payment_method")
String paymentMethod;
@@ -766,7 +769,10 @@ public Builder setOnBehalfOf(String onBehalfOf) {
*
If you don't provide the {@code payment_method} parameter or the {@code source} parameter
* with {@code confirm=true}, {@code source} automatically populates with {@code
* customer.default_source} to improve migration for users of the Charges API. We recommend that
- * you explicitly provide the {@code payment_method} moving forward.
+ * you explicitly provide the {@code payment_method} moving forward. If the payment method is
+ * attached to a Customer, you must also provide the ID of that Customer as the customer parameter of
+ * this PaymentIntent. end
*/
public Builder setPaymentMethod(String paymentMethod) {
this.paymentMethod = paymentMethod;
@@ -7160,6 +7166,13 @@ public static class PaymentMethodOptions {
@SerializedName("samsung_pay")
Object samsungPay;
+ /**
+ * If this is a {@code satispay} PaymentMethod, this sub-hash contains details about the
+ * Satispay payment method options.
+ */
+ @SerializedName("satispay")
+ Object satispay;
+
/**
* If this is a {@code sepa_debit} PaymentIntent, this sub-hash contains details about the SEPA
* Debit payment method options.
@@ -7252,6 +7265,7 @@ private PaymentMethodOptions(
Object promptpay,
Object revolutPay,
Object samsungPay,
+ Object satispay,
Object sepaDebit,
Object sofort,
Object swish,
@@ -7301,6 +7315,7 @@ private PaymentMethodOptions(
this.promptpay = promptpay;
this.revolutPay = revolutPay;
this.samsungPay = samsungPay;
+ this.satispay = satispay;
this.sepaDebit = sepaDebit;
this.sofort = sofort;
this.swish = swish;
@@ -7399,6 +7414,8 @@ public static class Builder {
private Object samsungPay;
+ private Object satispay;
+
private Object sepaDebit;
private Object sofort;
@@ -7458,6 +7475,7 @@ public PaymentIntentCreateParams.PaymentMethodOptions build() {
this.promptpay,
this.revolutPay,
this.samsungPay,
+ this.satispay,
this.sepaDebit,
this.sofort,
this.swish,
@@ -8242,6 +8260,24 @@ public Builder setSamsungPay(EmptyParam samsungPay) {
return this;
}
+ /**
+ * If this is a {@code satispay} PaymentMethod, this sub-hash contains details about the
+ * Satispay payment method options.
+ */
+ public Builder setSatispay(PaymentIntentCreateParams.PaymentMethodOptions.Satispay satispay) {
+ this.satispay = satispay;
+ return this;
+ }
+
+ /**
+ * If this is a {@code satispay} PaymentMethod, this sub-hash contains details about the
+ * Satispay payment method options.
+ */
+ public Builder setSatispay(EmptyParam satispay) {
+ this.satispay = satispay;
+ return this;
+ }
+
/**
* If this is a {@code sepa_debit} PaymentIntent, this sub-hash contains details about the
* SEPA Debit payment method options.
@@ -18056,6 +18092,124 @@ public enum CaptureMethod implements ApiRequestParams.EnumParam {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Satispay {
+ /**
+ * Controls when the funds are captured from the customer's account.
+ *
+ *
If provided, this parameter overrides the behavior of the top-level capture_method
+ * for this payment method type when finalizing the payment with this payment method type.
+ *
+ *
If {@code capture_method} is already set on the PaymentIntent, providing an empty value
+ * for this parameter unsets the stored value for this payment method type.
+ */
+ @SerializedName("capture_method")
+ ApiRequestParams.EnumParam captureMethod;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private Satispay(ApiRequestParams.EnumParam captureMethod, Map extraParams) {
+ this.captureMethod = captureMethod;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private ApiRequestParams.EnumParam captureMethod;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentIntentCreateParams.PaymentMethodOptions.Satispay build() {
+ return new PaymentIntentCreateParams.PaymentMethodOptions.Satispay(
+ this.captureMethod, this.extraParams);
+ }
+
+ /**
+ * Controls when the funds are captured from the customer's account.
+ *
+ * If provided, this parameter overrides the behavior of the top-level capture_method
+ * for this payment method type when finalizing the payment with this payment method type.
+ *
+ *
If {@code capture_method} is already set on the PaymentIntent, providing an empty
+ * value for this parameter unsets the stored value for this payment method type.
+ */
+ public Builder setCaptureMethod(
+ PaymentIntentCreateParams.PaymentMethodOptions.Satispay.CaptureMethod captureMethod) {
+ this.captureMethod = captureMethod;
+ return this;
+ }
+
+ /**
+ * Controls when the funds are captured from the customer's account.
+ *
+ *
If provided, this parameter overrides the behavior of the top-level capture_method
+ * for this payment method type when finalizing the payment with this payment method type.
+ *
+ *
If {@code capture_method} is already set on the PaymentIntent, providing an empty
+ * value for this parameter unsets the stored value for this payment method type.
+ */
+ public Builder setCaptureMethod(EmptyParam captureMethod) {
+ this.captureMethod = captureMethod;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link PaymentIntentCreateParams.PaymentMethodOptions.Satispay#extraParams} for
+ * the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link PaymentIntentCreateParams.PaymentMethodOptions.Satispay#extraParams} for
+ * the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+
+ public enum CaptureMethod implements ApiRequestParams.EnumParam {
+ @SerializedName("manual")
+ MANUAL("manual");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ CaptureMethod(String value) {
+ this.value = value;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class SepaDebit {
diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
index fba7729a9b8..90f73413b52 100644
--- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
@@ -6677,6 +6677,13 @@ public static class PaymentMethodOptions {
@SerializedName("samsung_pay")
Object samsungPay;
+ /**
+ * If this is a {@code satispay} PaymentMethod, this sub-hash contains details about the
+ * Satispay payment method options.
+ */
+ @SerializedName("satispay")
+ Object satispay;
+
/**
* If this is a {@code sepa_debit} PaymentIntent, this sub-hash contains details about the SEPA
* Debit payment method options.
@@ -6769,6 +6776,7 @@ private PaymentMethodOptions(
Object promptpay,
Object revolutPay,
Object samsungPay,
+ Object satispay,
Object sepaDebit,
Object sofort,
Object swish,
@@ -6818,6 +6826,7 @@ private PaymentMethodOptions(
this.promptpay = promptpay;
this.revolutPay = revolutPay;
this.samsungPay = samsungPay;
+ this.satispay = satispay;
this.sepaDebit = sepaDebit;
this.sofort = sofort;
this.swish = swish;
@@ -6916,6 +6925,8 @@ public static class Builder {
private Object samsungPay;
+ private Object satispay;
+
private Object sepaDebit;
private Object sofort;
@@ -6975,6 +6986,7 @@ public PaymentIntentUpdateParams.PaymentMethodOptions build() {
this.promptpay,
this.revolutPay,
this.samsungPay,
+ this.satispay,
this.sepaDebit,
this.sofort,
this.swish,
@@ -7759,6 +7771,24 @@ public Builder setSamsungPay(EmptyParam samsungPay) {
return this;
}
+ /**
+ * If this is a {@code satispay} PaymentMethod, this sub-hash contains details about the
+ * Satispay payment method options.
+ */
+ public Builder setSatispay(PaymentIntentUpdateParams.PaymentMethodOptions.Satispay satispay) {
+ this.satispay = satispay;
+ return this;
+ }
+
+ /**
+ * If this is a {@code satispay} PaymentMethod, this sub-hash contains details about the
+ * Satispay payment method options.
+ */
+ public Builder setSatispay(EmptyParam satispay) {
+ this.satispay = satispay;
+ return this;
+ }
+
/**
* If this is a {@code sepa_debit} PaymentIntent, this sub-hash contains details about the
* SEPA Debit payment method options.
@@ -17748,6 +17778,124 @@ public enum CaptureMethod implements ApiRequestParams.EnumParam {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Satispay {
+ /**
+ * Controls when the funds are captured from the customer's account.
+ *
+ * If provided, this parameter overrides the behavior of the top-level capture_method
+ * for this payment method type when finalizing the payment with this payment method type.
+ *
+ *
If {@code capture_method} is already set on the PaymentIntent, providing an empty value
+ * for this parameter unsets the stored value for this payment method type.
+ */
+ @SerializedName("capture_method")
+ ApiRequestParams.EnumParam captureMethod;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private Satispay(ApiRequestParams.EnumParam captureMethod, Map extraParams) {
+ this.captureMethod = captureMethod;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private ApiRequestParams.EnumParam captureMethod;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentIntentUpdateParams.PaymentMethodOptions.Satispay build() {
+ return new PaymentIntentUpdateParams.PaymentMethodOptions.Satispay(
+ this.captureMethod, this.extraParams);
+ }
+
+ /**
+ * Controls when the funds are captured from the customer's account.
+ *
+ * If provided, this parameter overrides the behavior of the top-level capture_method
+ * for this payment method type when finalizing the payment with this payment method type.
+ *
+ *
If {@code capture_method} is already set on the PaymentIntent, providing an empty
+ * value for this parameter unsets the stored value for this payment method type.
+ */
+ public Builder setCaptureMethod(
+ PaymentIntentUpdateParams.PaymentMethodOptions.Satispay.CaptureMethod captureMethod) {
+ this.captureMethod = captureMethod;
+ return this;
+ }
+
+ /**
+ * Controls when the funds are captured from the customer's account.
+ *
+ *
If provided, this parameter overrides the behavior of the top-level capture_method
+ * for this payment method type when finalizing the payment with this payment method type.
+ *
+ *
If {@code capture_method} is already set on the PaymentIntent, providing an empty
+ * value for this parameter unsets the stored value for this payment method type.
+ */
+ public Builder setCaptureMethod(EmptyParam captureMethod) {
+ this.captureMethod = captureMethod;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link PaymentIntentUpdateParams.PaymentMethodOptions.Satispay#extraParams} for
+ * the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link PaymentIntentUpdateParams.PaymentMethodOptions.Satispay#extraParams} for
+ * the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+
+ public enum CaptureMethod implements ApiRequestParams.EnumParam {
+ @SerializedName("manual")
+ MANUAL("manual");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ CaptureMethod(String value) {
+ this.value = value;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class SepaDebit {
diff --git a/src/main/java/com/stripe/param/PaymentMethodConfigurationCreateParams.java b/src/main/java/com/stripe/param/PaymentMethodConfigurationCreateParams.java
index 843996a4326..9e1bbde5a7f 100644
--- a/src/main/java/com/stripe/param/PaymentMethodConfigurationCreateParams.java
+++ b/src/main/java/com/stripe/param/PaymentMethodConfigurationCreateParams.java
@@ -251,6 +251,10 @@ public class PaymentMethodConfigurationCreateParams extends ApiRequestParams {
@SerializedName("jcb")
Jcb jcb;
+ /** Kakao Pay is a popular local wallet available in South Korea. */
+ @SerializedName("kakao_pay")
+ KakaoPay kakaoPay;
+
/**
* Klarna gives customers a range of payment options during
@@ -270,6 +274,10 @@ public class PaymentMethodConfigurationCreateParams extends ApiRequestParams {
@SerializedName("konbini")
Konbini konbini;
+ /** Korean cards let users pay using locally issued cards from South Korea. */
+ @SerializedName("kr_card")
+ KrCard krCard;
+
/**
* Link is a payment method network. With
* Link, users save their payment details once, then reuse that information to pay with one click
@@ -300,6 +308,10 @@ public class PaymentMethodConfigurationCreateParams extends ApiRequestParams {
@SerializedName("name")
String name;
+ /** Naver Pay is a popular local wallet available in South Korea. */
+ @SerializedName("naver_pay")
+ NaverPay naverPay;
+
/**
* Stripe users in New Zealand can accept Bulk Electronic Clearing System (BECS) direct debit
* payments from customers with a New Zeland bank account. Check this single-use
* payment method where customers are required to payment options during
@@ -1076,6 +1133,12 @@ public Builder setKonbini(PaymentMethodConfigurationCreateParams.Konbini konbini
return this;
}
+ /** Korean cards let users pay using locally issued cards from South Korea. */
+ public Builder setKrCard(PaymentMethodConfigurationCreateParams.KrCard krCard) {
+ this.krCard = krCard;
+ return this;
+ }
+
/**
* Link is a payment method network. With
* Link, users save their payment details once, then reuse that information to pay with one
@@ -1115,6 +1178,12 @@ public Builder setName(String name) {
return this;
}
+ /** Naver Pay is a popular local wallet available in South Korea. */
+ public Builder setNaverPay(PaymentMethodConfigurationCreateParams.NaverPay naverPay) {
+ this.naverPay = naverPay;
+ return this;
+ }
+
/**
* Stripe users in New Zealand can accept Bulk Electronic Clearing System (BECS) direct debit
* payments from customers with a New Zeland bank account. Check this single-use
* payment method where customers are required to extraParams;
- private Klarna(DisplayPreference displayPreference, Map extraParams) {
+ private KakaoPay(DisplayPreference displayPreference, Map extraParams) {
this.displayPreference = displayPreference;
this.extraParams = extraParams;
}
@@ -5484,14 +5571,14 @@ public static class Builder {
private Map extraParams;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationCreateParams.Klarna build() {
- return new PaymentMethodConfigurationCreateParams.Klarna(
+ public PaymentMethodConfigurationCreateParams.KakaoPay build() {
+ return new PaymentMethodConfigurationCreateParams.KakaoPay(
this.displayPreference, this.extraParams);
}
/** Whether or not the payment method should be displayed. */
public Builder setDisplayPreference(
- PaymentMethodConfigurationCreateParams.Klarna.DisplayPreference displayPreference) {
+ PaymentMethodConfigurationCreateParams.KakaoPay.DisplayPreference displayPreference) {
this.displayPreference = displayPreference;
return this;
}
@@ -5499,7 +5586,7 @@ public Builder setDisplayPreference(
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
* call, and subsequent calls add additional key/value pairs to the original map. See {@link
- * PaymentMethodConfigurationCreateParams.Klarna#extraParams} for the field documentation.
+ * PaymentMethodConfigurationCreateParams.KakaoPay#extraParams} for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -5512,7 +5599,7 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
- * See {@link PaymentMethodConfigurationCreateParams.Klarna#extraParams} for the field
+ * See {@link PaymentMethodConfigurationCreateParams.KakaoPay#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -5555,8 +5642,8 @@ public static class Builder {
private Preference preference;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationCreateParams.Klarna.DisplayPreference build() {
- return new PaymentMethodConfigurationCreateParams.Klarna.DisplayPreference(
+ public PaymentMethodConfigurationCreateParams.KakaoPay.DisplayPreference build() {
+ return new PaymentMethodConfigurationCreateParams.KakaoPay.DisplayPreference(
this.extraParams, this.preference);
}
@@ -5564,7 +5651,7 @@ public PaymentMethodConfigurationCreateParams.Klarna.DisplayPreference build() {
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * PaymentMethodConfigurationCreateParams.Klarna.DisplayPreference#extraParams} for the
+ * PaymentMethodConfigurationCreateParams.KakaoPay.DisplayPreference#extraParams} for the
* field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -5579,7 +5666,7 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * PaymentMethodConfigurationCreateParams.Klarna.DisplayPreference#extraParams} for the
+ * PaymentMethodConfigurationCreateParams.KakaoPay.DisplayPreference#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -5592,7 +5679,8 @@ public Builder putAllExtraParam(Map map) {
/** The account's preference for whether or not to display this payment method. */
public Builder setPreference(
- PaymentMethodConfigurationCreateParams.Klarna.DisplayPreference.Preference preference) {
+ PaymentMethodConfigurationCreateParams.KakaoPay.DisplayPreference.Preference
+ preference) {
this.preference = preference;
return this;
}
@@ -5620,7 +5708,7 @@ public enum Preference implements ApiRequestParams.EnumParam {
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Konbini {
+ public static class Klarna {
/** Whether or not the payment method should be displayed. */
@SerializedName("display_preference")
DisplayPreference displayPreference;
@@ -5634,7 +5722,7 @@ public static class Konbini {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private Konbini(DisplayPreference displayPreference, Map extraParams) {
+ private Klarna(DisplayPreference displayPreference, Map extraParams) {
this.displayPreference = displayPreference;
this.extraParams = extraParams;
}
@@ -5649,14 +5737,14 @@ public static class Builder {
private Map extraParams;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationCreateParams.Konbini build() {
- return new PaymentMethodConfigurationCreateParams.Konbini(
+ public PaymentMethodConfigurationCreateParams.Klarna build() {
+ return new PaymentMethodConfigurationCreateParams.Klarna(
this.displayPreference, this.extraParams);
}
/** Whether or not the payment method should be displayed. */
public Builder setDisplayPreference(
- PaymentMethodConfigurationCreateParams.Konbini.DisplayPreference displayPreference) {
+ PaymentMethodConfigurationCreateParams.Klarna.DisplayPreference displayPreference) {
this.displayPreference = displayPreference;
return this;
}
@@ -5664,7 +5752,7 @@ public Builder setDisplayPreference(
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
* call, and subsequent calls add additional key/value pairs to the original map. See {@link
- * PaymentMethodConfigurationCreateParams.Konbini#extraParams} for the field documentation.
+ * PaymentMethodConfigurationCreateParams.Klarna#extraParams} for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -5677,7 +5765,7 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
- * See {@link PaymentMethodConfigurationCreateParams.Konbini#extraParams} for the field
+ * See {@link PaymentMethodConfigurationCreateParams.Klarna#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -5720,8 +5808,8 @@ public static class Builder {
private Preference preference;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationCreateParams.Konbini.DisplayPreference build() {
- return new PaymentMethodConfigurationCreateParams.Konbini.DisplayPreference(
+ public PaymentMethodConfigurationCreateParams.Klarna.DisplayPreference build() {
+ return new PaymentMethodConfigurationCreateParams.Klarna.DisplayPreference(
this.extraParams, this.preference);
}
@@ -5729,7 +5817,7 @@ public PaymentMethodConfigurationCreateParams.Konbini.DisplayPreference build()
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * PaymentMethodConfigurationCreateParams.Konbini.DisplayPreference#extraParams} for the
+ * PaymentMethodConfigurationCreateParams.Klarna.DisplayPreference#extraParams} for the
* field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -5744,7 +5832,7 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * PaymentMethodConfigurationCreateParams.Konbini.DisplayPreference#extraParams} for the
+ * PaymentMethodConfigurationCreateParams.Klarna.DisplayPreference#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -5757,8 +5845,7 @@ public Builder putAllExtraParam(Map map) {
/** The account's preference for whether or not to display this payment method. */
public Builder setPreference(
- PaymentMethodConfigurationCreateParams.Konbini.DisplayPreference.Preference
- preference) {
+ PaymentMethodConfigurationCreateParams.Klarna.DisplayPreference.Preference preference) {
this.preference = preference;
return this;
}
@@ -5786,7 +5873,7 @@ public enum Preference implements ApiRequestParams.EnumParam {
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Link {
+ public static class Konbini {
/** Whether or not the payment method should be displayed. */
@SerializedName("display_preference")
DisplayPreference displayPreference;
@@ -5800,7 +5887,7 @@ public static class Link {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private Link(DisplayPreference displayPreference, Map extraParams) {
+ private Konbini(DisplayPreference displayPreference, Map extraParams) {
this.displayPreference = displayPreference;
this.extraParams = extraParams;
}
@@ -5815,14 +5902,14 @@ public static class Builder {
private Map extraParams;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationCreateParams.Link build() {
- return new PaymentMethodConfigurationCreateParams.Link(
+ public PaymentMethodConfigurationCreateParams.Konbini build() {
+ return new PaymentMethodConfigurationCreateParams.Konbini(
this.displayPreference, this.extraParams);
}
/** Whether or not the payment method should be displayed. */
public Builder setDisplayPreference(
- PaymentMethodConfigurationCreateParams.Link.DisplayPreference displayPreference) {
+ PaymentMethodConfigurationCreateParams.Konbini.DisplayPreference displayPreference) {
this.displayPreference = displayPreference;
return this;
}
@@ -5830,7 +5917,7 @@ public Builder setDisplayPreference(
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
* call, and subsequent calls add additional key/value pairs to the original map. See {@link
- * PaymentMethodConfigurationCreateParams.Link#extraParams} for the field documentation.
+ * PaymentMethodConfigurationCreateParams.Konbini#extraParams} for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -5843,7 +5930,7 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
- * See {@link PaymentMethodConfigurationCreateParams.Link#extraParams} for the field
+ * See {@link PaymentMethodConfigurationCreateParams.Konbini#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -5886,8 +5973,8 @@ public static class Builder {
private Preference preference;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationCreateParams.Link.DisplayPreference build() {
- return new PaymentMethodConfigurationCreateParams.Link.DisplayPreference(
+ public PaymentMethodConfigurationCreateParams.Konbini.DisplayPreference build() {
+ return new PaymentMethodConfigurationCreateParams.Konbini.DisplayPreference(
this.extraParams, this.preference);
}
@@ -5895,8 +5982,8 @@ public PaymentMethodConfigurationCreateParams.Link.DisplayPreference build() {
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * PaymentMethodConfigurationCreateParams.Link.DisplayPreference#extraParams} for the field
- * documentation.
+ * PaymentMethodConfigurationCreateParams.Konbini.DisplayPreference#extraParams} for the
+ * field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -5910,8 +5997,8 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * PaymentMethodConfigurationCreateParams.Link.DisplayPreference#extraParams} for the field
- * documentation.
+ * PaymentMethodConfigurationCreateParams.Konbini.DisplayPreference#extraParams} for the
+ * field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -5923,7 +6010,8 @@ public Builder putAllExtraParam(Map map) {
/** The account's preference for whether or not to display this payment method. */
public Builder setPreference(
- PaymentMethodConfigurationCreateParams.Link.DisplayPreference.Preference preference) {
+ PaymentMethodConfigurationCreateParams.Konbini.DisplayPreference.Preference
+ preference) {
this.preference = preference;
return this;
}
@@ -5951,7 +6039,7 @@ public enum Preference implements ApiRequestParams.EnumParam {
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Mobilepay {
+ public static class KrCard {
/** Whether or not the payment method should be displayed. */
@SerializedName("display_preference")
DisplayPreference displayPreference;
@@ -5965,7 +6053,7 @@ public static class Mobilepay {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private Mobilepay(DisplayPreference displayPreference, Map extraParams) {
+ private KrCard(DisplayPreference displayPreference, Map extraParams) {
this.displayPreference = displayPreference;
this.extraParams = extraParams;
}
@@ -5980,14 +6068,14 @@ public static class Builder {
private Map extraParams;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationCreateParams.Mobilepay build() {
- return new PaymentMethodConfigurationCreateParams.Mobilepay(
+ public PaymentMethodConfigurationCreateParams.KrCard build() {
+ return new PaymentMethodConfigurationCreateParams.KrCard(
this.displayPreference, this.extraParams);
}
/** Whether or not the payment method should be displayed. */
public Builder setDisplayPreference(
- PaymentMethodConfigurationCreateParams.Mobilepay.DisplayPreference displayPreference) {
+ PaymentMethodConfigurationCreateParams.KrCard.DisplayPreference displayPreference) {
this.displayPreference = displayPreference;
return this;
}
@@ -5995,7 +6083,7 @@ public Builder setDisplayPreference(
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
* call, and subsequent calls add additional key/value pairs to the original map. See {@link
- * PaymentMethodConfigurationCreateParams.Mobilepay#extraParams} for the field documentation.
+ * PaymentMethodConfigurationCreateParams.KrCard#extraParams} for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -6008,7 +6096,7 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
- * See {@link PaymentMethodConfigurationCreateParams.Mobilepay#extraParams} for the field
+ * See {@link PaymentMethodConfigurationCreateParams.KrCard#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -6051,8 +6139,8 @@ public static class Builder {
private Preference preference;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationCreateParams.Mobilepay.DisplayPreference build() {
- return new PaymentMethodConfigurationCreateParams.Mobilepay.DisplayPreference(
+ public PaymentMethodConfigurationCreateParams.KrCard.DisplayPreference build() {
+ return new PaymentMethodConfigurationCreateParams.KrCard.DisplayPreference(
this.extraParams, this.preference);
}
@@ -6060,7 +6148,7 @@ public PaymentMethodConfigurationCreateParams.Mobilepay.DisplayPreference build(
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * PaymentMethodConfigurationCreateParams.Mobilepay.DisplayPreference#extraParams} for the
+ * PaymentMethodConfigurationCreateParams.KrCard.DisplayPreference#extraParams} for the
* field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -6075,7 +6163,7 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * PaymentMethodConfigurationCreateParams.Mobilepay.DisplayPreference#extraParams} for the
+ * PaymentMethodConfigurationCreateParams.KrCard.DisplayPreference#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -6088,8 +6176,7 @@ public Builder putAllExtraParam(Map map) {
/** The account's preference for whether or not to display this payment method. */
public Builder setPreference(
- PaymentMethodConfigurationCreateParams.Mobilepay.DisplayPreference.Preference
- preference) {
+ PaymentMethodConfigurationCreateParams.KrCard.DisplayPreference.Preference preference) {
this.preference = preference;
return this;
}
@@ -6117,7 +6204,7 @@ public enum Preference implements ApiRequestParams.EnumParam {
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Multibanco {
+ public static class Link {
/** Whether or not the payment method should be displayed. */
@SerializedName("display_preference")
DisplayPreference displayPreference;
@@ -6131,7 +6218,7 @@ public static class Multibanco {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private Multibanco(DisplayPreference displayPreference, Map extraParams) {
+ private Link(DisplayPreference displayPreference, Map extraParams) {
this.displayPreference = displayPreference;
this.extraParams = extraParams;
}
@@ -6146,14 +6233,14 @@ public static class Builder {
private Map extraParams;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationCreateParams.Multibanco build() {
- return new PaymentMethodConfigurationCreateParams.Multibanco(
+ public PaymentMethodConfigurationCreateParams.Link build() {
+ return new PaymentMethodConfigurationCreateParams.Link(
this.displayPreference, this.extraParams);
}
/** Whether or not the payment method should be displayed. */
public Builder setDisplayPreference(
- PaymentMethodConfigurationCreateParams.Multibanco.DisplayPreference displayPreference) {
+ PaymentMethodConfigurationCreateParams.Link.DisplayPreference displayPreference) {
this.displayPreference = displayPreference;
return this;
}
@@ -6161,7 +6248,7 @@ public Builder setDisplayPreference(
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
* call, and subsequent calls add additional key/value pairs to the original map. See {@link
- * PaymentMethodConfigurationCreateParams.Multibanco#extraParams} for the field documentation.
+ * PaymentMethodConfigurationCreateParams.Link#extraParams} for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -6174,7 +6261,7 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
- * See {@link PaymentMethodConfigurationCreateParams.Multibanco#extraParams} for the field
+ * See {@link PaymentMethodConfigurationCreateParams.Link#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -6217,8 +6304,8 @@ public static class Builder {
private Preference preference;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationCreateParams.Multibanco.DisplayPreference build() {
- return new PaymentMethodConfigurationCreateParams.Multibanco.DisplayPreference(
+ public PaymentMethodConfigurationCreateParams.Link.DisplayPreference build() {
+ return new PaymentMethodConfigurationCreateParams.Link.DisplayPreference(
this.extraParams, this.preference);
}
@@ -6226,8 +6313,8 @@ public PaymentMethodConfigurationCreateParams.Multibanco.DisplayPreference build
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * PaymentMethodConfigurationCreateParams.Multibanco.DisplayPreference#extraParams} for the
- * field documentation.
+ * PaymentMethodConfigurationCreateParams.Link.DisplayPreference#extraParams} for the field
+ * documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -6241,8 +6328,8 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * PaymentMethodConfigurationCreateParams.Multibanco.DisplayPreference#extraParams} for the
- * field documentation.
+ * PaymentMethodConfigurationCreateParams.Link.DisplayPreference#extraParams} for the field
+ * documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -6254,8 +6341,7 @@ public Builder putAllExtraParam(Map map) {
/** The account's preference for whether or not to display this payment method. */
public Builder setPreference(
- PaymentMethodConfigurationCreateParams.Multibanco.DisplayPreference.Preference
- preference) {
+ PaymentMethodConfigurationCreateParams.Link.DisplayPreference.Preference preference) {
this.preference = preference;
return this;
}
@@ -6283,7 +6369,7 @@ public enum Preference implements ApiRequestParams.EnumParam {
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class NzBankAccount {
+ public static class Mobilepay {
/** Whether or not the payment method should be displayed. */
@SerializedName("display_preference")
DisplayPreference displayPreference;
@@ -6297,7 +6383,7 @@ public static class NzBankAccount {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private NzBankAccount(DisplayPreference displayPreference, Map extraParams) {
+ private Mobilepay(DisplayPreference displayPreference, Map extraParams) {
this.displayPreference = displayPreference;
this.extraParams = extraParams;
}
@@ -6312,15 +6398,14 @@ public static class Builder {
private Map extraParams;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationCreateParams.NzBankAccount build() {
- return new PaymentMethodConfigurationCreateParams.NzBankAccount(
+ public PaymentMethodConfigurationCreateParams.Mobilepay build() {
+ return new PaymentMethodConfigurationCreateParams.Mobilepay(
this.displayPreference, this.extraParams);
}
/** Whether or not the payment method should be displayed. */
public Builder setDisplayPreference(
- PaymentMethodConfigurationCreateParams.NzBankAccount.DisplayPreference
- displayPreference) {
+ PaymentMethodConfigurationCreateParams.Mobilepay.DisplayPreference displayPreference) {
this.displayPreference = displayPreference;
return this;
}
@@ -6328,8 +6413,7 @@ public Builder setDisplayPreference(
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
* call, and subsequent calls add additional key/value pairs to the original map. See {@link
- * PaymentMethodConfigurationCreateParams.NzBankAccount#extraParams} for the field
- * documentation.
+ * PaymentMethodConfigurationCreateParams.Mobilepay#extraParams} for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -6342,7 +6426,7 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
- * See {@link PaymentMethodConfigurationCreateParams.NzBankAccount#extraParams} for the field
+ * See {@link PaymentMethodConfigurationCreateParams.Mobilepay#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -6385,8 +6469,8 @@ public static class Builder {
private Preference preference;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationCreateParams.NzBankAccount.DisplayPreference build() {
- return new PaymentMethodConfigurationCreateParams.NzBankAccount.DisplayPreference(
+ public PaymentMethodConfigurationCreateParams.Mobilepay.DisplayPreference build() {
+ return new PaymentMethodConfigurationCreateParams.Mobilepay.DisplayPreference(
this.extraParams, this.preference);
}
@@ -6394,8 +6478,8 @@ public PaymentMethodConfigurationCreateParams.NzBankAccount.DisplayPreference bu
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * PaymentMethodConfigurationCreateParams.NzBankAccount.DisplayPreference#extraParams} for
- * the field documentation.
+ * PaymentMethodConfigurationCreateParams.Mobilepay.DisplayPreference#extraParams} for the
+ * field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -6409,8 +6493,8 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * PaymentMethodConfigurationCreateParams.NzBankAccount.DisplayPreference#extraParams} for
- * the field documentation.
+ * PaymentMethodConfigurationCreateParams.Mobilepay.DisplayPreference#extraParams} for the
+ * field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -6422,7 +6506,7 @@ public Builder putAllExtraParam(Map map) {
/** The account's preference for whether or not to display this payment method. */
public Builder setPreference(
- PaymentMethodConfigurationCreateParams.NzBankAccount.DisplayPreference.Preference
+ PaymentMethodConfigurationCreateParams.Mobilepay.DisplayPreference.Preference
preference) {
this.preference = preference;
return this;
@@ -6451,7 +6535,7 @@ public enum Preference implements ApiRequestParams.EnumParam {
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Oxxo {
+ public static class Multibanco {
/** Whether or not the payment method should be displayed. */
@SerializedName("display_preference")
DisplayPreference displayPreference;
@@ -6465,7 +6549,7 @@ public static class Oxxo {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private Oxxo(DisplayPreference displayPreference, Map extraParams) {
+ private Multibanco(DisplayPreference displayPreference, Map extraParams) {
this.displayPreference = displayPreference;
this.extraParams = extraParams;
}
@@ -6480,14 +6564,14 @@ public static class Builder {
private Map extraParams;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationCreateParams.Oxxo build() {
- return new PaymentMethodConfigurationCreateParams.Oxxo(
+ public PaymentMethodConfigurationCreateParams.Multibanco build() {
+ return new PaymentMethodConfigurationCreateParams.Multibanco(
this.displayPreference, this.extraParams);
}
/** Whether or not the payment method should be displayed. */
public Builder setDisplayPreference(
- PaymentMethodConfigurationCreateParams.Oxxo.DisplayPreference displayPreference) {
+ PaymentMethodConfigurationCreateParams.Multibanco.DisplayPreference displayPreference) {
this.displayPreference = displayPreference;
return this;
}
@@ -6495,7 +6579,7 @@ public Builder setDisplayPreference(
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
* call, and subsequent calls add additional key/value pairs to the original map. See {@link
- * PaymentMethodConfigurationCreateParams.Oxxo#extraParams} for the field documentation.
+ * PaymentMethodConfigurationCreateParams.Multibanco#extraParams} for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -6508,7 +6592,7 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
- * See {@link PaymentMethodConfigurationCreateParams.Oxxo#extraParams} for the field
+ * See {@link PaymentMethodConfigurationCreateParams.Multibanco#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -6551,8 +6635,8 @@ public static class Builder {
private Preference preference;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationCreateParams.Oxxo.DisplayPreference build() {
- return new PaymentMethodConfigurationCreateParams.Oxxo.DisplayPreference(
+ public PaymentMethodConfigurationCreateParams.Multibanco.DisplayPreference build() {
+ return new PaymentMethodConfigurationCreateParams.Multibanco.DisplayPreference(
this.extraParams, this.preference);
}
@@ -6560,8 +6644,8 @@ public PaymentMethodConfigurationCreateParams.Oxxo.DisplayPreference build() {
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * PaymentMethodConfigurationCreateParams.Oxxo.DisplayPreference#extraParams} for the field
- * documentation.
+ * PaymentMethodConfigurationCreateParams.Multibanco.DisplayPreference#extraParams} for the
+ * field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -6575,8 +6659,8 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * PaymentMethodConfigurationCreateParams.Oxxo.DisplayPreference#extraParams} for the field
- * documentation.
+ * PaymentMethodConfigurationCreateParams.Multibanco.DisplayPreference#extraParams} for the
+ * field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -6588,7 +6672,8 @@ public Builder putAllExtraParam(Map map) {
/** The account's preference for whether or not to display this payment method. */
public Builder setPreference(
- PaymentMethodConfigurationCreateParams.Oxxo.DisplayPreference.Preference preference) {
+ PaymentMethodConfigurationCreateParams.Multibanco.DisplayPreference.Preference
+ preference) {
this.preference = preference;
return this;
}
@@ -6616,7 +6701,7 @@ public enum Preference implements ApiRequestParams.EnumParam {
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class P24 {
+ public static class NaverPay {
/** Whether or not the payment method should be displayed. */
@SerializedName("display_preference")
DisplayPreference displayPreference;
@@ -6630,7 +6715,7 @@ public static class P24 {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private P24(DisplayPreference displayPreference, Map extraParams) {
+ private NaverPay(DisplayPreference displayPreference, Map extraParams) {
this.displayPreference = displayPreference;
this.extraParams = extraParams;
}
@@ -6645,14 +6730,14 @@ public static class Builder {
private Map extraParams;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationCreateParams.P24 build() {
- return new PaymentMethodConfigurationCreateParams.P24(
+ public PaymentMethodConfigurationCreateParams.NaverPay build() {
+ return new PaymentMethodConfigurationCreateParams.NaverPay(
this.displayPreference, this.extraParams);
}
/** Whether or not the payment method should be displayed. */
public Builder setDisplayPreference(
- PaymentMethodConfigurationCreateParams.P24.DisplayPreference displayPreference) {
+ PaymentMethodConfigurationCreateParams.NaverPay.DisplayPreference displayPreference) {
this.displayPreference = displayPreference;
return this;
}
@@ -6660,7 +6745,7 @@ public Builder setDisplayPreference(
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
* call, and subsequent calls add additional key/value pairs to the original map. See {@link
- * PaymentMethodConfigurationCreateParams.P24#extraParams} for the field documentation.
+ * PaymentMethodConfigurationCreateParams.NaverPay#extraParams} for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -6673,7 +6758,7 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
- * See {@link PaymentMethodConfigurationCreateParams.P24#extraParams} for the field
+ * See {@link PaymentMethodConfigurationCreateParams.NaverPay#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -6716,16 +6801,17 @@ public static class Builder {
private Preference preference;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationCreateParams.P24.DisplayPreference build() {
- return new PaymentMethodConfigurationCreateParams.P24.DisplayPreference(
+ public PaymentMethodConfigurationCreateParams.NaverPay.DisplayPreference build() {
+ return new PaymentMethodConfigurationCreateParams.NaverPay.DisplayPreference(
this.extraParams, this.preference);
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link PaymentMethodConfigurationCreateParams.P24.DisplayPreference#extraParams}
- * for the field documentation.
+ * map. See {@link
+ * PaymentMethodConfigurationCreateParams.NaverPay.DisplayPreference#extraParams} for the
+ * field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -6738,8 +6824,9 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link PaymentMethodConfigurationCreateParams.P24.DisplayPreference#extraParams}
- * for the field documentation.
+ * map. See {@link
+ * PaymentMethodConfigurationCreateParams.NaverPay.DisplayPreference#extraParams} for the
+ * field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -6751,7 +6838,8 @@ public Builder putAllExtraParam(Map map) {
/** The account's preference for whether or not to display this payment method. */
public Builder setPreference(
- PaymentMethodConfigurationCreateParams.P24.DisplayPreference.Preference preference) {
+ PaymentMethodConfigurationCreateParams.NaverPay.DisplayPreference.Preference
+ preference) {
this.preference = preference;
return this;
}
@@ -6779,7 +6867,7 @@ public enum Preference implements ApiRequestParams.EnumParam {
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class PayByBank {
+ public static class NzBankAccount {
/** Whether or not the payment method should be displayed. */
@SerializedName("display_preference")
DisplayPreference displayPreference;
@@ -6793,7 +6881,7 @@ public static class PayByBank {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private PayByBank(DisplayPreference displayPreference, Map extraParams) {
+ private NzBankAccount(DisplayPreference displayPreference, Map extraParams) {
this.displayPreference = displayPreference;
this.extraParams = extraParams;
}
@@ -6808,14 +6896,15 @@ public static class Builder {
private Map extraParams;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationCreateParams.PayByBank build() {
- return new PaymentMethodConfigurationCreateParams.PayByBank(
+ public PaymentMethodConfigurationCreateParams.NzBankAccount build() {
+ return new PaymentMethodConfigurationCreateParams.NzBankAccount(
this.displayPreference, this.extraParams);
}
/** Whether or not the payment method should be displayed. */
public Builder setDisplayPreference(
- PaymentMethodConfigurationCreateParams.PayByBank.DisplayPreference displayPreference) {
+ PaymentMethodConfigurationCreateParams.NzBankAccount.DisplayPreference
+ displayPreference) {
this.displayPreference = displayPreference;
return this;
}
@@ -6823,7 +6912,8 @@ public Builder setDisplayPreference(
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
* call, and subsequent calls add additional key/value pairs to the original map. See {@link
- * PaymentMethodConfigurationCreateParams.PayByBank#extraParams} for the field documentation.
+ * PaymentMethodConfigurationCreateParams.NzBankAccount#extraParams} for the field
+ * documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -6836,7 +6926,7 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
- * See {@link PaymentMethodConfigurationCreateParams.PayByBank#extraParams} for the field
+ * See {@link PaymentMethodConfigurationCreateParams.NzBankAccount#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -6879,8 +6969,8 @@ public static class Builder {
private Preference preference;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationCreateParams.PayByBank.DisplayPreference build() {
- return new PaymentMethodConfigurationCreateParams.PayByBank.DisplayPreference(
+ public PaymentMethodConfigurationCreateParams.NzBankAccount.DisplayPreference build() {
+ return new PaymentMethodConfigurationCreateParams.NzBankAccount.DisplayPreference(
this.extraParams, this.preference);
}
@@ -6888,8 +6978,8 @@ public PaymentMethodConfigurationCreateParams.PayByBank.DisplayPreference build(
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * PaymentMethodConfigurationCreateParams.PayByBank.DisplayPreference#extraParams} for the
- * field documentation.
+ * PaymentMethodConfigurationCreateParams.NzBankAccount.DisplayPreference#extraParams} for
+ * the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -6903,8 +6993,8 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * PaymentMethodConfigurationCreateParams.PayByBank.DisplayPreference#extraParams} for the
- * field documentation.
+ * PaymentMethodConfigurationCreateParams.NzBankAccount.DisplayPreference#extraParams} for
+ * the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -6916,7 +7006,7 @@ public Builder putAllExtraParam(Map map) {
/** The account's preference for whether or not to display this payment method. */
public Builder setPreference(
- PaymentMethodConfigurationCreateParams.PayByBank.DisplayPreference.Preference
+ PaymentMethodConfigurationCreateParams.NzBankAccount.DisplayPreference.Preference
preference) {
this.preference = preference;
return this;
@@ -6945,7 +7035,7 @@ public enum Preference implements ApiRequestParams.EnumParam {
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Paynow {
+ public static class Oxxo {
/** Whether or not the payment method should be displayed. */
@SerializedName("display_preference")
DisplayPreference displayPreference;
@@ -6959,7 +7049,7 @@ public static class Paynow {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private Paynow(DisplayPreference displayPreference, Map extraParams) {
+ private Oxxo(DisplayPreference displayPreference, Map extraParams) {
this.displayPreference = displayPreference;
this.extraParams = extraParams;
}
@@ -6974,8 +7064,667 @@ public static class Builder {
private Map extraParams;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationCreateParams.Paynow build() {
- return new PaymentMethodConfigurationCreateParams.Paynow(
+ public PaymentMethodConfigurationCreateParams.Oxxo build() {
+ return new PaymentMethodConfigurationCreateParams.Oxxo(
+ this.displayPreference, this.extraParams);
+ }
+
+ /** Whether or not the payment method should be displayed. */
+ public Builder setDisplayPreference(
+ PaymentMethodConfigurationCreateParams.Oxxo.DisplayPreference displayPreference) {
+ this.displayPreference = displayPreference;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * PaymentMethodConfigurationCreateParams.Oxxo#extraParams} for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link PaymentMethodConfigurationCreateParams.Oxxo#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DisplayPreference {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** The account's preference for whether or not to display this payment method. */
+ @SerializedName("preference")
+ Preference preference;
+
+ private DisplayPreference(Map extraParams, Preference preference) {
+ this.extraParams = extraParams;
+ this.preference = preference;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Preference preference;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentMethodConfigurationCreateParams.Oxxo.DisplayPreference build() {
+ return new PaymentMethodConfigurationCreateParams.Oxxo.DisplayPreference(
+ this.extraParams, this.preference);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * PaymentMethodConfigurationCreateParams.Oxxo.DisplayPreference#extraParams} for the field
+ * documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * PaymentMethodConfigurationCreateParams.Oxxo.DisplayPreference#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** The account's preference for whether or not to display this payment method. */
+ public Builder setPreference(
+ PaymentMethodConfigurationCreateParams.Oxxo.DisplayPreference.Preference preference) {
+ this.preference = preference;
+ return this;
+ }
+ }
+
+ public enum Preference implements ApiRequestParams.EnumParam {
+ @SerializedName("none")
+ NONE("none"),
+
+ @SerializedName("off")
+ OFF("off"),
+
+ @SerializedName("on")
+ ON("on");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Preference(String value) {
+ this.value = value;
+ }
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class P24 {
+ /** Whether or not the payment method should be displayed. */
+ @SerializedName("display_preference")
+ DisplayPreference displayPreference;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private P24(DisplayPreference displayPreference, Map extraParams) {
+ this.displayPreference = displayPreference;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private DisplayPreference displayPreference;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentMethodConfigurationCreateParams.P24 build() {
+ return new PaymentMethodConfigurationCreateParams.P24(
+ this.displayPreference, this.extraParams);
+ }
+
+ /** Whether or not the payment method should be displayed. */
+ public Builder setDisplayPreference(
+ PaymentMethodConfigurationCreateParams.P24.DisplayPreference displayPreference) {
+ this.displayPreference = displayPreference;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * PaymentMethodConfigurationCreateParams.P24#extraParams} for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link PaymentMethodConfigurationCreateParams.P24#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DisplayPreference {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** The account's preference for whether or not to display this payment method. */
+ @SerializedName("preference")
+ Preference preference;
+
+ private DisplayPreference(Map extraParams, Preference preference) {
+ this.extraParams = extraParams;
+ this.preference = preference;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Preference preference;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentMethodConfigurationCreateParams.P24.DisplayPreference build() {
+ return new PaymentMethodConfigurationCreateParams.P24.DisplayPreference(
+ this.extraParams, this.preference);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link PaymentMethodConfigurationCreateParams.P24.DisplayPreference#extraParams}
+ * for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link PaymentMethodConfigurationCreateParams.P24.DisplayPreference#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** The account's preference for whether or not to display this payment method. */
+ public Builder setPreference(
+ PaymentMethodConfigurationCreateParams.P24.DisplayPreference.Preference preference) {
+ this.preference = preference;
+ return this;
+ }
+ }
+
+ public enum Preference implements ApiRequestParams.EnumParam {
+ @SerializedName("none")
+ NONE("none"),
+
+ @SerializedName("off")
+ OFF("off"),
+
+ @SerializedName("on")
+ ON("on");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Preference(String value) {
+ this.value = value;
+ }
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PayByBank {
+ /** Whether or not the payment method should be displayed. */
+ @SerializedName("display_preference")
+ DisplayPreference displayPreference;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private PayByBank(DisplayPreference displayPreference, Map extraParams) {
+ this.displayPreference = displayPreference;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private DisplayPreference displayPreference;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentMethodConfigurationCreateParams.PayByBank build() {
+ return new PaymentMethodConfigurationCreateParams.PayByBank(
+ this.displayPreference, this.extraParams);
+ }
+
+ /** Whether or not the payment method should be displayed. */
+ public Builder setDisplayPreference(
+ PaymentMethodConfigurationCreateParams.PayByBank.DisplayPreference displayPreference) {
+ this.displayPreference = displayPreference;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * PaymentMethodConfigurationCreateParams.PayByBank#extraParams} for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link PaymentMethodConfigurationCreateParams.PayByBank#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DisplayPreference {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** The account's preference for whether or not to display this payment method. */
+ @SerializedName("preference")
+ Preference preference;
+
+ private DisplayPreference(Map extraParams, Preference preference) {
+ this.extraParams = extraParams;
+ this.preference = preference;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Preference preference;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentMethodConfigurationCreateParams.PayByBank.DisplayPreference build() {
+ return new PaymentMethodConfigurationCreateParams.PayByBank.DisplayPreference(
+ this.extraParams, this.preference);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * PaymentMethodConfigurationCreateParams.PayByBank.DisplayPreference#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * PaymentMethodConfigurationCreateParams.PayByBank.DisplayPreference#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** The account's preference for whether or not to display this payment method. */
+ public Builder setPreference(
+ PaymentMethodConfigurationCreateParams.PayByBank.DisplayPreference.Preference
+ preference) {
+ this.preference = preference;
+ return this;
+ }
+ }
+
+ public enum Preference implements ApiRequestParams.EnumParam {
+ @SerializedName("none")
+ NONE("none"),
+
+ @SerializedName("off")
+ OFF("off"),
+
+ @SerializedName("on")
+ ON("on");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Preference(String value) {
+ this.value = value;
+ }
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Payco {
+ /** Whether or not the payment method should be displayed. */
+ @SerializedName("display_preference")
+ DisplayPreference displayPreference;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private Payco(DisplayPreference displayPreference, Map extraParams) {
+ this.displayPreference = displayPreference;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private DisplayPreference displayPreference;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentMethodConfigurationCreateParams.Payco build() {
+ return new PaymentMethodConfigurationCreateParams.Payco(
+ this.displayPreference, this.extraParams);
+ }
+
+ /** Whether or not the payment method should be displayed. */
+ public Builder setDisplayPreference(
+ PaymentMethodConfigurationCreateParams.Payco.DisplayPreference displayPreference) {
+ this.displayPreference = displayPreference;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * PaymentMethodConfigurationCreateParams.Payco#extraParams} for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link PaymentMethodConfigurationCreateParams.Payco#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DisplayPreference {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** The account's preference for whether or not to display this payment method. */
+ @SerializedName("preference")
+ Preference preference;
+
+ private DisplayPreference(Map extraParams, Preference preference) {
+ this.extraParams = extraParams;
+ this.preference = preference;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Preference preference;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentMethodConfigurationCreateParams.Payco.DisplayPreference build() {
+ return new PaymentMethodConfigurationCreateParams.Payco.DisplayPreference(
+ this.extraParams, this.preference);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * PaymentMethodConfigurationCreateParams.Payco.DisplayPreference#extraParams} for the field
+ * documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * PaymentMethodConfigurationCreateParams.Payco.DisplayPreference#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** The account's preference for whether or not to display this payment method. */
+ public Builder setPreference(
+ PaymentMethodConfigurationCreateParams.Payco.DisplayPreference.Preference preference) {
+ this.preference = preference;
+ return this;
+ }
+ }
+
+ public enum Preference implements ApiRequestParams.EnumParam {
+ @SerializedName("none")
+ NONE("none"),
+
+ @SerializedName("off")
+ OFF("off"),
+
+ @SerializedName("on")
+ ON("on");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Preference(String value) {
+ this.value = value;
+ }
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Paynow {
+ /** Whether or not the payment method should be displayed. */
+ @SerializedName("display_preference")
+ DisplayPreference displayPreference;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private Paynow(DisplayPreference displayPreference, Map extraParams) {
+ this.displayPreference = displayPreference;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private DisplayPreference displayPreference;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentMethodConfigurationCreateParams.Paynow build() {
+ return new PaymentMethodConfigurationCreateParams.Paynow(
this.displayPreference, this.extraParams);
}
@@ -7768,6 +8517,172 @@ public enum Preference implements ApiRequestParams.EnumParam {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class SamsungPay {
+ /** Whether or not the payment method should be displayed. */
+ @SerializedName("display_preference")
+ DisplayPreference displayPreference;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The content
+ * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
+ * key/value pair is serialized as if the key is a root-level field (serialized) name in this
+ * param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private SamsungPay(DisplayPreference displayPreference, Map extraParams) {
+ this.displayPreference = displayPreference;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private DisplayPreference displayPreference;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentMethodConfigurationCreateParams.SamsungPay build() {
+ return new PaymentMethodConfigurationCreateParams.SamsungPay(
+ this.displayPreference, this.extraParams);
+ }
+
+ /** Whether or not the payment method should be displayed. */
+ public Builder setDisplayPreference(
+ PaymentMethodConfigurationCreateParams.SamsungPay.DisplayPreference displayPreference) {
+ this.displayPreference = displayPreference;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
+ * call, and subsequent calls add additional key/value pairs to the original map. See {@link
+ * PaymentMethodConfigurationCreateParams.SamsungPay#extraParams} for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
+ * See {@link PaymentMethodConfigurationCreateParams.SamsungPay#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DisplayPreference {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** The account's preference for whether or not to display this payment method. */
+ @SerializedName("preference")
+ Preference preference;
+
+ private DisplayPreference(Map extraParams, Preference preference) {
+ this.extraParams = extraParams;
+ this.preference = preference;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Preference preference;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentMethodConfigurationCreateParams.SamsungPay.DisplayPreference build() {
+ return new PaymentMethodConfigurationCreateParams.SamsungPay.DisplayPreference(
+ this.extraParams, this.preference);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * PaymentMethodConfigurationCreateParams.SamsungPay.DisplayPreference#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * PaymentMethodConfigurationCreateParams.SamsungPay.DisplayPreference#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** The account's preference for whether or not to display this payment method. */
+ public Builder setPreference(
+ PaymentMethodConfigurationCreateParams.SamsungPay.DisplayPreference.Preference
+ preference) {
+ this.preference = preference;
+ return this;
+ }
+ }
+
+ public enum Preference implements ApiRequestParams.EnumParam {
+ @SerializedName("none")
+ NONE("none"),
+
+ @SerializedName("off")
+ OFF("off"),
+
+ @SerializedName("on")
+ ON("on");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Preference(String value) {
+ this.value = value;
+ }
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Satispay {
diff --git a/src/main/java/com/stripe/param/PaymentMethodConfigurationUpdateParams.java b/src/main/java/com/stripe/param/PaymentMethodConfigurationUpdateParams.java
index a81b56a693b..e64f525d836 100644
--- a/src/main/java/com/stripe/param/PaymentMethodConfigurationUpdateParams.java
+++ b/src/main/java/com/stripe/param/PaymentMethodConfigurationUpdateParams.java
@@ -256,6 +256,10 @@ public class PaymentMethodConfigurationUpdateParams extends ApiRequestParams {
@SerializedName("jcb")
Jcb jcb;
+ /** Kakao Pay is a popular local wallet available in South Korea. */
+ @SerializedName("kakao_pay")
+ KakaoPay kakaoPay;
+
/**
* Klarna gives customers a range of payment options during
@@ -275,6 +279,10 @@ public class PaymentMethodConfigurationUpdateParams extends ApiRequestParams {
@SerializedName("konbini")
Konbini konbini;
+ /** Korean cards let users pay using locally issued cards from South Korea. */
+ @SerializedName("kr_card")
+ KrCard krCard;
+
/**
* Link is a payment method network. With
* Link, users save their payment details once, then reuse that information to pay with one click
@@ -305,6 +313,10 @@ public class PaymentMethodConfigurationUpdateParams extends ApiRequestParams {
@SerializedName("name")
Object name;
+ /** Naver Pay is a popular local wallet available in South Korea. */
+ @SerializedName("naver_pay")
+ NaverPay naverPay;
+
/**
* Stripe users in New Zealand can accept Bulk Electronic Clearing System (BECS) direct debit
* payments from customers with a New Zeland bank account. Check this single-use
* payment method where customers are required to payment options during
@@ -1083,6 +1140,12 @@ public Builder setKonbini(PaymentMethodConfigurationUpdateParams.Konbini konbini
return this;
}
+ /** Korean cards let users pay using locally issued cards from South Korea. */
+ public Builder setKrCard(PaymentMethodConfigurationUpdateParams.KrCard krCard) {
+ this.krCard = krCard;
+ return this;
+ }
+
/**
* Link is a payment method network. With
* Link, users save their payment details once, then reuse that information to pay with one
@@ -1128,6 +1191,12 @@ public Builder setName(EmptyParam name) {
return this;
}
+ /** Naver Pay is a popular local wallet available in South Korea. */
+ public Builder setNaverPay(PaymentMethodConfigurationUpdateParams.NaverPay naverPay) {
+ this.naverPay = naverPay;
+ return this;
+ }
+
/**
* Stripe users in New Zealand can accept Bulk Electronic Clearing System (BECS) direct debit
* payments from customers with a New Zeland bank account. Check this single-use
* payment method where customers are required to extraParams;
- private Klarna(DisplayPreference displayPreference, Map extraParams) {
+ private KakaoPay(DisplayPreference displayPreference, Map extraParams) {
this.displayPreference = displayPreference;
this.extraParams = extraParams;
}
@@ -5491,14 +5578,14 @@ public static class Builder {
private Map extraParams;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationUpdateParams.Klarna build() {
- return new PaymentMethodConfigurationUpdateParams.Klarna(
+ public PaymentMethodConfigurationUpdateParams.KakaoPay build() {
+ return new PaymentMethodConfigurationUpdateParams.KakaoPay(
this.displayPreference, this.extraParams);
}
/** Whether or not the payment method should be displayed. */
public Builder setDisplayPreference(
- PaymentMethodConfigurationUpdateParams.Klarna.DisplayPreference displayPreference) {
+ PaymentMethodConfigurationUpdateParams.KakaoPay.DisplayPreference displayPreference) {
this.displayPreference = displayPreference;
return this;
}
@@ -5506,7 +5593,7 @@ public Builder setDisplayPreference(
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
* call, and subsequent calls add additional key/value pairs to the original map. See {@link
- * PaymentMethodConfigurationUpdateParams.Klarna#extraParams} for the field documentation.
+ * PaymentMethodConfigurationUpdateParams.KakaoPay#extraParams} for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -5519,7 +5606,7 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
- * See {@link PaymentMethodConfigurationUpdateParams.Klarna#extraParams} for the field
+ * See {@link PaymentMethodConfigurationUpdateParams.KakaoPay#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -5562,8 +5649,8 @@ public static class Builder {
private Preference preference;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationUpdateParams.Klarna.DisplayPreference build() {
- return new PaymentMethodConfigurationUpdateParams.Klarna.DisplayPreference(
+ public PaymentMethodConfigurationUpdateParams.KakaoPay.DisplayPreference build() {
+ return new PaymentMethodConfigurationUpdateParams.KakaoPay.DisplayPreference(
this.extraParams, this.preference);
}
@@ -5571,7 +5658,7 @@ public PaymentMethodConfigurationUpdateParams.Klarna.DisplayPreference build() {
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * PaymentMethodConfigurationUpdateParams.Klarna.DisplayPreference#extraParams} for the
+ * PaymentMethodConfigurationUpdateParams.KakaoPay.DisplayPreference#extraParams} for the
* field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -5586,7 +5673,7 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * PaymentMethodConfigurationUpdateParams.Klarna.DisplayPreference#extraParams} for the
+ * PaymentMethodConfigurationUpdateParams.KakaoPay.DisplayPreference#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -5599,7 +5686,8 @@ public Builder putAllExtraParam(Map map) {
/** The account's preference for whether or not to display this payment method. */
public Builder setPreference(
- PaymentMethodConfigurationUpdateParams.Klarna.DisplayPreference.Preference preference) {
+ PaymentMethodConfigurationUpdateParams.KakaoPay.DisplayPreference.Preference
+ preference) {
this.preference = preference;
return this;
}
@@ -5627,7 +5715,7 @@ public enum Preference implements ApiRequestParams.EnumParam {
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Konbini {
+ public static class Klarna {
/** Whether or not the payment method should be displayed. */
@SerializedName("display_preference")
DisplayPreference displayPreference;
@@ -5641,7 +5729,7 @@ public static class Konbini {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private Konbini(DisplayPreference displayPreference, Map extraParams) {
+ private Klarna(DisplayPreference displayPreference, Map extraParams) {
this.displayPreference = displayPreference;
this.extraParams = extraParams;
}
@@ -5656,14 +5744,14 @@ public static class Builder {
private Map extraParams;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationUpdateParams.Konbini build() {
- return new PaymentMethodConfigurationUpdateParams.Konbini(
+ public PaymentMethodConfigurationUpdateParams.Klarna build() {
+ return new PaymentMethodConfigurationUpdateParams.Klarna(
this.displayPreference, this.extraParams);
}
/** Whether or not the payment method should be displayed. */
public Builder setDisplayPreference(
- PaymentMethodConfigurationUpdateParams.Konbini.DisplayPreference displayPreference) {
+ PaymentMethodConfigurationUpdateParams.Klarna.DisplayPreference displayPreference) {
this.displayPreference = displayPreference;
return this;
}
@@ -5671,7 +5759,7 @@ public Builder setDisplayPreference(
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
* call, and subsequent calls add additional key/value pairs to the original map. See {@link
- * PaymentMethodConfigurationUpdateParams.Konbini#extraParams} for the field documentation.
+ * PaymentMethodConfigurationUpdateParams.Klarna#extraParams} for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -5684,7 +5772,7 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
- * See {@link PaymentMethodConfigurationUpdateParams.Konbini#extraParams} for the field
+ * See {@link PaymentMethodConfigurationUpdateParams.Klarna#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -5727,8 +5815,8 @@ public static class Builder {
private Preference preference;
/** Finalize and obtain parameter instance from this builder. */
- public PaymentMethodConfigurationUpdateParams.Konbini.DisplayPreference build() {
- return new PaymentMethodConfigurationUpdateParams.Konbini.DisplayPreference(
+ public PaymentMethodConfigurationUpdateParams.Klarna.DisplayPreference build() {
+ return new PaymentMethodConfigurationUpdateParams.Klarna.DisplayPreference(
this.extraParams, this.preference);
}
@@ -5736,7 +5824,7 @@ public PaymentMethodConfigurationUpdateParams.Konbini.DisplayPreference build()
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * PaymentMethodConfigurationUpdateParams.Konbini.DisplayPreference#extraParams} for the
+ * PaymentMethodConfigurationUpdateParams.Klarna.DisplayPreference#extraParams} for the
* field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -5751,7 +5839,7 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
* map. See {@link
- * PaymentMethodConfigurationUpdateParams.Konbini.DisplayPreference#extraParams} for the
+ * PaymentMethodConfigurationUpdateParams.Klarna.DisplayPreference#extraParams} for the
* field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -5764,8 +5852,7 @@ public Builder putAllExtraParam(Map map) {
/** The account's preference for whether or not to display this payment method. */
public Builder setPreference(
- PaymentMethodConfigurationUpdateParams.Konbini.DisplayPreference.Preference
- preference) {
+ PaymentMethodConfigurationUpdateParams.Klarna.DisplayPreference.Preference preference) {
this.preference = preference;
return this;
}
@@ -5793,7 +5880,7 @@ public enum Preference implements ApiRequestParams.EnumParam {
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Link {
+ public static class Konbini {
/** Whether or not the payment method should be displayed. */
@SerializedName("display_preference")
DisplayPreference displayPreference;
@@ -5807,7 +5894,7 @@ public static class Link {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private Link(DisplayPreference displayPreference, Map extraParams) {
+ private Konbini(DisplayPreference displayPreference, Map