diff --git a/CHANGELOG.md b/CHANGELOG.md
index 47acd677add..59b279d0c8f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -48,6 +48,58 @@ This release changes the pinned API version to `2026-03-25.preview`. It is built
* [#2189](https://github.com/stripe/stripe-java/pull/2189) Merge to beta
* [#2175](https://github.com/stripe/stripe-java/pull/2175) Merge to beta
+## 32.0.0 - 2026-03-25
+
+This release changes the pinned API version to `2026-03-25.dahlia` and contains breaking changes (prefixed with ⚠️ below). There's also a [detailed migration guide](https://github.com/stripe/stripe-java/wiki/Migration-guide-for-v32) to simplify your upgrade process.
+
+Please review details for the breaking changes and alternatives in the [Stripe API changelog](https://docs.stripe.com/changelog/dahlia) before upgrading.
+
+* ⚠️ **Breaking change:** [#2182](https://github.com/stripe/stripe-java/pull/2182) Add setHttpClient to StripeClientBuilder; clean up apiKey/authenticator coupling
+ - ⚠️ Removed `RequestOptions.getApiKey()`, `RequestOptions.RequestOptionsBuilder.getApiKey()`, and `StripeClient.StripeClientBuilder.getApiKey()`. Use `getAuthenticator()` instead.
+ - Added `StripeClient.StripeClientBuilder.setHttpClient(HttpClient)` to allow injecting a custom HTTP client.
+* ⚠️ **Breaking change:** [#2187](https://github.com/stripe/stripe-java/pull/2187) Regenerate with decimal_string enabled for v2 APIs
+ - V2 API decimal fields changed type from `String` to `BigDecimal`. Code that reads or writes these fields as `String` will need to use `BigDecimal` instead. Affected fields:
+ - **V2.Core.Account** / **V2.Core.AccountPerson**: `percentOwnership`
+ - **PaymentEvaluation.Signals.FraudulentPayment**: `score`
+ - Params: `AccountCreateParams`, `PersonCreateParams`, `AccountTokenCreateParams`, `PersonTokenCreateParams` (all: `percentOwnership`)
+ - Params: `InvoiceItemCreateParams`, `InvoiceAddLinesParams`, `InvoiceUpdateLinesParams`, `InvoiceCreatePreviewParams` (all: `quantityDecimal`)
+* ⚠️ **Breaking change:** [#2131](https://github.com/stripe/stripe-java/pull/2131) Use HTTP status code in V2 errors
+ - `RateLimitException` now extends `StripeException` rather than `ApiException`
+ - Non-200 status codes from V2 endpoints will throw a `StripeException` (e.g. `RateLimitException`, `InvalidRequestException`, etc.) like in V1 instead of a generic `ApiException`
+* ⚠️ **Breaking change:** [#2190](https://github.com/stripe/stripe-java/pull/2190) Throw an error when using the wrong webhook parsing method
+* ⚠️ **Breaking change:** [#2172](https://github.com/stripe/stripe-java/pull/2172) Make `RequestOptions` & `RawRequestOptions` constructors private and add Stripe-Request-Trigger header
+* ⚠️ **Breaking change:** [#2181](https://github.com/stripe/stripe-java/pull/2181) Change Automatic-Module-Name to com.stripe
+ - Changes `Automatic-Module-Name` from `stripe.java` to `com.stripe`. Users with `requires stripe.java;` in their `module-info.java` will need to update to `requires com.stripe;`.
+* [#2179](https://github.com/stripe/stripe-java/pull/2179) Add runtime support for V2 int64 string-encoded fields
+
+
+### ⚠️ Breaking changes due to changes in the Stripe API
+
+* Generated changes from [#2170](https://github.com/stripe/stripe-java/pull/2170), [#2193](https://github.com/stripe/stripe-java/pull/2193), [#2191](https://github.com/stripe/stripe-java/pull/2191)
+ * Add support for `upiPayments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
+ * Add support for `upi` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.payment_method_data`, `Mandate.payment_method_details`, `PaymentAttemptRecord.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.payment_method_details`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, `SetupIntentUpdateParams.payment_method_options`, `checkout.Session.payment_method_options`, and `checkout.SessionCreateParams.payment_method_options`
+ * Add support for `integrationIdentifier` on `checkout.SessionCreateParams` and `checkout.Session`
+ * Add support for new value `upi` on enums `PaymentIntentConfirmParams.excludedPaymentMethodTypes`, `PaymentIntentCreateParams.excludedPaymentMethodTypes`, `PaymentIntentUpdateParams.excludedPaymentMethodTypes`, `SetupIntentCreateParams.excludedPaymentMethodTypes`, `SetupIntentUpdateParams.excludedPaymentMethodTypes`, and `checkout.SessionCreateParams.excludedPaymentMethodTypes`
+ * Add support for `crypto` on `checkout.SessionCreateParams.payment_method_options`
+ * Add support for new value `upi` on enum `checkout.SessionCreateParams.paymentMethodTypes`
+ * Add support for `pendingInvoiceItemInterval` on `checkout.SessionCreateParams.subscription_data`
+ * Add support for new values `elements`, `embedded_page`, `form`, and `hosted_page` on enum `checkout.SessionCreateParams.uiMode`
+ * Add support for new value `upi` on enums `ConfirmationTokenCreateParams.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type`
+ * Add support for `metadata` on `CreditNoteCreateParams.lines[]`, `CreditNoteLineItem`, `CreditNotePreviewLinesParams.lines[]`, and `CreditNotePreviewParams.lines[]`
+ * Add support for new value `upi` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
+ * Add support for `quantityDecimal` on `InvoiceAddLinesParams.lines[]`, `InvoiceCreatePreviewParams.invoice_items[]`, `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, `InvoiceItem`, `InvoiceLineItemUpdateParams`, `InvoiceLineItem`, and `InvoiceUpdateLinesParams.lines[]`
+ * ⚠️ Add support for `level` on `issuing.AuthorizationCreateParams.risk_assessment.card_testing_risk` and `issuing.AuthorizationCreateParams.risk_assessment.merchant_dispute_risk`
+ * ⚠️ Remove support for `riskLevel` on `issuing.AuthorizationCreateParams.risk_assessment.card_testing_risk` and `issuing.AuthorizationCreateParams.risk_assessment.merchant_dispute_risk`
+ * Add support for `lifecycleControls` on `issuing.CardCreateParams` and `issuing.Card`
+ * Add support for `cryptogram`, `electronicCommerceIndicator`, `exemptionIndicatorApplied`, and `exemptionIndicator` on `PaymentAttemptRecord.payment_method_details.card.three_d_secure` and `PaymentRecord.payment_method_details.card.three_d_secure`
+ * Add support for `upiHandleRedirectOrDisplayQrCode` on `PaymentIntent.next_action` and `SetupIntent.next_action`
+ * Add support for new value `upi` on enums `PaymentLinkCreateParams.paymentMethodTypes` and `PaymentLinkUpdateParams.paymentMethodTypes`
+ * Add support for `recommendedAction` and `signals` on `radar.PaymentEvaluation`
+ * ⚠️ Remove support for `insights` on `radar.PaymentEvaluation`
+ * Add support for new value `crypto_fingerprint` on enum `radar.ValueListCreateParams.itemType`
+ * Add support for new value `2026-03-25.dahlia` on enum `WebhookEndpointCreateParams.apiVersion`
+ * ⚠️ Change type of `v2.core.EventDestinationCreateParams.eventsFrom` from `enum('other_accounts'|'self')` to `string`
+
## 31.5.0-beta.1 - 2026-02-25
This release changes the pinned API version to `2026-02-25.preview`.
diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index 47a9a28f9f7..e141bdded7e 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-25e6bd225852aa44d783e9fb3b9895af39479331
\ No newline at end of file
+c7b078fa024c2a69032f464e75a24aa13d9befc8
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 19b4cc88517..60a040f12c2 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2206
\ No newline at end of file
+v2249
\ 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 8b6152d7509..08f8b2050b3 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 = "2026-03-25.preview";
+ public static final String CURRENT = "2026-04-22.preview";
}
diff --git a/src/main/java/com/stripe/StripeClient.java b/src/main/java/com/stripe/StripeClient.java
index 1d059464fef..40120655009 100644
--- a/src/main/java/com/stripe/StripeClient.java
+++ b/src/main/java/com/stripe/StripeClient.java
@@ -919,6 +919,18 @@ public com.stripe.service.SetupIntentService setupIntents() {
return new com.stripe.service.SetupIntentService(this.getResponseGetter());
}
+ /**
+ * @deprecated StripeClient.sharedPayment() is deprecated, use StripeClient.v1().sharedPayment()
+ * instead. All functionality under it has been copied over to
+ * StripeClient.v1().sharedPayment(). See migration
+ * guide for more on this and tips on migrating to the new v1 namespace.
+ */
+ @Deprecated
+ public com.stripe.service.SharedPaymentService sharedPayment() {
+ return new com.stripe.service.SharedPaymentService(this.getResponseGetter());
+ }
+
/**
* @deprecated StripeClient.shippingRates() is deprecated, use StripeClient.v1().shippingRates()
* instead. All functionality under it has been copied over to
diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java
index 1d77458fb4b..9c6297796b5 100644
--- a/src/main/java/com/stripe/model/Account.java
+++ b/src/main/java/com/stripe/model/Account.java
@@ -916,6 +916,15 @@ public static class Capabilities extends StripeObject {
@SerializedName("amazon_pay_payments")
String amazonPayPayments;
+ /**
+ * The status of the {@code app_distribution} capability of the account, or whether the platform
+ * can distribute apps to other accounts.
+ *
+ *
One of {@code active}, {@code inactive}, or {@code pending}.
+ */
+ @SerializedName("app_distribution")
+ String appDistribution;
+
/**
* The status of the BECS Direct Debit (AU) payments capability of the account, or whether the
* account can directly process BECS Direct Debit (AU) charges.
@@ -1426,6 +1435,15 @@ public static class Capabilities extends StripeObject {
@SerializedName("stripe_balance_payments")
String stripeBalancePayments;
+ /**
+ * The status of the Sunbit capability of the account, or whether the account can directly
+ * process Sunbit payments.
+ *
+ *
One of {@code active}, {@code inactive}, or {@code pending}.
+ */
+ @SerializedName("sunbit_payments")
+ String sunbitPayments;
+
/**
* The status of the Swish capability of the account, or whether the account can directly
* process Swish payments.
diff --git a/src/main/java/com/stripe/model/AccountSession.java b/src/main/java/com/stripe/model/AccountSession.java
index a64c63c0f12..48d842cc6d7 100644
--- a/src/main/java/com/stripe/model/AccountSession.java
+++ b/src/main/java/com/stripe/model/AccountSession.java
@@ -132,6 +132,9 @@ public static class Components extends StripeObject {
@SerializedName("account_onboarding")
AccountOnboarding accountOnboarding;
+ @SerializedName("balance_report")
+ BalanceReport balanceReport;
+
@SerializedName("balances")
Balances balances;
@@ -180,6 +183,9 @@ public static class Components extends StripeObject {
@SerializedName("payout_details")
PayoutDetails payoutDetails;
+ @SerializedName("payout_reconciliation_report")
+ PayoutReconciliationReport payoutReconciliationReport;
+
@SerializedName("payouts")
Payouts payouts;
@@ -280,6 +286,31 @@ public static class Features extends StripeObject {
}
}
+ /**
+ * For more details about BalanceReport, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BalanceReport 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 {}
+ }
+
/**
* For more details about Balances, please refer to the API Reference.
@@ -935,6 +966,31 @@ public static class PayoutDetails extends StripeObject {
public static class Features extends StripeObject {}
}
+ /**
+ * For more details about PayoutReconciliationReport, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PayoutReconciliationReport 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 {}
+ }
+
/**
* For more details about Payouts, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/model/BalanceTransaction.java b/src/main/java/com/stripe/model/BalanceTransaction.java
index b8e639e7799..b3b13620e47 100644
--- a/src/main/java/com/stripe/model/BalanceTransaction.java
+++ b/src/main/java/com/stripe/model/BalanceTransaction.java
@@ -131,7 +131,8 @@ public class BalanceTransaction extends ApiResource implements HasId {
* Transaction type: {@code adjustment}, {@code advance}, {@code advance_funding}, {@code
* anticipation_repayment}, {@code application_fee}, {@code application_fee_refund}, {@code
* charge}, {@code climate_order_purchase}, {@code climate_order_refund}, {@code
- * connect_collection_transfer}, {@code contribution}, {@code issuing_authorization_hold}, {@code
+ * connect_collection_transfer}, {@code contribution}, {@code inbound_transfer}, {@code
+ * inbound_transfer_reversal}, {@code issuing_authorization_hold}, {@code
* issuing_authorization_release}, {@code issuing_dispute}, {@code issuing_transaction}, {@code
* obligation_outbound}, {@code obligation_reversal_inbound}, {@code payment}, {@code
* payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
@@ -142,7 +143,7 @@ public class BalanceTransaction extends ApiResource implements HasId {
* {@code reserve_release}, {@code stripe_fee}, {@code stripe_fx_fee}, {@code
* stripe_balance_payment_debit}, {@code stripe_balance_payment_debit_reversal}, {@code tax_fee},
* {@code topup}, {@code topup_reversal}, {@code transfer}, {@code transfer_cancel}, {@code
- * transfer_failure}, or {@code transfer_refund}. Learn more about balance transaction types and
* what they represent. To classify transactions for accounting purposes, consider {@code
* reporting_category} instead.
@@ -150,9 +151,10 @@ public class BalanceTransaction extends ApiResource implements HasId {
*
One of {@code adjustment}, {@code advance}, {@code advance_funding}, {@code
* anticipation_repayment}, {@code application_fee}, {@code application_fee_refund}, {@code
* charge}, {@code climate_order_purchase}, {@code climate_order_refund}, {@code
- * connect_collection_transfer}, {@code contribution}, {@code issuing_authorization_hold}, {@code
- * issuing_authorization_release}, {@code issuing_dispute}, {@code issuing_transaction}, {@code
- * obligation_outbound}, {@code obligation_reversal_inbound}, {@code payment}, {@code
+ * connect_collection_transfer}, {@code contribution}, {@code fee_credit_funding}, {@code
+ * inbound_transfer}, {@code inbound_transfer_reversal}, {@code issuing_authorization_hold},
+ * {@code issuing_authorization_release}, {@code issuing_dispute}, {@code issuing_transaction},
+ * {@code obligation_outbound}, {@code obligation_reversal_inbound}, {@code payment}, {@code
* payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
* payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
* payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code
@@ -331,7 +333,7 @@ public static class FeeDetail extends StripeObject {
/**
* Type of the fee, one of: {@code application_fee}, {@code payment_method_passthrough_fee},
- * {@code stripe_fee} or {@code tax}.
+ * {@code stripe_fee}, {@code tax}, or {@code withheld_tax}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java
index 9ae13340b13..5f20328265c 100644
--- a/src/main/java/com/stripe/model/Charge.java
+++ b/src/main/java/com/stripe/model/Charge.java
@@ -1324,6 +1324,9 @@ public static class PaymentMethodDetails extends StripeObject {
@SerializedName("stripe_balance")
StripeBalance stripeBalance;
+ @SerializedName("sunbit")
+ Sunbit sunbit;
+
@SerializedName("swish")
Swish swish;
@@ -1471,17 +1474,11 @@ 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.
- */
+ /** ID of the location that this reader is assigned to. */
@SerializedName("location")
String location;
- /**
- * ID of the reader this
- * transaction was made on.
- */
+ /** ID of the reader this transaction was made on. */
@SerializedName("reader")
String reader;
@@ -1502,7 +1499,7 @@ public static class AfterpayClearpay extends StripeObject {
@SerializedName("order_id")
String orderId;
- /** Order identifier shown to the merchant in Afterpay’s online portal. */
+ /** Order identifier shown to the merchant in Afterpay's online portal. */
@SerializedName("reference")
String reference;
}
@@ -2812,7 +2809,7 @@ public static class Crypto extends StripeObject {
/**
* The token currency that the transaction was sent with.
*
- *
One of {@code usdc}, {@code usdg}, or {@code usdp}.
+ *
One of {@code phantom_cash}, {@code usdc}, {@code usdg}, {@code usdp}, or {@code usdt}.
*/
@SerializedName("token_currency")
String tokenCurrency;
@@ -3326,6 +3323,13 @@ public static class KakaoPay extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Klarna extends StripeObject {
+ /**
+ * ID of the location that this
+ * transaction's reader is assigned to.
+ */
+ @SerializedName("location")
+ String location;
+
/** The payer details for this transaction. */
@SerializedName("payer_details")
PayerDetails payerDetails;
@@ -3351,6 +3355,13 @@ public static class Klarna extends StripeObject {
@SerializedName("preferred_locale")
String preferredLocale;
+ /**
+ * ID of the reader this
+ * transaction was made on.
+ */
+ @SerializedName("reader")
+ String reader;
+
/**
* For more details about PayerDetails, please refer to the API Reference.
@@ -4185,6 +4196,19 @@ public static class StripeBalance extends StripeObject {
String account;
}
+ /**
+ * For more details about Sunbit, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Sunbit extends StripeObject {
+ /** The Sunbit transaction ID associated with this payment. */
+ @SerializedName("transaction_id")
+ String transactionId;
+ }
+
/**
* For more details about Swish, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/model/ConfirmationToken.java b/src/main/java/com/stripe/model/ConfirmationToken.java
index 976f31e24b4..a26c091fe33 100644
--- a/src/main/java/com/stripe/model/ConfirmationToken.java
+++ b/src/main/java/com/stripe/model/ConfirmationToken.java
@@ -455,6 +455,9 @@ public static class PaymentMethodPreview extends StripeObject {
@SerializedName("stripe_balance")
StripeBalance stripeBalance;
+ @SerializedName("sunbit")
+ Sunbit sunbit;
+
@SerializedName("swish")
Swish swish;
@@ -477,8 +480,8 @@ public static class PaymentMethodPreview extends StripeObject {
* pay_by_bank}, {@code payco}, {@code paynow}, {@code paypal}, {@code paypay}, {@code payto},
* {@code pix}, {@code promptpay}, {@code qris}, {@code rechnung}, {@code revolut_pay}, {@code
* samsung_pay}, {@code satispay}, {@code sepa_debit}, {@code shopeepay}, {@code sofort}, {@code
- * stripe_balance}, {@code swish}, {@code twint}, {@code upi}, {@code us_bank_account}, {@code
- * wechat_pay}, or {@code zip}.
+ * stripe_balance}, {@code sunbit}, {@code swish}, {@code twint}, {@code upi}, {@code
+ * us_bank_account}, {@code wechat_pay}, or {@code zip}.
*/
@SerializedName("type")
String type;
@@ -2418,6 +2421,15 @@ public static class StripeBalance extends StripeObject {
String account;
}
+ /**
+ * For more details about Sunbit, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Sunbit extends StripeObject {}
+
/**
* For more details about Swish, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/model/CreditNote.java b/src/main/java/com/stripe/model/CreditNote.java
index 15de92bdeec..bc01f5060bd 100644
--- a/src/main/java/com/stripe/model/CreditNote.java
+++ b/src/main/java/com/stripe/model/CreditNote.java
@@ -949,7 +949,27 @@ public static class TotalTax extends StripeObject {
public static class TaxRateDetails extends StripeObject {
/** ID of the tax rate. */
@SerializedName("tax_rate")
- String taxRate;
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField taxRate;
+
+ /** Get ID of expandable {@code taxRate} object. */
+ public String getTaxRate() {
+ return (this.taxRate != null) ? this.taxRate.getId() : null;
+ }
+
+ public void setTaxRate(String id) {
+ this.taxRate = ApiResource.setExpandableFieldId(id, this.taxRate);
+ }
+
+ /** Get expanded {@code taxRate}. */
+ public TaxRate getTaxRateObject() {
+ return (this.taxRate != null) ? this.taxRate.getExpanded() : null;
+ }
+
+ public void setTaxRateObject(TaxRate expandableObject) {
+ this.taxRate = new ExpandableField(expandableObject.getId(), expandableObject);
+ }
}
}
diff --git a/src/main/java/com/stripe/model/CreditNoteLineItem.java b/src/main/java/com/stripe/model/CreditNoteLineItem.java
index 19f21d6dfb9..1fa44e4c4b8 100644
--- a/src/main/java/com/stripe/model/CreditNoteLineItem.java
+++ b/src/main/java/com/stripe/model/CreditNoteLineItem.java
@@ -280,7 +280,27 @@ public static class Tax extends StripeObject {
public static class TaxRateDetails extends StripeObject {
/** ID of the tax rate. */
@SerializedName("tax_rate")
- String taxRate;
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField taxRate;
+
+ /** Get ID of expandable {@code taxRate} object. */
+ public String getTaxRate() {
+ return (this.taxRate != null) ? this.taxRate.getId() : null;
+ }
+
+ public void setTaxRate(String id) {
+ this.taxRate = ApiResource.setExpandableFieldId(id, this.taxRate);
+ }
+
+ /** Get expanded {@code taxRate}. */
+ public TaxRate getTaxRateObject() {
+ return (this.taxRate != null) ? this.taxRate.getExpanded() : null;
+ }
+
+ public void setTaxRateObject(TaxRate expandableObject) {
+ this.taxRate = new ExpandableField(expandableObject.getId(), expandableObject);
+ }
}
}
diff --git a/src/main/java/com/stripe/model/EventDataClassLookup.java b/src/main/java/com/stripe/model/EventDataClassLookup.java
index d77d48fc40b..47d4b8b67c2 100644
--- a/src/main/java/com/stripe/model/EventDataClassLookup.java
+++ b/src/main/java/com/stripe/model/EventDataClassLookup.java
@@ -225,6 +225,11 @@ public final class EventDataClassLookup {
classLookup.put("scheduled_query_run", com.stripe.model.sigma.ScheduledQueryRun.class);
+ classLookup.put(
+ "shared_payment.granted_token", com.stripe.model.sharedpayment.GrantedToken.class);
+ classLookup.put(
+ "shared_payment.issued_token", com.stripe.model.sharedpayment.IssuedToken.class);
+
classLookup.put("tax.association", com.stripe.model.tax.Association.class);
classLookup.put("tax.calculation", com.stripe.model.tax.Calculation.class);
classLookup.put("tax.calculation_line_item", com.stripe.model.tax.CalculationLineItem.class);
diff --git a/src/main/java/com/stripe/model/Invoice.java b/src/main/java/com/stripe/model/Invoice.java
index 60452f9fc2b..7b88d001668 100644
--- a/src/main/java/com/stripe/model/Invoice.java
+++ b/src/main/java/com/stripe/model/Invoice.java
@@ -482,8 +482,7 @@ public class Invoice extends ApiResource implements HasId, MetadataStoreline item
* period to get the service period for each price.
*/
@@ -491,8 +490,7 @@ public class Invoice extends ApiResource implements HasId, MetadataStoreline item
* period to get the service period for each price.
*/
@@ -2261,20 +2259,21 @@ public static class CustomerTaxId extends StripeObject {
* {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code
* no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen},
* {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code pl_nip},
- * {@code tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid},
- * {@code li_vat}, {@code lk_vat}, {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code
- * ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code
- * my_sst}, {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp},
- * {@code my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code
- * bg_uic}, {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin},
- * {@code ph_tin}, {@code al_tin}, {@code bh_vat}, {@code kz_bin}, {@code ng_tin}, {@code
- * om_vat}, {@code de_stn}, {@code ch_uid}, {@code tz_vat}, {@code uz_vat}, {@code uz_tin},
- * {@code md_vat}, {@code ma_vat}, {@code by_tin}, {@code ao_tin}, {@code bs_tin}, {@code
- * bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code ba_tin},
- * {@code gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, {@code
- * np_pan}, {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, {@code aw_tin},
- * {@code az_tin}, {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code kg_tin}, {@code
- * la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code unknown}.
+ * {@code it_cf}, {@code fo_vat}, {@code gi_tin}, {@code py_ruc}, {@code tw_vat}, {@code
+ * th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code li_vat}, {@code
+ * lk_vat}, {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst},
+ * {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst},
+ * {@code ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code
+ * il_vat}, {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin},
+ * {@code si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code
+ * al_tin}, {@code bh_vat}, {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn},
+ * {@code ch_uid}, {@code tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code
+ * ma_vat}, {@code by_tin}, {@code ao_tin}, {@code bs_tin}, {@code bb_tin}, {@code cd_nif},
+ * {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code ba_tin}, {@code gn_nif}, {@code
+ * mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, {@code np_pan}, {@code tj_tin},
+ * {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, {@code aw_tin}, {@code az_tin}, {@code
+ * bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code kg_tin}, {@code la_tin}, {@code cm_niu},
+ * {@code cv_nif}, {@code bf_ifu}, or {@code unknown}.
*/
@SerializedName("type")
String type;
@@ -2531,6 +2530,13 @@ public static class PaymentMethodOptions extends StripeObject {
@SerializedName("bancontact")
Bancontact bancontact;
+ /**
+ * If paying by {@code blik}, this sub-hash contains details about the Blik payment method
+ * options to pass to the invoice’s PaymentIntent.
+ */
+ @SerializedName("blik")
+ Blik blik;
+
/**
* If paying by {@code card}, this sub-hash contains details about the Card payment method
* options to pass to the invoice’s PaymentIntent.
@@ -2649,6 +2655,15 @@ public static class Bancontact extends StripeObject {
String preferredLanguage;
}
+ /**
+ * For more details about Blik, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Blik extends StripeObject {}
+
/**
* For more details about Card, please refer to the API
* Reference.
@@ -3383,7 +3398,27 @@ public static class TotalTax extends StripeObject {
public static class TaxRateDetails extends StripeObject {
/** ID of the tax rate. */
@SerializedName("tax_rate")
- String taxRate;
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField taxRate;
+
+ /** Get ID of expandable {@code taxRate} object. */
+ public String getTaxRate() {
+ return (this.taxRate != null) ? this.taxRate.getId() : null;
+ }
+
+ public void setTaxRate(String id) {
+ this.taxRate = ApiResource.setExpandableFieldId(id, this.taxRate);
+ }
+
+ /** Get expanded {@code taxRate}. */
+ public TaxRate getTaxRateObject() {
+ return (this.taxRate != null) ? this.taxRate.getExpanded() : null;
+ }
+
+ public void setTaxRateObject(TaxRate expandableObject) {
+ this.taxRate = new ExpandableField(expandableObject.getId(), expandableObject);
+ }
}
}
diff --git a/src/main/java/com/stripe/model/InvoiceLineItem.java b/src/main/java/com/stripe/model/InvoiceLineItem.java
index 0d77acb8f51..2f4b41f47b1 100644
--- a/src/main/java/com/stripe/model/InvoiceLineItem.java
+++ b/src/main/java/com/stripe/model/InvoiceLineItem.java
@@ -790,7 +790,27 @@ public static class Tax extends StripeObject {
public static class TaxRateDetails extends StripeObject {
/** ID of the tax rate. */
@SerializedName("tax_rate")
- String taxRate;
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField taxRate;
+
+ /** Get ID of expandable {@code taxRate} object. */
+ public String getTaxRate() {
+ return (this.taxRate != null) ? this.taxRate.getId() : null;
+ }
+
+ public void setTaxRate(String id) {
+ this.taxRate = ApiResource.setExpandableFieldId(id, this.taxRate);
+ }
+
+ /** Get expanded {@code taxRate}. */
+ public TaxRate getTaxRateObject() {
+ return (this.taxRate != null) ? this.taxRate.getExpanded() : null;
+ }
+
+ public void setTaxRateObject(TaxRate expandableObject) {
+ this.taxRate = new ExpandableField(expandableObject.getId(), expandableObject);
+ }
}
}
diff --git a/src/main/java/com/stripe/model/Order.java b/src/main/java/com/stripe/model/Order.java
index 28370921721..e0f707d77bb 100644
--- a/src/main/java/com/stripe/model/Order.java
+++ b/src/main/java/com/stripe/model/Order.java
@@ -1751,21 +1751,21 @@ public static class TaxId extends StripeObject {
* {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code
* no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen},
* {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code
- * pl_nip}, {@code tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn},
- * {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code my_itn}, {@code us_ein}, {@code
- * kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code
- * ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code sa_vat},
- * {@code id_npwp}, {@code my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code
- * is_vat}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code tr_tin},
- * {@code eg_tin}, {@code ph_tin}, {@code al_tin}, {@code bh_vat}, {@code kz_bin}, {@code
- * ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, {@code tz_vat}, {@code uz_vat},
- * {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, {@code ao_tin}, {@code
- * bs_tin}, {@code bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin},
- * {@code ba_tin}, {@code gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code
- * am_tin}, {@code np_pan}, {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin},
- * {@code aw_tin}, {@code az_tin}, {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code
- * kg_tin}, {@code la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code
- * unknown}.
+ * pl_nip}, {@code it_cf}, {@code fo_vat}, {@code gi_tin}, {@code py_ruc}, {@code tw_vat},
+ * {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code
+ * li_vat}, {@code lk_vat}, {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst},
+ * {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code
+ * my_sst}, {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp},
+ * {@code my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code
+ * bg_uic}, {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin},
+ * {@code ph_tin}, {@code al_tin}, {@code bh_vat}, {@code kz_bin}, {@code ng_tin}, {@code
+ * om_vat}, {@code de_stn}, {@code ch_uid}, {@code tz_vat}, {@code uz_vat}, {@code uz_tin},
+ * {@code md_vat}, {@code ma_vat}, {@code by_tin}, {@code ao_tin}, {@code bs_tin}, {@code
+ * bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code ba_tin},
+ * {@code gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, {@code
+ * np_pan}, {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, {@code aw_tin},
+ * {@code az_tin}, {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code kg_tin}, {@code
+ * la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code unknown}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/PaymentAttemptRecord.java b/src/main/java/com/stripe/model/PaymentAttemptRecord.java
index ec56f61a6e0..1b83206669d 100644
--- a/src/main/java/com/stripe/model/PaymentAttemptRecord.java
+++ b/src/main/java/com/stripe/model/PaymentAttemptRecord.java
@@ -575,6 +575,9 @@ public static class PaymentMethodDetails extends StripeObject {
@SerializedName("stripe_balance")
StripeBalance stripeBalance;
+ @SerializedName("sunbit")
+ Sunbit sunbit;
+
@SerializedName("swish")
Swish swish;
@@ -1853,7 +1856,7 @@ public static class Crypto extends StripeObject {
/**
* The token currency that the transaction was sent with.
*
- * One of {@code usdc}, {@code usdg}, or {@code usdp}.
+ *
One of {@code phantom_cash}, {@code usdc}, {@code usdg}, {@code usdp}, or {@code usdt}.
*/
@SerializedName("token_currency")
String tokenCurrency;
@@ -1912,7 +1915,7 @@ public static class Eps extends StripeObject {
* hypo_bank_burgenland_aktiengesellschaft}, {@code marchfelder_bank}, {@code oberbank_ag},
* {@code raiffeisen_bankengruppe_osterreich}, {@code schoellerbank_ag}, {@code
* sparda_bank_wien}, {@code volksbank_gruppe}, {@code volkskreditbank_ag}, or {@code
- * vr_bank_braunau}.
+ * vr_bank_braunau}
*/
@SerializedName("bank")
String bank;
@@ -2387,6 +2390,13 @@ public static class KakaoPay extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Klarna extends StripeObject {
+ /**
+ * ID of the location that this
+ * transaction's reader is assigned to.
+ */
+ @SerializedName("location")
+ String location;
+
/** The payer details for this transaction. */
@SerializedName("payer_details")
PayerDetails payerDetails;
@@ -2412,6 +2422,13 @@ public static class Klarna extends StripeObject {
@SerializedName("preferred_locale")
String preferredLocale;
+ /**
+ * ID of the reader this
+ * transaction was made on.
+ */
+ @SerializedName("reader")
+ String reader;
+
/**
* For more details about PayerDetails, please refer to the API Reference.
@@ -3247,6 +3264,19 @@ public static class StripeBalance extends StripeObject {
String account;
}
+ /**
+ * For more details about Sunbit, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Sunbit extends StripeObject {
+ /** The Sunbit transaction ID associated with this payment. */
+ @SerializedName("transaction_id")
+ String transactionId;
+ }
+
/**
* For more details about Swish, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java
index b86ad441e98..fa0e1e9e228 100644
--- a/src/main/java/com/stripe/model/PaymentIntent.java
+++ b/src/main/java/com/stripe/model/PaymentIntent.java
@@ -2007,6 +2007,9 @@ public static class NextAction extends StripeObject {
@SerializedName("display_bank_transfer_instructions")
DisplayBankTransferInstructions displayBankTransferInstructions;
+ @SerializedName("klarna_display_qr_code")
+ KlarnaDisplayQrCode klarnaDisplayQrCode;
+
@SerializedName("konbini_display_details")
KonbiniDisplayDetails konbiniDisplayDetails;
@@ -2468,6 +2471,31 @@ public static class Zengin extends StripeObject {
}
}
+ /**
+ * For more details about KlarnaDisplayQrCode, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class KlarnaDisplayQrCode extends StripeObject {
+ /** The data being used to generate QR code. */
+ @SerializedName("data")
+ String data;
+
+ /** The timestamp at which the QR code expires. */
+ @SerializedName("expires_at")
+ Long expiresAt;
+
+ /** The image_url_png string used to render QR code. */
+ @SerializedName("image_url_png")
+ String imageUrlPng;
+
+ /** The image_url_svg string used to render QR code. */
+ @SerializedName("image_url_svg")
+ String imageUrlSvg;
+ }
+
/**
* For more details about KonbiniDisplayDetails, please refer to the API Reference.
diff --git a/src/main/java/com/stripe/model/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java
index 19fd1e33b53..299370667a9 100644
--- a/src/main/java/com/stripe/model/PaymentMethod.java
+++ b/src/main/java/com/stripe/model/PaymentMethod.java
@@ -261,6 +261,10 @@ public class PaymentMethod extends ApiResource implements HasId, MetadataStore
API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Sunbit extends StripeObject {}
+
/**
* For more details about Swish, please refer to the API
* Reference.
@@ -2921,6 +2938,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(shopeepay, responseGetter);
trySetResponseGetter(sofort, responseGetter);
trySetResponseGetter(stripeBalance, responseGetter);
+ trySetResponseGetter(sunbit, responseGetter);
trySetResponseGetter(swish, responseGetter);
trySetResponseGetter(twint, responseGetter);
trySetResponseGetter(upi, responseGetter);
diff --git a/src/main/java/com/stripe/model/PaymentMethodConfiguration.java b/src/main/java/com/stripe/model/PaymentMethodConfiguration.java
index 664a2223199..c2fcd069672 100644
--- a/src/main/java/com/stripe/model/PaymentMethodConfiguration.java
+++ b/src/main/java/com/stripe/model/PaymentMethodConfiguration.java
@@ -254,6 +254,9 @@ public class PaymentMethodConfiguration extends ApiResource implements HasId {
@SerializedName("sofort")
Sofort sofort;
+ @SerializedName("sunbit")
+ Sunbit sunbit;
+
@SerializedName("swish")
Swish swish;
@@ -3180,6 +3183,57 @@ public static class DisplayPreference extends StripeObject {
}
}
+ /**
+ * For more details about Sunbit, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Sunbit 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 Swish, please refer to the API
* Reference.
@@ -3543,6 +3597,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(sepaDebit, responseGetter);
trySetResponseGetter(shopeepay, responseGetter);
trySetResponseGetter(sofort, responseGetter);
+ trySetResponseGetter(sunbit, responseGetter);
trySetResponseGetter(swish, responseGetter);
trySetResponseGetter(twint, responseGetter);
trySetResponseGetter(upi, responseGetter);
diff --git a/src/main/java/com/stripe/model/PaymentRecord.java b/src/main/java/com/stripe/model/PaymentRecord.java
index d8300894e48..63824be6518 100644
--- a/src/main/java/com/stripe/model/PaymentRecord.java
+++ b/src/main/java/com/stripe/model/PaymentRecord.java
@@ -877,6 +877,9 @@ public static class PaymentMethodDetails extends StripeObject {
@SerializedName("stripe_balance")
StripeBalance stripeBalance;
+ @SerializedName("sunbit")
+ Sunbit sunbit;
+
@SerializedName("swish")
Swish swish;
@@ -2155,7 +2158,7 @@ public static class Crypto extends StripeObject {
/**
* The token currency that the transaction was sent with.
*
- *
One of {@code usdc}, {@code usdg}, or {@code usdp}.
+ *
One of {@code phantom_cash}, {@code usdc}, {@code usdg}, {@code usdp}, or {@code usdt}.
*/
@SerializedName("token_currency")
String tokenCurrency;
@@ -2214,7 +2217,7 @@ public static class Eps extends StripeObject {
* hypo_bank_burgenland_aktiengesellschaft}, {@code marchfelder_bank}, {@code oberbank_ag},
* {@code raiffeisen_bankengruppe_osterreich}, {@code schoellerbank_ag}, {@code
* sparda_bank_wien}, {@code volksbank_gruppe}, {@code volkskreditbank_ag}, or {@code
- * vr_bank_braunau}.
+ * vr_bank_braunau}
*/
@SerializedName("bank")
String bank;
@@ -2689,6 +2692,13 @@ public static class KakaoPay extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Klarna extends StripeObject {
+ /**
+ * ID of the location that this
+ * transaction's reader is assigned to.
+ */
+ @SerializedName("location")
+ String location;
+
/** The payer details for this transaction. */
@SerializedName("payer_details")
PayerDetails payerDetails;
@@ -2714,6 +2724,13 @@ public static class Klarna extends StripeObject {
@SerializedName("preferred_locale")
String preferredLocale;
+ /**
+ * ID of the reader this
+ * transaction was made on.
+ */
+ @SerializedName("reader")
+ String reader;
+
/**
* For more details about PayerDetails, please refer to the API Reference.
@@ -3548,6 +3565,19 @@ public static class StripeBalance extends StripeObject {
String account;
}
+ /**
+ * For more details about Sunbit, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Sunbit extends StripeObject {
+ /** The Sunbit transaction ID associated with this payment. */
+ @SerializedName("transaction_id")
+ String transactionId;
+ }
+
/**
* For more details about Swish, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/model/Product.java b/src/main/java/com/stripe/model/Product.java
index 1981d9a2989..efc5150502d 100644
--- a/src/main/java/com/stripe/model/Product.java
+++ b/src/main/java/com/stripe/model/Product.java
@@ -134,6 +134,13 @@ public class Product extends ApiResource implements HasId, MetadataStore taxCode;
+ /**
+ * Tax details for this product, including the tax
+ * code and an optional performance location.
+ */
+ @SerializedName("tax_details")
+ TaxDetails taxDetails;
+
/**
* The type of the product. The product is either of type {@code good}, which is eligible for use
* with Orders and SKUs, or {@code service}, which is eligible for use with Subscriptions and
@@ -510,11 +517,26 @@ public static class PackageDimensions extends StripeObject {
BigDecimal width;
}
+ /** Tax details contains information about the data that was used to calculate taxes. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class TaxDetails extends StripeObject {
+ /** The performance location. */
+ @SerializedName("performance_location")
+ String performanceLocation;
+
+ /** A tax code ID. */
+ @SerializedName("tax_code")
+ String taxCode;
+ }
+
@Override
public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
trySetResponseGetter(defaultPrice, responseGetter);
trySetResponseGetter(packageDimensions, responseGetter);
trySetResponseGetter(taxCode, responseGetter);
+ trySetResponseGetter(taxDetails, responseGetter);
}
}
diff --git a/src/main/java/com/stripe/model/QuotePreviewInvoice.java b/src/main/java/com/stripe/model/QuotePreviewInvoice.java
index 6e4b93cd64d..dfb6e6a93fc 100644
--- a/src/main/java/com/stripe/model/QuotePreviewInvoice.java
+++ b/src/main/java/com/stripe/model/QuotePreviewInvoice.java
@@ -436,8 +436,7 @@ public class QuotePreviewInvoice extends ApiResource implements HasId {
InvoicePaymentCollection payments;
/**
- * End of the usage period during which invoice items were added to this invoice. This looks back
- * one period for a subscription invoice. Use the line item
* period to get the service period for each price.
*/
@@ -445,8 +444,7 @@ public class QuotePreviewInvoice extends ApiResource implements HasId {
Long periodEnd;
/**
- * Start of the usage period during which invoice items were added to this invoice. This looks
- * back one period for a subscription invoice. Use the line item
* period to get the service period for each price.
*/
@@ -1082,20 +1080,21 @@ public static class CustomerTaxId extends StripeObject {
* {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code
* no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen},
* {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code pl_nip},
- * {@code tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid},
- * {@code li_vat}, {@code lk_vat}, {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code
- * ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code
- * my_sst}, {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp},
- * {@code my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code
- * bg_uic}, {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin},
- * {@code ph_tin}, {@code al_tin}, {@code bh_vat}, {@code kz_bin}, {@code ng_tin}, {@code
- * om_vat}, {@code de_stn}, {@code ch_uid}, {@code tz_vat}, {@code uz_vat}, {@code uz_tin},
- * {@code md_vat}, {@code ma_vat}, {@code by_tin}, {@code ao_tin}, {@code bs_tin}, {@code
- * bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code ba_tin},
- * {@code gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, {@code
- * np_pan}, {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, {@code aw_tin},
- * {@code az_tin}, {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code kg_tin}, {@code
- * la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code unknown}.
+ * {@code it_cf}, {@code fo_vat}, {@code gi_tin}, {@code py_ruc}, {@code tw_vat}, {@code
+ * th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code li_vat}, {@code
+ * lk_vat}, {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst},
+ * {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst},
+ * {@code ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code
+ * il_vat}, {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin},
+ * {@code si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code
+ * al_tin}, {@code bh_vat}, {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn},
+ * {@code ch_uid}, {@code tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code
+ * ma_vat}, {@code by_tin}, {@code ao_tin}, {@code bs_tin}, {@code bb_tin}, {@code cd_nif},
+ * {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code ba_tin}, {@code gn_nif}, {@code
+ * mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, {@code np_pan}, {@code tj_tin},
+ * {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, {@code aw_tin}, {@code az_tin}, {@code
+ * bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code kg_tin}, {@code la_tin}, {@code cm_niu},
+ * {@code cv_nif}, {@code bf_ifu}, or {@code unknown}.
*/
@SerializedName("type")
String type;
@@ -1352,6 +1351,13 @@ public static class PaymentMethodOptions extends StripeObject {
@SerializedName("bancontact")
Bancontact bancontact;
+ /**
+ * If paying by {@code blik}, this sub-hash contains details about the Blik payment method
+ * options to pass to the invoice’s PaymentIntent.
+ */
+ @SerializedName("blik")
+ Blik blik;
+
/**
* If paying by {@code card}, this sub-hash contains details about the Card payment method
* options to pass to the invoice’s PaymentIntent.
@@ -1470,6 +1476,15 @@ public static class Bancontact extends StripeObject {
String preferredLanguage;
}
+ /**
+ * For more details about Blik, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Blik extends StripeObject {}
+
/**
* For more details about Card, please refer to the API
* Reference.
@@ -2204,7 +2219,27 @@ public static class TotalTax extends StripeObject {
public static class TaxRateDetails extends StripeObject {
/** ID of the tax rate. */
@SerializedName("tax_rate")
- String taxRate;
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField taxRate;
+
+ /** Get ID of expandable {@code taxRate} object. */
+ public String getTaxRate() {
+ return (this.taxRate != null) ? this.taxRate.getId() : null;
+ }
+
+ public void setTaxRate(String id) {
+ this.taxRate = ApiResource.setExpandableFieldId(id, this.taxRate);
+ }
+
+ /** Get expanded {@code taxRate}. */
+ public TaxRate getTaxRateObject() {
+ return (this.taxRate != null) ? this.taxRate.getExpanded() : null;
+ }
+
+ public void setTaxRateObject(TaxRate expandableObject) {
+ this.taxRate = new ExpandableField(expandableObject.getId(), expandableObject);
+ }
}
}
diff --git a/src/main/java/com/stripe/model/SetupAttempt.java b/src/main/java/com/stripe/model/SetupAttempt.java
index d5e48d50c94..c9875a48562 100644
--- a/src/main/java/com/stripe/model/SetupAttempt.java
+++ b/src/main/java/com/stripe/model/SetupAttempt.java
@@ -583,6 +583,10 @@ public static class Card extends StripeObject {
@SerializedName("last4")
String last4;
+ /** True if this payment was marked as MOTO and out of scope for SCA. */
+ @SerializedName("moto")
+ Boolean moto;
+
/**
* Identifies which network this charge was processed on. Can be {@code amex}, {@code
* cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac},
diff --git a/src/main/java/com/stripe/model/StripeError.java b/src/main/java/com/stripe/model/StripeError.java
index e3e7ce268bb..616826275a2 100644
--- a/src/main/java/com/stripe/model/StripeError.java
+++ b/src/main/java/com/stripe/model/StripeError.java
@@ -30,16 +30,16 @@ public class StripeError extends StripeObject {
* account_error_country_change_requires_additional_steps}, {@code account_information_mismatch},
* {@code account_invalid}, {@code account_number_invalid}, {@code
* account_token_required_for_v2_account}, {@code acss_debit_session_incomplete}, {@code
- * alipay_upgrade_required}, {@code amount_too_large}, {@code amount_too_small}, {@code
- * api_key_expired}, {@code application_fees_not_allowed}, {@code authentication_required}, {@code
- * balance_insufficient}, {@code balance_invalid_parameter}, {@code
- * bank_account_bad_routing_numbers}, {@code bank_account_declined}, {@code bank_account_exists},
- * {@code bank_account_restricted}, {@code bank_account_unusable}, {@code
- * bank_account_unverified}, {@code bank_account_verification_failed}, {@code
- * billing_invalid_mandate}, {@code bitcoin_upgrade_required}, {@code
- * capture_charge_authorization_expired}, {@code capture_unauthorized_payment}, {@code
- * card_decline_rate_limit_exceeded}, {@code card_declined}, {@code
- * cardholder_phone_number_required}, {@code charge_already_captured}, {@code
+ * action_blocked}, {@code alipay_upgrade_required}, {@code amount_too_large}, {@code
+ * amount_too_small}, {@code api_key_expired}, {@code application_fees_not_allowed}, {@code
+ * approval_required}, {@code authentication_required}, {@code balance_insufficient}, {@code
+ * balance_invalid_parameter}, {@code bank_account_bad_routing_numbers}, {@code
+ * bank_account_declined}, {@code bank_account_exists}, {@code bank_account_restricted}, {@code
+ * bank_account_unusable}, {@code bank_account_unverified}, {@code
+ * bank_account_verification_failed}, {@code billing_invalid_mandate}, {@code
+ * bitcoin_upgrade_required}, {@code capture_charge_authorization_expired}, {@code
+ * capture_unauthorized_payment}, {@code card_decline_rate_limit_exceeded}, {@code card_declined},
+ * {@code cardholder_phone_number_required}, {@code charge_already_captured}, {@code
* charge_already_refunded}, {@code charge_disputed}, {@code charge_exceeds_source_limit}, {@code
* charge_exceeds_transaction_limit}, {@code charge_expired_for_capture}, {@code
* charge_invalid_parameter}, {@code charge_not_refundable}, {@code clearing_code_unsupported},
diff --git a/src/main/java/com/stripe/model/Subscription.java b/src/main/java/com/stripe/model/Subscription.java
index e6c7e18685e..1ae6b2d3014 100644
--- a/src/main/java/com/stripe/model/Subscription.java
+++ b/src/main/java/com/stripe/model/Subscription.java
@@ -923,8 +923,10 @@ public Subscription migrate(SubscriptionMigrateParams params, RequestOptions opt
* Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor
* and creating prorations. If no resumption invoice is generated, the subscription becomes {@code
* active} immediately. If a resumption invoice is generated, the subscription remains {@code
- * paused} until the invoice is paid or marked uncollectible. If the invoice is not paid by the
- * expiration date, it is voided and the subscription remains {@code paused}.
+ * paused} until the invoice is paid or marked uncollectible. If the invoice isn’t paid by the
+ * expiration date, it is voided and the subscription remains {@code paused}. You can only resume
+ * subscriptions with {@code collection_method} set to {@code charge_automatically}. {@code
+ * send_invoice} subscriptions are not supported.
*/
public Subscription resume() throws StripeException {
return resume((Map) null, (RequestOptions) null);
@@ -934,8 +936,10 @@ public Subscription resume() throws StripeException {
* Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor
* and creating prorations. If no resumption invoice is generated, the subscription becomes {@code
* active} immediately. If a resumption invoice is generated, the subscription remains {@code
- * paused} until the invoice is paid or marked uncollectible. If the invoice is not paid by the
- * expiration date, it is voided and the subscription remains {@code paused}.
+ * paused} until the invoice is paid or marked uncollectible. If the invoice isn’t paid by the
+ * expiration date, it is voided and the subscription remains {@code paused}. You can only resume
+ * subscriptions with {@code collection_method} set to {@code charge_automatically}. {@code
+ * send_invoice} subscriptions are not supported.
*/
public Subscription resume(RequestOptions options) throws StripeException {
return resume((Map) null, options);
@@ -945,8 +949,10 @@ public Subscription resume(RequestOptions options) throws StripeException {
* Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor
* and creating prorations. If no resumption invoice is generated, the subscription becomes {@code
* active} immediately. If a resumption invoice is generated, the subscription remains {@code
- * paused} until the invoice is paid or marked uncollectible. If the invoice is not paid by the
- * expiration date, it is voided and the subscription remains {@code paused}.
+ * paused} until the invoice is paid or marked uncollectible. If the invoice isn’t paid by the
+ * expiration date, it is voided and the subscription remains {@code paused}. You can only resume
+ * subscriptions with {@code collection_method} set to {@code charge_automatically}. {@code
+ * send_invoice} subscriptions are not supported.
*/
public Subscription resume(Map params) throws StripeException {
return resume(params, (RequestOptions) null);
@@ -956,8 +962,10 @@ public Subscription resume(Map params) throws StripeException {
* Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor
* and creating prorations. If no resumption invoice is generated, the subscription becomes {@code
* active} immediately. If a resumption invoice is generated, the subscription remains {@code
- * paused} until the invoice is paid or marked uncollectible. If the invoice is not paid by the
- * expiration date, it is voided and the subscription remains {@code paused}.
+ * paused} until the invoice is paid or marked uncollectible. If the invoice isn’t paid by the
+ * expiration date, it is voided and the subscription remains {@code paused}. You can only resume
+ * subscriptions with {@code collection_method} set to {@code charge_automatically}. {@code
+ * send_invoice} subscriptions are not supported.
*/
public Subscription resume(Map params, RequestOptions options)
throws StripeException {
@@ -972,8 +980,10 @@ public Subscription resume(Map params, RequestOptions options)
* Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor
* and creating prorations. If no resumption invoice is generated, the subscription becomes {@code
* active} immediately. If a resumption invoice is generated, the subscription remains {@code
- * paused} until the invoice is paid or marked uncollectible. If the invoice is not paid by the
- * expiration date, it is voided and the subscription remains {@code paused}.
+ * paused} until the invoice is paid or marked uncollectible. If the invoice isn’t paid by the
+ * expiration date, it is voided and the subscription remains {@code paused}. You can only resume
+ * subscriptions with {@code collection_method} set to {@code charge_automatically}. {@code
+ * send_invoice} subscriptions are not supported.
*/
public Subscription resume(SubscriptionResumeParams params) throws StripeException {
return resume(params, (RequestOptions) null);
@@ -983,8 +993,10 @@ public Subscription resume(SubscriptionResumeParams params) throws StripeExcepti
* Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor
* and creating prorations. If no resumption invoice is generated, the subscription becomes {@code
* active} immediately. If a resumption invoice is generated, the subscription remains {@code
- * paused} until the invoice is paid or marked uncollectible. If the invoice is not paid by the
- * expiration date, it is voided and the subscription remains {@code paused}.
+ * paused} until the invoice is paid or marked uncollectible. If the invoice isn’t paid by the
+ * expiration date, it is voided and the subscription remains {@code paused}. You can only resume
+ * subscriptions with {@code collection_method} set to {@code charge_automatically}. {@code
+ * send_invoice} subscriptions are not supported.
*/
public Subscription resume(SubscriptionResumeParams params, RequestOptions options)
throws StripeException {
@@ -1865,6 +1877,13 @@ public static class PaymentMethodOptions extends StripeObject {
@SerializedName("bancontact")
Bancontact bancontact;
+ /**
+ * This sub-hash contains details about the Blik payment method options to pass to invoices
+ * created by the subscription.
+ */
+ @SerializedName("blik")
+ Blik blik;
+
/**
* This sub-hash contains details about the Card payment method options to pass to invoices
* created by the subscription.
@@ -1983,6 +2002,34 @@ public static class Bancontact extends StripeObject {
String preferredLanguage;
}
+ /**
+ * For more details about Blik, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Blik extends StripeObject {
+ @SerializedName("mandate_options")
+ MandateOptions mandateOptions;
+
+ /**
+ * For more details about MandateOptions, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MandateOptions extends StripeObject {
+ /**
+ * Date when the mandate expires and no further payments will be charged. If not provided,
+ * the mandate will be set to be indefinite.
+ */
+ @SerializedName("expires_after")
+ Long expiresAfter;
+ }
+ }
+
/**
* For more details about Card, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/model/TaxId.java b/src/main/java/com/stripe/model/TaxId.java
index d21285fdced..bc8c5cec232 100644
--- a/src/main/java/com/stripe/model/TaxId.java
+++ b/src/main/java/com/stripe/model/TaxId.java
@@ -85,19 +85,19 @@ public class TaxId extends ApiResource implements HasId {
* ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@code ch_uid}, {@code ch_vat}, {@code cl_tin},
* {@code cm_niu}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code cv_nif}, {@code de_stn},
* {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code et_tin}, {@code
- * eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code gn_nif}, {@code hk_br},
- * {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code
- * is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kg_tin}, {@code
- * kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code
- * lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code
- * mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code
- * no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin},
- * {@code pl_nip}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat},
- * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code
- * sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code
- * ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code
- * ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin}. Note that some
- * legacy tax IDs have type {@code unknown}
+ * eu_oss_vat}, {@code eu_vat}, {@code fo_vat}, {@code gb_vat}, {@code ge_vat}, {@code gi_tin},
+ * {@code gn_nif}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat},
+ * {@code in_gst}, {@code is_vat}, {@code it_cf}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn},
+ * {@code ke_pin}, {@code kg_tin}, {@code kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code la_tin},
+ * {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib},
+ * {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst},
+ * {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code
+ * om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@code py_ruc}, {@code ro_tin}, {@code
+ * rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code
+ * si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code tj_tin},
+ * {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein},
+ * {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat},
+ * {@code zm_tin}, or {@code zw_tin}. Note that some legacy tax IDs have type {@code unknown}
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java
index 6c145b68b96..347c199cc9b 100644
--- a/src/main/java/com/stripe/model/checkout/Session.java
+++ b/src/main/java/com/stripe/model/checkout/Session.java
@@ -1206,21 +1206,21 @@ public static class TaxId extends StripeObject {
* {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code
* no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen},
* {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code
- * pl_nip}, {@code tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn},
- * {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code my_itn}, {@code us_ein}, {@code
- * kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code
- * ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code sa_vat},
- * {@code id_npwp}, {@code my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code
- * is_vat}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code tr_tin},
- * {@code eg_tin}, {@code ph_tin}, {@code al_tin}, {@code bh_vat}, {@code kz_bin}, {@code
- * ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, {@code tz_vat}, {@code uz_vat},
- * {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, {@code ao_tin}, {@code
- * bs_tin}, {@code bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin},
- * {@code ba_tin}, {@code gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code
- * am_tin}, {@code np_pan}, {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin},
- * {@code aw_tin}, {@code az_tin}, {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code
- * kg_tin}, {@code la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code
- * unknown}.
+ * pl_nip}, {@code it_cf}, {@code fo_vat}, {@code gi_tin}, {@code py_ruc}, {@code tw_vat},
+ * {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code
+ * li_vat}, {@code lk_vat}, {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst},
+ * {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code
+ * my_sst}, {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp},
+ * {@code my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code
+ * bg_uic}, {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin},
+ * {@code ph_tin}, {@code al_tin}, {@code bh_vat}, {@code kz_bin}, {@code ng_tin}, {@code
+ * om_vat}, {@code de_stn}, {@code ch_uid}, {@code tz_vat}, {@code uz_vat}, {@code uz_tin},
+ * {@code md_vat}, {@code ma_vat}, {@code by_tin}, {@code ao_tin}, {@code bs_tin}, {@code
+ * bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code ba_tin},
+ * {@code gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, {@code
+ * np_pan}, {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, {@code aw_tin},
+ * {@code az_tin}, {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code kg_tin}, {@code
+ * la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code unknown}.
*/
@SerializedName("type")
String type;
@@ -1645,21 +1645,21 @@ public static class TaxId extends StripeObject {
* {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code
* no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen},
* {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code
- * pl_nip}, {@code tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn},
- * {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code my_itn}, {@code us_ein}, {@code
- * kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code
- * ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code sa_vat},
- * {@code id_npwp}, {@code my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code
- * is_vat}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code tr_tin},
- * {@code eg_tin}, {@code ph_tin}, {@code al_tin}, {@code bh_vat}, {@code kz_bin}, {@code
- * ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, {@code tz_vat}, {@code uz_vat},
- * {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, {@code ao_tin}, {@code
- * bs_tin}, {@code bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin},
- * {@code ba_tin}, {@code gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code
- * am_tin}, {@code np_pan}, {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin},
- * {@code aw_tin}, {@code az_tin}, {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code
- * kg_tin}, {@code la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code
- * unknown}.
+ * pl_nip}, {@code it_cf}, {@code fo_vat}, {@code gi_tin}, {@code py_ruc}, {@code tw_vat},
+ * {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code
+ * li_vat}, {@code lk_vat}, {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst},
+ * {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code
+ * my_sst}, {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp},
+ * {@code my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code
+ * bg_uic}, {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin},
+ * {@code ph_tin}, {@code al_tin}, {@code bh_vat}, {@code kz_bin}, {@code ng_tin}, {@code
+ * om_vat}, {@code de_stn}, {@code ch_uid}, {@code tz_vat}, {@code uz_vat}, {@code uz_tin},
+ * {@code md_vat}, {@code ma_vat}, {@code by_tin}, {@code ao_tin}, {@code bs_tin}, {@code
+ * bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code ba_tin},
+ * {@code gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, {@code
+ * np_pan}, {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, {@code aw_tin},
+ * {@code az_tin}, {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code kg_tin}, {@code
+ * la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code unknown}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/issuing/Authorization.java b/src/main/java/com/stripe/model/issuing/Authorization.java
index de680af9e89..df2bb695fb2 100644
--- a/src/main/java/com/stripe/model/issuing/Authorization.java
+++ b/src/main/java/com/stripe/model/issuing/Authorization.java
@@ -87,6 +87,14 @@ public class Authorization extends ApiResource
@SerializedName("card")
Card card;
+ /**
+ * Whether the card was present at the point of sale for the authorization.
+ *
+ * One of {@code not_present}, or {@code present}.
+ */
+ @SerializedName("card_presence")
+ String cardPresence;
+
/** The cardholder to whom this authorization belongs. */
@SerializedName("cardholder")
@Getter(lombok.AccessLevel.NONE)
diff --git a/src/main/java/com/stripe/model/issuing/Card.java b/src/main/java/com/stripe/model/issuing/Card.java
index e66d781f222..ee0bdee582c 100644
--- a/src/main/java/com/stripe/model/issuing/Card.java
+++ b/src/main/java/com/stripe/model/issuing/Card.java
@@ -44,7 +44,7 @@ public class Card extends ApiResource implements HasId, MetadataStore {
/**
* The reason why the card was canceled.
*
- * One of {@code design_rejected}, {@code lost}, or {@code stolen}.
+ *
One of {@code design_rejected}, {@code fulfillment_error}, {@code lost}, or {@code stolen}.
*/
@SerializedName("cancellation_reason")
String cancellationReason;
@@ -175,7 +175,8 @@ public class Card extends ApiResource implements HasId, MetadataStore {
/**
* The reason why the previous card needed to be replaced.
*
- * One of {@code damaged}, {@code expired}, {@code lost}, or {@code stolen}.
+ *
One of {@code damaged}, {@code expired}, {@code fulfillment_error}, {@code lost}, or {@code
+ * stolen}.
*/
@SerializedName("replacement_reason")
String replacementReason;
@@ -626,6 +627,14 @@ public static class Customs extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class SpendingControls extends StripeObject {
+ /**
+ * Array of card presence statuses from which authorizations will be allowed. Possible options
+ * are {@code present}, {@code not_present}. All other statuses will be blocked. Cannot be set
+ * with {@code blocked_card_presences}. Provide an empty value to unset this control.
+ */
+ @SerializedName("allowed_card_presences")
+ List allowedCardPresences;
+
/**
* Array of strings containing categories
@@ -644,6 +653,14 @@ public static class SpendingControls extends StripeObject {
@SerializedName("allowed_merchant_countries")
List allowedMerchantCountries;
+ /**
+ * Array of card presence statuses from which authorizations will be declined. Possible options
+ * are {@code present}, {@code not_present}. Cannot be set with {@code allowed_card_presences}.
+ * Provide an empty value to unset this control.
+ */
+ @SerializedName("blocked_card_presences")
+ List blockedCardPresences;
+
/**
* Array of strings containing categories
diff --git a/src/main/java/com/stripe/model/issuing/Cardholder.java b/src/main/java/com/stripe/model/issuing/Cardholder.java
index d7890fa03ba..89f3263bfed 100644
--- a/src/main/java/com/stripe/model/issuing/Cardholder.java
+++ b/src/main/java/com/stripe/model/issuing/Cardholder.java
@@ -533,6 +533,14 @@ public static class Requirements extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class SpendingControls extends StripeObject {
+ /**
+ * Array of card presence statuses from which authorizations will be allowed. Possible options
+ * are {@code present}, {@code not_present}. All other statuses will be blocked. Cannot be set
+ * with {@code blocked_card_presences}. Provide an empty value to unset this control.
+ */
+ @SerializedName("allowed_card_presences")
+ List allowedCardPresences;
+
/**
* Array of strings containing categories
@@ -551,6 +559,14 @@ public static class SpendingControls extends StripeObject {
@SerializedName("allowed_merchant_countries")
List allowedMerchantCountries;
+ /**
+ * Array of card presence statuses from which authorizations will be declined. Possible options
+ * are {@code present}, {@code not_present}. Cannot be set with {@code allowed_card_presences}.
+ * Provide an empty value to unset this control.
+ */
+ @SerializedName("blocked_card_presences")
+ List blockedCardPresences;
+
/**
* Array of strings containing categories
diff --git a/src/main/java/com/stripe/model/privacy/RedactionJob.java b/src/main/java/com/stripe/model/privacy/RedactionJob.java
index d9cfd6f547e..cc99ba50f81 100644
--- a/src/main/java/com/stripe/model/privacy/RedactionJob.java
+++ b/src/main/java/com/stripe/model/privacy/RedactionJob.java
@@ -79,6 +79,13 @@ public class RedactionJob extends ApiResource implements HasId {
@SerializedName("validation_behavior")
String validationBehavior;
+ /**
+ * The first 10 validation errors for the current validation attempt. Use the validation errors
+ * list endpoint to paginate through the full list.
+ */
+ @SerializedName("validation_errors")
+ RedactionJobValidationErrorCollection validationErrors;
+
/**
* You can cancel a redaction job when it’s in one of these statuses: {@code ready}, {@code
* failed}.
@@ -579,5 +586,6 @@ public static class Objects extends StripeObject {
public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
trySetResponseGetter(objects, responseGetter);
+ trySetResponseGetter(validationErrors, responseGetter);
}
}
diff --git a/src/main/java/com/stripe/model/radar/PaymentEvaluation.java b/src/main/java/com/stripe/model/radar/PaymentEvaluation.java
index bc881239003..22d86cbe766 100644
--- a/src/main/java/com/stripe/model/radar/PaymentEvaluation.java
+++ b/src/main/java/com/stripe/model/radar/PaymentEvaluation.java
@@ -87,8 +87,8 @@ public class PaymentEvaluation extends ApiResource implements HasId {
PaymentDetails paymentDetails;
/**
- * Recommended action based on the score of the fraudulent_payment signal. Possible values are
- * {@code block} and {@code continue}.
+ * Recommended action based on the score of the {@code fraudulent_payment} signal. Possible values
+ * are {@code block} and {@code continue}.
*
* One of {@code block}, or {@code continue}.
*/
@@ -752,15 +752,17 @@ public static class FraudulentPayment extends StripeObject {
/**
* Risk level of this signal, based on the score.
*
- *
One of {@code elevated}, {@code highest}, or {@code normal}.
+ *
One of {@code elevated}, {@code highest}, {@code low}, {@code normal}, {@code
+ * not_assessed}, or {@code unknown}.
*/
@SerializedName("risk_level")
String riskLevel;
/**
- * Score for this insight. Possible values for evaluated payments are -1 and any value between
- * 0 and 100. The value is returned with two decimal places. A score of -1 indicates a test
- * integration and higher scores indicate a higher likelihood of the signal being true.
+ * Score for this signal. Possible values for evaluated payments are between 0 and 100. The
+ * value is returned with two decimal places and higher scores indicate a higher likelihood of
+ * the signal being true. A score of -1 is returned when a model evaluation was not performed,
+ * such as requests from incomplete integrations.
*/
@SerializedName("score")
BigDecimal score;
diff --git a/src/main/java/com/stripe/model/radar/ValueList.java b/src/main/java/com/stripe/model/radar/ValueList.java
index 0e560494d20..44a2b5eebe9 100644
--- a/src/main/java/com/stripe/model/radar/ValueList.java
+++ b/src/main/java/com/stripe/model/radar/ValueList.java
@@ -54,8 +54,8 @@ public class ValueList extends ApiResource implements HasId, MetadataStoreOne of {@code consumed}, {@code expired}, {@code resolved}, or {@code revoked}.
+ */
+ @SerializedName("deactivated_reason")
+ String deactivatedReason;
+
+ /** Unique identifier for the object. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /**
+ * If the object exists in live mode, the value is {@code true}. If the object exists in test
+ * mode, the value is {@code false}.
+ */
+ @SerializedName("livemode")
+ Boolean livemode;
+
+ /**
+ * String representing the object's type. Objects of the same type share the same value.
+ *
+ * Equal to {@code shared_payment.granted_token}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /** Details of the PaymentMethod that was shared via this token. */
+ @SerializedName("payment_method_details")
+ PaymentMethodDetails paymentMethodDetails;
+
+ /** Risk details of the SharedPaymentGrantedToken. */
+ @SerializedName("risk_details")
+ RiskDetails riskDetails;
+
+ /** Metadata about the SharedPaymentGrantedToken. */
+ @SerializedName("shared_metadata")
+ Map sharedMetadata;
+
+ /** Some details about how the SharedPaymentGrantedToken has been used already. */
+ @SerializedName("usage_details")
+ UsageDetails usageDetails;
+
+ /** Limits on how this SharedPaymentGrantedToken can be used. */
+ @SerializedName("usage_limits")
+ UsageLimits usageLimits;
+
+ /** Retrieves an existing SharedPaymentGrantedToken object. */
+ public static GrantedToken retrieve(String sharedPaymentGrantedToken) throws StripeException {
+ return retrieve(sharedPaymentGrantedToken, (Map) null, (RequestOptions) null);
+ }
+
+ /** Retrieves an existing SharedPaymentGrantedToken object. */
+ public static GrantedToken retrieve(String sharedPaymentGrantedToken, RequestOptions options)
+ throws StripeException {
+ return retrieve(sharedPaymentGrantedToken, (Map) null, options);
+ }
+
+ /** Retrieves an existing SharedPaymentGrantedToken object. */
+ public static GrantedToken retrieve(
+ String sharedPaymentGrantedToken, Map params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/shared_payment/granted_tokens/%s",
+ ApiResource.urlEncodeId(sharedPaymentGrantedToken));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
+ return getGlobalResponseGetter().request(request, GrantedToken.class);
+ }
+
+ /** Retrieves an existing SharedPaymentGrantedToken object. */
+ public static GrantedToken retrieve(
+ String sharedPaymentGrantedToken, GrantedTokenRetrieveParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/shared_payment/granted_tokens/%s",
+ ApiResource.urlEncodeId(sharedPaymentGrantedToken));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, GrantedToken.class);
+ }
+
+ /**
+ * For more details about AgentDetails, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AgentDetails extends StripeObject {
+ /** The Stripe Profile ID of the agent that issued this SharedPaymentGrantedToken. */
+ @SerializedName("network_business_profile")
+ String networkBusinessProfile;
+ }
+
+ /** Details of the PaymentMethod that was used to create the SharedPaymentGrantedToken. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PaymentMethodDetails extends StripeObject {
+ @SerializedName("acss_debit")
+ AcssDebit acssDebit;
+
+ @SerializedName("affirm")
+ Affirm affirm;
+
+ @SerializedName("afterpay_clearpay")
+ AfterpayClearpay afterpayClearpay;
+
+ @SerializedName("alipay")
+ Alipay alipay;
+
+ @SerializedName("alma")
+ Alma alma;
+
+ @SerializedName("amazon_pay")
+ AmazonPay amazonPay;
+
+ @SerializedName("au_becs_debit")
+ AuBecsDebit auBecsDebit;
+
+ @SerializedName("bacs_debit")
+ BacsDebit bacsDebit;
+
+ @SerializedName("bancontact")
+ Bancontact bancontact;
+
+ @SerializedName("billie")
+ Billie billie;
+
+ /**
+ * Billing information associated with the PaymentMethod that may be used or required by
+ * particular types of payment methods.
+ */
+ @SerializedName("billing_details")
+ BillingDetails billingDetails;
+
+ @SerializedName("blik")
+ Blik blik;
+
+ @SerializedName("boleto")
+ Boleto boleto;
+
+ @SerializedName("card")
+ Card card;
+
+ @SerializedName("card_present")
+ CardPresent cardPresent;
+
+ @SerializedName("cashapp")
+ Cashapp cashapp;
+
+ @SerializedName("crypto")
+ Crypto crypto;
+
+ @SerializedName("customer_balance")
+ CustomerBalance customerBalance;
+
+ @SerializedName("eps")
+ Eps eps;
+
+ @SerializedName("fpx")
+ Fpx fpx;
+
+ @SerializedName("giropay")
+ Giropay giropay;
+
+ @SerializedName("gopay")
+ Gopay gopay;
+
+ @SerializedName("grabpay")
+ Grabpay grabpay;
+
+ @SerializedName("id_bank_transfer")
+ IdBankTransfer idBankTransfer;
+
+ @SerializedName("ideal")
+ Ideal ideal;
+
+ @SerializedName("interac_present")
+ InteracPresent interacPresent;
+
+ @SerializedName("kakao_pay")
+ KakaoPay kakaoPay;
+
+ @SerializedName("klarna")
+ Klarna klarna;
+
+ @SerializedName("konbini")
+ Konbini konbini;
+
+ @SerializedName("kr_card")
+ KrCard krCard;
+
+ @SerializedName("link")
+ Link link;
+
+ @SerializedName("mb_way")
+ MbWay mbWay;
+
+ @SerializedName("mobilepay")
+ Mobilepay mobilepay;
+
+ @SerializedName("multibanco")
+ Multibanco multibanco;
+
+ @SerializedName("naver_pay")
+ NaverPay naverPay;
+
+ @SerializedName("nz_bank_account")
+ NzBankAccount nzBankAccount;
+
+ @SerializedName("oxxo")
+ Oxxo oxxo;
+
+ @SerializedName("p24")
+ P24 p24;
+
+ @SerializedName("pay_by_bank")
+ PayByBank payByBank;
+
+ @SerializedName("payco")
+ Payco payco;
+
+ @SerializedName("paynow")
+ Paynow paynow;
+
+ @SerializedName("paypal")
+ Paypal paypal;
+
+ @SerializedName("paypay")
+ Paypay paypay;
+
+ @SerializedName("payto")
+ Payto payto;
+
+ @SerializedName("pix")
+ Pix pix;
+
+ @SerializedName("promptpay")
+ Promptpay promptpay;
+
+ @SerializedName("qris")
+ Qris qris;
+
+ @SerializedName("rechnung")
+ Rechnung rechnung;
+
+ @SerializedName("revolut_pay")
+ RevolutPay revolutPay;
+
+ @SerializedName("samsung_pay")
+ SamsungPay samsungPay;
+
+ @SerializedName("satispay")
+ Satispay satispay;
+
+ @SerializedName("sepa_debit")
+ SepaDebit sepaDebit;
+
+ @SerializedName("shopeepay")
+ Shopeepay shopeepay;
+
+ @SerializedName("sofort")
+ Sofort sofort;
+
+ @SerializedName("stripe_balance")
+ StripeBalance stripeBalance;
+
+ @SerializedName("sunbit")
+ Sunbit sunbit;
+
+ @SerializedName("swish")
+ Swish swish;
+
+ @SerializedName("twint")
+ Twint twint;
+
+ /**
+ * The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a
+ * name matching this value. It contains additional information specific to the PaymentMethod
+ * type.
+ *
+ * One of {@code acss_debit}, {@code affirm}, {@code afterpay_clearpay}, {@code alipay},
+ * {@code alma}, {@code amazon_pay}, {@code au_becs_debit}, {@code bacs_debit}, {@code
+ * bancontact}, {@code billie}, {@code blik}, {@code boleto}, {@code card}, {@code
+ * card_present}, {@code cashapp}, {@code crypto}, {@code custom}, {@code customer_balance},
+ * {@code eps}, {@code fpx}, {@code giropay}, {@code gopay}, {@code grabpay}, {@code
+ * id_bank_transfer}, {@code ideal}, {@code interac_present}, {@code kakao_pay}, {@code klarna},
+ * {@code konbini}, {@code kr_card}, {@code link}, {@code mb_way}, {@code mobilepay}, {@code
+ * multibanco}, {@code naver_pay}, {@code nz_bank_account}, {@code oxxo}, {@code p24}, {@code
+ * pay_by_bank}, {@code payco}, {@code paynow}, {@code paypal}, {@code paypay}, {@code payto},
+ * {@code pix}, {@code promptpay}, {@code qris}, {@code rechnung}, {@code revolut_pay}, {@code
+ * samsung_pay}, {@code satispay}, {@code sepa_debit}, {@code shopeepay}, {@code sofort}, {@code
+ * stripe_balance}, {@code sunbit}, {@code swish}, {@code twint}, {@code upi}, {@code
+ * us_bank_account}, {@code wechat_pay}, or {@code zip}.
+ */
+ @SerializedName("type")
+ String type;
+
+ @SerializedName("upi")
+ Upi upi;
+
+ @SerializedName("us_bank_account")
+ UsBankAccount usBankAccount;
+
+ @SerializedName("wechat_pay")
+ WechatPay wechatPay;
+
+ @SerializedName("zip")
+ Zip zip;
+
+ /**
+ * For more details about AcssDebit, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AcssDebit extends StripeObject {
+ /** Account number of the bank account. */
+ @SerializedName("account_number")
+ String accountNumber;
+
+ /** Name of the bank associated with the bank account. */
+ @SerializedName("bank_name")
+ String bankName;
+
+ /**
+ * Uniquely identifies this particular bank account. You can use this attribute to check
+ * whether two bank accounts are the same.
+ */
+ @SerializedName("fingerprint")
+ String fingerprint;
+
+ /** Institution number of the bank account. */
+ @SerializedName("institution_number")
+ String institutionNumber;
+
+ /** Last four digits of the bank account number. */
+ @SerializedName("last4")
+ String last4;
+
+ /** Transit number of the bank account. */
+ @SerializedName("transit_number")
+ String transitNumber;
+ }
+
+ /**
+ * For more details about Affirm, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Affirm extends StripeObject {}
+
+ /**
+ * For more details about AfterpayClearpay, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AfterpayClearpay extends StripeObject {}
+
+ /**
+ * For more details about Alipay, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Alipay extends StripeObject {}
+
+ /**
+ * For more details about Alma, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Alma extends StripeObject {}
+
+ /**
+ * For more details about AmazonPay, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AmazonPay extends StripeObject {}
+
+ /**
+ * For more details about AuBecsDebit, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AuBecsDebit extends StripeObject {
+ /** Six-digit number identifying bank and branch associated with this bank account. */
+ @SerializedName("bsb_number")
+ String bsbNumber;
+
+ /**
+ * Uniquely identifies this particular bank account. You can use this attribute to check
+ * whether two bank accounts are the same.
+ */
+ @SerializedName("fingerprint")
+ String fingerprint;
+
+ /** Last four digits of the bank account number. */
+ @SerializedName("last4")
+ String last4;
+ }
+
+ /**
+ * For more details about BacsDebit, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BacsDebit extends StripeObject {
+ /**
+ * Uniquely identifies this particular bank account. You can use this attribute to check
+ * whether two bank accounts are the same.
+ */
+ @SerializedName("fingerprint")
+ String fingerprint;
+
+ /** Last four digits of the bank account number. */
+ @SerializedName("last4")
+ String last4;
+
+ /** Sort code of the bank account. (e.g., {@code 10-20-30}) */
+ @SerializedName("sort_code")
+ String sortCode;
+ }
+
+ /**
+ * For more details about Bancontact, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Bancontact extends StripeObject {}
+
+ /**
+ * For more details about Billie, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Billie extends StripeObject {}
+
+ /**
+ * For more details about BillingDetails, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BillingDetails extends StripeObject {
+ /** Billing address. */
+ @SerializedName("address")
+ Address address;
+
+ /** Email address. */
+ @SerializedName("email")
+ String email;
+
+ /** Full name. */
+ @SerializedName("name")
+ String name;
+
+ /** Billing phone number (including extension). */
+ @SerializedName("phone")
+ String phone;
+
+ /**
+ * Taxpayer identification number. Used only for transactions between LATAM buyers and
+ * non-LATAM sellers.
+ */
+ @SerializedName("tax_id")
+ String taxId;
+ }
+
+ /**
+ * For more details about Blik, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Blik extends StripeObject {}
+
+ /**
+ * For more details about Boleto, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Boleto extends StripeObject {
+ /** Uniquely identifies the customer tax id (CNPJ or CPF). */
+ @SerializedName("tax_id")
+ String taxId;
+ }
+
+ /**
+ * For more details about Card, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Card extends StripeObject {
+ /**
+ * Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code
+ * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
+ * unionpay}, {@code visa} or {@code unknown}.
+ */
+ @SerializedName("brand")
+ String brand;
+
+ /** Checks on Card address and CVC if provided. */
+ @SerializedName("checks")
+ Checks checks;
+
+ /**
+ * Two-letter ISO code representing the country of the card. You could use this attribute to
+ * get a sense of the international breakdown of cards you've collected.
+ */
+ @SerializedName("country")
+ String country;
+
+ /**
+ * A high-level description of the type of cards issued in this range. (For internal use only
+ * and not typically available in standard API requests.)
+ */
+ @SerializedName("description")
+ String description;
+
+ /**
+ * The brand to use when displaying the card, this accounts for customer's brand choice on
+ * dual-branded cards. Can be {@code american_express}, {@code cartes_bancaires}, {@code
+ * diners_club}, {@code discover}, {@code eftpos_australia}, {@code interac}, {@code jcb},
+ * {@code mastercard}, {@code union_pay}, {@code visa}, or {@code other} and may contain more
+ * values in the future.
+ */
+ @SerializedName("display_brand")
+ String displayBrand;
+
+ /** Two-digit number representing the card's expiration month. */
+ @SerializedName("exp_month")
+ Long expMonth;
+
+ /** Four-digit number representing the card's expiration year. */
+ @SerializedName("exp_year")
+ Long expYear;
+
+ /**
+ * Uniquely identifies this particular card number. You can use this attribute to check
+ * whether two customers who’ve signed up with you are using the same card number, for
+ * example. For payment methods that tokenize card information (Apple Pay, Google Pay), the
+ * tokenized number might be provided instead of the underlying card number.
+ *
+ *
As of May 1, 2021, card fingerprint in India for Connect changed to allow two
+ * fingerprints for the same card---one for India and one for the rest of the world.
+ */
+ @SerializedName("fingerprint")
+ String fingerprint;
+
+ /**
+ * Card funding type. Can be {@code credit}, {@code debit}, {@code prepaid}, or {@code
+ * unknown}.
+ */
+ @SerializedName("funding")
+ String funding;
+
+ /**
+ * Issuer identification number of the card. (For internal use only and not typically
+ * available in standard API requests.)
+ */
+ @SerializedName("iin")
+ String iin;
+
+ /**
+ * The name of the card's issuing bank. (For internal use only and not typically available in
+ * standard API requests.)
+ */
+ @SerializedName("issuer")
+ String issuer;
+
+ /** The last four digits of the card. */
+ @SerializedName("last4")
+ String last4;
+
+ /** Contains information about card networks that can be used to process the payment. */
+ @SerializedName("networks")
+ Networks networks;
+
+ /** If this Card is part of a card wallet, this contains the details of the card wallet. */
+ @SerializedName("wallet")
+ Wallet wallet;
+
+ /**
+ * For more details about Checks, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Checks extends StripeObject {
+ /**
+ * If a address line1 was provided, results of the check, one of {@code pass}, {@code fail},
+ * {@code unavailable}, or {@code unchecked}.
+ */
+ @SerializedName("address_line1_check")
+ String addressLine1Check;
+
+ /**
+ * If a address postal code was provided, results of the check, one of {@code pass}, {@code
+ * fail}, {@code unavailable}, or {@code unchecked}.
+ */
+ @SerializedName("address_postal_code_check")
+ String addressPostalCodeCheck;
+
+ /**
+ * If a CVC was provided, results of the check, one of {@code pass}, {@code fail}, {@code
+ * unavailable}, or {@code unchecked}.
+ */
+ @SerializedName("cvc_check")
+ String cvcCheck;
+ }
+
+ /**
+ * For more details about Networks, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Networks extends StripeObject {
+ /**
+ * All networks available for selection via payment_method_options.card.network.
+ */
+ @SerializedName("available")
+ List available;
+
+ /**
+ * The preferred network for co-branded cards. Can be {@code cartes_bancaires}, {@code
+ * mastercard}, {@code visa} or {@code invalid_preference} if requested network is not valid
+ * for the card.
+ */
+ @SerializedName("preferred")
+ String preferred;
+ }
+
+ /**
+ * For more details about Wallet, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Wallet extends StripeObject {
+ @SerializedName("amex_express_checkout")
+ AmexExpressCheckout amexExpressCheckout;
+
+ @SerializedName("apple_pay")
+ ApplePay applePay;
+
+ /** (For tokenized numbers only.) The last four digits of the device account number. */
+ @SerializedName("dynamic_last4")
+ String dynamicLast4;
+
+ @SerializedName("google_pay")
+ GooglePay googlePay;
+
+ @SerializedName("link")
+ Link link;
+
+ @SerializedName("masterpass")
+ Masterpass masterpass;
+
+ @SerializedName("samsung_pay")
+ SamsungPay samsungPay;
+
+ /**
+ * The type of the card wallet, one of {@code amex_express_checkout}, {@code apple_pay},
+ * {@code google_pay}, {@code masterpass}, {@code samsung_pay}, {@code visa_checkout}, or
+ * {@code link}. An additional hash is included on the Wallet subhash with a name matching
+ * this value. It contains additional information specific to the card wallet type.
+ */
+ @SerializedName("type")
+ String type;
+
+ @SerializedName("visa_checkout")
+ VisaCheckout visaCheckout;
+
+ /**
+ * For more details about AmexExpressCheckout, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AmexExpressCheckout extends StripeObject {}
+
+ /**
+ * For more details about ApplePay, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ApplePay extends StripeObject {}
+
+ /**
+ * For more details about GooglePay, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class GooglePay extends StripeObject {}
+
+ /**
+ * For more details about Link, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Link extends StripeObject {}
+
+ /**
+ * For more details about Masterpass, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Masterpass extends StripeObject {
+ /**
+ * Owner's verified billing address. Values are verified or provided by the wallet
+ * directly (if supported) at the time of authorization or settlement. They cannot be set
+ * or mutated.
+ */
+ @SerializedName("billing_address")
+ Address billingAddress;
+
+ /**
+ * Owner's verified email. Values are verified or provided by the wallet directly (if
+ * supported) at the time of authorization or settlement. They cannot be set or mutated.
+ */
+ @SerializedName("email")
+ String email;
+
+ /**
+ * Owner's verified full name. Values are verified or provided by the wallet directly (if
+ * supported) at the time of authorization or settlement. They cannot be set or mutated.
+ */
+ @SerializedName("name")
+ String name;
+
+ /**
+ * Owner's verified shipping address. Values are verified or provided by the wallet
+ * directly (if supported) at the time of authorization or settlement. They cannot be set
+ * or mutated.
+ */
+ @SerializedName("shipping_address")
+ Address shippingAddress;
+ }
+
+ /**
+ * For more details about SamsungPay, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class SamsungPay extends StripeObject {}
+
+ /**
+ * For more details about VisaCheckout, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class VisaCheckout extends StripeObject {
+ /**
+ * Owner's verified billing address. Values are verified or provided by the wallet
+ * directly (if supported) at the time of authorization or settlement. They cannot be set
+ * or mutated.
+ */
+ @SerializedName("billing_address")
+ Address billingAddress;
+
+ /**
+ * Owner's verified email. Values are verified or provided by the wallet directly (if
+ * supported) at the time of authorization or settlement. They cannot be set or mutated.
+ */
+ @SerializedName("email")
+ String email;
+
+ /**
+ * Owner's verified full name. Values are verified or provided by the wallet directly (if
+ * supported) at the time of authorization or settlement. They cannot be set or mutated.
+ */
+ @SerializedName("name")
+ String name;
+
+ /**
+ * Owner's verified shipping address. Values are verified or provided by the wallet
+ * directly (if supported) at the time of authorization or settlement. They cannot be set
+ * or mutated.
+ */
+ @SerializedName("shipping_address")
+ Address shippingAddress;
+ }
+ }
+ }
+
+ /**
+ * For more details about CardPresent, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CardPresent extends StripeObject {
+ /**
+ * Card brand. Can be {@code amex}, {@code cartes_bancaires}, {@code diners}, {@code
+ * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
+ * unionpay}, {@code visa} or {@code unknown}.
+ */
+ @SerializedName("brand")
+ String brand;
+
+ /**
+ * The product code that identifies
+ * the specific program or product associated with a card.
+ */
+ @SerializedName("brand_product")
+ String brandProduct;
+
+ /**
+ * The cardholder name as read from the card, in ISO 7813 format. May include
+ * alphanumeric characters, special characters and first/last name separator ({@code /}). In
+ * some cases, the cardholder name may not be available depending on how the issuer has
+ * configured the card. Cardholder name is typically not available on swipe or contactless
+ * payments, such as those made with Apple Pay and Google Pay.
+ */
+ @SerializedName("cardholder_name")
+ String cardholderName;
+
+ /**
+ * Two-letter ISO code representing the country of the card. You could use this attribute to
+ * get a sense of the international breakdown of cards you've collected.
+ */
+ @SerializedName("country")
+ String country;
+
+ /**
+ * A high-level description of the type of cards issued in this range. (For internal use only
+ * and not typically available in standard API requests.)
+ */
+ @SerializedName("description")
+ String description;
+
+ /** Two-digit number representing the card's expiration month. */
+ @SerializedName("exp_month")
+ Long expMonth;
+
+ /** Four-digit number representing the card's expiration year. */
+ @SerializedName("exp_year")
+ Long expYear;
+
+ /**
+ * Uniquely identifies this particular card number. You can use this attribute to check
+ * whether two customers who’ve signed up with you are using the same card number, for
+ * example. For payment methods that tokenize card information (Apple Pay, Google Pay), the
+ * tokenized number might be provided instead of the underlying card number.
+ *
+ * As of May 1, 2021, card fingerprint in India for Connect changed to allow two
+ * fingerprints for the same card---one for India and one for the rest of the world.
+ */
+ @SerializedName("fingerprint")
+ String fingerprint;
+
+ /**
+ * Card funding type. Can be {@code credit}, {@code debit}, {@code prepaid}, or {@code
+ * unknown}.
+ */
+ @SerializedName("funding")
+ String funding;
+
+ /**
+ * Issuer identification number of the card. (For internal use only and not typically
+ * available in standard API requests.)
+ */
+ @SerializedName("iin")
+ String iin;
+
+ /**
+ * The name of the card's issuing bank. (For internal use only and not typically available in
+ * standard API requests.)
+ */
+ @SerializedName("issuer")
+ String issuer;
+
+ /** The last four digits of the card. */
+ @SerializedName("last4")
+ String last4;
+
+ /** Contains information about card networks that can be used to process the payment. */
+ @SerializedName("networks")
+ Networks networks;
+
+ /** Details about payment methods collected offline. */
+ @SerializedName("offline")
+ Offline offline;
+
+ /**
+ * The languages that the issuing bank recommends using for localizing any customer-facing
+ * text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
+ */
+ @SerializedName("preferred_locales")
+ List preferredLocales;
+
+ /**
+ * How card details were read in this transaction.
+ *
+ * One of {@code contact_emv}, {@code contactless_emv}, {@code contactless_magstripe_mode},
+ * {@code magnetic_stripe_fallback}, or {@code magnetic_stripe_track2}.
+ */
+ @SerializedName("read_method")
+ String readMethod;
+
+ @SerializedName("wallet")
+ Wallet wallet;
+
+ /**
+ * For more details about Networks, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Networks extends StripeObject {
+ /**
+ * All networks available for selection via payment_method_options.card.network.
+ */
+ @SerializedName("available")
+ List available;
+
+ /** The preferred network for the card. */
+ @SerializedName("preferred")
+ String preferred;
+ }
+
+ /**
+ * For more details about Offline, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Offline extends StripeObject {
+ /** Time at which the payment was collected while offline. */
+ @SerializedName("stored_at")
+ Long storedAt;
+
+ /**
+ * The method used to process this payment method offline. Only deferred is allowed.
+ *
+ * Equal to {@code deferred}.
+ */
+ @SerializedName("type")
+ String type;
+ }
+
+ /**
+ * For more details about Wallet, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Wallet extends StripeObject {
+ /**
+ * The type of mobile wallet, one of {@code apple_pay}, {@code google_pay}, {@code
+ * samsung_pay}, or {@code unknown}.
+ */
+ @SerializedName("type")
+ String type;
+ }
+ }
+
+ /**
+ * For more details about Cashapp, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Cashapp extends StripeObject {
+ /** A unique and immutable identifier assigned by Cash App to every buyer. */
+ @SerializedName("buyer_id")
+ String buyerId;
+
+ /** A public identifier for buyers using Cash App. */
+ @SerializedName("cashtag")
+ String cashtag;
+ }
+
+ /**
+ * For more details about Crypto, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Crypto extends StripeObject {}
+
+ /**
+ * For more details about CustomerBalance, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CustomerBalance extends StripeObject {}
+
+ /**
+ * For more details about Eps, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Eps extends StripeObject {
+ /**
+ * The customer's bank. Should be one of {@code arzte_und_apotheker_bank}, {@code
+ * austrian_anadi_bank_ag}, {@code bank_austria}, {@code bankhaus_carl_spangler}, {@code
+ * bankhaus_schelhammer_und_schattera_ag}, {@code bawag_psk_ag}, {@code bks_bank_ag}, {@code
+ * brull_kallmus_bank_ag}, {@code btv_vier_lander_bank}, {@code capital_bank_grawe_gruppe_ag},
+ * {@code deutsche_bank_ag}, {@code dolomitenbank}, {@code easybank_ag}, {@code
+ * erste_bank_und_sparkassen}, {@code hypo_alpeadriabank_international_ag}, {@code
+ * hypo_noe_lb_fur_niederosterreich_u_wien}, {@code hypo_oberosterreich_salzburg_steiermark},
+ * {@code hypo_tirol_bank_ag}, {@code hypo_vorarlberg_bank_ag}, {@code
+ * hypo_bank_burgenland_aktiengesellschaft}, {@code marchfelder_bank}, {@code oberbank_ag},
+ * {@code raiffeisen_bankengruppe_osterreich}, {@code schoellerbank_ag}, {@code
+ * sparda_bank_wien}, {@code volksbank_gruppe}, {@code volkskreditbank_ag}, or {@code
+ * vr_bank_braunau}.
+ */
+ @SerializedName("bank")
+ String bank;
+ }
+
+ /**
+ * For more details about Fpx, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Fpx extends StripeObject {
+ /** Account holder type, if provided. Can be one of {@code individual} or {@code company}. */
+ @SerializedName("account_holder_type")
+ String accountHolderType;
+
+ /**
+ * The customer's bank, if provided. Can be one of {@code affin_bank}, {@code agrobank},
+ * {@code alliance_bank}, {@code ambank}, {@code bank_islam}, {@code bank_muamalat}, {@code
+ * bank_rakyat}, {@code bsn}, {@code cimb}, {@code hong_leong_bank}, {@code hsbc}, {@code
+ * kfh}, {@code maybank2u}, {@code ocbc}, {@code public_bank}, {@code rhb}, {@code
+ * standard_chartered}, {@code uob}, {@code deutsche_bank}, {@code maybank2e}, {@code
+ * pb_enterprise}, or {@code bank_of_china}.
+ */
+ @SerializedName("bank")
+ String bank;
+ }
+
+ /**
+ * For more details about Giropay, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Giropay extends StripeObject {}
+
+ /**
+ * For more details about Gopay, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Gopay extends StripeObject {}
+
+ /**
+ * For more details about Grabpay, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Grabpay extends StripeObject {}
+
+ /**
+ * For more details about IdBankTransfer, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class IdBankTransfer extends StripeObject {
+ @SerializedName("bank")
+ String bank;
+
+ @SerializedName("bank_code")
+ String bankCode;
+
+ @SerializedName("bank_name")
+ String bankName;
+
+ @SerializedName("display_name")
+ String displayName;
+ }
+
+ /**
+ * For more details about Ideal, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Ideal extends StripeObject {
+ /**
+ * The customer's bank, if provided. Can be one of {@code abn_amro}, {@code adyen}, {@code
+ * asn_bank}, {@code bunq}, {@code buut}, {@code finom}, {@code handelsbanken}, {@code ing},
+ * {@code knab}, {@code mollie}, {@code moneyou}, {@code n26}, {@code nn}, {@code rabobank},
+ * {@code regiobank}, {@code revolut}, {@code sns_bank}, {@code triodos_bank}, {@code
+ * van_lanschot}, or {@code yoursafe}.
+ */
+ @SerializedName("bank")
+ String bank;
+
+ /**
+ * The Bank Identifier Code of the customer's bank, if the bank was provided.
+ *
+ *
One of {@code ABNANL2A}, {@code ADYBNL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code
+ * BUNQNL2A}, {@code BUUTNL2A}, {@code FNOMNL22}, {@code FVLBNL22}, {@code HANDNL2A}, {@code
+ * INGBNL2A}, {@code KNABNL2H}, {@code MLLENL2A}, {@code MOYONL21}, {@code NNBANL2G}, {@code
+ * NTSBDEB1}, {@code RABONL2U}, {@code RBRBNL21}, {@code REVOIE23}, {@code REVOLT21}, {@code
+ * SNSBNL2A}, or {@code TRIONL2U}.
+ */
+ @SerializedName("bic")
+ String bic;
+ }
+
+ /**
+ * For more details about InteracPresent, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class InteracPresent extends StripeObject {
+ /** Card brand. Can be {@code interac}, {@code mastercard} or {@code visa}. */
+ @SerializedName("brand")
+ String brand;
+
+ /**
+ * The cardholder name as read from the card, in ISO 7813 format. May include
+ * alphanumeric characters, special characters and first/last name separator ({@code /}). In
+ * some cases, the cardholder name may not be available depending on how the issuer has
+ * configured the card. Cardholder name is typically not available on swipe or contactless
+ * payments, such as those made with Apple Pay and Google Pay.
+ */
+ @SerializedName("cardholder_name")
+ String cardholderName;
+
+ /**
+ * Two-letter ISO code representing the country of the card. You could use this attribute to
+ * get a sense of the international breakdown of cards you've collected.
+ */
+ @SerializedName("country")
+ String country;
+
+ /**
+ * A high-level description of the type of cards issued in this range. (For internal use only
+ * and not typically available in standard API requests.)
+ */
+ @SerializedName("description")
+ String description;
+
+ /** Two-digit number representing the card's expiration month. */
+ @SerializedName("exp_month")
+ Long expMonth;
+
+ /** Four-digit number representing the card's expiration year. */
+ @SerializedName("exp_year")
+ Long expYear;
+
+ /**
+ * Uniquely identifies this particular card number. You can use this attribute to check
+ * whether two customers who’ve signed up with you are using the same card number, for
+ * example. For payment methods that tokenize card information (Apple Pay, Google Pay), the
+ * tokenized number might be provided instead of the underlying card number.
+ *
+ *
As of May 1, 2021, card fingerprint in India for Connect changed to allow two
+ * fingerprints for the same card---one for India and one for the rest of the world.
+ */
+ @SerializedName("fingerprint")
+ String fingerprint;
+
+ /**
+ * Card funding type. Can be {@code credit}, {@code debit}, {@code prepaid}, or {@code
+ * unknown}.
+ */
+ @SerializedName("funding")
+ String funding;
+
+ /**
+ * Issuer identification number of the card. (For internal use only and not typically
+ * available in standard API requests.)
+ */
+ @SerializedName("iin")
+ String iin;
+
+ /**
+ * The name of the card's issuing bank. (For internal use only and not typically available in
+ * standard API requests.)
+ */
+ @SerializedName("issuer")
+ String issuer;
+
+ /** The last four digits of the card. */
+ @SerializedName("last4")
+ String last4;
+
+ /** Contains information about card networks that can be used to process the payment. */
+ @SerializedName("networks")
+ Networks networks;
+
+ /**
+ * The languages that the issuing bank recommends using for localizing any customer-facing
+ * text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
+ */
+ @SerializedName("preferred_locales")
+ List preferredLocales;
+
+ /**
+ * How card details were read in this transaction.
+ *
+ * One of {@code contact_emv}, {@code contactless_emv}, {@code contactless_magstripe_mode},
+ * {@code magnetic_stripe_fallback}, or {@code magnetic_stripe_track2}.
+ */
+ @SerializedName("read_method")
+ String readMethod;
+
+ /**
+ * For more details about Networks, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Networks extends StripeObject {
+ /**
+ * All networks available for selection via payment_method_options.card.network.
+ */
+ @SerializedName("available")
+ List available;
+
+ /** The preferred network for the card. */
+ @SerializedName("preferred")
+ String preferred;
+ }
+ }
+
+ /**
+ * For more details about KakaoPay, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class KakaoPay extends StripeObject {}
+
+ /**
+ * For more details about Klarna, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Klarna extends StripeObject {
+ /** The customer's date of birth, if provided. */
+ @SerializedName("dob")
+ Dob dob;
+
+ /**
+ * For more details about Dob, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Dob extends StripeObject {
+ /** The day of birth, between 1 and 31. */
+ @SerializedName("day")
+ Long day;
+
+ /** The month of birth, between 1 and 12. */
+ @SerializedName("month")
+ Long month;
+
+ /** The four-digit year of birth. */
+ @SerializedName("year")
+ Long year;
+ }
+ }
+
+ /**
+ * For more details about Konbini, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Konbini extends StripeObject {}
+
+ /**
+ * For more details about KrCard, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class KrCard extends StripeObject {
+ /**
+ * The local credit or debit card brand.
+ *
+ * One of {@code bc}, {@code citi}, {@code hana}, {@code hyundai}, {@code jeju}, {@code
+ * jeonbuk}, {@code kakaobank}, {@code kbank}, {@code kdbbank}, {@code kookmin}, {@code
+ * kwangju}, {@code lotte}, {@code mg}, {@code nh}, {@code post}, {@code samsung}, {@code
+ * savingsbank}, {@code shinhan}, {@code shinhyup}, {@code suhyup}, {@code tossbank}, or
+ * {@code woori}.
+ */
+ @SerializedName("brand")
+ String brand;
+
+ /** The last four digits of the card. This may not be present for American Express cards. */
+ @SerializedName("last4")
+ String last4;
+ }
+
+ /**
+ * For more details about Link, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Link extends StripeObject {
+ /** Account owner's email address. */
+ @SerializedName("email")
+ String email;
+
+ /** [Deprecated] This is a legacy parameter that no longer has any function. */
+ @SerializedName("persistent_token")
+ @Deprecated
+ String persistentToken;
+ }
+
+ /**
+ * For more details about MbWay, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MbWay extends StripeObject {}
+
+ /**
+ * For more details about Mobilepay, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Mobilepay extends StripeObject {}
+
+ /**
+ * For more details about Multibanco, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Multibanco extends StripeObject {}
+
+ /**
+ * For more details about NaverPay, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class NaverPay extends StripeObject {
+ /**
+ * Uniquely identifies this particular Naver Pay account. You can use this attribute to check
+ * whether two Naver Pay accounts are the same.
+ */
+ @SerializedName("buyer_id")
+ String buyerId;
+
+ /**
+ * Whether to fund this transaction with Naver Pay points or a card.
+ *
+ *
One of {@code card}, or {@code points}.
+ */
+ @SerializedName("funding")
+ String funding;
+ }
+
+ /**
+ * For more details about NzBankAccount, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class NzBankAccount extends StripeObject {
+ /**
+ * The name on the bank account. Only present if the account holder name is different from the
+ * name of the authorized signatory collected in the PaymentMethod’s billing details.
+ */
+ @SerializedName("account_holder_name")
+ String accountHolderName;
+
+ /** The numeric code for the bank account's bank. */
+ @SerializedName("bank_code")
+ String bankCode;
+
+ /** The name of the bank. */
+ @SerializedName("bank_name")
+ String bankName;
+
+ /** The numeric code for the bank account's bank branch. */
+ @SerializedName("branch_code")
+ String branchCode;
+
+ /** Last four digits of the bank account number. */
+ @SerializedName("last4")
+ String last4;
+
+ /** The suffix of the bank account number. */
+ @SerializedName("suffix")
+ String suffix;
+ }
+
+ /**
+ * For more details about Oxxo, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Oxxo extends StripeObject {}
+
+ /**
+ * For more details about P24, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class P24 extends StripeObject {
+ /**
+ * The customer's bank, if provided.
+ *
+ *
One of {@code alior_bank}, {@code bank_millennium}, {@code bank_nowy_bfg_sa}, {@code
+ * bank_pekao_sa}, {@code banki_spbdzielcze}, {@code blik}, {@code bnp_paribas}, {@code boz},
+ * {@code citi_handlowy}, {@code credit_agricole}, {@code envelobank}, {@code
+ * etransfer_pocztowy24}, {@code getin_bank}, {@code ideabank}, {@code ing}, {@code inteligo},
+ * {@code mbank_mtransfer}, {@code nest_przelew}, {@code noble_pay}, {@code pbac_z_ipko},
+ * {@code plus_bank}, {@code santander_przelew24}, {@code tmobile_usbugi_bankowe}, {@code
+ * toyota_bank}, {@code velobank}, or {@code volkswagen_bank}.
+ */
+ @SerializedName("bank")
+ String bank;
+ }
+
+ /**
+ * For more details about PayByBank, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PayByBank extends StripeObject {}
+
+ /**
+ * For more details about Payco, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Payco extends StripeObject {}
+
+ /**
+ * For more details about Paynow, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Paynow extends StripeObject {}
+
+ /**
+ * For more details about Paypal, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Paypal extends StripeObject {
+ /**
+ * Two-letter ISO code representing the buyer's country. Values are provided by PayPal
+ * directly (if supported) at the time of authorization or settlement. They cannot be set or
+ * mutated.
+ */
+ @SerializedName("country")
+ String country;
+
+ /**
+ * Uniquely identifies this particular PayPal account. You can use this attribute to check
+ * whether two PayPal accounts are the same.
+ */
+ @SerializedName("fingerprint")
+ String fingerprint;
+
+ /**
+ * Owner's email. Values are provided by PayPal directly (if supported) at the time of
+ * authorization or settlement. They cannot be set or mutated.
+ */
+ @SerializedName("payer_email")
+ String payerEmail;
+
+ /** PayPal account PayerID. This identifier uniquely identifies the PayPal customer. */
+ @SerializedName("payer_id")
+ String payerId;
+
+ /**
+ * Owner's verified email. Values are verified or provided by PayPal directly (if supported)
+ * at the time of authorization or settlement. They cannot be set or mutated.
+ */
+ @SerializedName("verified_email")
+ String verifiedEmail;
+ }
+
+ /**
+ * For more details about Paypay, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Paypay extends StripeObject {}
+
+ /**
+ * For more details about Payto, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Payto extends StripeObject {
+ /** Bank-State-Branch number of the bank account. */
+ @SerializedName("bsb_number")
+ String bsbNumber;
+
+ /** Last four digits of the bank account number. */
+ @SerializedName("last4")
+ String last4;
+
+ /** The PayID alias for the bank account. */
+ @SerializedName("pay_id")
+ String payId;
+ }
+
+ /**
+ * For more details about Pix, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Pix extends StripeObject {}
+
+ /**
+ * For more details about Promptpay, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Promptpay extends StripeObject {}
+
+ /**
+ * For more details about Qris, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Qris extends StripeObject {}
+
+ /**
+ * For more details about Rechnung, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Rechnung extends StripeObject {
+ @SerializedName("dob")
+ Dob dob;
+
+ /**
+ * For more details about Dob, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Dob extends StripeObject {
+ /** The day of birth, between 1 and 31. */
+ @SerializedName("day")
+ Long day;
+
+ /** The month of birth, between 1 and 12. */
+ @SerializedName("month")
+ Long month;
+
+ /** The four-digit year of birth. */
+ @SerializedName("year")
+ Long year;
+ }
+ }
+
+ /**
+ * For more details about RevolutPay, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class RevolutPay extends StripeObject {}
+
+ /**
+ * For more details about SamsungPay, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class SamsungPay extends StripeObject {}
+
+ /**
+ * For more details about Satispay, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Satispay extends StripeObject {}
+
+ /**
+ * For more details about SepaDebit, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class SepaDebit extends StripeObject {
+ /** Bank code of bank associated with the bank account. */
+ @SerializedName("bank_code")
+ String bankCode;
+
+ /** Branch code of bank associated with the bank account. */
+ @SerializedName("branch_code")
+ String branchCode;
+
+ /** Two-letter ISO code representing the country the bank account is located in. */
+ @SerializedName("country")
+ String country;
+
+ /**
+ * Uniquely identifies this particular bank account. You can use this attribute to check
+ * whether two bank accounts are the same.
+ */
+ @SerializedName("fingerprint")
+ String fingerprint;
+
+ /** Information about the object that generated this PaymentMethod. */
+ @SerializedName("generated_from")
+ GeneratedFrom generatedFrom;
+
+ /** Last four characters of the IBAN. */
+ @SerializedName("last4")
+ String last4;
+
+ /**
+ * For more details about GeneratedFrom, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class GeneratedFrom extends StripeObject {
+ /** The ID of the Charge that generated this PaymentMethod, if any. */
+ @SerializedName("charge")
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField charge;
+
+ /** The ID of the SetupAttempt that generated this PaymentMethod, if any. */
+ @SerializedName("setup_attempt")
+ @Getter(lombok.AccessLevel.NONE)
+ @Setter(lombok.AccessLevel.NONE)
+ ExpandableField setupAttempt;
+
+ /** Get ID of expandable {@code charge} object. */
+ public String getCharge() {
+ return (this.charge != null) ? this.charge.getId() : null;
+ }
+
+ public void setCharge(String id) {
+ this.charge = ApiResource.setExpandableFieldId(id, this.charge);
+ }
+
+ /** Get expanded {@code charge}. */
+ public Charge getChargeObject() {
+ return (this.charge != null) ? this.charge.getExpanded() : null;
+ }
+
+ public void setChargeObject(Charge expandableObject) {
+ this.charge = new ExpandableField(expandableObject.getId(), expandableObject);
+ }
+
+ /** Get ID of expandable {@code setupAttempt} object. */
+ public String getSetupAttempt() {
+ return (this.setupAttempt != null) ? this.setupAttempt.getId() : null;
+ }
+
+ public void setSetupAttempt(String id) {
+ this.setupAttempt = ApiResource.setExpandableFieldId(id, this.setupAttempt);
+ }
+
+ /** Get expanded {@code setupAttempt}. */
+ public SetupAttempt getSetupAttemptObject() {
+ return (this.setupAttempt != null) ? this.setupAttempt.getExpanded() : null;
+ }
+
+ public void setSetupAttemptObject(SetupAttempt expandableObject) {
+ this.setupAttempt =
+ new ExpandableField(expandableObject.getId(), expandableObject);
+ }
+ }
+ }
+
+ /**
+ * For more details about Shopeepay, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Shopeepay extends StripeObject {}
+
+ /**
+ * For more details about Sofort, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Sofort extends StripeObject {
+ /** Two-letter ISO code representing the country the bank account is located in. */
+ @SerializedName("country")
+ String country;
+ }
+
+ /**
+ * For more details about StripeBalance, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StripeBalance extends StripeObject {
+ /** The connected account ID whose Stripe balance to use as the source of payment. */
+ @SerializedName("account")
+ String account;
+ }
+
+ /**
+ * For more details about Sunbit, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Sunbit extends StripeObject {}
+
+ /**
+ * For more details about Swish, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Swish extends StripeObject {}
+
+ /**
+ * For more details about Twint, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Twint extends StripeObject {}
+
+ /**
+ * For more details about Upi, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Upi extends StripeObject {
+ /** Customer's unique Virtual Payment Address. */
+ @SerializedName("vpa")
+ String vpa;
+ }
+
+ /**
+ * For more details about UsBankAccount, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class UsBankAccount extends StripeObject {
+ /**
+ * Account holder type: individual or company.
+ *
+ * One of {@code company}, or {@code individual}.
+ */
+ @SerializedName("account_holder_type")
+ String accountHolderType;
+
+ /** Account number of the bank account. */
+ @SerializedName("account_number")
+ String accountNumber;
+
+ /**
+ * Account type: checkings or savings. Defaults to checking if omitted.
+ *
+ *
One of {@code checking}, or {@code savings}.
+ */
+ @SerializedName("account_type")
+ String accountType;
+
+ /** The name of the bank. */
+ @SerializedName("bank_name")
+ String bankName;
+
+ /** The ID of the Financial Connections Account used to create the payment method. */
+ @SerializedName("financial_connections_account")
+ String financialConnectionsAccount;
+
+ /**
+ * Uniquely identifies this particular bank account. You can use this attribute to check
+ * whether two bank accounts are the same.
+ */
+ @SerializedName("fingerprint")
+ String fingerprint;
+
+ /** Last four digits of the bank account number. */
+ @SerializedName("last4")
+ String last4;
+
+ /** Contains information about US bank account networks that can be used. */
+ @SerializedName("networks")
+ Networks networks;
+
+ /** Routing number of the bank account. */
+ @SerializedName("routing_number")
+ String routingNumber;
+
+ /** Contains information about the future reusability of this PaymentMethod. */
+ @SerializedName("status_details")
+ StatusDetails statusDetails;
+
+ /**
+ * For more details about Networks, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Networks extends StripeObject {
+ /** The preferred network. */
+ @SerializedName("preferred")
+ String preferred;
+
+ /** All supported networks. */
+ @SerializedName("supported")
+ List supported;
+ }
+
+ /**
+ * For more details about StatusDetails, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StatusDetails extends StripeObject {
+ @SerializedName("blocked")
+ Blocked blocked;
+
+ /**
+ * For more details about Blocked, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Blocked extends StripeObject {
+ /**
+ * The ACH network code that resulted in this block.
+ *
+ * One of {@code R02}, {@code R03}, {@code R04}, {@code R05}, {@code R07}, {@code R08},
+ * {@code R10}, {@code R11}, {@code R16}, {@code R20}, {@code R29}, or {@code R31}.
+ */
+ @SerializedName("network_code")
+ String networkCode;
+
+ /**
+ * The reason why this PaymentMethod's fingerprint has been blocked
+ *
+ *
One of {@code bank_account_closed}, {@code bank_account_frozen}, {@code
+ * bank_account_invalid_details}, {@code bank_account_restricted}, {@code
+ * bank_account_unusable}, {@code debit_not_authorized}, or {@code
+ * tokenized_account_number_deactivated}.
+ */
+ @SerializedName("reason")
+ String reason;
+ }
+ }
+ }
+
+ /**
+ * For more details about WechatPay, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class WechatPay extends StripeObject {}
+
+ /**
+ * For more details about Zip, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Zip extends StripeObject {}
+ }
+
+ /** Risk details of the SharedPaymentGrantedToken. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class RiskDetails extends StripeObject {
+ /**
+ * Risk insights for this token, including scores and recommended actions for each risk type.
+ */
+ @SerializedName("insights")
+ Insights insights;
+
+ /**
+ * Risk insights for this token, including scores and recommended actions for each risk type.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Insights extends StripeObject {
+ /** Bot risk insight. */
+ @SerializedName("bot")
+ Bot bot;
+
+ /** Card issuer decline risk insight. */
+ @SerializedName("card_issuer_decline")
+ CardIssuerDecline cardIssuerDecline;
+
+ /** Card testing risk insight. */
+ @SerializedName("card_testing")
+ CardTesting cardTesting;
+
+ /** Fraudulent dispute risk insight. */
+ @SerializedName("fraudulent_dispute")
+ FraudulentDispute fraudulentDispute;
+
+ /** Stolen card risk insight. */
+ @SerializedName("stolen_card")
+ StolenCard stolenCard;
+
+ /** Risk insight with a float score and recommended action. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Bot extends StripeObject {
+ /** Recommended action for this insight. */
+ @SerializedName("recommended_action")
+ String recommendedAction;
+
+ /** Risk score for this insight. */
+ @SerializedName("score")
+ BigDecimal score;
+ }
+
+ /** Risk insight with a float score and recommended action. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CardIssuerDecline extends StripeObject {
+ /** Recommended action for this insight. */
+ @SerializedName("recommended_action")
+ String recommendedAction;
+
+ /** Risk score for this insight. */
+ @SerializedName("score")
+ BigDecimal score;
+ }
+
+ /** Risk insight with a float score and recommended action. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CardTesting extends StripeObject {
+ /** Recommended action for this insight. */
+ @SerializedName("recommended_action")
+ String recommendedAction;
+
+ /** Risk score for this insight. */
+ @SerializedName("score")
+ BigDecimal score;
+ }
+
+ /** Risk insight with an integer score and recommended action. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class FraudulentDispute extends StripeObject {
+ /** Recommended action for this insight. */
+ @SerializedName("recommended_action")
+ String recommendedAction;
+
+ /** Risk score for this insight. */
+ @SerializedName("score")
+ Long score;
+ }
+
+ /** Risk insight with an integer score and recommended action. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StolenCard extends StripeObject {
+ /** Recommended action for this insight. */
+ @SerializedName("recommended_action")
+ String recommendedAction;
+
+ /** Risk score for this insight. */
+ @SerializedName("score")
+ Long score;
+ }
+ }
+ }
+
+ /** Some details on how the SharedPaymentGrantedToken has been used so far. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class UsageDetails extends StripeObject {
+ /** The total amount captured using this SharedPaymentToken. */
+ @SerializedName("amount_captured")
+ AmountCaptured amountCaptured;
+
+ /** A representation of an amount of money, consisting of an amount and a currency. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AmountCaptured extends StripeObject {
+ /**
+ * Three-letter ISO currency
+ * code, in lowercase. Must be a supported
+ * currency.
+ */
+ @SerializedName("currency")
+ String currency;
+
+ /** Integer value of the amount in the smallest currency unit. */
+ @SerializedName("value")
+ Long value;
+ }
+ }
+
+ /** Limits on how this SharedPaymentGrantedToken can be used. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class UsageLimits extends StripeObject {
+ /**
+ * Three-letter ISO currency
+ * code, in lowercase. Must be a supported
+ * currency.
+ */
+ @SerializedName("currency")
+ String currency;
+
+ /**
+ * Time at which this SharedPaymentToken expires and can no longer be used to confirm a
+ * PaymentIntent.
+ */
+ @SerializedName("expires_at")
+ Long expiresAt;
+
+ /** Max amount that can be captured using this SharedPaymentToken. */
+ @SerializedName("max_amount")
+ Long maxAmount;
+ }
+
+ public TestHelpers getTestHelpers() {
+ return new TestHelpers(this);
+ }
+
+ public static class TestHelpers {
+ private final GrantedToken resource;
+
+ private TestHelpers(GrantedToken resource) {
+ this.resource = resource;
+ }
+
+ /**
+ * Creates a new test SharedPaymentGrantedToken object. This endpoint is only available in test
+ * mode and allows sellers to create SharedPaymentGrantedTokens for testing their integration
+ */
+ public static GrantedToken create(Map params) throws StripeException {
+ return create(params, (RequestOptions) null);
+ }
+
+ /**
+ * Creates a new test SharedPaymentGrantedToken object. This endpoint is only available in test
+ * mode and allows sellers to create SharedPaymentGrantedTokens for testing their integration
+ */
+ public static GrantedToken create(Map params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/test_helpers/shared_payment/granted_tokens";
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return getGlobalResponseGetter().request(request, GrantedToken.class);
+ }
+
+ /**
+ * Creates a new test SharedPaymentGrantedToken object. This endpoint is only available in test
+ * mode and allows sellers to create SharedPaymentGrantedTokens for testing their integration
+ */
+ public static GrantedToken create(GrantedTokenCreateParams params) throws StripeException {
+ return create(params, (RequestOptions) null);
+ }
+
+ /**
+ * Creates a new test SharedPaymentGrantedToken object. This endpoint is only available in test
+ * mode and allows sellers to create SharedPaymentGrantedTokens for testing their integration
+ */
+ public static GrantedToken create(GrantedTokenCreateParams params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/test_helpers/shared_payment/granted_tokens";
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, GrantedToken.class);
+ }
+
+ /**
+ * Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode
+ * and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration
+ */
+ public GrantedToken revoke() throws StripeException {
+ return revoke((Map) null, (RequestOptions) null);
+ }
+
+ /**
+ * Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode
+ * and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration
+ */
+ public GrantedToken revoke(RequestOptions options) throws StripeException {
+ return revoke((Map) null, options);
+ }
+
+ /**
+ * Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode
+ * and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration
+ */
+ public GrantedToken revoke(Map params) throws StripeException {
+ return revoke(params, (RequestOptions) null);
+ }
+
+ /**
+ * Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode
+ * and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration
+ */
+ public GrantedToken revoke(Map params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/test_helpers/shared_payment/granted_tokens/%s/revoke",
+ ApiResource.urlEncodeId(this.resource.getId()));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return resource.getResponseGetter().request(request, GrantedToken.class);
+ }
+
+ /**
+ * Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode
+ * and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration
+ */
+ public GrantedToken revoke(GrantedTokenRevokeParams params) throws StripeException {
+ return revoke(params, (RequestOptions) null);
+ }
+
+ /**
+ * Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode
+ * and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration
+ */
+ public GrantedToken revoke(GrantedTokenRevokeParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/test_helpers/shared_payment/granted_tokens/%s/revoke",
+ 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, GrantedToken.class);
+ }
+ }
+
+ @Override
+ public void setResponseGetter(StripeResponseGetter responseGetter) {
+ super.setResponseGetter(responseGetter);
+ trySetResponseGetter(agentDetails, responseGetter);
+ trySetResponseGetter(paymentMethodDetails, responseGetter);
+ trySetResponseGetter(riskDetails, responseGetter);
+ trySetResponseGetter(usageDetails, responseGetter);
+ trySetResponseGetter(usageLimits, responseGetter);
+ }
+}
diff --git a/src/main/java/com/stripe/model/sharedpayment/IssuedToken.java b/src/main/java/com/stripe/model/sharedpayment/IssuedToken.java
new file mode 100644
index 00000000000..17591b50770
--- /dev/null
+++ b/src/main/java/com/stripe/model/sharedpayment/IssuedToken.java
@@ -0,0 +1,488 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.sharedpayment;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.exception.StripeException;
+import com.stripe.model.HasId;
+import com.stripe.model.StripeObject;
+import com.stripe.net.ApiRequest;
+import com.stripe.net.ApiRequestParams;
+import com.stripe.net.ApiResource;
+import com.stripe.net.BaseAddress;
+import com.stripe.net.RequestOptions;
+import com.stripe.net.StripeResponseGetter;
+import com.stripe.param.sharedpayment.IssuedTokenCreateParams;
+import com.stripe.param.sharedpayment.IssuedTokenRetrieveParams;
+import com.stripe.param.sharedpayment.IssuedTokenRevokeParams;
+import java.math.BigDecimal;
+import java.util.Map;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * A SharedPaymentIssuedToken is a limited-use reference to a PaymentMethod that can be created with
+ * a secret key. When shared with another Stripe account (Seller), it enables that account to either
+ * process a payment on Stripe against a PaymentMethod that your Stripe account owns, or to forward
+ * a usable credential created against the originalPaymentMethod to then process the payment
+ * off-Stripe.
+ */
+@Getter
+@Setter
+@EqualsAndHashCode(callSuper = false)
+public class IssuedToken extends ApiResource implements HasId {
+ /** Time at which the object was created. Measured in seconds since the Unix epoch. */
+ @SerializedName("created")
+ Long created;
+
+ /** Time at which this SharedPaymentIssuedToken was deactivated. */
+ @SerializedName("deactivated_at")
+ Long deactivatedAt;
+
+ /**
+ * The reason why the SharedPaymentIssuedToken has been deactivated.
+ *
+ * One of {@code consumed}, {@code expired}, {@code resolved}, or {@code revoked}.
+ */
+ @SerializedName("deactivated_reason")
+ String deactivatedReason;
+
+ /** Unique identifier for the object. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /**
+ * If the object exists in live mode, the value is {@code true}. If the object exists in test
+ * mode, the value is {@code false}.
+ */
+ @SerializedName("livemode")
+ Boolean livemode;
+
+ /**
+ * If present, describes the action required to make this {@code SharedPaymentIssuedToken} usable
+ * for payments. Present when the token is in {@code requires_action} state.
+ */
+ @SerializedName("next_action")
+ NextAction nextAction;
+
+ /**
+ * String representing the object's type. Objects of the same type share the same value.
+ *
+ *
Equal to {@code shared_payment.issued_token}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /** ID of an existing PaymentMethod. */
+ @SerializedName("payment_method")
+ String paymentMethod;
+
+ /**
+ * If the customer does not exit their browser while authenticating, they will be redirected to
+ * this specified URL after completion.
+ */
+ @SerializedName("return_url")
+ String returnUrl;
+
+ /** Risk details of the SharedPaymentIssuedToken. */
+ @SerializedName("risk_details")
+ RiskDetails riskDetails;
+
+ /** Seller details of the SharedPaymentIssuedToken, including network_id and external_id. */
+ @SerializedName("seller_details")
+ SellerDetails sellerDetails;
+
+ /**
+ * Indicates that you intend to save the PaymentMethod of this SharedPaymentToken to a customer
+ * later.
+ *
+ *
Equal to {@code on_session}.
+ */
+ @SerializedName("setup_future_usage")
+ String setupFutureUsage;
+
+ /** Metadata about the SharedPaymentIssuedToken. */
+ @SerializedName("shared_metadata")
+ Map sharedMetadata;
+
+ /**
+ * Status of this SharedPaymentIssuedToken, one of {@code active}, {@code requires_action}, or
+ * {@code deactivated}.
+ */
+ @SerializedName("status")
+ String status;
+
+ /** Usage details of the SharedPaymentIssuedToken. */
+ @SerializedName("usage_details")
+ UsageDetails usageDetails;
+
+ /** Usage limits of the SharedPaymentIssuedToken. */
+ @SerializedName("usage_limits")
+ UsageLimits usageLimits;
+
+ /** Creates a new SharedPaymentIssuedToken object. */
+ public static IssuedToken create(Map params) throws StripeException {
+ return create(params, (RequestOptions) null);
+ }
+
+ /** Creates a new SharedPaymentIssuedToken object. */
+ public static IssuedToken create(Map params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/shared_payment/issued_tokens";
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return getGlobalResponseGetter().request(request, IssuedToken.class);
+ }
+
+ /** Creates a new SharedPaymentIssuedToken object. */
+ public static IssuedToken create(IssuedTokenCreateParams params) throws StripeException {
+ return create(params, (RequestOptions) null);
+ }
+
+ /** Creates a new SharedPaymentIssuedToken object. */
+ public static IssuedToken create(IssuedTokenCreateParams params, RequestOptions options)
+ throws StripeException {
+ String path = "/v1/shared_payment/issued_tokens";
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.POST,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, IssuedToken.class);
+ }
+
+ /** Retrieves an existing SharedPaymentIssuedToken object. */
+ public static IssuedToken retrieve(String sharedPaymentIssuedToken) throws StripeException {
+ return retrieve(sharedPaymentIssuedToken, (Map) null, (RequestOptions) null);
+ }
+
+ /** Retrieves an existing SharedPaymentIssuedToken object. */
+ public static IssuedToken retrieve(String sharedPaymentIssuedToken, RequestOptions options)
+ throws StripeException {
+ return retrieve(sharedPaymentIssuedToken, (Map) null, options);
+ }
+
+ /** Retrieves an existing SharedPaymentIssuedToken object. */
+ public static IssuedToken retrieve(
+ String sharedPaymentIssuedToken, Map params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/shared_payment/issued_tokens/%s",
+ ApiResource.urlEncodeId(sharedPaymentIssuedToken));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
+ return getGlobalResponseGetter().request(request, IssuedToken.class);
+ }
+
+ /** Retrieves an existing SharedPaymentIssuedToken object. */
+ public static IssuedToken retrieve(
+ String sharedPaymentIssuedToken, IssuedTokenRetrieveParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/shared_payment/issued_tokens/%s",
+ ApiResource.urlEncodeId(sharedPaymentIssuedToken));
+ ApiResource.checkNullTypedParams(path, params);
+ ApiRequest request =
+ new ApiRequest(
+ BaseAddress.API,
+ ApiResource.RequestMethod.GET,
+ path,
+ ApiRequestParams.paramsToMap(params),
+ options);
+ return getGlobalResponseGetter().request(request, IssuedToken.class);
+ }
+
+ /** Revokes a SharedPaymentIssuedToken. */
+ public IssuedToken revoke() throws StripeException {
+ return revoke((Map) null, (RequestOptions) null);
+ }
+
+ /** Revokes a SharedPaymentIssuedToken. */
+ public IssuedToken revoke(RequestOptions options) throws StripeException {
+ return revoke((Map) null, options);
+ }
+
+ /** Revokes a SharedPaymentIssuedToken. */
+ public IssuedToken revoke(Map params) throws StripeException {
+ return revoke(params, (RequestOptions) null);
+ }
+
+ /** Revokes a SharedPaymentIssuedToken. */
+ public IssuedToken revoke(Map params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/shared_payment/issued_tokens/%s/revoke", ApiResource.urlEncodeId(this.getId()));
+ ApiRequest request =
+ new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
+ return getResponseGetter().request(request, IssuedToken.class);
+ }
+
+ /** Revokes a SharedPaymentIssuedToken. */
+ public IssuedToken revoke(IssuedTokenRevokeParams params) throws StripeException {
+ return revoke(params, (RequestOptions) null);
+ }
+
+ /** Revokes a SharedPaymentIssuedToken. */
+ public IssuedToken revoke(IssuedTokenRevokeParams params, RequestOptions options)
+ throws StripeException {
+ String path =
+ String.format(
+ "/v1/shared_payment/issued_tokens/%s/revoke", 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, IssuedToken.class);
+ }
+
+ /**
+ * For more details about NextAction, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class NextAction extends StripeObject {
+ /**
+ * Specifies the type of next action required. Determines which child attribute contains action
+ * details.
+ *
+ * Equal to {@code use_stripe_sdk}.
+ */
+ @SerializedName("type")
+ String type;
+
+ /**
+ * Contains details for handling the next action using Stripe.js, iOS, or Android SDKs. Present
+ * when {@code next_action.type} is {@code use_stripe_sdk}.
+ */
+ @SerializedName("use_stripe_sdk")
+ UseStripeSdk useStripeSdk;
+
+ /**
+ * For more details about UseStripeSdk, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class UseStripeSdk extends StripeObject {
+ /**
+ * A base64-encoded string used by Stripe.js and the iOS and Android client SDKs to handle the
+ * next action. Its content is subject to change.
+ */
+ @SerializedName("value")
+ String value;
+ }
+ }
+
+ /**
+ * For more details about RiskDetails, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class RiskDetails extends StripeObject {
+ /**
+ * Risk insights for this token, including scores and recommended actions for each risk type.
+ */
+ @SerializedName("insights")
+ Insights insights;
+
+ /**
+ * Risk insights for this token, including scores and recommended actions for each risk type.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Insights extends StripeObject {
+ /** Bot risk insight. */
+ @SerializedName("bot")
+ Bot bot;
+
+ /** Card issuer decline risk insight. */
+ @SerializedName("card_issuer_decline")
+ CardIssuerDecline cardIssuerDecline;
+
+ /** Card testing risk insight. */
+ @SerializedName("card_testing")
+ CardTesting cardTesting;
+
+ /** Fraudulent dispute risk insight. */
+ @SerializedName("fraudulent_dispute")
+ FraudulentDispute fraudulentDispute;
+
+ /** Stolen card risk insight. */
+ @SerializedName("stolen_card")
+ StolenCard stolenCard;
+
+ /** Risk insight with a float score and recommended action. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Bot extends StripeObject {
+ /** Recommended action for this insight. */
+ @SerializedName("recommended_action")
+ String recommendedAction;
+
+ /** Risk score for this insight. */
+ @SerializedName("score")
+ BigDecimal score;
+ }
+
+ /** Risk insight with a float score and recommended action. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CardIssuerDecline extends StripeObject {
+ /** Recommended action for this insight. */
+ @SerializedName("recommended_action")
+ String recommendedAction;
+
+ /** Risk score for this insight. */
+ @SerializedName("score")
+ BigDecimal score;
+ }
+
+ /** Risk insight with a float score and recommended action. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CardTesting extends StripeObject {
+ /** Recommended action for this insight. */
+ @SerializedName("recommended_action")
+ String recommendedAction;
+
+ /** Risk score for this insight. */
+ @SerializedName("score")
+ BigDecimal score;
+ }
+
+ /** Risk insight with an integer score and recommended action. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class FraudulentDispute extends StripeObject {
+ /** Recommended action for this insight. */
+ @SerializedName("recommended_action")
+ String recommendedAction;
+
+ /** Risk score for this insight. */
+ @SerializedName("score")
+ Long score;
+ }
+
+ /** Risk insight with an integer score and recommended action. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StolenCard extends StripeObject {
+ /** Recommended action for this insight. */
+ @SerializedName("recommended_action")
+ String recommendedAction;
+
+ /** Risk score for this insight. */
+ @SerializedName("score")
+ Long score;
+ }
+ }
+ }
+
+ /**
+ * For more details about SellerDetails, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class SellerDetails extends StripeObject {
+ /**
+ * A unique id within a network that identifies a logical seller. This should usually be the
+ * merchant id on the seller platform.
+ */
+ @SerializedName("external_id")
+ String externalId;
+
+ /**
+ * The unique and logical string that identifies the seller platform that this SharedToken is
+ * being created for.
+ */
+ @SerializedName("network_business_profile")
+ String networkBusinessProfile;
+ }
+
+ /** Some details on how the SharedPaymentGrantedToken has been used so far. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class UsageDetails extends StripeObject {
+ /** The total amount captured using this SharedPaymentToken. */
+ @SerializedName("amount_captured")
+ AmountCaptured amountCaptured;
+
+ /** A representation of an amount of money, consisting of an amount and a currency. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AmountCaptured extends StripeObject {
+ /**
+ * Three-letter ISO currency
+ * code, in lowercase. Must be a supported
+ * currency.
+ */
+ @SerializedName("currency")
+ String currency;
+
+ /** Integer value of the amount in the smallest currency unit. */
+ @SerializedName("value")
+ Long value;
+ }
+ }
+
+ /** Limits on how this SharedPaymentGrantedToken can be used. */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class UsageLimits extends StripeObject {
+ /**
+ * Three-letter ISO currency
+ * code, in lowercase. Must be a supported
+ * currency.
+ */
+ @SerializedName("currency")
+ String currency;
+
+ /**
+ * Time at which this SharedPaymentToken expires and can no longer be used to confirm a
+ * PaymentIntent.
+ */
+ @SerializedName("expires_at")
+ Long expiresAt;
+
+ /** Max amount that can be captured using this SharedPaymentToken. */
+ @SerializedName("max_amount")
+ Long maxAmount;
+ }
+
+ @Override
+ public void setResponseGetter(StripeResponseGetter responseGetter) {
+ super.setResponseGetter(responseGetter);
+ trySetResponseGetter(nextAction, responseGetter);
+ trySetResponseGetter(riskDetails, responseGetter);
+ trySetResponseGetter(sellerDetails, responseGetter);
+ trySetResponseGetter(usageDetails, responseGetter);
+ trySetResponseGetter(usageLimits, responseGetter);
+ }
+}
diff --git a/src/main/java/com/stripe/model/tax/Calculation.java b/src/main/java/com/stripe/model/tax/Calculation.java
index afc430c2505..6d81d021d7f 100644
--- a/src/main/java/com/stripe/model/tax/Calculation.java
+++ b/src/main/java/com/stripe/model/tax/Calculation.java
@@ -102,7 +102,13 @@ public class Calculation extends ApiResource implements HasId {
@SerializedName("tax_breakdown")
List taxBreakdown;
- /** Timestamp of date at which the tax rules and rates in effect applies for the calculation. */
+ /**
+ * The calculation uses the tax rules and rates that are in effect at this timestamp. You can use
+ * a date up to 31 days in the past or up to 31 days in the future. If you use a future date,
+ * Stripe doesn't guarantee that the expected tax rules and rate being used match the actual rules
+ * and rate that will be in effect on that date. We deploy tax changes before their effective
+ * date, but not within a fixed window.
+ */
@SerializedName("tax_date")
Long taxDate;
@@ -326,21 +332,21 @@ public static class TaxId extends StripeObject {
* {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code
* no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen},
* {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code
- * pl_nip}, {@code tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn},
- * {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code my_itn}, {@code us_ein}, {@code
- * kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code
- * ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code sa_vat},
- * {@code id_npwp}, {@code my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code
- * is_vat}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code tr_tin},
- * {@code eg_tin}, {@code ph_tin}, {@code al_tin}, {@code bh_vat}, {@code kz_bin}, {@code
- * ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, {@code tz_vat}, {@code uz_vat},
- * {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, {@code ao_tin}, {@code
- * bs_tin}, {@code bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin},
- * {@code ba_tin}, {@code gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code
- * am_tin}, {@code np_pan}, {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin},
- * {@code aw_tin}, {@code az_tin}, {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code
- * kg_tin}, {@code la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code
- * unknown}.
+ * pl_nip}, {@code it_cf}, {@code fo_vat}, {@code gi_tin}, {@code py_ruc}, {@code tw_vat},
+ * {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code
+ * li_vat}, {@code lk_vat}, {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst},
+ * {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code
+ * my_sst}, {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp},
+ * {@code my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code
+ * bg_uic}, {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin},
+ * {@code ph_tin}, {@code al_tin}, {@code bh_vat}, {@code kz_bin}, {@code ng_tin}, {@code
+ * om_vat}, {@code de_stn}, {@code ch_uid}, {@code tz_vat}, {@code uz_vat}, {@code uz_tin},
+ * {@code md_vat}, {@code ma_vat}, {@code by_tin}, {@code ao_tin}, {@code bs_tin}, {@code
+ * bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code ba_tin},
+ * {@code gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, {@code
+ * np_pan}, {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, {@code aw_tin},
+ * {@code az_tin}, {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code kg_tin}, {@code
+ * la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code unknown}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/tax/Transaction.java b/src/main/java/com/stripe/model/tax/Transaction.java
index 97f8e51c840..ee131e46dda 100644
--- a/src/main/java/com/stripe/model/tax/Transaction.java
+++ b/src/main/java/com/stripe/model/tax/Transaction.java
@@ -104,7 +104,13 @@ public class Transaction extends ApiResource implements HasId {
@SerializedName("shipping_cost")
ShippingCost shippingCost;
- /** Timestamp of date at which the tax rules and rates in effect applies for the calculation. */
+ /**
+ * The calculation uses the tax rules and rates that are in effect at this timestamp. You can use
+ * a date up to 31 days in the past or up to 31 days in the future. If you use a future date,
+ * Stripe doesn't guarantee that the expected tax rules and rate being used match the actual rules
+ * and rate that will be in effect on that date. We deploy tax changes before their effective
+ * date, but not within a fixed window.
+ */
@SerializedName("tax_date")
Long taxDate;
@@ -371,21 +377,21 @@ public static class TaxId extends StripeObject {
* {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code
* no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen},
* {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code
- * pl_nip}, {@code tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn},
- * {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code my_itn}, {@code us_ein}, {@code
- * kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code
- * ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code sa_vat},
- * {@code id_npwp}, {@code my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code
- * is_vat}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code tr_tin},
- * {@code eg_tin}, {@code ph_tin}, {@code al_tin}, {@code bh_vat}, {@code kz_bin}, {@code
- * ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, {@code tz_vat}, {@code uz_vat},
- * {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, {@code ao_tin}, {@code
- * bs_tin}, {@code bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin},
- * {@code ba_tin}, {@code gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code
- * am_tin}, {@code np_pan}, {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin},
- * {@code aw_tin}, {@code az_tin}, {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code
- * kg_tin}, {@code la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code
- * unknown}.
+ * pl_nip}, {@code it_cf}, {@code fo_vat}, {@code gi_tin}, {@code py_ruc}, {@code tw_vat},
+ * {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code
+ * li_vat}, {@code lk_vat}, {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst},
+ * {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code
+ * my_sst}, {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp},
+ * {@code my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code
+ * bg_uic}, {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin},
+ * {@code ph_tin}, {@code al_tin}, {@code bh_vat}, {@code kz_bin}, {@code ng_tin}, {@code
+ * om_vat}, {@code de_stn}, {@code ch_uid}, {@code tz_vat}, {@code uz_vat}, {@code uz_tin},
+ * {@code md_vat}, {@code ma_vat}, {@code by_tin}, {@code ao_tin}, {@code bs_tin}, {@code
+ * bb_tin}, {@code cd_nif}, {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code ba_tin},
+ * {@code gn_nif}, {@code mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, {@code
+ * np_pan}, {@code tj_tin}, {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, {@code aw_tin},
+ * {@code az_tin}, {@code bd_bin}, {@code bj_ifu}, {@code et_tin}, {@code kg_tin}, {@code
+ * la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, or {@code unknown}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/treasury/OutboundPayment.java b/src/main/java/com/stripe/model/treasury/OutboundPayment.java
index d8ec5fb816c..311cc346f9c 100644
--- a/src/main/java/com/stripe/model/treasury/OutboundPayment.java
+++ b/src/main/java/com/stripe/model/treasury/OutboundPayment.java
@@ -136,6 +136,14 @@ public class OutboundPayment extends ApiResource implements HasId {
@SerializedName("object")
String object;
+ /**
+ * The purpose of the OutboundPayment, if applicable.
+ *
+ * Equal to {@code payroll}.
+ */
+ @SerializedName("purpose")
+ String purpose;
+
/** Details about a returned OutboundPayment. Only set when the status is {@code returned}. */
@SerializedName("returned_details")
ReturnedDetails returnedDetails;
diff --git a/src/main/java/com/stripe/net/RequestOptions.java b/src/main/java/com/stripe/net/RequestOptions.java
index e2518141f28..44c2e446fba 100644
--- a/src/main/java/com/stripe/net/RequestOptions.java
+++ b/src/main/java/com/stripe/net/RequestOptions.java
@@ -170,6 +170,7 @@ public RequestOptionsBuilder toBuilderFullCopy() {
.setClientId(this.clientId)
.setIdempotencyKey(this.idempotencyKey)
.setStripeAccount(this.stripeAccount)
+ .setStripeContext(this.stripeContext)
.setStripeRequestTrigger(this.stripeRequestTrigger)
.setConnectTimeout(this.connectTimeout)
.setReadTimeout(this.readTimeout)
diff --git a/src/main/java/com/stripe/param/AccountCreateParams.java b/src/main/java/com/stripe/param/AccountCreateParams.java
index 7f9acd2895f..ca726ddd5a4 100644
--- a/src/main/java/com/stripe/param/AccountCreateParams.java
+++ b/src/main/java/com/stripe/param/AccountCreateParams.java
@@ -185,8 +185,9 @@ public class AccountCreateParams extends ApiRequestParams {
TosAcceptance tosAcceptance;
/**
- * The type of Stripe account to create. May be one of {@code custom}, {@code express} or {@code
- * standard}.
+ * The {@code type} parameter is deprecated. Use {@code controller}
+ * instead to configure dashboard access, fee payer, loss liability, and requirement collection.
*/
@SerializedName("type")
Type type;
@@ -587,8 +588,10 @@ public Builder setTosAcceptance(AccountCreateParams.TosAcceptance tosAcceptance)
}
/**
- * The type of Stripe account to create. May be one of {@code custom}, {@code express} or {@code
- * standard}.
+ * The {@code type} parameter is deprecated. Use {@code
+ * controller} instead to configure dashboard access, fee payer, loss liability, and
+ * requirement collection.
*/
public Builder setType(AccountCreateParams.Type type) {
this.type = type;
@@ -1356,6 +1359,10 @@ public static class Capabilities {
@SerializedName("amazon_pay_payments")
AmazonPayPayments amazonPayPayments;
+ /** The app_distribution capability. */
+ @SerializedName("app_distribution")
+ AppDistribution appDistribution;
+
/** The au_becs_debit_payments capability. */
@SerializedName("au_becs_debit_payments")
AuBecsDebitPayments auBecsDebitPayments;
@@ -1593,6 +1600,10 @@ public static class Capabilities {
@SerializedName("stripe_balance_payments")
StripeBalancePayments stripeBalancePayments;
+ /** The sunbit_payments capability. */
+ @SerializedName("sunbit_payments")
+ SunbitPayments sunbitPayments;
+
/** The swish_payments capability. */
@SerializedName("swish_payments")
SwishPayments swishPayments;
@@ -1651,6 +1662,7 @@ private Capabilities(
AfterpayClearpayPayments afterpayClearpayPayments,
AlmaPayments almaPayments,
AmazonPayPayments amazonPayPayments,
+ AppDistribution appDistribution,
AuBecsDebitPayments auBecsDebitPayments,
AutomaticIndirectTax automaticIndirectTax,
BacsDebitPayments bacsDebitPayments,
@@ -1709,6 +1721,7 @@ private Capabilities(
ShopeepayPayments shopeepayPayments,
SofortPayments sofortPayments,
StripeBalancePayments stripeBalancePayments,
+ SunbitPayments sunbitPayments,
SwishPayments swishPayments,
TaxReportingUs1099K taxReportingUs1099K,
TaxReportingUs1099Misc taxReportingUs1099Misc,
@@ -1727,6 +1740,7 @@ private Capabilities(
this.afterpayClearpayPayments = afterpayClearpayPayments;
this.almaPayments = almaPayments;
this.amazonPayPayments = amazonPayPayments;
+ this.appDistribution = appDistribution;
this.auBecsDebitPayments = auBecsDebitPayments;
this.automaticIndirectTax = automaticIndirectTax;
this.bacsDebitPayments = bacsDebitPayments;
@@ -1785,6 +1799,7 @@ private Capabilities(
this.shopeepayPayments = shopeepayPayments;
this.sofortPayments = sofortPayments;
this.stripeBalancePayments = stripeBalancePayments;
+ this.sunbitPayments = sunbitPayments;
this.swishPayments = swishPayments;
this.taxReportingUs1099K = taxReportingUs1099K;
this.taxReportingUs1099Misc = taxReportingUs1099Misc;
@@ -1815,6 +1830,8 @@ public static class Builder {
private AmazonPayPayments amazonPayPayments;
+ private AppDistribution appDistribution;
+
private AuBecsDebitPayments auBecsDebitPayments;
private AutomaticIndirectTax automaticIndirectTax;
@@ -1931,6 +1948,8 @@ public static class Builder {
private StripeBalancePayments stripeBalancePayments;
+ private SunbitPayments sunbitPayments;
+
private SwishPayments swishPayments;
private TaxReportingUs1099K taxReportingUs1099K;
@@ -1965,6 +1984,7 @@ public AccountCreateParams.Capabilities build() {
this.afterpayClearpayPayments,
this.almaPayments,
this.amazonPayPayments,
+ this.appDistribution,
this.auBecsDebitPayments,
this.automaticIndirectTax,
this.bacsDebitPayments,
@@ -2023,6 +2043,7 @@ public AccountCreateParams.Capabilities build() {
this.shopeepayPayments,
this.sofortPayments,
this.stripeBalancePayments,
+ this.sunbitPayments,
this.swishPayments,
this.taxReportingUs1099K,
this.taxReportingUs1099Misc,
@@ -2072,6 +2093,13 @@ public Builder setAmazonPayPayments(
return this;
}
+ /** The app_distribution capability. */
+ public Builder setAppDistribution(
+ AccountCreateParams.Capabilities.AppDistribution appDistribution) {
+ this.appDistribution = appDistribution;
+ return this;
+ }
+
/** The au_becs_debit_payments capability. */
public Builder setAuBecsDebitPayments(
AccountCreateParams.Capabilities.AuBecsDebitPayments auBecsDebitPayments) {
@@ -2487,6 +2515,13 @@ public Builder setStripeBalancePayments(
return this;
}
+ /** The sunbit_payments capability. */
+ public Builder setSunbitPayments(
+ AccountCreateParams.Capabilities.SunbitPayments sunbitPayments) {
+ this.sunbitPayments = sunbitPayments;
+ return this;
+ }
+
/** The swish_payments capability. */
public Builder setSwishPayments(
AccountCreateParams.Capabilities.SwishPayments swishPayments) {
@@ -2975,6 +3010,86 @@ public Builder setRequested(Boolean requested) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AppDistribution {
+ /**
+ * 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 AppDistribution(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.AppDistribution build() {
+ return new AccountCreateParams.Capabilities.AppDistribution(
+ 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.AppDistribution#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.AppDistribution#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 AuBecsDebitPayments {
@@ -7531,6 +7646,86 @@ public Builder setRequested(Boolean requested) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class SunbitPayments {
+ /**
+ * 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 SunbitPayments(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.SunbitPayments build() {
+ return new AccountCreateParams.Capabilities.SunbitPayments(
+ 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.SunbitPayments#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.SunbitPayments#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 SwishPayments {
diff --git a/src/main/java/com/stripe/param/AccountSessionCreateParams.java b/src/main/java/com/stripe/param/AccountSessionCreateParams.java
index c0aa4fdd9e5..fc5da6c53dc 100644
--- a/src/main/java/com/stripe/param/AccountSessionCreateParams.java
+++ b/src/main/java/com/stripe/param/AccountSessionCreateParams.java
@@ -170,6 +170,14 @@ public static class Components {
@SerializedName("app_viewport")
AppViewport appViewport;
+ /**
+ * Configuration for the balance
+ * report embedded component.
+ */
+ @SerializedName("balance_report")
+ BalanceReport balanceReport;
+
/**
* Configuration for the balances
@@ -331,6 +339,14 @@ public static class Components {
@SerializedName("payout_details")
PayoutDetails payoutDetails;
+ /**
+ * Configuration for the payout
+ * reconciliation report embedded component.
+ */
+ @SerializedName("payout_reconciliation_report")
+ PayoutReconciliationReport payoutReconciliationReport;
+
/**
* Configuration for the payouts embedded
@@ -400,6 +416,7 @@ private Components(
AccountOnboarding accountOnboarding,
AppInstall appInstall,
AppViewport appViewport,
+ BalanceReport balanceReport,
Balances balances,
CapitalFinancing capitalFinancing,
CapitalFinancingApplication capitalFinancingApplication,
@@ -420,6 +437,7 @@ private Components(
PaymentMethodSettings paymentMethodSettings,
Payments payments,
PayoutDetails payoutDetails,
+ PayoutReconciliationReport payoutReconciliationReport,
Payouts payouts,
PayoutsList payoutsList,
ProductTaxCodeSelector productTaxCodeSelector,
@@ -432,6 +450,7 @@ private Components(
this.accountOnboarding = accountOnboarding;
this.appInstall = appInstall;
this.appViewport = appViewport;
+ this.balanceReport = balanceReport;
this.balances = balances;
this.capitalFinancing = capitalFinancing;
this.capitalFinancingApplication = capitalFinancingApplication;
@@ -452,6 +471,7 @@ private Components(
this.paymentMethodSettings = paymentMethodSettings;
this.payments = payments;
this.payoutDetails = payoutDetails;
+ this.payoutReconciliationReport = payoutReconciliationReport;
this.payouts = payouts;
this.payoutsList = payoutsList;
this.productTaxCodeSelector = productTaxCodeSelector;
@@ -475,6 +495,8 @@ public static class Builder {
private AppViewport appViewport;
+ private BalanceReport balanceReport;
+
private Balances balances;
private CapitalFinancing capitalFinancing;
@@ -515,6 +537,8 @@ public static class Builder {
private PayoutDetails payoutDetails;
+ private PayoutReconciliationReport payoutReconciliationReport;
+
private Payouts payouts;
private PayoutsList payoutsList;
@@ -538,6 +562,7 @@ public AccountSessionCreateParams.Components build() {
this.accountOnboarding,
this.appInstall,
this.appViewport,
+ this.balanceReport,
this.balances,
this.capitalFinancing,
this.capitalFinancingApplication,
@@ -558,6 +583,7 @@ public AccountSessionCreateParams.Components build() {
this.paymentMethodSettings,
this.payments,
this.payoutDetails,
+ this.payoutReconciliationReport,
this.payouts,
this.payoutsList,
this.productTaxCodeSelector,
@@ -610,6 +636,17 @@ public Builder setAppViewport(AccountSessionCreateParams.Components.AppViewport
return this;
}
+ /**
+ * Configuration for the balance
+ * report embedded component.
+ */
+ public Builder setBalanceReport(
+ AccountSessionCreateParams.Components.BalanceReport balanceReport) {
+ this.balanceReport = balanceReport;
+ return this;
+ }
+
/**
* Configuration for the balances
@@ -844,6 +881,18 @@ public Builder setPayoutDetails(
return this;
}
+ /**
+ * Configuration for the payout
+ * reconciliation report embedded component.
+ */
+ public Builder setPayoutReconciliationReport(
+ AccountSessionCreateParams.Components.PayoutReconciliationReport
+ payoutReconciliationReport) {
+ this.payoutReconciliationReport = payoutReconciliationReport;
+ return this;
+ }
+
/**
* Configuration for the payouts
@@ -1727,6 +1776,154 @@ public Builder putAllExtraParam(Map map) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class BalanceReport {
+ /** 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;
+
+ /** An empty list, because this embedded component has no features. */
+ @SerializedName("features")
+ Features features;
+
+ private BalanceReport(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.BalanceReport build() {
+ return new AccountSessionCreateParams.Components.BalanceReport(
+ 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.BalanceReport#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.BalanceReport#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** An empty list, because this embedded component has no features. */
+ public Builder setFeatures(
+ AccountSessionCreateParams.Components.BalanceReport.Features features) {
+ this.features = features;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Features {
+ /**
+ * 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 Features(Map extraParams) {
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountSessionCreateParams.Components.BalanceReport.Features build() {
+ return new AccountSessionCreateParams.Components.BalanceReport.Features(
+ this.extraParams);
+ }
+
+ /**
+ * 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.BalanceReport.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.BalanceReport.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;
+ }
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Balances {
@@ -5339,6 +5536,157 @@ public Builder putAllExtraParam(Map map) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PayoutReconciliationReport {
+ /** 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;
+
+ /** An empty list, because this embedded component has no features. */
+ @SerializedName("features")
+ Features features;
+
+ private PayoutReconciliationReport(
+ 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.PayoutReconciliationReport build() {
+ return new AccountSessionCreateParams.Components.PayoutReconciliationReport(
+ 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.PayoutReconciliationReport#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.PayoutReconciliationReport#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** An empty list, because this embedded component has no features. */
+ public Builder setFeatures(
+ AccountSessionCreateParams.Components.PayoutReconciliationReport.Features features) {
+ this.features = features;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Features {
+ /**
+ * 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 Features(Map extraParams) {
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public AccountSessionCreateParams.Components.PayoutReconciliationReport.Features build() {
+ return new AccountSessionCreateParams.Components.PayoutReconciliationReport.Features(
+ this.extraParams);
+ }
+
+ /**
+ * 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.PayoutReconciliationReport.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.PayoutReconciliationReport.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;
+ }
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Payouts {
diff --git a/src/main/java/com/stripe/param/AccountUpdateParams.java b/src/main/java/com/stripe/param/AccountUpdateParams.java
index b064c2f57c1..85ef9d66e11 100644
--- a/src/main/java/com/stripe/param/AccountUpdateParams.java
+++ b/src/main/java/com/stripe/param/AccountUpdateParams.java
@@ -1457,6 +1457,10 @@ public static class Capabilities {
@SerializedName("amazon_pay_payments")
AmazonPayPayments amazonPayPayments;
+ /** The app_distribution capability. */
+ @SerializedName("app_distribution")
+ AppDistribution appDistribution;
+
/** The au_becs_debit_payments capability. */
@SerializedName("au_becs_debit_payments")
AuBecsDebitPayments auBecsDebitPayments;
@@ -1694,6 +1698,10 @@ public static class Capabilities {
@SerializedName("stripe_balance_payments")
StripeBalancePayments stripeBalancePayments;
+ /** The sunbit_payments capability. */
+ @SerializedName("sunbit_payments")
+ SunbitPayments sunbitPayments;
+
/** The swish_payments capability. */
@SerializedName("swish_payments")
SwishPayments swishPayments;
@@ -1752,6 +1760,7 @@ private Capabilities(
AfterpayClearpayPayments afterpayClearpayPayments,
AlmaPayments almaPayments,
AmazonPayPayments amazonPayPayments,
+ AppDistribution appDistribution,
AuBecsDebitPayments auBecsDebitPayments,
AutomaticIndirectTax automaticIndirectTax,
BacsDebitPayments bacsDebitPayments,
@@ -1810,6 +1819,7 @@ private Capabilities(
ShopeepayPayments shopeepayPayments,
SofortPayments sofortPayments,
StripeBalancePayments stripeBalancePayments,
+ SunbitPayments sunbitPayments,
SwishPayments swishPayments,
TaxReportingUs1099K taxReportingUs1099K,
TaxReportingUs1099Misc taxReportingUs1099Misc,
@@ -1828,6 +1838,7 @@ private Capabilities(
this.afterpayClearpayPayments = afterpayClearpayPayments;
this.almaPayments = almaPayments;
this.amazonPayPayments = amazonPayPayments;
+ this.appDistribution = appDistribution;
this.auBecsDebitPayments = auBecsDebitPayments;
this.automaticIndirectTax = automaticIndirectTax;
this.bacsDebitPayments = bacsDebitPayments;
@@ -1886,6 +1897,7 @@ private Capabilities(
this.shopeepayPayments = shopeepayPayments;
this.sofortPayments = sofortPayments;
this.stripeBalancePayments = stripeBalancePayments;
+ this.sunbitPayments = sunbitPayments;
this.swishPayments = swishPayments;
this.taxReportingUs1099K = taxReportingUs1099K;
this.taxReportingUs1099Misc = taxReportingUs1099Misc;
@@ -1916,6 +1928,8 @@ public static class Builder {
private AmazonPayPayments amazonPayPayments;
+ private AppDistribution appDistribution;
+
private AuBecsDebitPayments auBecsDebitPayments;
private AutomaticIndirectTax automaticIndirectTax;
@@ -2032,6 +2046,8 @@ public static class Builder {
private StripeBalancePayments stripeBalancePayments;
+ private SunbitPayments sunbitPayments;
+
private SwishPayments swishPayments;
private TaxReportingUs1099K taxReportingUs1099K;
@@ -2066,6 +2082,7 @@ public AccountUpdateParams.Capabilities build() {
this.afterpayClearpayPayments,
this.almaPayments,
this.amazonPayPayments,
+ this.appDistribution,
this.auBecsDebitPayments,
this.automaticIndirectTax,
this.bacsDebitPayments,
@@ -2124,6 +2141,7 @@ public AccountUpdateParams.Capabilities build() {
this.shopeepayPayments,
this.sofortPayments,
this.stripeBalancePayments,
+ this.sunbitPayments,
this.swishPayments,
this.taxReportingUs1099K,
this.taxReportingUs1099Misc,
@@ -2173,6 +2191,13 @@ public Builder setAmazonPayPayments(
return this;
}
+ /** The app_distribution capability. */
+ public Builder setAppDistribution(
+ AccountUpdateParams.Capabilities.AppDistribution appDistribution) {
+ this.appDistribution = appDistribution;
+ return this;
+ }
+
/** The au_becs_debit_payments capability. */
public Builder setAuBecsDebitPayments(
AccountUpdateParams.Capabilities.AuBecsDebitPayments auBecsDebitPayments) {
@@ -2588,6 +2613,13 @@ public Builder setStripeBalancePayments(
return this;
}
+ /** The sunbit_payments capability. */
+ public Builder setSunbitPayments(
+ AccountUpdateParams.Capabilities.SunbitPayments sunbitPayments) {
+ this.sunbitPayments = sunbitPayments;
+ return this;
+ }
+
/** The swish_payments capability. */
public Builder setSwishPayments(
AccountUpdateParams.Capabilities.SwishPayments swishPayments) {
@@ -3076,6 +3108,86 @@ public Builder setRequested(Boolean requested) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AppDistribution {
+ /**
+ * 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 AppDistribution(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.AppDistribution build() {
+ return new AccountUpdateParams.Capabilities.AppDistribution(
+ 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.AppDistribution#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.AppDistribution#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 AuBecsDebitPayments {
@@ -7632,6 +7744,86 @@ public Builder setRequested(Boolean requested) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class SunbitPayments {
+ /**
+ * 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 SunbitPayments(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.SunbitPayments build() {
+ return new AccountUpdateParams.Capabilities.SunbitPayments(
+ 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.SunbitPayments#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.SunbitPayments#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 SwishPayments {
diff --git a/src/main/java/com/stripe/param/BalanceTransactionListParams.java b/src/main/java/com/stripe/param/BalanceTransactionListParams.java
index e3e649ec359..f0f4d27f7f7 100644
--- a/src/main/java/com/stripe/param/BalanceTransactionListParams.java
+++ b/src/main/java/com/stripe/param/BalanceTransactionListParams.java
@@ -79,9 +79,10 @@ public class BalanceTransactionListParams extends ApiRequestParams {
* {@code advance_funding}, {@code anticipation_repayment}, {@code application_fee}, {@code
* application_fee_refund}, {@code charge}, {@code climate_order_purchase}, {@code
* climate_order_refund}, {@code connect_collection_transfer}, {@code contribution}, {@code
- * issuing_authorization_hold}, {@code issuing_authorization_release}, {@code issuing_dispute},
- * {@code issuing_transaction}, {@code obligation_outbound}, {@code obligation_reversal_inbound},
- * {@code payment}, {@code payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
+ * inbound_transfer}, {@code inbound_transfer_reversal}, {@code issuing_authorization_hold},
+ * {@code issuing_authorization_release}, {@code issuing_dispute}, {@code issuing_transaction},
+ * {@code obligation_outbound}, {@code obligation_reversal_inbound}, {@code payment}, {@code
+ * payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
* payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
* payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code
* payout_minimum_balance_hold}, {@code payout_minimum_balance_release}, {@code refund}, {@code
@@ -89,7 +90,7 @@ public class BalanceTransactionListParams extends ApiRequestParams {
* {@code reserve_release}, {@code stripe_fee}, {@code stripe_fx_fee}, {@code
* stripe_balance_payment_debit}, {@code stripe_balance_payment_debit_reversal}, {@code tax_fee},
* {@code topup}, {@code topup_reversal}, {@code transfer}, {@code transfer_cancel}, {@code
- * transfer_failure}, or {@code transfer_refund}.
+ * transfer_failure}, {@code transfer_refund}, or {@code fee_credit_funding}.
*/
@SerializedName("type")
String type;
@@ -282,18 +283,18 @@ public Builder setStartingAfter(String startingAfter) {
* {@code advance_funding}, {@code anticipation_repayment}, {@code application_fee}, {@code
* application_fee_refund}, {@code charge}, {@code climate_order_purchase}, {@code
* climate_order_refund}, {@code connect_collection_transfer}, {@code contribution}, {@code
- * issuing_authorization_hold}, {@code issuing_authorization_release}, {@code issuing_dispute},
- * {@code issuing_transaction}, {@code obligation_outbound}, {@code
- * obligation_reversal_inbound}, {@code payment}, {@code payment_failure_refund}, {@code
- * payment_network_reserve_hold}, {@code payment_network_reserve_release}, {@code
- * payment_refund}, {@code payment_reversal}, {@code payment_unreconciled}, {@code payout},
- * {@code payout_cancel}, {@code payout_failure}, {@code payout_minimum_balance_hold}, {@code
- * payout_minimum_balance_release}, {@code refund}, {@code refund_failure}, {@code
- * reserve_transaction}, {@code reserved_funds}, {@code reserve_hold}, {@code reserve_release},
- * {@code stripe_fee}, {@code stripe_fx_fee}, {@code stripe_balance_payment_debit}, {@code
- * stripe_balance_payment_debit_reversal}, {@code tax_fee}, {@code topup}, {@code
- * topup_reversal}, {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or
- * {@code transfer_refund}.
+ * inbound_transfer}, {@code inbound_transfer_reversal}, {@code issuing_authorization_hold},
+ * {@code issuing_authorization_release}, {@code issuing_dispute}, {@code issuing_transaction},
+ * {@code obligation_outbound}, {@code obligation_reversal_inbound}, {@code payment}, {@code
+ * payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
+ * payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
+ * payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code
+ * payout_minimum_balance_hold}, {@code payout_minimum_balance_release}, {@code refund}, {@code
+ * refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code reserve_hold},
+ * {@code reserve_release}, {@code stripe_fee}, {@code stripe_fx_fee}, {@code
+ * stripe_balance_payment_debit}, {@code stripe_balance_payment_debit_reversal}, {@code
+ * tax_fee}, {@code topup}, {@code topup_reversal}, {@code transfer}, {@code transfer_cancel},
+ * {@code transfer_failure}, {@code transfer_refund}, or {@code fee_credit_funding}.
*/
public Builder setType(String type) {
this.type = type;
diff --git a/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java b/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java
index 06ffbbb9254..8217fc29aac 100644
--- a/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java
+++ b/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java
@@ -596,6 +596,10 @@ public static class PaymentMethodData {
@SerializedName("sepa_debit")
SepaDebit sepaDebit;
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ @SerializedName("shared_payment_granted_token")
+ String sharedPaymentGrantedToken;
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment
* method.
@@ -614,6 +618,13 @@ public static class PaymentMethodData {
@SerializedName("stripe_balance")
StripeBalance stripeBalance;
+ /**
+ * If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment
+ * method.
+ */
+ @SerializedName("sunbit")
+ Sunbit sunbit;
+
/**
* If this is a {@code swish} PaymentMethod, this hash contains details about the Swish payment
* method.
@@ -718,9 +729,11 @@ private PaymentMethodData(
SamsungPay samsungPay,
Satispay satispay,
SepaDebit sepaDebit,
+ String sharedPaymentGrantedToken,
Shopeepay shopeepay,
Sofort sofort,
StripeBalance stripeBalance,
+ Sunbit sunbit,
Swish swish,
Twint twint,
Type type,
@@ -782,9 +795,11 @@ private PaymentMethodData(
this.samsungPay = samsungPay;
this.satispay = satispay;
this.sepaDebit = sepaDebit;
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
this.shopeepay = shopeepay;
this.sofort = sofort;
this.stripeBalance = stripeBalance;
+ this.sunbit = sunbit;
this.swish = swish;
this.twint = twint;
this.type = type;
@@ -907,12 +922,16 @@ public static class Builder {
private SepaDebit sepaDebit;
+ private String sharedPaymentGrantedToken;
+
private Shopeepay shopeepay;
private Sofort sofort;
private StripeBalance stripeBalance;
+ private Sunbit sunbit;
+
private Swish swish;
private Twint twint;
@@ -984,9 +1003,11 @@ public ConfirmationTokenCreateParams.PaymentMethodData build() {
this.samsungPay,
this.satispay,
this.sepaDebit,
+ this.sharedPaymentGrantedToken,
this.shopeepay,
this.sofort,
this.stripeBalance,
+ this.sunbit,
this.swish,
this.twint,
this.type,
@@ -1543,6 +1564,12 @@ public Builder setSepaDebit(
return this;
}
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ public Builder setSharedPaymentGrantedToken(String sharedPaymentGrantedToken) {
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
+ return this;
+ }
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay
* payment method.
@@ -1569,6 +1596,15 @@ public Builder setStripeBalance(
return this;
}
+ /**
+ * If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment
+ * method.
+ */
+ public Builder setSunbit(ConfirmationTokenCreateParams.PaymentMethodData.Sunbit sunbit) {
+ this.sunbit = sunbit;
+ return this;
+ }
+
/**
* If this is a {@code swish} PaymentMethod, this hash contains details about the Swish
* payment method.
@@ -6125,6 +6161,64 @@ public Builder putAllExtraParam(Map map) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Sunbit {
+ /**
+ * 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 Sunbit(Map extraParams) {
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public ConfirmationTokenCreateParams.PaymentMethodData.Sunbit build() {
+ return new ConfirmationTokenCreateParams.PaymentMethodData.Sunbit(this.extraParams);
+ }
+
+ /**
+ * 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 ConfirmationTokenCreateParams.PaymentMethodData.Sunbit#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 ConfirmationTokenCreateParams.PaymentMethodData.Sunbit#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 Swish {
@@ -6922,6 +7016,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("stripe_balance")
STRIPE_BALANCE("stripe_balance"),
+ @SerializedName("sunbit")
+ SUNBIT("sunbit"),
+
@SerializedName("swish")
SWISH("swish"),
diff --git a/src/main/java/com/stripe/param/CustomerCreateParams.java b/src/main/java/com/stripe/param/CustomerCreateParams.java
index d30e6acf364..0a8e143438f 100644
--- a/src/main/java/com/stripe/param/CustomerCreateParams.java
+++ b/src/main/java/com/stripe/param/CustomerCreateParams.java
@@ -1731,19 +1731,20 @@ public static class TaxIdData {
* ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@code
* ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cm_niu}, {@code cn_tin}, {@code co_nit},
* {@code cr_tin}, {@code cv_nif}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code
- * eg_tin}, {@code es_cif}, {@code et_tin}, {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat},
- * {@code ge_vat}, {@code gn_nif}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code
- * id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn},
- * {@code jp_trn}, {@code ke_pin}, {@code kg_tin}, {@code kh_tin}, {@code kr_brn}, {@code
- * kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code ma_vat},
- * {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code
- * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec},
- * {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code
- * pl_nip}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat},
- * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code
- * sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat},
- * {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code
- * uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin}
+ * eg_tin}, {@code es_cif}, {@code et_tin}, {@code eu_oss_vat}, {@code eu_vat}, {@code fo_vat},
+ * {@code gb_vat}, {@code ge_vat}, {@code gi_tin}, {@code gn_nif}, {@code hk_br}, {@code
+ * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat},
+ * {@code it_cf}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kg_tin},
+ * {@code kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code
+ * li_vat}, {@code lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat},
+ * {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code
+ * ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat},
+ * {@code pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@code py_ruc}, {@code ro_tin}, {@code
+ * rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen},
+ * {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code
+ * tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin},
+ * {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code
+ * vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin}
*/
@SerializedName("type")
Type type;
@@ -1810,19 +1811,19 @@ public Builder putAllExtraParam(Map map) {
* {@code cd_nif}, {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cm_niu}, {@code
* cn_tin}, {@code co_nit}, {@code cr_tin}, {@code cv_nif}, {@code de_stn}, {@code do_rcn},
* {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code et_tin}, {@code eu_oss_vat}, {@code
- * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code gn_nif}, {@code hk_br}, {@code hr_oib},
- * {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code
- * jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kg_tin}, {@code kh_tin},
- * {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code
- * lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif},
- * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code
- * no_vat}, {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc},
- * {@code ph_tin}, {@code pl_nip}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code
- * ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea},
- * {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code
- * tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc},
- * {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code
- * zm_tin}, or {@code zw_tin}
+ * eu_vat}, {@code fo_vat}, {@code gb_vat}, {@code ge_vat}, {@code gi_tin}, {@code gn_nif},
+ * {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code
+ * in_gst}, {@code is_vat}, {@code it_cf}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn},
+ * {@code ke_pin}, {@code kg_tin}, {@code kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code
+ * la_tin}, {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code ma_vat}, {@code md_vat},
+ * {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code
+ * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan},
+ * {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@code
+ * py_ruc}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat},
+ * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code
+ * sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat},
+ * {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code
+ * uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin}
*/
public Builder setType(CustomerCreateParams.TaxIdData.Type type) {
this.type = type;
@@ -1972,12 +1973,18 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("eu_vat")
EU_VAT("eu_vat"),
+ @SerializedName("fo_vat")
+ FO_VAT("fo_vat"),
+
@SerializedName("gb_vat")
GB_VAT("gb_vat"),
@SerializedName("ge_vat")
GE_VAT("ge_vat"),
+ @SerializedName("gi_tin")
+ GI_TIN("gi_tin"),
+
@SerializedName("gn_nif")
GN_NIF("gn_nif"),
@@ -2002,6 +2009,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("is_vat")
IS_VAT("is_vat"),
+ @SerializedName("it_cf")
+ IT_CF("it_cf"),
+
@SerializedName("jp_cn")
JP_CN("jp_cn"),
@@ -2092,6 +2102,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("pl_nip")
PL_NIP("pl_nip"),
+ @SerializedName("py_ruc")
+ PY_RUC("py_ruc"),
+
@SerializedName("ro_tin")
RO_TIN("ro_tin"),
diff --git a/src/main/java/com/stripe/param/CustomerListPaymentMethodsParams.java b/src/main/java/com/stripe/param/CustomerListPaymentMethodsParams.java
index 2b66283037c..0d88f42003e 100644
--- a/src/main/java/com/stripe/param/CustomerListPaymentMethodsParams.java
+++ b/src/main/java/com/stripe/param/CustomerListPaymentMethodsParams.java
@@ -399,6 +399,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("stripe_balance")
STRIPE_BALANCE("stripe_balance"),
+ @SerializedName("sunbit")
+ SUNBIT("sunbit"),
+
@SerializedName("swish")
SWISH("swish"),
diff --git a/src/main/java/com/stripe/param/CustomerPaymentMethodListParams.java b/src/main/java/com/stripe/param/CustomerPaymentMethodListParams.java
index 6506d753365..73ffa3c3048 100644
--- a/src/main/java/com/stripe/param/CustomerPaymentMethodListParams.java
+++ b/src/main/java/com/stripe/param/CustomerPaymentMethodListParams.java
@@ -399,6 +399,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("stripe_balance")
STRIPE_BALANCE("stripe_balance"),
+ @SerializedName("sunbit")
+ SUNBIT("sunbit"),
+
@SerializedName("swish")
SWISH("swish"),
diff --git a/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java b/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java
index aa8cf625167..c17435beb69 100644
--- a/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java
+++ b/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java
@@ -35,18 +35,19 @@ public class CustomerTaxIdCreateParams extends ApiRequestParams {
* {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@code ch_uid}, {@code
* ch_vat}, {@code cl_tin}, {@code cm_niu}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code
* cv_nif}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code
- * et_tin}, {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code gn_nif},
- * {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst},
- * {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kg_tin},
- * {@code kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat},
- * {@code lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif},
- * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat},
- * {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code
- * ph_tin}, {@code pl_nip}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code
- * sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin},
- * {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat},
- * {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat},
- * {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin}
+ * et_tin}, {@code eu_oss_vat}, {@code eu_vat}, {@code fo_vat}, {@code gb_vat}, {@code ge_vat},
+ * {@code gi_tin}, {@code gn_nif}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp},
+ * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code it_cf}, {@code jp_cn}, {@code jp_rn},
+ * {@code jp_trn}, {@code ke_pin}, {@code kg_tin}, {@code kh_tin}, {@code kr_brn}, {@code kz_bin},
+ * {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code ma_vat}, {@code md_vat},
+ * {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code my_itn},
+ * {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan}, {@code
+ * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@code py_ruc}, {@code
+ * ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code
+ * sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat},
+ * {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin},
+ * {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin},
+ * {@code za_vat}, {@code zm_tin}, or {@code zw_tin}
*/
@SerializedName("type")
Type type;
@@ -142,19 +143,20 @@ public Builder putAllExtraParam(Map map) {
* ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@code
* ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cm_niu}, {@code cn_tin}, {@code co_nit},
* {@code cr_tin}, {@code cv_nif}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code
- * eg_tin}, {@code es_cif}, {@code et_tin}, {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat},
- * {@code ge_vat}, {@code gn_nif}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code
- * id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn},
- * {@code jp_trn}, {@code ke_pin}, {@code kg_tin}, {@code kh_tin}, {@code kr_brn}, {@code
- * kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code ma_vat},
- * {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code
- * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec},
- * {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code
- * pl_nip}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat},
- * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code
- * sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat},
- * {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code
- * uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin}
+ * eg_tin}, {@code es_cif}, {@code et_tin}, {@code eu_oss_vat}, {@code eu_vat}, {@code fo_vat},
+ * {@code gb_vat}, {@code ge_vat}, {@code gi_tin}, {@code gn_nif}, {@code hk_br}, {@code
+ * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat},
+ * {@code it_cf}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kg_tin},
+ * {@code kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code
+ * li_vat}, {@code lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat},
+ * {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code
+ * ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat},
+ * {@code pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@code py_ruc}, {@code ro_tin}, {@code
+ * rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen},
+ * {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code
+ * tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin},
+ * {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code
+ * vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin}
*/
public Builder setType(CustomerTaxIdCreateParams.Type type) {
this.type = type;
@@ -304,12 +306,18 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("eu_vat")
EU_VAT("eu_vat"),
+ @SerializedName("fo_vat")
+ FO_VAT("fo_vat"),
+
@SerializedName("gb_vat")
GB_VAT("gb_vat"),
@SerializedName("ge_vat")
GE_VAT("ge_vat"),
+ @SerializedName("gi_tin")
+ GI_TIN("gi_tin"),
+
@SerializedName("gn_nif")
GN_NIF("gn_nif"),
@@ -334,6 +342,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("is_vat")
IS_VAT("is_vat"),
+ @SerializedName("it_cf")
+ IT_CF("it_cf"),
+
@SerializedName("jp_cn")
JP_CN("jp_cn"),
@@ -424,6 +435,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("pl_nip")
PL_NIP("pl_nip"),
+ @SerializedName("py_ruc")
+ PY_RUC("py_ruc"),
+
@SerializedName("ro_tin")
RO_TIN("ro_tin"),
diff --git a/src/main/java/com/stripe/param/InvoiceCreateParams.java b/src/main/java/com/stripe/param/InvoiceCreateParams.java
index 8d0b26d869e..11de2986b25 100644
--- a/src/main/java/com/stripe/param/InvoiceCreateParams.java
+++ b/src/main/java/com/stripe/param/InvoiceCreateParams.java
@@ -2190,6 +2190,13 @@ public static class PaymentMethodOptions {
@SerializedName("bancontact")
Object bancontact;
+ /**
+ * If paying by {@code blik}, this sub-hash contains details about the Blik payment method
+ * options to pass to the invoice’s PaymentIntent.
+ */
+ @SerializedName("blik")
+ Object blik;
+
/**
* If paying by {@code card}, this sub-hash contains details about the Card payment method
* options to pass to the invoice’s PaymentIntent.
@@ -2265,6 +2272,7 @@ public static class PaymentMethodOptions {
private PaymentMethodOptions(
Object acssDebit,
Object bancontact,
+ Object blik,
Object card,
Object customerBalance,
Map extraParams,
@@ -2277,6 +2285,7 @@ private PaymentMethodOptions(
Object usBankAccount) {
this.acssDebit = acssDebit;
this.bancontact = bancontact;
+ this.blik = blik;
this.card = card;
this.customerBalance = customerBalance;
this.extraParams = extraParams;
@@ -2298,6 +2307,8 @@ public static class Builder {
private Object bancontact;
+ private Object blik;
+
private Object card;
private Object customerBalance;
@@ -2323,6 +2334,7 @@ public InvoiceCreateParams.PaymentSettings.PaymentMethodOptions build() {
return new InvoiceCreateParams.PaymentSettings.PaymentMethodOptions(
this.acssDebit,
this.bancontact,
+ this.blik,
this.card,
this.customerBalance,
this.extraParams,
@@ -2373,6 +2385,24 @@ public Builder setBancontact(EmptyParam bancontact) {
return this;
}
+ /**
+ * If paying by {@code blik}, this sub-hash contains details about the Blik payment method
+ * options to pass to the invoice’s PaymentIntent.
+ */
+ public Builder setBlik(InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Blik blik) {
+ this.blik = blik;
+ return this;
+ }
+
+ /**
+ * If paying by {@code blik}, this sub-hash contains details about the Blik payment method
+ * options to pass to the invoice’s PaymentIntent.
+ */
+ public Builder setBlik(EmptyParam blik) {
+ this.blik = blik;
+ return this;
+ }
+
/**
* If paying by {@code card}, this sub-hash contains details about the Card payment method
* options to pass to the invoice’s PaymentIntent.
@@ -2883,6 +2913,68 @@ public enum PreferredLanguage implements ApiRequestParams.EnumParam {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Blik {
+ /**
+ * 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 Blik(Map extraParams) {
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Blik build() {
+ return new InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Blik(
+ this.extraParams);
+ }
+
+ /**
+ * 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
+ * InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Blik#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
+ * InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Blik#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 Card {
@@ -4863,6 +4955,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("bancontact")
BANCONTACT("bancontact"),
+ @SerializedName("blik")
+ BLIK("blik"),
+
@SerializedName("boleto")
BOLETO("boleto"),
diff --git a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java
index 81e27120ab4..ca8b7c3663a 100644
--- a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java
+++ b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java
@@ -1402,19 +1402,19 @@ public static class TaxId {
* {@code cd_nif}, {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cm_niu}, {@code
* cn_tin}, {@code co_nit}, {@code cr_tin}, {@code cv_nif}, {@code de_stn}, {@code do_rcn},
* {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code et_tin}, {@code eu_oss_vat}, {@code
- * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code gn_nif}, {@code hk_br}, {@code hr_oib},
- * {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code
- * jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kg_tin}, {@code kh_tin},
- * {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code
- * lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif},
- * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code
- * no_vat}, {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc},
- * {@code ph_tin}, {@code pl_nip}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code
- * ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea},
- * {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code
- * tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc},
- * {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code
- * zm_tin}, or {@code zw_tin}
+ * eu_vat}, {@code fo_vat}, {@code gb_vat}, {@code ge_vat}, {@code gi_tin}, {@code gn_nif},
+ * {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code
+ * in_gst}, {@code is_vat}, {@code it_cf}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn},
+ * {@code ke_pin}, {@code kg_tin}, {@code kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code
+ * la_tin}, {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code ma_vat}, {@code md_vat},
+ * {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code
+ * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan},
+ * {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@code
+ * py_ruc}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat},
+ * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code
+ * sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat},
+ * {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code
+ * uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin}
*/
@SerializedName("type")
Type type;
@@ -1484,19 +1484,20 @@ public Builder putAllExtraParam(Map map) {
* {@code cd_nif}, {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cm_niu}, {@code
* cn_tin}, {@code co_nit}, {@code cr_tin}, {@code cv_nif}, {@code de_stn}, {@code do_rcn},
* {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code et_tin}, {@code eu_oss_vat},
- * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code gn_nif}, {@code hk_br}, {@code
- * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat},
- * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kg_tin}, {@code
- * kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat},
- * {@code lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code
- * mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin},
- * {@code no_vat}, {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code
- * pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn},
- * {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code
- * sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code
- * tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein},
- * {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code
- * za_vat}, {@code zm_tin}, or {@code zw_tin}
+ * {@code eu_vat}, {@code fo_vat}, {@code gb_vat}, {@code ge_vat}, {@code gi_tin}, {@code
+ * gn_nif}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat},
+ * {@code in_gst}, {@code is_vat}, {@code it_cf}, {@code jp_cn}, {@code jp_rn}, {@code
+ * jp_trn}, {@code ke_pin}, {@code kg_tin}, {@code kh_tin}, {@code kr_brn}, {@code kz_bin},
+ * {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code ma_vat}, {@code
+ * md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp},
+ * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code
+ * np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code pl_nip},
+ * {@code py_ruc}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code
+ * sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code
+ * sr_fin}, {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat},
+ * {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code
+ * uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin},
+ * or {@code zw_tin}
*/
public Builder setType(InvoiceCreatePreviewParams.CustomerDetails.TaxId.Type type) {
this.type = type;
@@ -1646,12 +1647,18 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("eu_vat")
EU_VAT("eu_vat"),
+ @SerializedName("fo_vat")
+ FO_VAT("fo_vat"),
+
@SerializedName("gb_vat")
GB_VAT("gb_vat"),
@SerializedName("ge_vat")
GE_VAT("ge_vat"),
+ @SerializedName("gi_tin")
+ GI_TIN("gi_tin"),
+
@SerializedName("gn_nif")
GN_NIF("gn_nif"),
@@ -1676,6 +1683,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("is_vat")
IS_VAT("is_vat"),
+ @SerializedName("it_cf")
+ IT_CF("it_cf"),
+
@SerializedName("jp_cn")
JP_CN("jp_cn"),
@@ -1766,6 +1776,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("pl_nip")
PL_NIP("pl_nip"),
+ @SerializedName("py_ruc")
+ PY_RUC("py_ruc"),
+
@SerializedName("ro_tin")
RO_TIN("ro_tin"),
diff --git a/src/main/java/com/stripe/param/InvoiceUpdateParams.java b/src/main/java/com/stripe/param/InvoiceUpdateParams.java
index b76da51a272..a6e519c1692 100644
--- a/src/main/java/com/stripe/param/InvoiceUpdateParams.java
+++ b/src/main/java/com/stripe/param/InvoiceUpdateParams.java
@@ -2184,6 +2184,13 @@ public static class PaymentMethodOptions {
@SerializedName("bancontact")
Object bancontact;
+ /**
+ * If paying by {@code blik}, this sub-hash contains details about the Blik payment method
+ * options to pass to the invoice’s PaymentIntent.
+ */
+ @SerializedName("blik")
+ Object blik;
+
/**
* If paying by {@code card}, this sub-hash contains details about the Card payment method
* options to pass to the invoice’s PaymentIntent.
@@ -2259,6 +2266,7 @@ public static class PaymentMethodOptions {
private PaymentMethodOptions(
Object acssDebit,
Object bancontact,
+ Object blik,
Object card,
Object customerBalance,
Map extraParams,
@@ -2271,6 +2279,7 @@ private PaymentMethodOptions(
Object usBankAccount) {
this.acssDebit = acssDebit;
this.bancontact = bancontact;
+ this.blik = blik;
this.card = card;
this.customerBalance = customerBalance;
this.extraParams = extraParams;
@@ -2292,6 +2301,8 @@ public static class Builder {
private Object bancontact;
+ private Object blik;
+
private Object card;
private Object customerBalance;
@@ -2317,6 +2328,7 @@ public InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions build() {
return new InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions(
this.acssDebit,
this.bancontact,
+ this.blik,
this.card,
this.customerBalance,
this.extraParams,
@@ -2367,6 +2379,24 @@ public Builder setBancontact(EmptyParam bancontact) {
return this;
}
+ /**
+ * If paying by {@code blik}, this sub-hash contains details about the Blik payment method
+ * options to pass to the invoice’s PaymentIntent.
+ */
+ public Builder setBlik(InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Blik blik) {
+ this.blik = blik;
+ return this;
+ }
+
+ /**
+ * If paying by {@code blik}, this sub-hash contains details about the Blik payment method
+ * options to pass to the invoice’s PaymentIntent.
+ */
+ public Builder setBlik(EmptyParam blik) {
+ this.blik = blik;
+ return this;
+ }
+
/**
* If paying by {@code card}, this sub-hash contains details about the Card payment method
* options to pass to the invoice’s PaymentIntent.
@@ -2877,6 +2907,68 @@ public enum PreferredLanguage implements ApiRequestParams.EnumParam {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Blik {
+ /**
+ * 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 Blik(Map extraParams) {
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Blik build() {
+ return new InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Blik(
+ this.extraParams);
+ }
+
+ /**
+ * 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
+ * InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Blik#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
+ * InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Blik#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 Card {
@@ -4901,6 +4993,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("bancontact")
BANCONTACT("bancontact"),
+ @SerializedName("blik")
+ BLIK("blik"),
+
@SerializedName("boleto")
BOLETO("boleto"),
diff --git a/src/main/java/com/stripe/param/OrderCreateParams.java b/src/main/java/com/stripe/param/OrderCreateParams.java
index f67bbe667e5..812b82ea0fb 100644
--- a/src/main/java/com/stripe/param/OrderCreateParams.java
+++ b/src/main/java/com/stripe/param/OrderCreateParams.java
@@ -15556,19 +15556,19 @@ public static class TaxId {
* {@code cd_nif}, {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cm_niu}, {@code
* cn_tin}, {@code co_nit}, {@code cr_tin}, {@code cv_nif}, {@code de_stn}, {@code do_rcn},
* {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code et_tin}, {@code eu_oss_vat}, {@code
- * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code gn_nif}, {@code hk_br}, {@code hr_oib},
- * {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code
- * jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kg_tin}, {@code kh_tin},
- * {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code
- * lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif},
- * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code
- * no_vat}, {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc},
- * {@code ph_tin}, {@code pl_nip}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code
- * ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea},
- * {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code
- * tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc},
- * {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code
- * zm_tin}, or {@code zw_tin}
+ * eu_vat}, {@code fo_vat}, {@code gb_vat}, {@code ge_vat}, {@code gi_tin}, {@code gn_nif},
+ * {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code
+ * in_gst}, {@code is_vat}, {@code it_cf}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn},
+ * {@code ke_pin}, {@code kg_tin}, {@code kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code
+ * la_tin}, {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code ma_vat}, {@code md_vat},
+ * {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code
+ * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan},
+ * {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@code
+ * py_ruc}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat},
+ * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code
+ * sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat},
+ * {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code
+ * uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin}
*/
@SerializedName("type")
Type type;
@@ -15637,19 +15637,20 @@ public Builder putAllExtraParam(Map map) {
* {@code cd_nif}, {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cm_niu}, {@code
* cn_tin}, {@code co_nit}, {@code cr_tin}, {@code cv_nif}, {@code de_stn}, {@code do_rcn},
* {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code et_tin}, {@code eu_oss_vat},
- * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code gn_nif}, {@code hk_br}, {@code
- * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat},
- * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kg_tin}, {@code
- * kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat},
- * {@code lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code
- * mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin},
- * {@code no_vat}, {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code
- * pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn},
- * {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code
- * sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code
- * tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein},
- * {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code
- * za_vat}, {@code zm_tin}, or {@code zw_tin}
+ * {@code eu_vat}, {@code fo_vat}, {@code gb_vat}, {@code ge_vat}, {@code gi_tin}, {@code
+ * gn_nif}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat},
+ * {@code in_gst}, {@code is_vat}, {@code it_cf}, {@code jp_cn}, {@code jp_rn}, {@code
+ * jp_trn}, {@code ke_pin}, {@code kg_tin}, {@code kh_tin}, {@code kr_brn}, {@code kz_bin},
+ * {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code ma_vat}, {@code
+ * md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp},
+ * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code
+ * np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code pl_nip},
+ * {@code py_ruc}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code
+ * sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code
+ * sr_fin}, {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat},
+ * {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code
+ * uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin},
+ * or {@code zw_tin}
*/
public Builder setType(OrderCreateParams.TaxDetails.TaxId.Type type) {
this.type = type;
@@ -15799,12 +15800,18 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("eu_vat")
EU_VAT("eu_vat"),
+ @SerializedName("fo_vat")
+ FO_VAT("fo_vat"),
+
@SerializedName("gb_vat")
GB_VAT("gb_vat"),
@SerializedName("ge_vat")
GE_VAT("ge_vat"),
+ @SerializedName("gi_tin")
+ GI_TIN("gi_tin"),
+
@SerializedName("gn_nif")
GN_NIF("gn_nif"),
@@ -15829,6 +15836,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("is_vat")
IS_VAT("is_vat"),
+ @SerializedName("it_cf")
+ IT_CF("it_cf"),
+
@SerializedName("jp_cn")
JP_CN("jp_cn"),
@@ -15919,6 +15929,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("pl_nip")
PL_NIP("pl_nip"),
+ @SerializedName("py_ruc")
+ PY_RUC("py_ruc"),
+
@SerializedName("ro_tin")
RO_TIN("ro_tin"),
diff --git a/src/main/java/com/stripe/param/OrderUpdateParams.java b/src/main/java/com/stripe/param/OrderUpdateParams.java
index 474779b0baf..bb3b37d30ae 100644
--- a/src/main/java/com/stripe/param/OrderUpdateParams.java
+++ b/src/main/java/com/stripe/param/OrderUpdateParams.java
@@ -16875,19 +16875,19 @@ public static class TaxId {
* {@code cd_nif}, {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cm_niu}, {@code
* cn_tin}, {@code co_nit}, {@code cr_tin}, {@code cv_nif}, {@code de_stn}, {@code do_rcn},
* {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code et_tin}, {@code eu_oss_vat}, {@code
- * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code gn_nif}, {@code hk_br}, {@code hr_oib},
- * {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code
- * jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kg_tin}, {@code kh_tin},
- * {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code
- * lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif},
- * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code
- * no_vat}, {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc},
- * {@code ph_tin}, {@code pl_nip}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code
- * ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea},
- * {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code
- * tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc},
- * {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code
- * zm_tin}, or {@code zw_tin}
+ * eu_vat}, {@code fo_vat}, {@code gb_vat}, {@code ge_vat}, {@code gi_tin}, {@code gn_nif},
+ * {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code
+ * in_gst}, {@code is_vat}, {@code it_cf}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn},
+ * {@code ke_pin}, {@code kg_tin}, {@code kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code
+ * la_tin}, {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code ma_vat}, {@code md_vat},
+ * {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code
+ * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan},
+ * {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@code
+ * py_ruc}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat},
+ * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code
+ * sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat},
+ * {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code
+ * uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin}
*/
@SerializedName("type")
Type type;
@@ -16956,19 +16956,20 @@ public Builder putAllExtraParam(Map map) {
* {@code cd_nif}, {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cm_niu}, {@code
* cn_tin}, {@code co_nit}, {@code cr_tin}, {@code cv_nif}, {@code de_stn}, {@code do_rcn},
* {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code et_tin}, {@code eu_oss_vat},
- * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code gn_nif}, {@code hk_br}, {@code
- * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat},
- * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kg_tin}, {@code
- * kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat},
- * {@code lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code
- * mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin},
- * {@code no_vat}, {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code
- * pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn},
- * {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code
- * sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code
- * tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein},
- * {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code
- * za_vat}, {@code zm_tin}, or {@code zw_tin}
+ * {@code eu_vat}, {@code fo_vat}, {@code gb_vat}, {@code ge_vat}, {@code gi_tin}, {@code
+ * gn_nif}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat},
+ * {@code in_gst}, {@code is_vat}, {@code it_cf}, {@code jp_cn}, {@code jp_rn}, {@code
+ * jp_trn}, {@code ke_pin}, {@code kg_tin}, {@code kh_tin}, {@code kr_brn}, {@code kz_bin},
+ * {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code ma_vat}, {@code
+ * md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp},
+ * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code
+ * np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code pl_nip},
+ * {@code py_ruc}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code
+ * sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code
+ * sr_fin}, {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat},
+ * {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code
+ * uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin},
+ * or {@code zw_tin}
*/
public Builder setType(OrderUpdateParams.TaxDetails.TaxId.Type type) {
this.type = type;
@@ -17124,12 +17125,18 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("eu_vat")
EU_VAT("eu_vat"),
+ @SerializedName("fo_vat")
+ FO_VAT("fo_vat"),
+
@SerializedName("gb_vat")
GB_VAT("gb_vat"),
@SerializedName("ge_vat")
GE_VAT("ge_vat"),
+ @SerializedName("gi_tin")
+ GI_TIN("gi_tin"),
+
@SerializedName("gn_nif")
GN_NIF("gn_nif"),
@@ -17154,6 +17161,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("is_vat")
IS_VAT("is_vat"),
+ @SerializedName("it_cf")
+ IT_CF("it_cf"),
+
@SerializedName("jp_cn")
JP_CN("jp_cn"),
@@ -17244,6 +17254,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("pl_nip")
PL_NIP("pl_nip"),
+ @SerializedName("py_ruc")
+ PY_RUC("py_ruc"),
+
@SerializedName("ro_tin")
RO_TIN("ro_tin"),
diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
index 939ee1e3582..0022a5638b1 100644
--- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java
@@ -18,6 +18,10 @@ public class PaymentIntentConfirmParams extends ApiRequestParams {
@SerializedName("amount_details")
Object amountDetails;
+ /** Amount to confirm on the PaymentIntent. Defaults to {@code amount} if not provided. */
+ @SerializedName("amount_to_confirm")
+ Long amountToConfirm;
+
/**
* The amount of the application fee (if any) that will be requested to be applied to the payment
* and transferred to the application owner's Stripe account. The amount of the application fee
@@ -195,6 +199,7 @@ public class PaymentIntentConfirmParams extends ApiRequestParams {
private PaymentIntentConfirmParams(
Object amountDetails,
+ Long amountToConfirm,
Object applicationFeeAmount,
CaptureMethod captureMethod,
String confirmationToken,
@@ -219,6 +224,7 @@ private PaymentIntentConfirmParams(
Object shipping,
Boolean useStripeSdk) {
this.amountDetails = amountDetails;
+ this.amountToConfirm = amountToConfirm;
this.applicationFeeAmount = applicationFeeAmount;
this.captureMethod = captureMethod;
this.confirmationToken = confirmationToken;
@@ -251,6 +257,8 @@ public static Builder builder() {
public static class Builder {
private Object amountDetails;
+ private Long amountToConfirm;
+
private Object applicationFeeAmount;
private CaptureMethod captureMethod;
@@ -301,6 +309,7 @@ public static class Builder {
public PaymentIntentConfirmParams build() {
return new PaymentIntentConfirmParams(
this.amountDetails,
+ this.amountToConfirm,
this.applicationFeeAmount,
this.captureMethod,
this.confirmationToken,
@@ -338,6 +347,12 @@ public Builder setAmountDetails(EmptyParam amountDetails) {
return this;
}
+ /** Amount to confirm on the PaymentIntent. Defaults to {@code amount} if not provided. */
+ public Builder setAmountToConfirm(Long amountToConfirm) {
+ this.amountToConfirm = amountToConfirm;
+ return this;
+ }
+
/**
* The amount of the application fee (if any) that will be requested to be applied to the
* payment and transferred to the application owner's Stripe account. The amount of the
@@ -13829,6 +13844,10 @@ public static class PaymentMethodData {
@SerializedName("sepa_debit")
SepaDebit sepaDebit;
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ @SerializedName("shared_payment_granted_token")
+ String sharedPaymentGrantedToken;
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment
* method.
@@ -13847,6 +13866,13 @@ public static class PaymentMethodData {
@SerializedName("stripe_balance")
StripeBalance stripeBalance;
+ /**
+ * If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment
+ * method.
+ */
+ @SerializedName("sunbit")
+ Sunbit sunbit;
+
/**
* If this is a {@code swish} PaymentMethod, this hash contains details about the Swish payment
* method.
@@ -13951,9 +13977,11 @@ private PaymentMethodData(
SamsungPay samsungPay,
Satispay satispay,
SepaDebit sepaDebit,
+ String sharedPaymentGrantedToken,
Shopeepay shopeepay,
Sofort sofort,
StripeBalance stripeBalance,
+ Sunbit sunbit,
Swish swish,
Twint twint,
Type type,
@@ -14015,9 +14043,11 @@ private PaymentMethodData(
this.samsungPay = samsungPay;
this.satispay = satispay;
this.sepaDebit = sepaDebit;
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
this.shopeepay = shopeepay;
this.sofort = sofort;
this.stripeBalance = stripeBalance;
+ this.sunbit = sunbit;
this.swish = swish;
this.twint = twint;
this.type = type;
@@ -14140,12 +14170,16 @@ public static class Builder {
private SepaDebit sepaDebit;
+ private String sharedPaymentGrantedToken;
+
private Shopeepay shopeepay;
private Sofort sofort;
private StripeBalance stripeBalance;
+ private Sunbit sunbit;
+
private Swish swish;
private Twint twint;
@@ -14217,9 +14251,11 @@ public PaymentIntentConfirmParams.PaymentMethodData build() {
this.samsungPay,
this.satispay,
this.sepaDebit,
+ this.sharedPaymentGrantedToken,
this.shopeepay,
this.sofort,
this.stripeBalance,
+ this.sunbit,
this.swish,
this.twint,
this.type,
@@ -14772,6 +14808,12 @@ public Builder setSepaDebit(
return this;
}
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ public Builder setSharedPaymentGrantedToken(String sharedPaymentGrantedToken) {
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
+ return this;
+ }
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay
* payment method.
@@ -14798,6 +14840,15 @@ public Builder setStripeBalance(
return this;
}
+ /**
+ * If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment
+ * method.
+ */
+ public Builder setSunbit(PaymentIntentConfirmParams.PaymentMethodData.Sunbit sunbit) {
+ this.sunbit = sunbit;
+ return this;
+ }
+
/**
* If this is a {@code swish} PaymentMethod, this hash contains details about the Swish
* payment method.
@@ -19335,6 +19386,64 @@ public Builder putAllExtraParam(Map map) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Sunbit {
+ /**
+ * 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 Sunbit(Map extraParams) {
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentIntentConfirmParams.PaymentMethodData.Sunbit build() {
+ return new PaymentIntentConfirmParams.PaymentMethodData.Sunbit(this.extraParams);
+ }
+
+ /**
+ * 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.PaymentMethodData.Sunbit#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.PaymentMethodData.Sunbit#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 Swish {
@@ -20130,6 +20239,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("stripe_balance")
STRIPE_BALANCE("stripe_balance"),
+ @SerializedName("sunbit")
+ SUNBIT("sunbit"),
+
@SerializedName("swish")
SWISH("swish"),
@@ -40304,10 +40416,6 @@ public static class Pix {
* When processing card payments, Stripe uses {@code setup_future_usage} to help you comply
* with regional legislation and network rules, such as SCA.
- *
- *
If you've already set {@code setup_future_usage} and you're performing a request using a
- * publishable key, you can only update the value from {@code on_session} to {@code
- * off_session}.
*/
@SerializedName("setup_future_usage")
SetupFutureUsage setupFutureUsage;
@@ -40438,10 +40546,6 @@ public Builder setMandateOptions(
*
When processing card payments, Stripe uses {@code setup_future_usage} to help you
* comply with regional legislation and network rules, such as SCA.
- *
- *
If you've already set {@code setup_future_usage} and you're performing a request using
- * a publishable key, you can only update the value from {@code on_session} to {@code
- * off_session}.
*/
public Builder setSetupFutureUsage(
PaymentIntentConfirmParams.PaymentMethodOptions.Pix.SetupFutureUsage setupFutureUsage) {
@@ -44821,6 +44925,9 @@ public enum ExcludedPaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("stripe_balance")
STRIPE_BALANCE("stripe_balance"),
+ @SerializedName("sunbit")
+ SUNBIT("sunbit"),
+
@SerializedName("swish")
SWISH("swish"),
diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
index 556cc99bb34..59d810acbb4 100644
--- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
@@ -14325,6 +14325,10 @@ public static class PaymentMethodData {
@SerializedName("sepa_debit")
SepaDebit sepaDebit;
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ @SerializedName("shared_payment_granted_token")
+ String sharedPaymentGrantedToken;
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment
* method.
@@ -14343,6 +14347,13 @@ public static class PaymentMethodData {
@SerializedName("stripe_balance")
StripeBalance stripeBalance;
+ /**
+ * If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment
+ * method.
+ */
+ @SerializedName("sunbit")
+ Sunbit sunbit;
+
/**
* If this is a {@code swish} PaymentMethod, this hash contains details about the Swish payment
* method.
@@ -14447,9 +14458,11 @@ private PaymentMethodData(
SamsungPay samsungPay,
Satispay satispay,
SepaDebit sepaDebit,
+ String sharedPaymentGrantedToken,
Shopeepay shopeepay,
Sofort sofort,
StripeBalance stripeBalance,
+ Sunbit sunbit,
Swish swish,
Twint twint,
Type type,
@@ -14511,9 +14524,11 @@ private PaymentMethodData(
this.samsungPay = samsungPay;
this.satispay = satispay;
this.sepaDebit = sepaDebit;
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
this.shopeepay = shopeepay;
this.sofort = sofort;
this.stripeBalance = stripeBalance;
+ this.sunbit = sunbit;
this.swish = swish;
this.twint = twint;
this.type = type;
@@ -14636,12 +14651,16 @@ public static class Builder {
private SepaDebit sepaDebit;
+ private String sharedPaymentGrantedToken;
+
private Shopeepay shopeepay;
private Sofort sofort;
private StripeBalance stripeBalance;
+ private Sunbit sunbit;
+
private Swish swish;
private Twint twint;
@@ -14713,9 +14732,11 @@ public PaymentIntentCreateParams.PaymentMethodData build() {
this.samsungPay,
this.satispay,
this.sepaDebit,
+ this.sharedPaymentGrantedToken,
this.shopeepay,
this.sofort,
this.stripeBalance,
+ this.sunbit,
this.swish,
this.twint,
this.type,
@@ -15261,6 +15282,12 @@ public Builder setSepaDebit(PaymentIntentCreateParams.PaymentMethodData.SepaDebi
return this;
}
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ public Builder setSharedPaymentGrantedToken(String sharedPaymentGrantedToken) {
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
+ return this;
+ }
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay
* payment method.
@@ -15286,6 +15313,15 @@ public Builder setStripeBalance(
return this;
}
+ /**
+ * If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment
+ * method.
+ */
+ public Builder setSunbit(PaymentIntentCreateParams.PaymentMethodData.Sunbit sunbit) {
+ this.sunbit = sunbit;
+ return this;
+ }
+
/**
* If this is a {@code swish} PaymentMethod, this hash contains details about the Swish
* payment method.
@@ -19817,6 +19853,64 @@ public Builder putAllExtraParam(Map map) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Sunbit {
+ /**
+ * 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 Sunbit(Map extraParams) {
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentIntentCreateParams.PaymentMethodData.Sunbit build() {
+ return new PaymentIntentCreateParams.PaymentMethodData.Sunbit(this.extraParams);
+ }
+
+ /**
+ * 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.PaymentMethodData.Sunbit#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.PaymentMethodData.Sunbit#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 Swish {
@@ -20612,6 +20706,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("stripe_balance")
STRIPE_BALANCE("stripe_balance"),
+ @SerializedName("sunbit")
+ SUNBIT("sunbit"),
+
@SerializedName("swish")
SWISH("swish"),
@@ -40768,10 +40865,6 @@ public static class Pix {
* When processing card payments, Stripe uses {@code setup_future_usage} to help you comply
* with regional legislation and network rules, such as SCA.
- *
- *
If you've already set {@code setup_future_usage} and you're performing a request using a
- * publishable key, you can only update the value from {@code on_session} to {@code
- * off_session}.
*/
@SerializedName("setup_future_usage")
SetupFutureUsage setupFutureUsage;
@@ -40902,10 +40995,6 @@ public Builder setMandateOptions(
*
When processing card payments, Stripe uses {@code setup_future_usage} to help you
* comply with regional legislation and network rules, such as SCA.
- *
- *
If you've already set {@code setup_future_usage} and you're performing a request using
- * a publishable key, you can only update the value from {@code on_session} to {@code
- * off_session}.
*/
public Builder setSetupFutureUsage(
PaymentIntentCreateParams.PaymentMethodOptions.Pix.SetupFutureUsage setupFutureUsage) {
@@ -45401,6 +45490,9 @@ public enum ExcludedPaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("stripe_balance")
STRIPE_BALANCE("stripe_balance"),
+ @SerializedName("sunbit")
+ SUNBIT("sunbit"),
+
@SerializedName("swish")
SWISH("swish"),
diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
index 1c9f531799a..aa1b86bf3cc 100644
--- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
@@ -15078,6 +15078,10 @@ public static class PaymentMethodData {
@SerializedName("sepa_debit")
SepaDebit sepaDebit;
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ @SerializedName("shared_payment_granted_token")
+ Object sharedPaymentGrantedToken;
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment
* method.
@@ -15096,6 +15100,13 @@ public static class PaymentMethodData {
@SerializedName("stripe_balance")
StripeBalance stripeBalance;
+ /**
+ * If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment
+ * method.
+ */
+ @SerializedName("sunbit")
+ Sunbit sunbit;
+
/**
* If this is a {@code swish} PaymentMethod, this hash contains details about the Swish payment
* method.
@@ -15200,9 +15211,11 @@ private PaymentMethodData(
SamsungPay samsungPay,
Satispay satispay,
SepaDebit sepaDebit,
+ Object sharedPaymentGrantedToken,
Shopeepay shopeepay,
Sofort sofort,
StripeBalance stripeBalance,
+ Sunbit sunbit,
Swish swish,
Twint twint,
Type type,
@@ -15264,9 +15277,11 @@ private PaymentMethodData(
this.samsungPay = samsungPay;
this.satispay = satispay;
this.sepaDebit = sepaDebit;
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
this.shopeepay = shopeepay;
this.sofort = sofort;
this.stripeBalance = stripeBalance;
+ this.sunbit = sunbit;
this.swish = swish;
this.twint = twint;
this.type = type;
@@ -15389,12 +15404,16 @@ public static class Builder {
private SepaDebit sepaDebit;
+ private Object sharedPaymentGrantedToken;
+
private Shopeepay shopeepay;
private Sofort sofort;
private StripeBalance stripeBalance;
+ private Sunbit sunbit;
+
private Swish swish;
private Twint twint;
@@ -15466,9 +15485,11 @@ public PaymentIntentUpdateParams.PaymentMethodData build() {
this.samsungPay,
this.satispay,
this.sepaDebit,
+ this.sharedPaymentGrantedToken,
this.shopeepay,
this.sofort,
this.stripeBalance,
+ this.sunbit,
this.swish,
this.twint,
this.type,
@@ -16014,6 +16035,18 @@ public Builder setSepaDebit(PaymentIntentUpdateParams.PaymentMethodData.SepaDebi
return this;
}
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ public Builder setSharedPaymentGrantedToken(String sharedPaymentGrantedToken) {
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
+ return this;
+ }
+
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ public Builder setSharedPaymentGrantedToken(EmptyParam sharedPaymentGrantedToken) {
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
+ return this;
+ }
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay
* payment method.
@@ -16039,6 +16072,15 @@ public Builder setStripeBalance(
return this;
}
+ /**
+ * If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment
+ * method.
+ */
+ public Builder setSunbit(PaymentIntentUpdateParams.PaymentMethodData.Sunbit sunbit) {
+ this.sunbit = sunbit;
+ return this;
+ }
+
/**
* If this is a {@code swish} PaymentMethod, this hash contains details about the Swish
* payment method.
@@ -20750,6 +20792,64 @@ public Builder putAllExtraParam(Map map) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Sunbit {
+ /**
+ * 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 Sunbit(Map extraParams) {
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentIntentUpdateParams.PaymentMethodData.Sunbit build() {
+ return new PaymentIntentUpdateParams.PaymentMethodData.Sunbit(this.extraParams);
+ }
+
+ /**
+ * 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.PaymentMethodData.Sunbit#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.PaymentMethodData.Sunbit#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 Swish {
@@ -21572,6 +21672,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("stripe_balance")
STRIPE_BALANCE("stripe_balance"),
+ @SerializedName("sunbit")
+ SUNBIT("sunbit"),
+
@SerializedName("swish")
SWISH("swish"),
@@ -42662,10 +42765,6 @@ public static class Pix {
* When processing card payments, Stripe uses {@code setup_future_usage} to help you comply
* with regional legislation and network rules, such as SCA.
- *
- *
If you've already set {@code setup_future_usage} and you're performing a request using a
- * publishable key, you can only update the value from {@code on_session} to {@code
- * off_session}.
*/
@SerializedName("setup_future_usage")
SetupFutureUsage setupFutureUsage;
@@ -42796,10 +42895,6 @@ public Builder setMandateOptions(
*
When processing card payments, Stripe uses {@code setup_future_usage} to help you
* comply with regional legislation and network rules, such as SCA.
- *
- *
If you've already set {@code setup_future_usage} and you're performing a request using
- * a publishable key, you can only update the value from {@code on_session} to {@code
- * off_session}.
*/
public Builder setSetupFutureUsage(
PaymentIntentUpdateParams.PaymentMethodOptions.Pix.SetupFutureUsage setupFutureUsage) {
@@ -47319,6 +47414,9 @@ public enum ExcludedPaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("stripe_balance")
STRIPE_BALANCE("stripe_balance"),
+ @SerializedName("sunbit")
+ SUNBIT("sunbit"),
+
@SerializedName("swish")
SWISH("swish"),
diff --git a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java
index 317f121c208..65738f36442 100644
--- a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java
+++ b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java
@@ -7336,6 +7336,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("sofort")
SOFORT("sofort"),
+ @SerializedName("sunbit")
+ SUNBIT("sunbit"),
+
@SerializedName("swish")
SWISH("swish"),
diff --git a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java
index 18d7460bbc3..0efaaa52817 100644
--- a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java
+++ b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java
@@ -6166,6 +6166,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("sofort")
SOFORT("sofort"),
+ @SerializedName("sunbit")
+ SUNBIT("sunbit"),
+
@SerializedName("swish")
SWISH("swish"),
diff --git a/src/main/java/com/stripe/param/PaymentMethodConfigurationCreateParams.java b/src/main/java/com/stripe/param/PaymentMethodConfigurationCreateParams.java
index 56b17599650..feb9b9c4e04 100644
--- a/src/main/java/com/stripe/param/PaymentMethodConfigurationCreateParams.java
+++ b/src/main/java/com/stripe/param/PaymentMethodConfigurationCreateParams.java
@@ -509,6 +509,17 @@ public class PaymentMethodConfigurationCreateParams extends ApiRequestParams {
@SerializedName("sofort")
Sofort sofort;
+ /**
+ * Sunbit is a single-use
+ * payment method where customers choose to pay in 3, 6, or 12 installments. Customers are
+ * redirected from your website or app, authorize the payment with Sunbit, then return to your
+ * website or app. You get immediate
+ * notification of whether the payment succeeded or failed.
+ */
+ @SerializedName("sunbit")
+ Sunbit sunbit;
+
/**
* Swish is a real-time payment method
* popular in Sweden. It allows customers to single-use
+ * payment method where customers choose to pay in 3, 6, or 12 installments. Customers are
+ * redirected from your website or app, authorize the payment with Sunbit, then return to your
+ * website or app. You get immediate
+ * notification of whether the payment succeeded or failed.
+ */
+ public Builder setSunbit(PaymentMethodConfigurationCreateParams.Sunbit sunbit) {
+ this.sunbit = sunbit;
+ return this;
+ }
+
/**
* Swish is a real-time payment method
* popular in Sweden. It allows customers to extraParams;
+
+ private Sunbit(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.Sunbit build() {
+ return new PaymentMethodConfigurationCreateParams.Sunbit(
+ this.displayPreference, this.extraParams);
+ }
+
+ /** Whether or not the payment method should be displayed. */
+ public Builder setDisplayPreference(
+ PaymentMethodConfigurationCreateParams.Sunbit.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.Sunbit#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.Sunbit#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.Sunbit.DisplayPreference build() {
+ return new PaymentMethodConfigurationCreateParams.Sunbit.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.Sunbit.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.Sunbit.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.Sunbit.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 Swish {
diff --git a/src/main/java/com/stripe/param/PaymentMethodConfigurationUpdateParams.java b/src/main/java/com/stripe/param/PaymentMethodConfigurationUpdateParams.java
index 3c2fa94c8d2..cf8fe0abc38 100644
--- a/src/main/java/com/stripe/param/PaymentMethodConfigurationUpdateParams.java
+++ b/src/main/java/com/stripe/param/PaymentMethodConfigurationUpdateParams.java
@@ -510,6 +510,17 @@ public class PaymentMethodConfigurationUpdateParams extends ApiRequestParams {
@SerializedName("sofort")
Sofort sofort;
+ /**
+ * Sunbit is a single-use
+ * payment method where customers choose to pay in 3, 6, or 12 installments. Customers are
+ * redirected from your website or app, authorize the payment with Sunbit, then return to your
+ * website or app. You get immediate
+ * notification of whether the payment succeeded or failed.
+ */
+ @SerializedName("sunbit")
+ Sunbit sunbit;
+
/**
* Swish is a real-time payment method
* popular in Sweden. It allows customers to single-use
+ * payment method where customers choose to pay in 3, 6, or 12 installments. Customers are
+ * redirected from your website or app, authorize the payment with Sunbit, then return to your
+ * website or app. You get immediate
+ * notification of whether the payment succeeded or failed.
+ */
+ public Builder setSunbit(PaymentMethodConfigurationUpdateParams.Sunbit sunbit) {
+ this.sunbit = sunbit;
+ return this;
+ }
+
/**
* Swish is a real-time payment method
* popular in Sweden. It allows customers to extraParams;
+
+ private Sunbit(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 PaymentMethodConfigurationUpdateParams.Sunbit build() {
+ return new PaymentMethodConfigurationUpdateParams.Sunbit(
+ this.displayPreference, this.extraParams);
+ }
+
+ /** Whether or not the payment method should be displayed. */
+ public Builder setDisplayPreference(
+ PaymentMethodConfigurationUpdateParams.Sunbit.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
+ * PaymentMethodConfigurationUpdateParams.Sunbit#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 PaymentMethodConfigurationUpdateParams.Sunbit#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 PaymentMethodConfigurationUpdateParams.Sunbit.DisplayPreference build() {
+ return new PaymentMethodConfigurationUpdateParams.Sunbit.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
+ * PaymentMethodConfigurationUpdateParams.Sunbit.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
+ * PaymentMethodConfigurationUpdateParams.Sunbit.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(
+ PaymentMethodConfigurationUpdateParams.Sunbit.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 Swish {
diff --git a/src/main/java/com/stripe/param/PaymentMethodCreateParams.java b/src/main/java/com/stripe/param/PaymentMethodCreateParams.java
index 7c2c73529ef..4cac6a6b46d 100644
--- a/src/main/java/com/stripe/param/PaymentMethodCreateParams.java
+++ b/src/main/java/com/stripe/param/PaymentMethodCreateParams.java
@@ -440,6 +440,12 @@ public class PaymentMethodCreateParams extends ApiRequestParams {
@SerializedName("stripe_balance")
StripeBalance stripeBalance;
+ /**
+ * If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method.
+ */
+ @SerializedName("sunbit")
+ Sunbit sunbit;
+
/**
* If this is a {@code swish} PaymentMethod, this hash contains details about the Swish payment
* method.
@@ -551,6 +557,7 @@ private PaymentMethodCreateParams(
Shopeepay shopeepay,
Sofort sofort,
StripeBalance stripeBalance,
+ Sunbit sunbit,
Swish swish,
Twint twint,
Type type,
@@ -620,6 +627,7 @@ private PaymentMethodCreateParams(
this.shopeepay = shopeepay;
this.sofort = sofort;
this.stripeBalance = stripeBalance;
+ this.sunbit = sunbit;
this.swish = swish;
this.twint = twint;
this.type = type;
@@ -758,6 +766,8 @@ public static class Builder {
private StripeBalance stripeBalance;
+ private Sunbit sunbit;
+
private Swish swish;
private Twint twint;
@@ -837,6 +847,7 @@ public PaymentMethodCreateParams build() {
this.shopeepay,
this.sofort,
this.stripeBalance,
+ this.sunbit,
this.swish,
this.twint,
this.type,
@@ -1464,6 +1475,15 @@ public Builder setStripeBalance(PaymentMethodCreateParams.StripeBalance stripeBa
return this;
}
+ /**
+ * If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment
+ * method.
+ */
+ public Builder setSunbit(PaymentMethodCreateParams.Sunbit sunbit) {
+ this.sunbit = sunbit;
+ return this;
+ }
+
/**
* If this is a {@code swish} PaymentMethod, this hash contains details about the Swish payment
* method.
@@ -6177,6 +6197,62 @@ public Builder putAllExtraParam(Map map) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Sunbit {
+ /**
+ * 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 Sunbit(Map extraParams) {
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public PaymentMethodCreateParams.Sunbit build() {
+ return new PaymentMethodCreateParams.Sunbit(this.extraParams);
+ }
+
+ /**
+ * 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
+ * PaymentMethodCreateParams.Sunbit#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 PaymentMethodCreateParams.Sunbit#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 Swish {
@@ -7037,6 +7113,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("stripe_balance")
STRIPE_BALANCE("stripe_balance"),
+ @SerializedName("sunbit")
+ SUNBIT("sunbit"),
+
@SerializedName("swish")
SWISH("swish"),
diff --git a/src/main/java/com/stripe/param/PaymentMethodListParams.java b/src/main/java/com/stripe/param/PaymentMethodListParams.java
index ec7d70f3314..0ff519d8043 100644
--- a/src/main/java/com/stripe/param/PaymentMethodListParams.java
+++ b/src/main/java/com/stripe/param/PaymentMethodListParams.java
@@ -427,6 +427,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("stripe_balance")
STRIPE_BALANCE("stripe_balance"),
+ @SerializedName("sunbit")
+ SUNBIT("sunbit"),
+
@SerializedName("swish")
SWISH("swish"),
diff --git a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java
index 44a23420253..177379793e9 100644
--- a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java
+++ b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java
@@ -1010,6 +1010,10 @@ public static class PaymentMethodData {
@SerializedName("sepa_debit")
SepaDebit sepaDebit;
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ @SerializedName("shared_payment_granted_token")
+ String sharedPaymentGrantedToken;
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment
* method.
@@ -1028,6 +1032,13 @@ public static class PaymentMethodData {
@SerializedName("stripe_balance")
StripeBalance stripeBalance;
+ /**
+ * If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment
+ * method.
+ */
+ @SerializedName("sunbit")
+ Sunbit sunbit;
+
/**
* If this is a {@code swish} PaymentMethod, this hash contains details about the Swish payment
* method.
@@ -1132,9 +1143,11 @@ private PaymentMethodData(
SamsungPay samsungPay,
Satispay satispay,
SepaDebit sepaDebit,
+ String sharedPaymentGrantedToken,
Shopeepay shopeepay,
Sofort sofort,
StripeBalance stripeBalance,
+ Sunbit sunbit,
Swish swish,
Twint twint,
Type type,
@@ -1196,9 +1209,11 @@ private PaymentMethodData(
this.samsungPay = samsungPay;
this.satispay = satispay;
this.sepaDebit = sepaDebit;
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
this.shopeepay = shopeepay;
this.sofort = sofort;
this.stripeBalance = stripeBalance;
+ this.sunbit = sunbit;
this.swish = swish;
this.twint = twint;
this.type = type;
@@ -1321,12 +1336,16 @@ public static class Builder {
private SepaDebit sepaDebit;
+ private String sharedPaymentGrantedToken;
+
private Shopeepay shopeepay;
private Sofort sofort;
private StripeBalance stripeBalance;
+ private Sunbit sunbit;
+
private Swish swish;
private Twint twint;
@@ -1398,9 +1417,11 @@ public SetupIntentConfirmParams.PaymentMethodData build() {
this.samsungPay,
this.satispay,
this.sepaDebit,
+ this.sharedPaymentGrantedToken,
this.shopeepay,
this.sofort,
this.stripeBalance,
+ this.sunbit,
this.swish,
this.twint,
this.type,
@@ -1946,6 +1967,12 @@ public Builder setSepaDebit(SetupIntentConfirmParams.PaymentMethodData.SepaDebit
return this;
}
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ public Builder setSharedPaymentGrantedToken(String sharedPaymentGrantedToken) {
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
+ return this;
+ }
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay
* payment method.
@@ -1971,6 +1998,15 @@ public Builder setStripeBalance(
return this;
}
+ /**
+ * If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment
+ * method.
+ */
+ public Builder setSunbit(SetupIntentConfirmParams.PaymentMethodData.Sunbit sunbit) {
+ this.sunbit = sunbit;
+ return this;
+ }
+
/**
* If this is a {@code swish} PaymentMethod, this hash contains details about the Swish
* payment method.
@@ -6502,6 +6538,64 @@ public Builder putAllExtraParam(Map map) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Sunbit {
+ /**
+ * 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 Sunbit(Map extraParams) {
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public SetupIntentConfirmParams.PaymentMethodData.Sunbit build() {
+ return new SetupIntentConfirmParams.PaymentMethodData.Sunbit(this.extraParams);
+ }
+
+ /**
+ * 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 SetupIntentConfirmParams.PaymentMethodData.Sunbit#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 SetupIntentConfirmParams.PaymentMethodData.Sunbit#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 Swish {
@@ -7296,6 +7390,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("stripe_balance")
STRIPE_BALANCE("stripe_balance"),
+ @SerializedName("sunbit")
+ SUNBIT("sunbit"),
+
@SerializedName("swish")
SWISH("swish"),
diff --git a/src/main/java/com/stripe/param/SetupIntentCreateParams.java b/src/main/java/com/stripe/param/SetupIntentCreateParams.java
index 08aa4641b8a..1f15b042172 100644
--- a/src/main/java/com/stripe/param/SetupIntentCreateParams.java
+++ b/src/main/java/com/stripe/param/SetupIntentCreateParams.java
@@ -1548,6 +1548,10 @@ public static class PaymentMethodData {
@SerializedName("sepa_debit")
SepaDebit sepaDebit;
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ @SerializedName("shared_payment_granted_token")
+ String sharedPaymentGrantedToken;
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment
* method.
@@ -1566,6 +1570,13 @@ public static class PaymentMethodData {
@SerializedName("stripe_balance")
StripeBalance stripeBalance;
+ /**
+ * If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment
+ * method.
+ */
+ @SerializedName("sunbit")
+ Sunbit sunbit;
+
/**
* If this is a {@code swish} PaymentMethod, this hash contains details about the Swish payment
* method.
@@ -1670,9 +1681,11 @@ private PaymentMethodData(
SamsungPay samsungPay,
Satispay satispay,
SepaDebit sepaDebit,
+ String sharedPaymentGrantedToken,
Shopeepay shopeepay,
Sofort sofort,
StripeBalance stripeBalance,
+ Sunbit sunbit,
Swish swish,
Twint twint,
Type type,
@@ -1734,9 +1747,11 @@ private PaymentMethodData(
this.samsungPay = samsungPay;
this.satispay = satispay;
this.sepaDebit = sepaDebit;
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
this.shopeepay = shopeepay;
this.sofort = sofort;
this.stripeBalance = stripeBalance;
+ this.sunbit = sunbit;
this.swish = swish;
this.twint = twint;
this.type = type;
@@ -1859,12 +1874,16 @@ public static class Builder {
private SepaDebit sepaDebit;
+ private String sharedPaymentGrantedToken;
+
private Shopeepay shopeepay;
private Sofort sofort;
private StripeBalance stripeBalance;
+ private Sunbit sunbit;
+
private Swish swish;
private Twint twint;
@@ -1936,9 +1955,11 @@ public SetupIntentCreateParams.PaymentMethodData build() {
this.samsungPay,
this.satispay,
this.sepaDebit,
+ this.sharedPaymentGrantedToken,
this.shopeepay,
this.sofort,
this.stripeBalance,
+ this.sunbit,
this.swish,
this.twint,
this.type,
@@ -2483,6 +2504,12 @@ public Builder setSepaDebit(SetupIntentCreateParams.PaymentMethodData.SepaDebit
return this;
}
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ public Builder setSharedPaymentGrantedToken(String sharedPaymentGrantedToken) {
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
+ return this;
+ }
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay
* payment method.
@@ -2508,6 +2535,15 @@ public Builder setStripeBalance(
return this;
}
+ /**
+ * If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment
+ * method.
+ */
+ public Builder setSunbit(SetupIntentCreateParams.PaymentMethodData.Sunbit sunbit) {
+ this.sunbit = sunbit;
+ return this;
+ }
+
/**
* If this is a {@code swish} PaymentMethod, this hash contains details about the Swish
* payment method.
@@ -7036,6 +7072,64 @@ public Builder putAllExtraParam(Map map) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Sunbit {
+ /**
+ * 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 Sunbit(Map extraParams) {
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public SetupIntentCreateParams.PaymentMethodData.Sunbit build() {
+ return new SetupIntentCreateParams.PaymentMethodData.Sunbit(this.extraParams);
+ }
+
+ /**
+ * 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 SetupIntentCreateParams.PaymentMethodData.Sunbit#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 SetupIntentCreateParams.PaymentMethodData.Sunbit#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 Swish {
@@ -7830,6 +7924,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("stripe_balance")
STRIPE_BALANCE("stripe_balance"),
+ @SerializedName("sunbit")
+ SUNBIT("sunbit"),
+
@SerializedName("swish")
SWISH("swish"),
@@ -13341,6 +13438,9 @@ public enum ExcludedPaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("stripe_balance")
STRIPE_BALANCE("stripe_balance"),
+ @SerializedName("sunbit")
+ SUNBIT("sunbit"),
+
@SerializedName("swish")
SWISH("swish"),
diff --git a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java
index 120d5df7b11..d8f7eef2aab 100644
--- a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java
+++ b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java
@@ -917,6 +917,10 @@ public static class PaymentMethodData {
@SerializedName("sepa_debit")
SepaDebit sepaDebit;
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ @SerializedName("shared_payment_granted_token")
+ Object sharedPaymentGrantedToken;
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment
* method.
@@ -935,6 +939,13 @@ public static class PaymentMethodData {
@SerializedName("stripe_balance")
StripeBalance stripeBalance;
+ /**
+ * If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment
+ * method.
+ */
+ @SerializedName("sunbit")
+ Sunbit sunbit;
+
/**
* If this is a {@code swish} PaymentMethod, this hash contains details about the Swish payment
* method.
@@ -1039,9 +1050,11 @@ private PaymentMethodData(
SamsungPay samsungPay,
Satispay satispay,
SepaDebit sepaDebit,
+ Object sharedPaymentGrantedToken,
Shopeepay shopeepay,
Sofort sofort,
StripeBalance stripeBalance,
+ Sunbit sunbit,
Swish swish,
Twint twint,
Type type,
@@ -1103,9 +1116,11 @@ private PaymentMethodData(
this.samsungPay = samsungPay;
this.satispay = satispay;
this.sepaDebit = sepaDebit;
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
this.shopeepay = shopeepay;
this.sofort = sofort;
this.stripeBalance = stripeBalance;
+ this.sunbit = sunbit;
this.swish = swish;
this.twint = twint;
this.type = type;
@@ -1228,12 +1243,16 @@ public static class Builder {
private SepaDebit sepaDebit;
+ private Object sharedPaymentGrantedToken;
+
private Shopeepay shopeepay;
private Sofort sofort;
private StripeBalance stripeBalance;
+ private Sunbit sunbit;
+
private Swish swish;
private Twint twint;
@@ -1305,9 +1324,11 @@ public SetupIntentUpdateParams.PaymentMethodData build() {
this.samsungPay,
this.satispay,
this.sepaDebit,
+ this.sharedPaymentGrantedToken,
this.shopeepay,
this.sofort,
this.stripeBalance,
+ this.sunbit,
this.swish,
this.twint,
this.type,
@@ -1852,6 +1873,18 @@ public Builder setSepaDebit(SetupIntentUpdateParams.PaymentMethodData.SepaDebit
return this;
}
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ public Builder setSharedPaymentGrantedToken(String sharedPaymentGrantedToken) {
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
+ return this;
+ }
+
+ /** ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. */
+ public Builder setSharedPaymentGrantedToken(EmptyParam sharedPaymentGrantedToken) {
+ this.sharedPaymentGrantedToken = sharedPaymentGrantedToken;
+ return this;
+ }
+
/**
* If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay
* payment method.
@@ -1877,6 +1910,15 @@ public Builder setStripeBalance(
return this;
}
+ /**
+ * If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment
+ * method.
+ */
+ public Builder setSunbit(SetupIntentUpdateParams.PaymentMethodData.Sunbit sunbit) {
+ this.sunbit = sunbit;
+ return this;
+ }
+
/**
* If this is a {@code swish} PaymentMethod, this hash contains details about the Swish
* payment method.
@@ -6585,6 +6627,64 @@ public Builder putAllExtraParam(Map map) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Sunbit {
+ /**
+ * 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 Sunbit(Map extraParams) {
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public SetupIntentUpdateParams.PaymentMethodData.Sunbit build() {
+ return new SetupIntentUpdateParams.PaymentMethodData.Sunbit(this.extraParams);
+ }
+
+ /**
+ * 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 SetupIntentUpdateParams.PaymentMethodData.Sunbit#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 SetupIntentUpdateParams.PaymentMethodData.Sunbit#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 Swish {
@@ -7406,6 +7506,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("stripe_balance")
STRIPE_BALANCE("stripe_balance"),
+ @SerializedName("sunbit")
+ SUNBIT("sunbit"),
+
@SerializedName("swish")
SWISH("swish"),
@@ -12995,6 +13098,9 @@ public enum ExcludedPaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("stripe_balance")
STRIPE_BALANCE("stripe_balance"),
+ @SerializedName("sunbit")
+ SUNBIT("sunbit"),
+
@SerializedName("swish")
SWISH("swish"),
diff --git a/src/main/java/com/stripe/param/SubscriptionCreateParams.java b/src/main/java/com/stripe/param/SubscriptionCreateParams.java
index d2dc3da6302..106ef37821b 100644
--- a/src/main/java/com/stripe/param/SubscriptionCreateParams.java
+++ b/src/main/java/com/stripe/param/SubscriptionCreateParams.java
@@ -5522,6 +5522,13 @@ public static class PaymentMethodOptions {
@SerializedName("bancontact")
Object bancontact;
+ /**
+ * This sub-hash contains details about the Blik payment method options to pass to the
+ * invoice’s PaymentIntent.
+ */
+ @SerializedName("blik")
+ Object blik;
+
/**
* This sub-hash contains details about the Card payment method options to pass to the
* invoice’s PaymentIntent.
@@ -5597,6 +5604,7 @@ public static class PaymentMethodOptions {
private PaymentMethodOptions(
Object acssDebit,
Object bancontact,
+ Object blik,
Object card,
Object customerBalance,
Map extraParams,
@@ -5609,6 +5617,7 @@ private PaymentMethodOptions(
Object usBankAccount) {
this.acssDebit = acssDebit;
this.bancontact = bancontact;
+ this.blik = blik;
this.card = card;
this.customerBalance = customerBalance;
this.extraParams = extraParams;
@@ -5630,6 +5639,8 @@ public static class Builder {
private Object bancontact;
+ private Object blik;
+
private Object card;
private Object customerBalance;
@@ -5655,6 +5666,7 @@ public SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions build() {
return new SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions(
this.acssDebit,
this.bancontact,
+ this.blik,
this.card,
this.customerBalance,
this.extraParams,
@@ -5705,6 +5717,25 @@ public Builder setBancontact(EmptyParam bancontact) {
return this;
}
+ /**
+ * This sub-hash contains details about the Blik payment method options to pass to the
+ * invoice’s PaymentIntent.
+ */
+ public Builder setBlik(
+ SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Blik blik) {
+ this.blik = blik;
+ return this;
+ }
+
+ /**
+ * This sub-hash contains details about the Blik payment method options to pass to the
+ * invoice’s PaymentIntent.
+ */
+ public Builder setBlik(EmptyParam blik) {
+ this.blik = blik;
+ return this;
+ }
+
/**
* This sub-hash contains details about the Card payment method options to pass to the
* invoice’s PaymentIntent.
@@ -6224,6 +6255,165 @@ public enum PreferredLanguage implements ApiRequestParams.EnumParam {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Blik {
+ /**
+ * 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;
+
+ /** Configuration options for setting up a mandate. */
+ @SerializedName("mandate_options")
+ MandateOptions mandateOptions;
+
+ private Blik(Map extraParams, MandateOptions mandateOptions) {
+ this.extraParams = extraParams;
+ this.mandateOptions = mandateOptions;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private MandateOptions mandateOptions;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Blik build() {
+ return new SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Blik(
+ this.extraParams, this.mandateOptions);
+ }
+
+ /**
+ * 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
+ * SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Blik#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
+ * SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Blik#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Configuration options for setting up a mandate. */
+ public Builder setMandateOptions(
+ SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Blik.MandateOptions
+ mandateOptions) {
+ this.mandateOptions = mandateOptions;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MandateOptions {
+ /**
+ * Date when the mandate expires and no further payments will be charged. If not provided,
+ * the mandate will be set to be indefinite.
+ */
+ @SerializedName("expires_after")
+ Long expiresAfter;
+
+ /**
+ * 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 MandateOptions(Long expiresAfter, Map extraParams) {
+ this.expiresAfter = expiresAfter;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Long expiresAfter;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Blik.MandateOptions
+ build() {
+ return new SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Blik
+ .MandateOptions(this.expiresAfter, this.extraParams);
+ }
+
+ /**
+ * Date when the mandate expires and no further payments will be charged. If not
+ * provided, the mandate will be set to be indefinite.
+ */
+ public Builder setExpiresAfter(Long expiresAfter) {
+ this.expiresAfter = expiresAfter;
+ 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
+ * SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Blik.MandateOptions#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
+ * SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Blik.MandateOptions#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 Card {
@@ -7328,7 +7518,10 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Schedule at which the future payments will be charged. Defaults to {@code monthly}. */
+ /**
+ * Schedule at which the future payments will be charged. Defaults to the subscription
+ * servicing interval.
+ */
@SerializedName("payment_schedule")
PaymentSchedule paymentSchedule;
@@ -7427,7 +7620,8 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * Schedule at which the future payments will be charged. Defaults to {@code monthly}.
+ * Schedule at which the future payments will be charged. Defaults to the subscription
+ * servicing interval.
*/
public Builder setPaymentSchedule(
SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Pix.MandateOptions
@@ -8306,6 +8500,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("bancontact")
BANCONTACT("bancontact"),
+ @SerializedName("blik")
+ BLIK("blik"),
+
@SerializedName("boleto")
BOLETO("boleto"),
diff --git a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java
index 962fcbbd60e..c898e58c6d1 100644
--- a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java
+++ b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java
@@ -5587,6 +5587,13 @@ public static class PaymentMethodOptions {
@SerializedName("bancontact")
Object bancontact;
+ /**
+ * This sub-hash contains details about the Blik payment method options to pass to the
+ * invoice’s PaymentIntent.
+ */
+ @SerializedName("blik")
+ Object blik;
+
/**
* This sub-hash contains details about the Card payment method options to pass to the
* invoice’s PaymentIntent.
@@ -5662,6 +5669,7 @@ public static class PaymentMethodOptions {
private PaymentMethodOptions(
Object acssDebit,
Object bancontact,
+ Object blik,
Object card,
Object customerBalance,
Map extraParams,
@@ -5674,6 +5682,7 @@ private PaymentMethodOptions(
Object usBankAccount) {
this.acssDebit = acssDebit;
this.bancontact = bancontact;
+ this.blik = blik;
this.card = card;
this.customerBalance = customerBalance;
this.extraParams = extraParams;
@@ -5695,6 +5704,8 @@ public static class Builder {
private Object bancontact;
+ private Object blik;
+
private Object card;
private Object customerBalance;
@@ -5720,6 +5731,7 @@ public SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions build() {
return new SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions(
this.acssDebit,
this.bancontact,
+ this.blik,
this.card,
this.customerBalance,
this.extraParams,
@@ -5770,6 +5782,25 @@ public Builder setBancontact(EmptyParam bancontact) {
return this;
}
+ /**
+ * This sub-hash contains details about the Blik payment method options to pass to the
+ * invoice’s PaymentIntent.
+ */
+ public Builder setBlik(
+ SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Blik blik) {
+ this.blik = blik;
+ return this;
+ }
+
+ /**
+ * This sub-hash contains details about the Blik payment method options to pass to the
+ * invoice’s PaymentIntent.
+ */
+ public Builder setBlik(EmptyParam blik) {
+ this.blik = blik;
+ return this;
+ }
+
/**
* This sub-hash contains details about the Card payment method options to pass to the
* invoice’s PaymentIntent.
@@ -6289,6 +6320,165 @@ public enum PreferredLanguage implements ApiRequestParams.EnumParam {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Blik {
+ /**
+ * 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;
+
+ /** Configuration options for setting up a mandate. */
+ @SerializedName("mandate_options")
+ MandateOptions mandateOptions;
+
+ private Blik(Map extraParams, MandateOptions mandateOptions) {
+ this.extraParams = extraParams;
+ this.mandateOptions = mandateOptions;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private MandateOptions mandateOptions;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Blik build() {
+ return new SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Blik(
+ this.extraParams, this.mandateOptions);
+ }
+
+ /**
+ * 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
+ * SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Blik#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
+ * SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Blik#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Configuration options for setting up a mandate. */
+ public Builder setMandateOptions(
+ SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Blik.MandateOptions
+ mandateOptions) {
+ this.mandateOptions = mandateOptions;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MandateOptions {
+ /**
+ * Date when the mandate expires and no further payments will be charged. If not provided,
+ * the mandate will be set to be indefinite.
+ */
+ @SerializedName("expires_after")
+ Long expiresAfter;
+
+ /**
+ * 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 MandateOptions(Long expiresAfter, Map extraParams) {
+ this.expiresAfter = expiresAfter;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Long expiresAfter;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Blik.MandateOptions
+ build() {
+ return new SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Blik
+ .MandateOptions(this.expiresAfter, this.extraParams);
+ }
+
+ /**
+ * Date when the mandate expires and no further payments will be charged. If not
+ * provided, the mandate will be set to be indefinite.
+ */
+ public Builder setExpiresAfter(Long expiresAfter) {
+ this.expiresAfter = expiresAfter;
+ 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
+ * SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Blik.MandateOptions#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
+ * SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Blik.MandateOptions#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 Card {
@@ -7431,7 +7621,10 @@ public static class MandateOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Schedule at which the future payments will be charged. Defaults to {@code monthly}. */
+ /**
+ * Schedule at which the future payments will be charged. Defaults to the subscription
+ * servicing interval.
+ */
@SerializedName("payment_schedule")
PaymentSchedule paymentSchedule;
@@ -7539,7 +7732,8 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * Schedule at which the future payments will be charged. Defaults to {@code monthly}.
+ * Schedule at which the future payments will be charged. Defaults to the subscription
+ * servicing interval.
*/
public Builder setPaymentSchedule(
SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Pix.MandateOptions
@@ -8433,6 +8627,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("bancontact")
BANCONTACT("bancontact"),
+ @SerializedName("blik")
+ BLIK("blik"),
+
@SerializedName("boleto")
BOLETO("boleto"),
diff --git a/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java b/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java
index d8f4abd78d8..fa900046df7 100644
--- a/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java
+++ b/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java
@@ -35,18 +35,19 @@ public class TaxIdCollectionCreateParams extends ApiRequestParams {
* {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@code ch_uid}, {@code
* ch_vat}, {@code cl_tin}, {@code cm_niu}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code
* cv_nif}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code
- * et_tin}, {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code gn_nif},
- * {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst},
- * {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kg_tin},
- * {@code kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat},
- * {@code lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif},
- * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat},
- * {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code
- * ph_tin}, {@code pl_nip}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code
- * sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin},
- * {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat},
- * {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat},
- * {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin}
+ * et_tin}, {@code eu_oss_vat}, {@code eu_vat}, {@code fo_vat}, {@code gb_vat}, {@code ge_vat},
+ * {@code gi_tin}, {@code gn_nif}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp},
+ * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code it_cf}, {@code jp_cn}, {@code jp_rn},
+ * {@code jp_trn}, {@code ke_pin}, {@code kg_tin}, {@code kh_tin}, {@code kr_brn}, {@code kz_bin},
+ * {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code ma_vat}, {@code md_vat},
+ * {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code my_itn},
+ * {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan}, {@code
+ * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@code py_ruc}, {@code
+ * ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code
+ * sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat},
+ * {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin},
+ * {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin},
+ * {@code za_vat}, {@code zm_tin}, or {@code zw_tin}
*/
@SerializedName("type")
Type type;
@@ -142,19 +143,20 @@ public Builder putAllExtraParam(Map map) {
* ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@code
* ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cm_niu}, {@code cn_tin}, {@code co_nit},
* {@code cr_tin}, {@code cv_nif}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code
- * eg_tin}, {@code es_cif}, {@code et_tin}, {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat},
- * {@code ge_vat}, {@code gn_nif}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code
- * id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn},
- * {@code jp_trn}, {@code ke_pin}, {@code kg_tin}, {@code kh_tin}, {@code kr_brn}, {@code
- * kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code ma_vat},
- * {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code
- * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec},
- * {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code
- * pl_nip}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat},
- * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code
- * sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat},
- * {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code
- * uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin}
+ * eg_tin}, {@code es_cif}, {@code et_tin}, {@code eu_oss_vat}, {@code eu_vat}, {@code fo_vat},
+ * {@code gb_vat}, {@code ge_vat}, {@code gi_tin}, {@code gn_nif}, {@code hk_br}, {@code
+ * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat},
+ * {@code it_cf}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kg_tin},
+ * {@code kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code
+ * li_vat}, {@code lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat},
+ * {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code
+ * ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat},
+ * {@code pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@code py_ruc}, {@code ro_tin}, {@code
+ * rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen},
+ * {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code
+ * tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin},
+ * {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code
+ * vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin}
*/
public Builder setType(TaxIdCollectionCreateParams.Type type) {
this.type = type;
@@ -304,12 +306,18 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("eu_vat")
EU_VAT("eu_vat"),
+ @SerializedName("fo_vat")
+ FO_VAT("fo_vat"),
+
@SerializedName("gb_vat")
GB_VAT("gb_vat"),
@SerializedName("ge_vat")
GE_VAT("ge_vat"),
+ @SerializedName("gi_tin")
+ GI_TIN("gi_tin"),
+
@SerializedName("gn_nif")
GN_NIF("gn_nif"),
@@ -334,6 +342,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("is_vat")
IS_VAT("is_vat"),
+ @SerializedName("it_cf")
+ IT_CF("it_cf"),
+
@SerializedName("jp_cn")
JP_CN("jp_cn"),
@@ -424,6 +435,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("pl_nip")
PL_NIP("pl_nip"),
+ @SerializedName("py_ruc")
+ PY_RUC("py_ruc"),
+
@SerializedName("ro_tin")
RO_TIN("ro_tin"),
diff --git a/src/main/java/com/stripe/param/TaxIdCreateParams.java b/src/main/java/com/stripe/param/TaxIdCreateParams.java
index 2b1dad2afbd..e6d2b3bbf58 100644
--- a/src/main/java/com/stripe/param/TaxIdCreateParams.java
+++ b/src/main/java/com/stripe/param/TaxIdCreateParams.java
@@ -39,18 +39,19 @@ public class TaxIdCreateParams extends ApiRequestParams {
* {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@code ch_uid}, {@code
* ch_vat}, {@code cl_tin}, {@code cm_niu}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code
* cv_nif}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code
- * et_tin}, {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code gn_nif},
- * {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst},
- * {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kg_tin},
- * {@code kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat},
- * {@code lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif},
- * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat},
- * {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code
- * ph_tin}, {@code pl_nip}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code
- * sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin},
- * {@code sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat},
- * {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat},
- * {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin}
+ * et_tin}, {@code eu_oss_vat}, {@code eu_vat}, {@code fo_vat}, {@code gb_vat}, {@code ge_vat},
+ * {@code gi_tin}, {@code gn_nif}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp},
+ * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code it_cf}, {@code jp_cn}, {@code jp_rn},
+ * {@code jp_trn}, {@code ke_pin}, {@code kg_tin}, {@code kh_tin}, {@code kr_brn}, {@code kz_bin},
+ * {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code ma_vat}, {@code md_vat},
+ * {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code my_itn},
+ * {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan}, {@code
+ * nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@code py_ruc}, {@code
+ * ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code
+ * sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat},
+ * {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin},
+ * {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin},
+ * {@code za_vat}, {@code zm_tin}, or {@code zw_tin}
*/
@SerializedName("type")
Type type;
@@ -156,19 +157,20 @@ public Builder setOwner(TaxIdCreateParams.Owner owner) {
* ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@code
* ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cm_niu}, {@code cn_tin}, {@code co_nit},
* {@code cr_tin}, {@code cv_nif}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code
- * eg_tin}, {@code es_cif}, {@code et_tin}, {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat},
- * {@code ge_vat}, {@code gn_nif}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code
- * id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn},
- * {@code jp_trn}, {@code ke_pin}, {@code kg_tin}, {@code kh_tin}, {@code kr_brn}, {@code
- * kz_bin}, {@code la_tin}, {@code li_uid}, {@code li_vat}, {@code lk_vat}, {@code ma_vat},
- * {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code
- * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec},
- * {@code np_pan}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code
- * pl_nip}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat},
- * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code
- * sv_nit}, {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat},
- * {@code ua_vat}, {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code
- * uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin}
+ * eg_tin}, {@code es_cif}, {@code et_tin}, {@code eu_oss_vat}, {@code eu_vat}, {@code fo_vat},
+ * {@code gb_vat}, {@code ge_vat}, {@code gi_tin}, {@code gn_nif}, {@code hk_br}, {@code
+ * hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat},
+ * {@code it_cf}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kg_tin},
+ * {@code kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code la_tin}, {@code li_uid}, {@code
+ * li_vat}, {@code lk_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat},
+ * {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code
+ * ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan}, {@code nz_gst}, {@code om_vat},
+ * {@code pe_ruc}, {@code ph_tin}, {@code pl_nip}, {@code py_ruc}, {@code ro_tin}, {@code
+ * rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen},
+ * {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code
+ * tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin},
+ * {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code
+ * vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin}
*/
public Builder setType(TaxIdCreateParams.Type type) {
this.type = type;
@@ -459,12 +461,18 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("eu_vat")
EU_VAT("eu_vat"),
+ @SerializedName("fo_vat")
+ FO_VAT("fo_vat"),
+
@SerializedName("gb_vat")
GB_VAT("gb_vat"),
@SerializedName("ge_vat")
GE_VAT("ge_vat"),
+ @SerializedName("gi_tin")
+ GI_TIN("gi_tin"),
+
@SerializedName("gn_nif")
GN_NIF("gn_nif"),
@@ -489,6 +497,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("is_vat")
IS_VAT("is_vat"),
+ @SerializedName("it_cf")
+ IT_CF("it_cf"),
+
@SerializedName("jp_cn")
JP_CN("jp_cn"),
@@ -579,6 +590,9 @@ public enum Type implements ApiRequestParams.EnumParam {
@SerializedName("pl_nip")
PL_NIP("pl_nip"),
+ @SerializedName("py_ruc")
+ PY_RUC("py_ruc"),
+
@SerializedName("ro_tin")
RO_TIN("ro_tin"),
diff --git a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java
index 40dbe716deb..57628fe3657 100644
--- a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java
+++ b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java
@@ -648,7 +648,10 @@ public enum ApiVersion implements ApiRequestParams.EnumParam {
VERSION_2026_02_25_CLOVER("2026-02-25.clover"),
@SerializedName("2026-03-25.dahlia")
- VERSION_2026_03_25_DAHLIA("2026-03-25.dahlia");
+ VERSION_2026_03_25_DAHLIA("2026-03-25.dahlia"),
+
+ @SerializedName("2026-04-22.dahlia")
+ VERSION_2026_04_22_DAHLIA("2026-04-22.dahlia");
@Getter(onMethod_ = {@Override})
private final String value;
diff --git a/src/main/java/com/stripe/param/billing/MeterCreateParams.java b/src/main/java/com/stripe/param/billing/MeterCreateParams.java
index 2081cf3fe27..0d4d9aba31d 100644
--- a/src/main/java/com/stripe/param/billing/MeterCreateParams.java
+++ b/src/main/java/com/stripe/param/billing/MeterCreateParams.java
@@ -317,11 +317,7 @@ public static class DefaultAggregation {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /**
- * Required. Specifies how events are aggregated. Allowed values are {@code
- * count} to count the number of events, {@code sum} to sum each event's value and {@code last}
- * to take the last event's value in the window.
- */
+ /** Required. Specifies how events are aggregated. */
@SerializedName("formula")
Formula formula;
@@ -370,11 +366,7 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /**
- * Required. Specifies how events are aggregated. Allowed values are {@code
- * count} to count the number of events, {@code sum} to sum each event's value and {@code
- * last} to take the last event's value in the window.
- */
+ /** Required. Specifies how events are aggregated. */
public Builder setFormula(MeterCreateParams.DefaultAggregation.Formula formula) {
this.formula = formula;
return this;
diff --git a/src/main/java/com/stripe/param/billing/MeterEventCreateParams.java b/src/main/java/com/stripe/param/billing/MeterEventCreateParams.java
index 85b5afa8cd0..385c44b3215 100644
--- a/src/main/java/com/stripe/param/billing/MeterEventCreateParams.java
+++ b/src/main/java/com/stripe/param/billing/MeterEventCreateParams.java
@@ -35,7 +35,7 @@ public class MeterEventCreateParams extends ApiRequestParams {
/**
* A unique identifier for the event. If not provided, one is generated. We recommend using
- * UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 hours.
+ * UUID-like identifiers. Stripe enforces uniqueness within a rolling period of at least 24 hours.
* The enforcement of uniqueness primarily addresses issues arising from accidental retries or
* other problems occurring within extremely brief time intervals. This approach helps prevent
* duplicate entries and ensures data integrity in high-frequency operations.
@@ -165,7 +165,7 @@ public Builder putAllExtraParam(Map map) {
/**
* A unique identifier for the event. If not provided, one is generated. We recommend using
- * UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24
+ * UUID-like identifiers. Stripe enforces uniqueness within a rolling period of at least 24
* hours. The enforcement of uniqueness primarily addresses issues arising from accidental
* retries or other problems occurring within extremely brief time intervals. This approach
* helps prevent duplicate entries and ensures data integrity in high-frequency operations.
diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java
index 44489749066..2addcd2fff3 100644
--- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java
+++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java
@@ -7728,6 +7728,10 @@ public static class PaymentMethodOptions {
@SerializedName("billie")
Billie billie;
+ /** contains details about the BLIK payment method options. */
+ @SerializedName("blik")
+ Blik blik;
+
/** contains details about the Boleto payment method options. */
@SerializedName("boleto")
Boleto boleto;
@@ -7896,6 +7900,7 @@ private PaymentMethodOptions(
BacsDebit bacsDebit,
Bancontact bancontact,
Billie billie,
+ Blik blik,
Boleto boleto,
Card card,
Cashapp cashapp,
@@ -7944,6 +7949,7 @@ private PaymentMethodOptions(
this.bacsDebit = bacsDebit;
this.bancontact = bancontact;
this.billie = billie;
+ this.blik = blik;
this.boleto = boleto;
this.card = card;
this.cashapp = cashapp;
@@ -8009,6 +8015,8 @@ public static class Builder {
private Billie billie;
+ private Blik blik;
+
private Boleto boleto;
private Card card;
@@ -8098,6 +8106,7 @@ public SessionCreateParams.PaymentMethodOptions build() {
this.bacsDebit,
this.bancontact,
this.billie,
+ this.blik,
this.boleto,
this.card,
this.cashapp,
@@ -8203,6 +8212,12 @@ public Builder setBillie(SessionCreateParams.PaymentMethodOptions.Billie billie)
return this;
}
+ /** contains details about the BLIK payment method options. */
+ public Builder setBlik(SessionCreateParams.PaymentMethodOptions.Blik blik) {
+ this.blik = blik;
+ return this;
+ }
+
/** contains details about the Boleto payment method options. */
public Builder setBoleto(SessionCreateParams.PaymentMethodOptions.Boleto boleto) {
this.boleto = boleto;
@@ -10224,6 +10239,198 @@ public enum CaptureMethod implements ApiRequestParams.EnumParam {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Blik {
+ /**
+ * 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;
+
+ /** Additional fields for Mandate creation. */
+ @SerializedName("mandate_options")
+ MandateOptions mandateOptions;
+
+ @SerializedName("setup_future_usage")
+ ApiRequestParams.EnumParam setupFutureUsage;
+
+ private Blik(
+ Map extraParams,
+ MandateOptions mandateOptions,
+ ApiRequestParams.EnumParam setupFutureUsage) {
+ this.extraParams = extraParams;
+ this.mandateOptions = mandateOptions;
+ this.setupFutureUsage = setupFutureUsage;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private MandateOptions mandateOptions;
+
+ private ApiRequestParams.EnumParam setupFutureUsage;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public SessionCreateParams.PaymentMethodOptions.Blik build() {
+ return new SessionCreateParams.PaymentMethodOptions.Blik(
+ this.extraParams, this.mandateOptions, this.setupFutureUsage);
+ }
+
+ /**
+ * 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 SessionCreateParams.PaymentMethodOptions.Blik#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 SessionCreateParams.PaymentMethodOptions.Blik#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Additional fields for Mandate creation. */
+ public Builder setMandateOptions(
+ SessionCreateParams.PaymentMethodOptions.Blik.MandateOptions mandateOptions) {
+ this.mandateOptions = mandateOptions;
+ return this;
+ }
+
+ public Builder setSetupFutureUsage(
+ SessionCreateParams.PaymentMethodOptions.Blik.SetupFutureUsage setupFutureUsage) {
+ this.setupFutureUsage = setupFutureUsage;
+ return this;
+ }
+
+ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) {
+ this.setupFutureUsage = setupFutureUsage;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MandateOptions {
+ /**
+ * Date when the mandate expires and no further payments will be charged. If not provided,
+ * the mandate will be set to be indefinite.
+ */
+ @SerializedName("expires_after")
+ Long expiresAfter;
+
+ /**
+ * 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 MandateOptions(Long expiresAfter, Map extraParams) {
+ this.expiresAfter = expiresAfter;
+ this.extraParams = extraParams;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Long expiresAfter;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public SessionCreateParams.PaymentMethodOptions.Blik.MandateOptions build() {
+ return new SessionCreateParams.PaymentMethodOptions.Blik.MandateOptions(
+ this.expiresAfter, this.extraParams);
+ }
+
+ /**
+ * Date when the mandate expires and no further payments will be charged. If not provided,
+ * the mandate will be set to be indefinite.
+ */
+ public Builder setExpiresAfter(Long expiresAfter) {
+ this.expiresAfter = expiresAfter;
+ 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
+ * SessionCreateParams.PaymentMethodOptions.Blik.MandateOptions#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
+ * SessionCreateParams.PaymentMethodOptions.Blik.MandateOptions#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 SetupFutureUsage implements ApiRequestParams.EnumParam {
+ @SerializedName("none")
+ NONE("none"),
+
+ @SerializedName("off_session")
+ OFF_SESSION("off_session"),
+
+ @SerializedName("on_session")
+ ON_SESSION("on_session");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ SetupFutureUsage(String value) {
+ this.value = value;
+ }
+ }
+ }
+
@Getter
@EqualsAndHashCode(callSuper = false)
public static class Boleto {
@@ -21934,6 +22141,9 @@ public enum ExcludedPaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("sofort")
SOFORT("sofort"),
+ @SerializedName("sunbit")
+ SUNBIT("sunbit"),
+
@SerializedName("swish")
SWISH("swish"),
@@ -22291,6 +22501,9 @@ public enum PaymentMethodType implements ApiRequestParams.EnumParam {
@SerializedName("sofort")
SOFORT("sofort"),
+ @SerializedName("sunbit")
+ SUNBIT("sunbit"),
+
@SerializedName("swish")
SWISH("swish"),
diff --git a/src/main/java/com/stripe/param/identity/VerificationSessionCreateParams.java b/src/main/java/com/stripe/param/identity/VerificationSessionCreateParams.java
index 8840bb767d9..3ef23e2b690 100644
--- a/src/main/java/com/stripe/param/identity/VerificationSessionCreateParams.java
+++ b/src/main/java/com/stripe/param/identity/VerificationSessionCreateParams.java
@@ -47,7 +47,7 @@ public class VerificationSessionCreateParams extends ApiRequestParams {
@SerializedName("options")
Options options;
- /** Details provided about the user being verified. These details may be shown to the user. */
+ /** Details provided about the user being verified. These details might be shown to the user. */
@SerializedName("provided_details")
ProvidedDetails providedDetails;
@@ -59,7 +59,7 @@ public class VerificationSessionCreateParams extends ApiRequestParams {
@SerializedName("related_customer_account")
String relatedCustomerAccount;
- /** Tokens referencing a Person resource and it's associated account. */
+ /** Tokens referencing a Person resource and its associated account. */
@SerializedName("related_person")
RelatedPerson relatedPerson;
@@ -248,7 +248,7 @@ public Builder setOptions(VerificationSessionCreateParams.Options options) {
return this;
}
- /** Details provided about the user being verified. These details may be shown to the user. */
+ /** Details provided about the user being verified. These details might be shown to the user. */
public Builder setProvidedDetails(
VerificationSessionCreateParams.ProvidedDetails providedDetails) {
this.providedDetails = providedDetails;
@@ -267,7 +267,7 @@ public Builder setRelatedCustomerAccount(String relatedCustomerAccount) {
return this;
}
- /** Tokens referencing a Person resource and it's associated account. */
+ /** Tokens referencing a Person resource and its associated account. */
public Builder setRelatedPerson(VerificationSessionCreateParams.RelatedPerson relatedPerson) {
this.relatedPerson = relatedPerson;
return this;
diff --git a/src/main/java/com/stripe/param/issuing/CardCreateParams.java b/src/main/java/com/stripe/param/issuing/CardCreateParams.java
index df1f69c0c8d..a6855a4dcba 100644
--- a/src/main/java/com/stripe/param/issuing/CardCreateParams.java
+++ b/src/main/java/com/stripe/param/issuing/CardCreateParams.java
@@ -1200,6 +1200,14 @@ public enum Type implements ApiRequestParams.EnumParam {
@Getter
@EqualsAndHashCode(callSuper = false)
public static class SpendingControls {
+ /**
+ * Array of card presence statuses from which authorizations will be allowed. Possible options
+ * are {@code present}, {@code not_present}. All other statuses will be blocked. Cannot be set
+ * with {@code blocked_card_presences}. Provide an empty value to unset this control.
+ */
+ @SerializedName("allowed_card_presences")
+ List allowedCardPresences;
+
/**
* Array of strings containing categories
@@ -1218,6 +1226,14 @@ public static class SpendingControls {
@SerializedName("allowed_merchant_countries")
List allowedMerchantCountries;
+ /**
+ * Array of card presence statuses from which authorizations will be declined. Possible options
+ * are {@code present}, {@code not_present}. Cannot be set with {@code allowed_card_presences}.
+ * Provide an empty value to unset this control.
+ */
+ @SerializedName("blocked_card_presences")
+ List blockedCardPresences;
+
/**
* Array of strings containing categories
@@ -1253,14 +1269,18 @@ public static class SpendingControls {
List spendingLimits;
private SpendingControls(
+ List allowedCardPresences,
List allowedCategories,
List allowedMerchantCountries,
+ List blockedCardPresences,
List blockedCategories,
List blockedMerchantCountries,
Map extraParams,
List spendingLimits) {
+ this.allowedCardPresences = allowedCardPresences;
this.allowedCategories = allowedCategories;
this.allowedMerchantCountries = allowedMerchantCountries;
+ this.blockedCardPresences = blockedCardPresences;
this.blockedCategories = blockedCategories;
this.blockedMerchantCountries = blockedMerchantCountries;
this.extraParams = extraParams;
@@ -1272,10 +1292,14 @@ public static Builder builder() {
}
public static class Builder {
+ private List allowedCardPresences;
+
private List allowedCategories;
private List allowedMerchantCountries;
+ private List blockedCardPresences;
+
private List blockedCategories;
private List blockedMerchantCountries;
@@ -1287,14 +1311,44 @@ public static class Builder {
/** Finalize and obtain parameter instance from this builder. */
public CardCreateParams.SpendingControls build() {
return new CardCreateParams.SpendingControls(
+ this.allowedCardPresences,
this.allowedCategories,
this.allowedMerchantCountries,
+ this.blockedCardPresences,
this.blockedCategories,
this.blockedMerchantCountries,
this.extraParams,
this.spendingLimits);
}
+ /**
+ * Add an element to `allowedCardPresences` list. A list is initialized for the first
+ * `add/addAll` call, and subsequent calls adds additional elements to the original list. See
+ * {@link CardCreateParams.SpendingControls#allowedCardPresences} for the field documentation.
+ */
+ public Builder addAllowedCardPresence(
+ CardCreateParams.SpendingControls.AllowedCardPresence element) {
+ if (this.allowedCardPresences == null) {
+ this.allowedCardPresences = new ArrayList<>();
+ }
+ this.allowedCardPresences.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `allowedCardPresences` list. A list is initialized for the first
+ * `add/addAll` call, and subsequent calls adds additional elements to the original list. See
+ * {@link CardCreateParams.SpendingControls#allowedCardPresences} for the field documentation.
+ */
+ public Builder addAllAllowedCardPresence(
+ List elements) {
+ if (this.allowedCardPresences == null) {
+ this.allowedCardPresences = new ArrayList<>();
+ }
+ this.allowedCardPresences.addAll(elements);
+ return this;
+ }
+
/**
* Add an element to `allowedCategories` list. A list is initialized for the first
* `add/addAll` call, and subsequent calls adds additional elements to the original list. See
@@ -1350,6 +1404,34 @@ public Builder addAllAllowedMerchantCountry(List elements) {
return this;
}
+ /**
+ * Add an element to `blockedCardPresences` list. A list is initialized for the first
+ * `add/addAll` call, and subsequent calls adds additional elements to the original list. See
+ * {@link CardCreateParams.SpendingControls#blockedCardPresences} for the field documentation.
+ */
+ public Builder addBlockedCardPresence(
+ CardCreateParams.SpendingControls.BlockedCardPresence element) {
+ if (this.blockedCardPresences == null) {
+ this.blockedCardPresences = new ArrayList<>();
+ }
+ this.blockedCardPresences.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `blockedCardPresences` list. A list is initialized for the first
+ * `add/addAll` call, and subsequent calls adds additional elements to the original list. See
+ * {@link CardCreateParams.SpendingControls#blockedCardPresences} for the field documentation.
+ */
+ public Builder addAllBlockedCardPresence(
+ List elements) {
+ if (this.blockedCardPresences == null) {
+ this.blockedCardPresences = new ArrayList<>();
+ }
+ this.blockedCardPresences.addAll(elements);
+ return this;
+ }
+
/**
* Add an element to `blockedCategories` list. A list is initialized for the first
* `add/addAll` call, and subsequent calls adds additional elements to the original list. See
@@ -2531,6 +2613,21 @@ public enum Interval implements ApiRequestParams.EnumParam {
}
}
+ public enum AllowedCardPresence implements ApiRequestParams.EnumParam {
+ @SerializedName("not_present")
+ NOT_PRESENT("not_present"),
+
+ @SerializedName("present")
+ PRESENT("present");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ AllowedCardPresence(String value) {
+ this.value = value;
+ }
+ }
+
public enum AllowedCategory implements ApiRequestParams.EnumParam {
@SerializedName("ac_refrigeration_repair")
AC_REFRIGERATION_REPAIR("ac_refrigeration_repair"),
@@ -3447,6 +3544,21 @@ public enum AllowedCategory implements ApiRequestParams.EnumParam {
}
}
+ public enum BlockedCardPresence implements ApiRequestParams.EnumParam {
+ @SerializedName("not_present")
+ NOT_PRESENT("not_present"),
+
+ @SerializedName("present")
+ PRESENT("present");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ BlockedCardPresence(String value) {
+ this.value = value;
+ }
+ }
+
public enum BlockedCategory implements ApiRequestParams.EnumParam {
@SerializedName("ac_refrigeration_repair")
AC_REFRIGERATION_REPAIR("ac_refrigeration_repair"),
diff --git a/src/main/java/com/stripe/param/issuing/CardUpdateParams.java b/src/main/java/com/stripe/param/issuing/CardUpdateParams.java
index 6c584cec1bf..5ea56176d2a 100644
--- a/src/main/java/com/stripe/param/issuing/CardUpdateParams.java
+++ b/src/main/java/com/stripe/param/issuing/CardUpdateParams.java
@@ -967,6 +967,14 @@ public enum Type implements ApiRequestParams.EnumParam {
@Getter
@EqualsAndHashCode(callSuper = false)
public static class SpendingControls {
+ /**
+ * Array of card presence statuses from which authorizations will be allowed. Possible options
+ * are {@code present}, {@code not_present}. All other statuses will be blocked. Cannot be set
+ * with {@code blocked_card_presences}. Provide an empty value to unset this control.
+ */
+ @SerializedName("allowed_card_presences")
+ List allowedCardPresences;
+
/**
* Array of strings containing categories
@@ -985,6 +993,14 @@ public static class SpendingControls {
@SerializedName("allowed_merchant_countries")
List allowedMerchantCountries;
+ /**
+ * Array of card presence statuses from which authorizations will be declined. Possible options
+ * are {@code present}, {@code not_present}. Cannot be set with {@code allowed_card_presences}.
+ * Provide an empty value to unset this control.
+ */
+ @SerializedName("blocked_card_presences")
+ List blockedCardPresences;
+
/**
* Array of strings containing categories
@@ -1020,14 +1036,18 @@ public static class SpendingControls {
List spendingLimits;
private SpendingControls(
+ List allowedCardPresences,
List allowedCategories,
List allowedMerchantCountries,
+ List blockedCardPresences,
List blockedCategories,
List blockedMerchantCountries,
Map extraParams,
List spendingLimits) {
+ this.allowedCardPresences = allowedCardPresences;
this.allowedCategories = allowedCategories;
this.allowedMerchantCountries = allowedMerchantCountries;
+ this.blockedCardPresences = blockedCardPresences;
this.blockedCategories = blockedCategories;
this.blockedMerchantCountries = blockedMerchantCountries;
this.extraParams = extraParams;
@@ -1039,10 +1059,14 @@ public static Builder builder() {
}
public static class Builder {
+ private List allowedCardPresences;
+
private List