From 20b739613a4f8c39538ccdf0bb516cc5bf06f32d Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 29 Jul 2026 15:52:33 -0700 Subject: [PATCH 1/2] Update generated code for v2349 and 44014016ec56efb57a8cf6d0ee0771c2e6b4eebe (#2257) Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/ApiVersion.java | 2 +- src/main/java/com/stripe/model/Account.java | 157 ++++- .../java/com/stripe/model/AccountSession.java | 28 + .../com/stripe/model/BalanceTransaction.java | 2 +- .../java/com/stripe/model/BankAccount.java | 8 +- .../java/com/stripe/model/Capability.java | 8 +- src/main/java/com/stripe/model/Charge.java | 24 +- .../com/stripe/model/ConfirmationToken.java | 8 +- src/main/java/com/stripe/model/Dispute.java | 21 +- src/main/java/com/stripe/model/Event.java | 5 + .../stripe/model/EventDataClassLookup.java | 3 + src/main/java/com/stripe/model/Invoice.java | 2 +- .../stripe/model/PaymentAttemptRecord.java | 18 +- .../java/com/stripe/model/PaymentIntent.java | 57 ++ .../java/com/stripe/model/PaymentMethod.java | 32 +- .../java/com/stripe/model/PaymentRecord.java | 54 +- .../stripe/model/PaymentRecordCollection.java | 4 + src/main/java/com/stripe/model/Person.java | 16 +- src/main/java/com/stripe/model/Quote.java | 29 + src/main/java/com/stripe/model/Refund.java | 55 ++ .../java/com/stripe/model/SetupAttempt.java | 4 +- .../java/com/stripe/model/SetupIntent.java | 7 + .../stripe/model/SubscriptionSchedule.java | 65 ++ src/main/java/com/stripe/model/TaxId.java | 25 +- src/main/java/com/stripe/model/TaxRate.java | 5 +- src/main/java/com/stripe/model/Topup.java | 75 +++ .../model/billingportal/Configuration.java | 2 +- .../com/stripe/model/checkout/Session.java | 51 +- .../financialconnections/Authorization.java | 106 ++++ .../model/financialconnections/Session.java | 72 +++ .../stripe/model/issuing/Authorization.java | 6 +- .../java/com/stripe/model/issuing/Card.java | 9 +- .../com/stripe/model/issuing/Transaction.java | 2 +- .../com/stripe/model/tax/Calculation.java | 14 +- .../stripe/model/tax/CalculationLineItem.java | 5 +- .../com/stripe/model/tax/Registration.java | 43 +- .../com/stripe/model/tax/Transaction.java | 9 +- .../stripe/model/v2/billing/MeterEvent.java | 4 +- .../v2/billing/MeterEventAdjustment.java | 2 +- .../com/stripe/model/v2/core/Account.java | 52 ++ .../com/stripe/param/AccountCreateParams.java | 564 +++++++++++------- .../param/AccountPersonCreateParams.java | 32 +- .../param/AccountPersonUpdateParams.java | 48 +- .../com/stripe/param/AccountRejectParams.java | 43 +- .../param/AccountSessionCreateParams.java | 100 +++- .../stripe/param/AccountUnrejectParams.java | 100 ++++ .../com/stripe/param/AccountUpdateParams.java | 542 +++++++++++++++++ .../param/ConfirmationTokenCreateParams.java | 9 + .../stripe/param/CustomerCreateParams.java | 52 +- .../param/CustomerTaxIdCreateParams.java | 51 +- .../stripe/param/InvoiceAddLinesParams.java | 6 + .../com/stripe/param/InvoiceCreateParams.java | 6 + .../param/InvoiceCreatePreviewParams.java | 146 +++-- .../param/InvoiceLineItemUpdateParams.java | 6 + .../param/InvoiceUpdateLinesParams.java | 6 + .../com/stripe/param/InvoiceUpdateParams.java | 6 + .../param/PaymentIntentConfirmParams.java | 530 +++++++++++++++- .../param/PaymentIntentCreateParams.java | 522 +++++++++++++++- .../param/PaymentIntentUpdateParams.java | 489 ++++++++++++++- .../stripe/param/PaymentLinkUpdateParams.java | 515 ++++++++++++++++ .../param/PaymentMethodCreateParams.java | 9 + .../stripe/param/PaymentRecordListParams.java | 205 +++++++ .../param/PersonCollectionCreateParams.java | 32 +- .../com/stripe/param/PersonUpdateParams.java | 48 +- .../param/PromotionCodeCreateParams.java | 3 +- .../param/PromotionCodeUpdateParams.java | 3 +- .../com/stripe/param/QuoteCreateParams.java | 196 +++++- .../com/stripe/param/QuoteUpdateParams.java | 213 ++++++- .../param/SetupIntentConfirmParams.java | 348 +++++++++++ .../stripe/param/SetupIntentCreateParams.java | 348 +++++++++++ .../stripe/param/SetupIntentUpdateParams.java | 379 ++++++++++++ .../param/SubscriptionCreateParams.java | 6 + .../SubscriptionScheduleCreateParams.java | 440 +++++++++++++- .../param/SubscriptionScheduleListParams.java | 10 +- .../SubscriptionScheduleUpdateParams.java | 482 ++++++++++++++- .../param/SubscriptionUpdateParams.java | 10 +- .../param/TaxIdCollectionCreateParams.java | 51 +- .../com/stripe/param/TaxIdCreateParams.java | 51 +- .../com/stripe/param/TaxRateCreateParams.java | 6 + .../com/stripe/param/TaxRateUpdateParams.java | 6 + .../com/stripe/param/TokenCreateParams.java | 394 +++++++++++- .../param/WebhookEndpointCreateParams.java | 25 +- .../param/WebhookEndpointUpdateParams.java | 20 + .../param/billing/AlertCreateParams.java | 10 +- .../ConfigurationCreateParams.java | 6 +- .../ConfigurationUpdateParams.java | 6 +- .../param/checkout/SessionCreateParams.java | 190 ++++-- .../SessionCreateParams.java | 245 +++++++- .../issuing/AuthorizationCaptureParams.java | 4 +- .../issuing/AuthorizationCreateParams.java | 6 +- .../AuthorizationFinalizeAmountParams.java | 6 +- .../param/issuing/CardCreateParams.java | 25 + .../param/issuing/CardUpdateParams.java | 36 ++ .../TransactionCreateForceCaptureParams.java | 4 +- ...TransactionCreateUnlinkedRefundParams.java | 4 +- .../param/tax/CalculationCreateParams.java | 70 ++- .../param/tax/RegistrationCreateParams.java | 203 +++++++ .../v2/billing/MeterEventCreateParams.java | 6 +- .../billing/MeterEventStreamCreateParams.java | 6 +- .../param/v2/core/AccountCreateParams.java | 245 ++++++++ .../v2/core/AccountTokenCreateParams.java | 246 ++++++++ .../param/v2/core/AccountUpdateParams.java | 290 +++++++++ .../stripe/service/AccountPersonService.java | 4 +- .../com/stripe/service/AccountService.java | 96 ++- .../com/stripe/service/DisputeService.java | 8 +- .../stripe/service/PaymentMethodService.java | 16 +- .../stripe/service/PaymentRecordService.java | 29 + 109 files changed, 9217 insertions(+), 697 deletions(-) create mode 100644 src/main/java/com/stripe/model/PaymentRecordCollection.java create mode 100644 src/main/java/com/stripe/model/financialconnections/Authorization.java create mode 100644 src/main/java/com/stripe/param/AccountUnrejectParams.java create mode 100644 src/main/java/com/stripe/param/PaymentRecordListParams.java diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 983636f7b6af..ea710b3c8493 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -6012b623b1c09ad54d466947da04511a042ee45a \ No newline at end of file +44014016ec56efb57a8cf6d0ee0771c2e6b4eebe \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 83c68c9d1dcf..5ea23263dda0 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2324 \ No newline at end of file +v2349 \ 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 ae06ad5de362..37dc88219329 100644 --- a/src/main/java/com/stripe/ApiVersion.java +++ b/src/main/java/com/stripe/ApiVersion.java @@ -2,6 +2,6 @@ package com.stripe; final class ApiVersion { - public static final String CURRENT = "2026-06-24.dahlia"; + public static final String CURRENT = "2026-07-29.dahlia"; public static final String CURRENT_MAJOR = "dahlia"; } diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java index 69caacdcfd4b..56b2d800a38c 100644 --- a/src/main/java/com/stripe/model/Account.java +++ b/src/main/java/com/stripe/model/Account.java @@ -15,6 +15,7 @@ import com.stripe.param.AccountPersonsParams; import com.stripe.param.AccountRejectParams; import com.stripe.param.AccountRetrieveParams; +import com.stripe.param.AccountUnrejectParams; import com.stripe.param.AccountUpdateParams; import java.util.List; import java.util.Map; @@ -247,9 +248,10 @@ public CapabilityCollection capabilities(AccountCapabilitiesParams params, Reque * href="https://dashboard.stripe.com/account/applications/settings">register your platform. * *
If you’ve already collected information for your connected accounts, you can prefill that
- * information when creating the account. Connect Onboarding won’t ask for the prefilled
- * information during account onboarding. You can prefill any information on the account.
+ * href="https://stripe.com/connect/marketplace/tasks/create#prefill-account-information">can
+ * prefill that information when creating the account. Connect Onboarding won’t ask for the
+ * prefilled information during account onboarding. You can prefill any information on the
+ * account.
*/
public static Account create(Map If you’ve already collected information for your connected accounts, you can prefill that
- * information when creating the account. Connect Onboarding won’t ask for the prefilled
- * information during account onboarding. You can prefill any information on the account.
+ * href="https://stripe.com/connect/marketplace/tasks/create#prefill-account-information">can
+ * prefill that information when creating the account. Connect Onboarding won’t ask for the
+ * prefilled information during account onboarding. You can prefill any information on the
+ * account.
*/
public static Account create(Map If you’ve already collected information for your connected accounts, you can prefill that
- * information when creating the account. Connect Onboarding won’t ask for the prefilled
- * information during account onboarding. You can prefill any information on the account.
+ * href="https://stripe.com/connect/marketplace/tasks/create#prefill-account-information">can
+ * prefill that information when creating the account. Connect Onboarding won’t ask for the
+ * prefilled information during account onboarding. You can prefill any information on the
+ * account.
*/
public static Account create(AccountCreateParams params) throws StripeException {
return create(params, (RequestOptions) null);
@@ -293,9 +297,10 @@ public static Account create(AccountCreateParams params) throws StripeException
* href="https://dashboard.stripe.com/account/applications/settings">register your platform.
*
* If you’ve already collected information for your connected accounts, you can prefill that
- * information when creating the account. Connect Onboarding won’t ask for the prefilled
- * information during account onboarding. You can prefill any information on the account.
+ * href="https://stripe.com/connect/marketplace/tasks/create#prefill-account-information">can
+ * prefill that information when creating the account. Connect Onboarding won’t ask for the
+ * prefilled information during account onboarding. You can prefill any information on the
+ * account.
*/
public static Account create(AccountCreateParams params, RequestOptions options)
throws StripeException {
@@ -495,8 +500,7 @@ public PersonCollection persons(AccountPersonsParams params, RequestOptions opti
* flagged as suspicious.
*
* Only accounts where your platform is liable for negative account balances, which includes
- * Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time.
- * Live-mode accounts can only be rejected after all balances are zero.
+ * Custom and Express accounts, can be rejected.
*/
public Account reject(Map Only accounts where your platform is liable for negative account balances, which includes
- * Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time.
- * Live-mode accounts can only be rejected after all balances are zero.
+ * Custom and Express accounts, can be rejected.
*/
public Account reject(Map Only accounts where your platform is liable for negative account balances, which includes
- * Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time.
- * Live-mode accounts can only be rejected after all balances are zero.
+ * Custom and Express accounts, can be rejected.
*/
public Account reject(AccountRejectParams params) throws StripeException {
return reject(params, (RequestOptions) null);
@@ -534,8 +536,7 @@ public Account reject(AccountRejectParams params) throws StripeException {
* flagged as suspicious.
*
* Only accounts where your platform is liable for negative account balances, which includes
- * Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time.
- * Live-mode accounts can only be rejected after all balances are zero.
+ * Custom and Express accounts, can be rejected.
*/
public Account reject(AccountRejectParams params, RequestOptions options) throws StripeException {
String path = String.format("/v1/accounts/%s/reject", ApiResource.urlEncodeId(this.getId()));
@@ -618,6 +619,104 @@ public static Account retrieve(AccountRetrieveParams params, RequestOptions opti
return getGlobalResponseGetter().request(request, Account.class);
}
+ /**
+ * With Connect, you can unreject accounts that you have previously rejected.
+ *
+ * Only accounts that were rejected by your platform can be unrejected. This API cannot be used
+ * to unreject accounts that were rejected by Stripe.
+ *
+ * Unreject will only enable charges and/or payouts if there are no other restrictions other
+ * than those placed by a previous rejection. If you have separately paused charges and/or payouts
+ * outside of rejection, those pauses will remain in place after unrejection.
+ */
+ public Account unreject() throws StripeException {
+ return unreject((Map Only accounts that were rejected by your platform can be unrejected. This API cannot be used
+ * to unreject accounts that were rejected by Stripe.
+ *
+ * Unreject will only enable charges and/or payouts if there are no other restrictions other
+ * than those placed by a previous rejection. If you have separately paused charges and/or payouts
+ * outside of rejection, those pauses will remain in place after unrejection.
+ */
+ public Account unreject(RequestOptions options) throws StripeException {
+ return unreject((Map Only accounts that were rejected by your platform can be unrejected. This API cannot be used
+ * to unreject accounts that were rejected by Stripe.
+ *
+ * Unreject will only enable charges and/or payouts if there are no other restrictions other
+ * than those placed by a previous rejection. If you have separately paused charges and/or payouts
+ * outside of rejection, those pauses will remain in place after unrejection.
+ */
+ public Account unreject(Map Only accounts that were rejected by your platform can be unrejected. This API cannot be used
+ * to unreject accounts that were rejected by Stripe.
+ *
+ * Unreject will only enable charges and/or payouts if there are no other restrictions other
+ * than those placed by a previous rejection. If you have separately paused charges and/or payouts
+ * outside of rejection, those pauses will remain in place after unrejection.
+ */
+ public Account unreject(Map Only accounts that were rejected by your platform can be unrejected. This API cannot be used
+ * to unreject accounts that were rejected by Stripe.
+ *
+ * Unreject will only enable charges and/or payouts if there are no other restrictions other
+ * than those placed by a previous rejection. If you have separately paused charges and/or payouts
+ * outside of rejection, those pauses will remain in place after unrejection.
+ */
+ public Account unreject(AccountUnrejectParams params) throws StripeException {
+ return unreject(params, (RequestOptions) null);
+ }
+
+ /**
+ * With Connect, you can unreject accounts that you have previously rejected.
+ *
+ * Only accounts that were rejected by your platform can be unrejected. This API cannot be used
+ * to unreject accounts that were rejected by Stripe.
+ *
+ * Unreject will only enable charges and/or payouts if there are no other restrictions other
+ * than those placed by a previous rejection. If you have separately paused charges and/or payouts
+ * outside of rejection, those pauses will remain in place after unrejection.
+ */
+ public Account unreject(AccountUnrejectParams params, RequestOptions options)
+ throws StripeException {
+ String path = String.format("/v1/accounts/%s/unreject", 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, Account.class);
+ }
+
/**
* Updates a connected account by setting the
* values of the parameters passed. Any parameters not provided are left unchanged.
@@ -1471,6 +1570,9 @@ public static class Company extends StripeObject {
@SerializedName("address_kanji")
AddressKanji addressKanji;
+ @SerializedName("administrative_address")
+ Address administrativeAddress;
+
/**
* Whether the company's directors have been provided. This Boolean will be {@code true} if
* you've manually indicated that all directors are provided via errors;
@@ -2220,8 +2325,8 @@ public static class Requirements extends StripeObject {
/**
* Fields that need to be resolved to keep the account enabled. If not resolved by {@code
- * current_deadline}, these fields will appear in {@code past_due} as well, and the account is
- * disabled.
+ * current_deadline}, these fields will appear in {@code past_due} as well, and the account will
+ * be disabled.
*/
@SerializedName("currently_due")
List One of {@code attempt_acknowledged}, {@code authenticated}, {@code exempted}, {@code
- * failed}, {@code not_supported}, or {@code processing_error}.
+ * One of {@code attempt_acknowledged}, {@code authenticated}, {@code data_share_only},
+ * {@code exempted}, {@code failed}, {@code not_supported}, or {@code processing_error}.
*/
@SerializedName("result")
String result;
@@ -2835,10 +2835,10 @@ public static class Fpx extends StripeObject {
/**
* The customer's bank. 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}.
+ * bnp_paribas}, {@code bank_rakyat}, {@code bsn}, {@code cimb}, {@code citibank}, {@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 mbsb_bank}, {@code pb_enterprise}, or {@code bank_of_china}.
*/
@SerializedName("bank")
String bank;
@@ -3783,9 +3783,9 @@ public static class Funding extends StripeObject {
@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}.
+ * Card brand. Can be {@code American Express}, {@code Cartes Bancaires}, {@code Diners
+ * Club}, {@code Discover}, {@code Eftpos Australia}, {@code Girocard}, {@code JCB},
+ * {@code MasterCard}, {@code UnionPay}, {@code Visa}, or {@code Unknown}.
*/
@SerializedName("brand")
String brand;
diff --git a/src/main/java/com/stripe/model/ConfirmationToken.java b/src/main/java/com/stripe/model/ConfirmationToken.java
index 8eca7c217b07..1cc78723c782 100644
--- a/src/main/java/com/stripe/model/ConfirmationToken.java
+++ b/src/main/java/com/stripe/model/ConfirmationToken.java
@@ -1678,10 +1678,10 @@ public static class Fpx extends StripeObject {
/**
* 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}.
+ * bnp_paribas}, {@code bank_rakyat}, {@code bsn}, {@code cimb}, {@code citibank}, {@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 mbsb_bank}, {@code pb_enterprise}, or {@code bank_of_china}.
*/
@SerializedName("bank")
String bank;
diff --git a/src/main/java/com/stripe/model/Dispute.java b/src/main/java/com/stripe/model/Dispute.java
index d5c1a8bb6265..be7e0529aaf3 100644
--- a/src/main/java/com/stripe/model/Dispute.java
+++ b/src/main/java/com/stripe/model/Dispute.java
@@ -183,7 +183,7 @@ public void setPaymentIntentObject(PaymentIntent expandableObject) {
/**
* Closing the dispute for a charge indicates that you do not have any evidence to submit and are
- * essentially dismissing the dispute, acknowledging it as lost.
+ * essentially dismissing the dispute (accepting it), acknowledging it as lost.
*
* The status of the dispute will change from {@code needs_response} to {@code lost}.
* Closing a dispute is irreversible.
@@ -194,7 +194,7 @@ public Dispute close() throws StripeException {
/**
* Closing the dispute for a charge indicates that you do not have any evidence to submit and are
- * essentially dismissing the dispute, acknowledging it as lost.
+ * essentially dismissing the dispute (accepting it), acknowledging it as lost.
*
* The status of the dispute will change from {@code needs_response} to {@code lost}.
* Closing a dispute is irreversible.
@@ -205,7 +205,7 @@ public Dispute close(RequestOptions options) throws StripeException {
/**
* Closing the dispute for a charge indicates that you do not have any evidence to submit and are
- * essentially dismissing the dispute, acknowledging it as lost.
+ * essentially dismissing the dispute (accepting it), acknowledging it as lost.
*
* The status of the dispute will change from {@code needs_response} to {@code lost}.
* Closing a dispute is irreversible.
@@ -216,7 +216,7 @@ public Dispute close(Map The status of the dispute will change from {@code needs_response} to {@code lost}.
* Closing a dispute is irreversible.
@@ -230,7 +230,7 @@ public Dispute close(Map The status of the dispute will change from {@code needs_response} to {@code lost}.
* Closing a dispute is irreversible.
@@ -241,7 +241,7 @@ public Dispute close(DisputeCloseParams params) throws StripeException {
/**
* Closing the dispute for a charge indicates that you do not have any evidence to submit and are
- * essentially dismissing the dispute, acknowledging it as lost.
+ * essentially dismissing the dispute (accepting it), acknowledging it as lost.
*
* The status of the dispute will change from {@code needs_response} to {@code lost}.
* Closing a dispute is irreversible.
@@ -1217,6 +1217,15 @@ public static class Card extends StripeObject {
@SerializedName("case_type")
String caseType;
+ /**
+ * Identifies which network this charge was processed on. Can be {@code amex}, {@code
+ * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac},
+ * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
+ * unknown}.
+ */
+ @SerializedName("network")
+ String network;
+
/**
* The card network's specific dispute reason code, which maps to one of Stripe's primary
* dispute categories to simplify response guidance. The One of {@code attempt_acknowledged}, {@code authenticated}, {@code exempted}, {@code
- * failed}, {@code not_supported}, or {@code processing_error}.
+ * One of {@code attempt_acknowledged}, {@code authenticated}, {@code data_share_only},
+ * {@code exempted}, {@code failed}, {@code not_supported}, or {@code processing_error}.
*/
@SerializedName("result")
String result;
@@ -1932,10 +1932,10 @@ public static class Fpx extends StripeObject {
/**
* The customer's bank. 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}.
+ * bnp_paribas}, {@code bank_rakyat}, {@code bsn}, {@code cimb}, {@code citibank}, {@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 mbsb_bank}, {@code pb_enterprise}, or {@code bank_of_china}.
*/
@SerializedName("bank")
String bank;
diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java
index 3084dcd78ec2..d08dd2854d15 100644
--- a/src/main/java/com/stripe/model/PaymentIntent.java
+++ b/src/main/java/com/stripe/model/PaymentIntent.java
@@ -44,6 +44,15 @@
@Setter
@EqualsAndHashCode(callSuper = false)
public class PaymentIntent extends ApiResource implements HasId, MetadataStore If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the
+ * Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ * If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates
+ * and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ * When processing card payments, Stripe uses {@code setup_future_usage} to help you comply
+ * with regional legislation and network rules, such as SCA.
+ *
+ * Equal to {@code none}.
+ */
+ @SerializedName("setup_future_usage")
+ String setupFutureUsage;
}
/**
@@ -5105,6 +5138,30 @@ public static class SamsungPay extends StripeObject {
*/
@SerializedName("capture_method")
String captureMethod;
+
+ /**
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ *
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the
+ * Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ * If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates
+ * and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ * When processing card payments, Stripe uses {@code setup_future_usage} to help you comply
+ * with regional legislation and network rules, such as SCA.
+ *
+ * Equal to {@code none}.
+ */
+ @SerializedName("setup_future_usage")
+ String setupFutureUsage;
}
/**
diff --git a/src/main/java/com/stripe/model/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java
index bc8d027bb5d6..083292e64b41 100644
--- a/src/main/java/com/stripe/model/PaymentMethod.java
+++ b/src/main/java/com/stripe/model/PaymentMethod.java
@@ -525,32 +525,32 @@ public static PaymentMethod create(PaymentMethodCreateParams params, RequestOpti
}
/**
- * Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no
- * longer be used for a payment or re-attached to a Customer.
+ * Detaches a PaymentMethod object from a Customer. Detachment is permanent and irreversible —
+ * once detached, a PaymentMethod can no longer be used for payments or re-attached to a Customer.
*/
public PaymentMethod detach() throws StripeException {
return detach((Map One of {@code attempt_acknowledged}, {@code authenticated}, {@code exempted}, {@code
- * failed}, {@code not_supported}, or {@code processing_error}.
+ * One of {@code attempt_acknowledged}, {@code authenticated}, {@code data_share_only},
+ * {@code exempted}, {@code failed}, {@code not_supported}, or {@code processing_error}.
*/
@SerializedName("result")
String result;
@@ -2234,10 +2270,10 @@ public static class Fpx extends StripeObject {
/**
* The customer's bank. 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}.
+ * bnp_paribas}, {@code bank_rakyat}, {@code bsn}, {@code cimb}, {@code citibank}, {@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 mbsb_bank}, {@code pb_enterprise}, or {@code bank_of_china}.
*/
@SerializedName("bank")
String bank;
diff --git a/src/main/java/com/stripe/model/PaymentRecordCollection.java b/src/main/java/com/stripe/model/PaymentRecordCollection.java
new file mode 100644
index 000000000000..ebcbb0e6970d
--- /dev/null
+++ b/src/main/java/com/stripe/model/PaymentRecordCollection.java
@@ -0,0 +1,4 @@
+// File generated from our OpenAPI spec
+package com.stripe.model;
+
+public class PaymentRecordCollection extends StripeCollection One of {@code attempt_acknowledged}, {@code authenticated}, {@code exempted}, {@code
- * failed}, {@code not_supported}, or {@code processing_error}.
+ * One of {@code attempt_acknowledged}, {@code authenticated}, {@code data_share_only},
+ * {@code exempted}, {@code failed}, {@code not_supported}, or {@code processing_error}.
*/
@SerializedName("result")
String result;
diff --git a/src/main/java/com/stripe/model/SetupIntent.java b/src/main/java/com/stripe/model/SetupIntent.java
index 583de372fec2..2de7da57ac61 100644
--- a/src/main/java/com/stripe/model/SetupIntent.java
+++ b/src/main/java/com/stripe/model/SetupIntent.java
@@ -55,6 +55,13 @@
@Setter
@EqualsAndHashCode(callSuper = false)
public class SetupIntent extends ApiResource implements HasId, MetadataStore One of {@code stripe}, or {@code user}.
+ */
+ @SerializedName("initiated_by")
+ String initiatedBy;
+
/**
* If the object exists in live mode, the value is {@code true}. If the object exists in test
* mode, the value is {@code false}.
@@ -105,6 +113,19 @@ public class Topup extends ApiResource implements MetadataStore Equal to {@code ach}.
+ */
+ @SerializedName("network")
+ String network;
+ }
+ }
+
@Override
public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
trySetResponseGetter(balanceTransaction, responseGetter);
+ trySetResponseGetter(paymentMethod, responseGetter);
+ trySetResponseGetter(paymentMethodOptions, responseGetter);
trySetResponseGetter(source, responseGetter);
}
}
diff --git a/src/main/java/com/stripe/model/billingportal/Configuration.java b/src/main/java/com/stripe/model/billingportal/Configuration.java
index d3e548bdcd3c..5d701946e97f 100644
--- a/src/main/java/com/stripe/model/billingportal/Configuration.java
+++ b/src/main/java/com/stripe/model/billingportal/Configuration.java
@@ -53,7 +53,7 @@ public class Configuration extends ApiResource implements HasId, MetadataStore If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the
+ * Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ * If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates
+ * and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ * When processing card payments, Stripe uses {@code setup_future_usage} to help you comply
+ * with regional legislation and network rules, such as SCA.
+ *
+ * Equal to {@code none}.
+ */
+ @SerializedName("setup_future_usage")
+ String setupFutureUsage;
}
/**
@@ -3825,6 +3850,30 @@ public static class SamsungPay extends StripeObject {
*/
@SerializedName("capture_method")
String captureMethod;
+
+ /**
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ *
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the
+ * Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ * If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates
+ * and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ * When processing card payments, Stripe uses {@code setup_future_usage} to help you comply
+ * with regional legislation and network rules, such as SCA.
+ *
+ * Equal to {@code none}.
+ */
+ @SerializedName("setup_future_usage")
+ String setupFutureUsage;
}
/**
diff --git a/src/main/java/com/stripe/model/financialconnections/Authorization.java b/src/main/java/com/stripe/model/financialconnections/Authorization.java
new file mode 100644
index 000000000000..e1a05f0aa69d
--- /dev/null
+++ b/src/main/java/com/stripe/model/financialconnections/Authorization.java
@@ -0,0 +1,106 @@
+// File generated from our OpenAPI spec
+package com.stripe.model.financialconnections;
+
+import com.google.gson.annotations.SerializedName;
+import com.stripe.model.HasId;
+import com.stripe.model.StripeObject;
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * An Authorization represents the set of credentials used to connect a group of Financial
+ * Connections Accounts.
+ */
+@Getter
+@Setter
+@EqualsAndHashCode(callSuper = false)
+public class Authorization extends StripeObject implements HasId {
+ /** Unique identifier for the object. */
+ @Getter(onMethod_ = {@Override})
+ @SerializedName("id")
+ String id;
+
+ /** The name of the institution that this authorization belongs to. */
+ @SerializedName("institution_name")
+ String institutionName;
+
+ /**
+ * 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 financial_connections.authorization}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /**
+ * The status of the connection to the Authorization.
+ *
+ * One of {@code active}, or {@code inactive}.
+ */
+ @SerializedName("status")
+ String status;
+
+ @SerializedName("status_details")
+ StatusDetails statusDetails;
+
+ /**
+ * For more details about StatusDetails, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class StatusDetails extends StripeObject {
+ @SerializedName("active")
+ Active active;
+
+ @SerializedName("inactive")
+ Inactive inactive;
+
+ /**
+ * For more details about Active, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Active extends StripeObject {
+ /**
+ * The action (if any) to proactively relink the Authorization.
+ *
+ * One of {@code none}, or {@code relink_required}.
+ */
+ @SerializedName("action")
+ String action;
+
+ /** When the Authorization is expected to become inactive, if applicable. */
+ @SerializedName("expected_deactivation_date")
+ Long expectedDeactivationDate;
+ }
+
+ /**
+ * For more details about Inactive, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Inactive extends StripeObject {
+ /**
+ * The action (if any) to relink the inactive Authorization.
+ *
+ * One of {@code none}, or {@code relink_required}.
+ */
+ @SerializedName("action")
+ String action;
+ }
+ }
+}
diff --git a/src/main/java/com/stripe/model/financialconnections/Session.java b/src/main/java/com/stripe/model/financialconnections/Session.java
index 04b0b485069b..2d4d86ef0186 100644
--- a/src/main/java/com/stripe/model/financialconnections/Session.java
+++ b/src/main/java/com/stripe/model/financialconnections/Session.java
@@ -8,6 +8,7 @@
import com.stripe.model.ExpandableField;
import com.stripe.model.HasId;
import com.stripe.model.StripeObject;
+import com.stripe.model.Token;
import com.stripe.net.ApiRequest;
import com.stripe.net.ApiRequestParams;
import com.stripe.net.ApiResource;
@@ -38,6 +39,29 @@ public class Session extends ApiResource implements HasId {
@SerializedName("accounts")
AccountCollection accounts;
+ /**
+ * Tokenization is the process Stripe uses to collect sensitive card or bank account details, or
+ * personally identifiable information (PII), directly from your customers in a secure manner. A
+ * token representing this information is returned to your server to use. Use our recommended payments integrations to perform this
+ * process on the client-side. This guarantees that no sensitive card data touches your server,
+ * and allows your integration to operate in a PCI-compliant way.
+ *
+ * If you can't use client-side tokenization, you can also create tokens using the API with
+ * either your publishable or secret API key. If your integration uses this method, you're
+ * responsible for any PCI compliance that it might require, and you must keep your secret API key
+ * safe. Unlike with client-side tokenization, your customer's information isn't sent directly to
+ * Stripe, so we can't determine how it's handled or stored.
+ *
+ * You can't store or use tokens more than once. To store card or bank account information for
+ * later use, create Customer objects or External accounts. Radar, our integrated solution for automatic fraud
+ * protection, performs best with integrations that use client-side tokenization.
+ */
+ @SerializedName("bank_account_token")
+ Token bankAccountToken;
+
/** A value that will be passed to the client to launch the authentication flow. */
@SerializedName("client_secret")
String clientSecret;
@@ -50,6 +74,9 @@ public class Session extends ApiResource implements HasId {
@SerializedName("id")
String id;
+ @SerializedName("limits")
+ Limits limits;
+
/**
* If the object exists in live mode, the value is {@code true}. If the object exists in test
* mode, the value is {@code false}.
@@ -57,6 +84,9 @@ public class Session extends ApiResource implements HasId {
@SerializedName("livemode")
Boolean livemode;
+ @SerializedName("manual_entry")
+ ManualEntry manualEntry;
+
/**
* String representing the object's type. Objects of the same type share the same value.
*
@@ -255,6 +285,45 @@ public static class Filters extends StripeObject {
/** List of countries from which to filter accounts. */
@SerializedName("countries")
List One of {@code all}, {@code at_least_one}, or {@code none}.
+ */
+ @SerializedName("require_payment_method_support")
+ String requirePaymentMethodSupport;
+ }
+
+ /**
+ * For more details about Limits, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Limits extends StripeObject {
+ /** The number of accounts that can be linked in this Session. */
+ @SerializedName("accounts")
+ Long accounts;
+ }
+
+ /**
+ * For more details about ManualEntry, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ManualEntry extends StripeObject {
+ /**
+ * Controls how manual entry of bank account details is presented to the user.
+ *
+ * One of {@code automatic}, or {@code disabled}.
+ */
+ @SerializedName("mode")
+ String mode;
}
@Override
@@ -262,6 +331,9 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
trySetResponseGetter(accountHolder, responseGetter);
trySetResponseGetter(accounts, responseGetter);
+ trySetResponseGetter(bankAccountToken, responseGetter);
trySetResponseGetter(filters, responseGetter);
+ trySetResponseGetter(limits, responseGetter);
+ trySetResponseGetter(manualEntry, responseGetter);
}
}
diff --git a/src/main/java/com/stripe/model/issuing/Authorization.java b/src/main/java/com/stripe/model/issuing/Authorization.java
index df2bb695fb2a..dc0f9086e1f0 100644
--- a/src/main/java/com/stripe/model/issuing/Authorization.java
+++ b/src/main/java/com/stripe/model/issuing/Authorization.java
@@ -1126,9 +1126,9 @@ public static class RequestHistory extends StripeObject {
* card_expired}, {@code card_inactive}, {@code cardholder_blocked}, {@code
* cardholder_inactive}, {@code cardholder_verification_required}, {@code
* insecure_authorization_method}, {@code insufficient_funds}, {@code network_fallback}, {@code
- * not_allowed}, {@code pin_blocked}, {@code spending_controls}, {@code suspected_fraud}, {@code
- * verification_failed}, {@code webhook_approved}, {@code webhook_declined}, {@code
- * webhook_error}, or {@code webhook_timeout}.
+ * not_allowed}, {@code pin_blocked}, {@code spending_controls}, {@code stripe_internal_error},
+ * {@code suspected_fraud}, {@code verification_failed}, {@code webhook_approved}, {@code
+ * webhook_declined}, {@code webhook_error}, or {@code webhook_timeout}.
*/
@SerializedName("reason")
String reason;
diff --git a/src/main/java/com/stripe/model/issuing/Card.java b/src/main/java/com/stripe/model/issuing/Card.java
index ee0bdee582c7..00fea1100ebc 100644
--- a/src/main/java/com/stripe/model/issuing/Card.java
+++ b/src/main/java/com/stripe/model/issuing/Card.java
@@ -496,10 +496,17 @@ public static class Shipping extends StripeObject {
@SerializedName("address_validation")
AddressValidation addressValidation;
+ /**
+ * The name of the business at the shipping address, used on the shipping label to ensure
+ * delivery when the card is shipped to a cardholder's workplace.
+ */
+ @SerializedName("business_name")
+ String businessName;
+
/**
* The delivery company that shipped a card.
*
- * One of {@code dhl}, {@code fedex}, {@code royal_mail}, or {@code usps}.
+ * One of {@code correos}, {@code dhl}, {@code fedex}, {@code royal_mail}, or {@code usps}.
*/
@SerializedName("carrier")
String carrier;
diff --git a/src/main/java/com/stripe/model/issuing/Transaction.java b/src/main/java/com/stripe/model/issuing/Transaction.java
index 4d6fa19afdcb..bd44212869d8 100644
--- a/src/main/java/com/stripe/model/issuing/Transaction.java
+++ b/src/main/java/com/stripe/model/issuing/Transaction.java
@@ -665,7 +665,7 @@ public static class ReportedBreakdown extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Fuel extends StripeObject {
/**
- * Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive
+ * Gross fuel amount that should equal Fuel Volume multiplied by Fuel Unit Cost, inclusive
* of taxes.
*/
@SerializedName("gross_amount_decimal")
diff --git a/src/main/java/com/stripe/model/tax/Calculation.java b/src/main/java/com/stripe/model/tax/Calculation.java
index 340316732539..357bdcb7e70b 100644
--- a/src/main/java/com/stripe/model/tax/Calculation.java
+++ b/src/main/java/com/stripe/model/tax/Calculation.java
@@ -346,7 +346,8 @@ public static class TaxId extends StripeObject {
* {@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}.
+ * la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, {@code ic_nif}, or {@code
+ * unknown}.
*/
@SerializedName("type")
String type;
@@ -573,9 +574,9 @@ public static class TaxRateDetails extends StripeObject {
* The tax type, such as {@code vat} or {@code sales_tax}.
*
* One of {@code amusement_tax}, {@code communications_tax}, {@code gst}, {@code hst},
- * {@code igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code
- * retail_delivery_fee}, {@code rst}, {@code sales_tax}, {@code service_tax}, or {@code
- * vat}.
+ * {@code igst}, {@code jct}, {@code lease_tax}, {@code mass_transit_parking_tax}, {@code
+ * parking_tax}, {@code pst}, {@code qst}, {@code retail_delivery_fee}, {@code rst}, {@code
+ * sales_tax}, {@code service_tax}, or {@code vat}.
*/
@SerializedName("tax_type")
String taxType;
@@ -674,8 +675,9 @@ public static class TaxRateDetails extends StripeObject {
* The tax type, such as {@code vat} or {@code sales_tax}.
*
* One of {@code amusement_tax}, {@code communications_tax}, {@code gst}, {@code hst},
- * {@code igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code
- * retail_delivery_fee}, {@code rst}, {@code sales_tax}, {@code service_tax}, or {@code vat}.
+ * {@code igst}, {@code jct}, {@code lease_tax}, {@code mass_transit_parking_tax}, {@code
+ * parking_tax}, {@code pst}, {@code qst}, {@code retail_delivery_fee}, {@code rst}, {@code
+ * sales_tax}, {@code service_tax}, or {@code vat}.
*/
@SerializedName("tax_type")
String taxType;
diff --git a/src/main/java/com/stripe/model/tax/CalculationLineItem.java b/src/main/java/com/stripe/model/tax/CalculationLineItem.java
index 4053a98e231a..fa1b82b8020b 100644
--- a/src/main/java/com/stripe/model/tax/CalculationLineItem.java
+++ b/src/main/java/com/stripe/model/tax/CalculationLineItem.java
@@ -207,8 +207,9 @@ public static class TaxRateDetails extends StripeObject {
* The tax type, such as {@code vat} or {@code sales_tax}.
*
* One of {@code amusement_tax}, {@code communications_tax}, {@code gst}, {@code hst},
- * {@code igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code
- * retail_delivery_fee}, {@code rst}, {@code sales_tax}, {@code service_tax}, or {@code vat}.
+ * {@code igst}, {@code jct}, {@code lease_tax}, {@code mass_transit_parking_tax}, {@code
+ * parking_tax}, {@code pst}, {@code qst}, {@code retail_delivery_fee}, {@code rst}, {@code
+ * sales_tax}, {@code service_tax}, or {@code vat}.
*/
@SerializedName("tax_type")
String taxType;
diff --git a/src/main/java/com/stripe/model/tax/Registration.java b/src/main/java/com/stripe/model/tax/Registration.java
index 74469d3db359..d01ff8ed307e 100644
--- a/src/main/java/com/stripe/model/tax/Registration.java
+++ b/src/main/java/com/stripe/model/tax/Registration.java
@@ -2889,6 +2889,12 @@ public static class Us extends StripeObject {
@SerializedName("local_lease_tax")
LocalLeaseTax localLeaseTax;
+ @SerializedName("mass_transit_parking_tax")
+ MassTransitParkingTax massTransitParkingTax;
+
+ @SerializedName("parking_tax")
+ ParkingTax parkingTax;
+
/**
* Two-letter US state code (ISO
* 3166-2).
@@ -2903,7 +2909,8 @@ public static class Us extends StripeObject {
* Type of registration in the US.
*
* One of {@code local_amusement_tax}, {@code local_lease_tax}, {@code
- * state_communications_tax}, {@code state_retail_delivery_fee}, or {@code state_sales_tax}.
+ * mass_transit_parking_tax}, {@code parking_tax}, {@code state_communications_tax}, {@code
+ * state_retail_delivery_fee}, or {@code state_sales_tax}.
*/
@SerializedName("type")
String type;
@@ -2940,6 +2947,40 @@ public static class LocalLeaseTax extends StripeObject {
String jurisdiction;
}
+ /**
+ * For more details about MassTransitParkingTax, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MassTransitParkingTax extends StripeObject {
+ /**
+ * A jurisdiction
+ * code representing the local jurisdiction.
+ */
+ @SerializedName("jurisdiction")
+ String jurisdiction;
+ }
+
+ /**
+ * For more details about ParkingTax, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ParkingTax extends StripeObject {
+ /**
+ * A jurisdiction
+ * code representing the local jurisdiction.
+ */
+ @SerializedName("jurisdiction")
+ String jurisdiction;
+ }
+
/**
* For more details about StateSalesTax, please refer to the API Reference.
diff --git a/src/main/java/com/stripe/model/tax/Transaction.java b/src/main/java/com/stripe/model/tax/Transaction.java
index 9403ea8e01e6..7aa2912ee866 100644
--- a/src/main/java/com/stripe/model/tax/Transaction.java
+++ b/src/main/java/com/stripe/model/tax/Transaction.java
@@ -391,7 +391,8 @@ public static class TaxId extends StripeObject {
* {@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}.
+ * la_tin}, {@code cm_niu}, {@code cv_nif}, {@code bf_ifu}, {@code ic_nif}, or {@code
+ * unknown}.
*/
@SerializedName("type")
String type;
@@ -634,9 +635,9 @@ public static class TaxRateDetails extends StripeObject {
* The tax type, such as {@code vat} or {@code sales_tax}.
*
* One of {@code amusement_tax}, {@code communications_tax}, {@code gst}, {@code hst},
- * {@code igst}, {@code jct}, {@code lease_tax}, {@code pst}, {@code qst}, {@code
- * retail_delivery_fee}, {@code rst}, {@code sales_tax}, {@code service_tax}, or {@code
- * vat}.
+ * {@code igst}, {@code jct}, {@code lease_tax}, {@code mass_transit_parking_tax}, {@code
+ * parking_tax}, {@code pst}, {@code qst}, {@code retail_delivery_fee}, {@code rst}, {@code
+ * sales_tax}, {@code service_tax}, or {@code vat}.
*/
@SerializedName("tax_type")
String taxType;
diff --git a/src/main/java/com/stripe/model/v2/billing/MeterEvent.java b/src/main/java/com/stripe/model/v2/billing/MeterEvent.java
index c738fba0be25..d4667ced387c 100644
--- a/src/main/java/com/stripe/model/v2/billing/MeterEvent.java
+++ b/src/main/java/com/stripe/model/v2/billing/MeterEvent.java
@@ -28,7 +28,7 @@ public class MeterEvent extends StripeObject {
/**
* A unique identifier for the event. If not provided, one will be generated. We recommend using a
- * globally unique identifier for this. We’ll enforce uniqueness within a rolling 24 hour period.
+ * globally unique identifier for this. We'll enforce uniqueness within a rolling 24 hour period.
*/
@SerializedName("identifier")
String identifier;
@@ -50,7 +50,7 @@ public class MeterEvent extends StripeObject {
String object;
/**
- * The payload of the event. This must contain the fields corresponding to a meter’s {@code
+ * The payload of the event. This must contain the fields corresponding to a meter's {@code
* customer_mapping.event_payload_key} (default is {@code stripe_customer_id}) and {@code
* value_settings.event_payload_key} (default is {@code value}). Read more about the payload..
diff --git a/src/main/java/com/stripe/model/v2/billing/MeterEventAdjustment.java b/src/main/java/com/stripe/model/v2/billing/MeterEventAdjustment.java
index c26cb58f4e4f..fbd6b93bb9d6 100644
--- a/src/main/java/com/stripe/model/v2/billing/MeterEventAdjustment.java
+++ b/src/main/java/com/stripe/model/v2/billing/MeterEventAdjustment.java
@@ -52,7 +52,7 @@ public class MeterEventAdjustment extends StripeObject implements HasId {
String object;
/**
- * Open Enum. The meter event adjustment’s status.
+ * Open Enum. The meter event adjustment's status.
*
* One of {@code complete}, or {@code pending}.
*/
diff --git a/src/main/java/com/stripe/model/v2/core/Account.java b/src/main/java/com/stripe/model/v2/core/Account.java
index f9c5d0674b57..047a6609975d 100644
--- a/src/main/java/com/stripe/model/v2/core/Account.java
+++ b/src/main/java/com/stripe/model/v2/core/Account.java
@@ -4191,6 +4191,10 @@ public static class InnerAccount extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class BusinessDetails extends StripeObject {
+ /** Additional addresses associated with the business. */
+ @SerializedName("additional_addresses")
+ List One of {@code administrative}, or {@code principal_place_of_business}.
+ */
+ @SerializedName("purpose")
+ String purpose;
+
+ /** State, county, province, or region. */
+ @SerializedName("state")
+ String state;
+
+ /** Town or district. */
+ @SerializedName("town")
+ String town;
+ }
+
/** The company’s primary address. */
@Getter
@Setter
diff --git a/src/main/java/com/stripe/param/AccountCreateParams.java b/src/main/java/com/stripe/param/AccountCreateParams.java
index f92d3a781992..8dc79bcd16ce 100644
--- a/src/main/java/com/stripe/param/AccountCreateParams.java
+++ b/src/main/java/com/stripe/param/AccountCreateParams.java
@@ -7668,6 +7668,9 @@ public static class Company {
@SerializedName("address_kanji")
AddressKanji addressKanji;
+ @SerializedName("administrative_address")
+ AdministrativeAddress administrativeAddress;
+
/**
* Whether the company's directors have been provided. Set this Boolean to {@code true} after
* creating all the company's directors with the
@@ -7755,6 +7758,9 @@ public static class Company {
@SerializedName("phone")
String phone;
+ @SerializedName("principal_place_of_business")
+ PrincipalPlaceOfBusiness principalPlaceOfBusiness;
+
/** When the business was incorporated or registered. */
@SerializedName("registration_date")
Object registrationDate;
@@ -7787,6 +7793,10 @@ public static class Company {
* The business ID number of the company, as appropriate for the company’s country. (Examples
* are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in
* the UK.)
+ *
+ * Changing this value requires that the account re-accept the terms of
+ * service.
*/
@SerializedName("tax_id")
String taxId;
@@ -7809,6 +7819,7 @@ private Company(
Address address,
AddressKana addressKana,
AddressKanji addressKanji,
+ AdministrativeAddress administrativeAddress,
Boolean directorsProvided,
DirectorshipDeclaration directorshipDeclaration,
Boolean executivesProvided,
@@ -7822,6 +7833,7 @@ private Company(
OwnershipDeclaration ownershipDeclaration,
ApiRequestParams.EnumParam ownershipExemptionReason,
String phone,
+ PrincipalPlaceOfBusiness principalPlaceOfBusiness,
Object registrationDate,
String registrationNumber,
RepresentativeDeclaration representativeDeclaration,
@@ -7833,6 +7845,7 @@ private Company(
this.address = address;
this.addressKana = addressKana;
this.addressKanji = addressKanji;
+ this.administrativeAddress = administrativeAddress;
this.directorsProvided = directorsProvided;
this.directorshipDeclaration = directorshipDeclaration;
this.executivesProvided = executivesProvided;
@@ -7846,6 +7859,7 @@ private Company(
this.ownershipDeclaration = ownershipDeclaration;
this.ownershipExemptionReason = ownershipExemptionReason;
this.phone = phone;
+ this.principalPlaceOfBusiness = principalPlaceOfBusiness;
this.registrationDate = registrationDate;
this.registrationNumber = registrationNumber;
this.representativeDeclaration = representativeDeclaration;
@@ -7867,6 +7881,8 @@ public static class Builder {
private AddressKanji addressKanji;
+ private AdministrativeAddress administrativeAddress;
+
private Boolean directorsProvided;
private DirectorshipDeclaration directorshipDeclaration;
@@ -7893,6 +7909,8 @@ public static class Builder {
private String phone;
+ private PrincipalPlaceOfBusiness principalPlaceOfBusiness;
+
private Object registrationDate;
private String registrationNumber;
@@ -7915,6 +7933,7 @@ public AccountCreateParams.Company build() {
this.address,
this.addressKana,
this.addressKanji,
+ this.administrativeAddress,
this.directorsProvided,
this.directorshipDeclaration,
this.executivesProvided,
@@ -7928,6 +7947,7 @@ public AccountCreateParams.Company build() {
this.ownershipDeclaration,
this.ownershipExemptionReason,
this.phone,
+ this.principalPlaceOfBusiness,
this.registrationDate,
this.registrationNumber,
this.representativeDeclaration,
@@ -7956,6 +7976,12 @@ public Builder setAddressKanji(AccountCreateParams.Company.AddressKanji addressK
return this;
}
+ public Builder setAdministrativeAddress(
+ AccountCreateParams.Company.AdministrativeAddress administrativeAddress) {
+ this.administrativeAddress = administrativeAddress;
+ return this;
+ }
+
/**
* Whether the company's directors have been provided. Set this Boolean to {@code true} after
* creating all the company's directors with the
@@ -8100,6 +8126,12 @@ public Builder setPhone(String phone) {
return this;
}
+ public Builder setPrincipalPlaceOfBusiness(
+ AccountCreateParams.Company.PrincipalPlaceOfBusiness principalPlaceOfBusiness) {
+ this.principalPlaceOfBusiness = principalPlaceOfBusiness;
+ return this;
+ }
+
/** When the business was incorporated or registered. */
public Builder setRegistrationDate(
AccountCreateParams.Company.RegistrationDate registrationDate) {
@@ -8158,6 +8190,10 @@ public Builder setStructure(EmptyParam structure) {
* The business ID number of the company, as appropriate for the company’s country. (Examples
* are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in
* the UK.)
+ *
+ * Changing this value requires that the account re-accept the terms of
+ * service.
*/
public Builder setTaxId(String taxId) {
this.taxId = taxId;
@@ -8689,6 +8725,168 @@ public Builder setTown(String town) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AdministrativeAddress {
+ /** City, district, suburb, town, or village. */
+ @SerializedName("city")
+ String city;
+
+ /**
+ * Two-letter country code (ISO
+ * 3166-1 alpha-2).
+ */
+ @SerializedName("country")
+ String country;
+
+ /**
+ * 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 Changing this value for the account's representative requires that the account re-accept the
+ * terms of
+ * service.
*/
@SerializedName("id_number")
String idNumber;
@@ -96,6 +100,10 @@ public class AccountPersonCreateParams extends ApiRequestParams {
* Instead of the number itself, you can also provide a PII token provided by
* Stripe.js.
+ *
+ * Changing this value for the account's representative requires that the account re-accept the
+ * terms of
+ * service.
*/
@SerializedName("id_number_secondary")
String idNumberSecondary;
@@ -160,7 +168,13 @@ public class AccountPersonCreateParams extends ApiRequestParams {
@SerializedName("relationship")
Relationship relationship;
- /** The last four digits of the person's Social Security number (U.S. only). */
+ /**
+ * The last four digits of the person's Social Security number (U.S. only).
+ *
+ * Changing this value for the account's representative requires that the account re-accept the
+ * terms of
+ * service.
+ */
@SerializedName("ssn_last_4")
String ssnLast4;
@@ -510,6 +524,10 @@ public Builder setGender(String gender) {
* number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you
* can also provide a PII
* token provided by Stripe.js.
+ *
+ * Changing this value for the account's representative requires that the account re-accept
+ * the terms of
+ * service.
*/
public Builder setIdNumber(String idNumber) {
this.idNumber = idNumber;
@@ -522,6 +540,10 @@ public Builder setIdNumber(String idNumber) {
* card. Instead of the number itself, you can also provide a PII token provided by
* Stripe.js.
+ *
+ * Changing this value for the account's representative requires that the account re-accept
+ * the terms of
+ * service.
*/
public Builder setIdNumberSecondary(String idNumberSecondary) {
this.idNumberSecondary = idNumberSecondary;
@@ -651,7 +673,13 @@ public Builder setRelationship(AccountPersonCreateParams.Relationship relationsh
return this;
}
- /** The last four digits of the person's Social Security number (U.S. only). */
+ /**
+ * The last four digits of the person's Social Security number (U.S. only).
+ *
+ * Changing this value for the account's representative requires that the account re-accept
+ * the terms of
+ * service.
+ */
public Builder setSsnLast4(String ssnLast4) {
this.ssnLast4 = ssnLast4;
return this;
diff --git a/src/main/java/com/stripe/param/AccountPersonUpdateParams.java b/src/main/java/com/stripe/param/AccountPersonUpdateParams.java
index a3a2222ef03d..9ff9594541bd 100644
--- a/src/main/java/com/stripe/param/AccountPersonUpdateParams.java
+++ b/src/main/java/com/stripe/param/AccountPersonUpdateParams.java
@@ -86,6 +86,10 @@ public class AccountPersonUpdateParams extends ApiRequestParams {
* in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also
* provide a PII token provided
* by Stripe.js.
+ *
+ * Changing this value for the account's representative requires that the account re-accept the
+ * terms of
+ * service.
*/
@SerializedName("id_number")
Object idNumber;
@@ -96,6 +100,10 @@ public class AccountPersonUpdateParams extends ApiRequestParams {
* Instead of the number itself, you can also provide a PII token provided by
* Stripe.js.
+ *
+ * Changing this value for the account's representative requires that the account re-accept the
+ * terms of
+ * service.
*/
@SerializedName("id_number_secondary")
Object idNumberSecondary;
@@ -160,7 +168,13 @@ public class AccountPersonUpdateParams extends ApiRequestParams {
@SerializedName("relationship")
Relationship relationship;
- /** The last four digits of the person's Social Security number (U.S. only). */
+ /**
+ * The last four digits of the person's Social Security number (U.S. only).
+ *
+ * Changing this value for the account's representative requires that the account re-accept the
+ * terms of
+ * service.
+ */
@SerializedName("ssn_last_4")
Object ssnLast4;
@@ -543,6 +557,10 @@ public Builder setGender(EmptyParam gender) {
* number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you
* can also provide a PII
* token provided by Stripe.js.
+ *
+ * Changing this value for the account's representative requires that the account re-accept
+ * the terms of
+ * service.
*/
public Builder setIdNumber(String idNumber) {
this.idNumber = idNumber;
@@ -554,6 +572,10 @@ public Builder setIdNumber(String idNumber) {
* number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you
* can also provide a PII
* token provided by Stripe.js.
+ *
+ * Changing this value for the account's representative requires that the account re-accept
+ * the terms of
+ * service.
*/
public Builder setIdNumber(EmptyParam idNumber) {
this.idNumber = idNumber;
@@ -566,6 +588,10 @@ public Builder setIdNumber(EmptyParam idNumber) {
* card. Instead of the number itself, you can also provide a PII token provided by
* Stripe.js.
+ *
+ * Changing this value for the account's representative requires that the account re-accept
+ * the terms of
+ * service.
*/
public Builder setIdNumberSecondary(String idNumberSecondary) {
this.idNumberSecondary = idNumberSecondary;
@@ -578,6 +604,10 @@ public Builder setIdNumberSecondary(String idNumberSecondary) {
* card. Instead of the number itself, you can also provide a PII token provided by
* Stripe.js.
+ *
+ * Changing this value for the account's representative requires that the account re-accept
+ * the terms of
+ * service.
*/
public Builder setIdNumberSecondary(EmptyParam idNumberSecondary) {
this.idNumberSecondary = idNumberSecondary;
@@ -756,13 +786,25 @@ public Builder setRelationship(AccountPersonUpdateParams.Relationship relationsh
return this;
}
- /** The last four digits of the person's Social Security number (U.S. only). */
+ /**
+ * The last four digits of the person's Social Security number (U.S. only).
+ *
+ * Changing this value for the account's representative requires that the account re-accept
+ * the terms of
+ * service.
+ */
public Builder setSsnLast4(String ssnLast4) {
this.ssnLast4 = ssnLast4;
return this;
}
- /** The last four digits of the person's Social Security number (U.S. only). */
+ /**
+ * The last four digits of the person's Social Security number (U.S. only).
+ *
+ * Changing this value for the account's representative requires that the account re-accept
+ * the terms of
+ * service.
+ */
public Builder setSsnLast4(EmptyParam ssnLast4) {
this.ssnLast4 = ssnLast4;
return this;
diff --git a/src/main/java/com/stripe/param/AccountRejectParams.java b/src/main/java/com/stripe/param/AccountRejectParams.java
index 317d9c26c965..8fbc2d841c0b 100644
--- a/src/main/java/com/stripe/param/AccountRejectParams.java
+++ b/src/main/java/com/stripe/param/AccountRejectParams.java
@@ -26,6 +26,13 @@ public class AccountRejectParams extends ApiRequestParams {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map Changing this value requires that the account re-accept the terms of
+ * service.
*/
@SerializedName("tax_id")
Object taxId;
@@ -7906,6 +7916,7 @@ private Company(
Address address,
AddressKana addressKana,
AddressKanji addressKanji,
+ AdministrativeAddress administrativeAddress,
Boolean directorsProvided,
DirectorshipDeclaration directorshipDeclaration,
Boolean executivesProvided,
@@ -7919,6 +7930,7 @@ private Company(
OwnershipDeclaration ownershipDeclaration,
ApiRequestParams.EnumParam ownershipExemptionReason,
Object phone,
+ PrincipalPlaceOfBusiness principalPlaceOfBusiness,
Object registrationDate,
Object registrationNumber,
RepresentativeDeclaration representativeDeclaration,
@@ -7930,6 +7942,7 @@ private Company(
this.address = address;
this.addressKana = addressKana;
this.addressKanji = addressKanji;
+ this.administrativeAddress = administrativeAddress;
this.directorsProvided = directorsProvided;
this.directorshipDeclaration = directorshipDeclaration;
this.executivesProvided = executivesProvided;
@@ -7943,6 +7956,7 @@ private Company(
this.ownershipDeclaration = ownershipDeclaration;
this.ownershipExemptionReason = ownershipExemptionReason;
this.phone = phone;
+ this.principalPlaceOfBusiness = principalPlaceOfBusiness;
this.registrationDate = registrationDate;
this.registrationNumber = registrationNumber;
this.representativeDeclaration = representativeDeclaration;
@@ -7964,6 +7978,8 @@ public static class Builder {
private AddressKanji addressKanji;
+ private AdministrativeAddress administrativeAddress;
+
private Boolean directorsProvided;
private DirectorshipDeclaration directorshipDeclaration;
@@ -7990,6 +8006,8 @@ public static class Builder {
private Object phone;
+ private PrincipalPlaceOfBusiness principalPlaceOfBusiness;
+
private Object registrationDate;
private Object registrationNumber;
@@ -8012,6 +8030,7 @@ public AccountUpdateParams.Company build() {
this.address,
this.addressKana,
this.addressKanji,
+ this.administrativeAddress,
this.directorsProvided,
this.directorshipDeclaration,
this.executivesProvided,
@@ -8025,6 +8044,7 @@ public AccountUpdateParams.Company build() {
this.ownershipDeclaration,
this.ownershipExemptionReason,
this.phone,
+ this.principalPlaceOfBusiness,
this.registrationDate,
this.registrationNumber,
this.representativeDeclaration,
@@ -8053,6 +8073,12 @@ public Builder setAddressKanji(AccountUpdateParams.Company.AddressKanji addressK
return this;
}
+ public Builder setAdministrativeAddress(
+ AccountUpdateParams.Company.AdministrativeAddress administrativeAddress) {
+ this.administrativeAddress = administrativeAddress;
+ return this;
+ }
+
/**
* Whether the company's directors have been provided. Set this Boolean to {@code true} after
* creating all the company's directors with the
@@ -8236,6 +8262,12 @@ public Builder setPhone(EmptyParam phone) {
return this;
}
+ public Builder setPrincipalPlaceOfBusiness(
+ AccountUpdateParams.Company.PrincipalPlaceOfBusiness principalPlaceOfBusiness) {
+ this.principalPlaceOfBusiness = principalPlaceOfBusiness;
+ return this;
+ }
+
public Builder setRegistrationDate(
AccountUpdateParams.Company.RegistrationDate registrationDate) {
this.registrationDate = registrationDate;
@@ -8303,6 +8335,10 @@ public Builder setStructure(EmptyParam structure) {
* The business ID number of the company, as appropriate for the company’s country. (Examples
* are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in
* the UK.)
+ *
+ * Changing this value requires that the account re-accept the terms of
+ * service.
*/
public Builder setTaxId(String taxId) {
this.taxId = taxId;
@@ -8313,6 +8349,10 @@ public Builder setTaxId(String taxId) {
* The business ID number of the company, as appropriate for the company’s country. (Examples
* are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in
* the UK.)
+ *
+ * Changing this value requires that the account re-accept the terms of
+ * service.
*/
public Builder setTaxId(EmptyParam taxId) {
this.taxId = taxId;
@@ -8990,6 +9030,210 @@ public Builder setTown(EmptyParam town) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AdministrativeAddress {
+ /** City, district, suburb, town, or village. */
+ @SerializedName("city")
+ Object city;
+
+ /**
+ * Two-letter country code (ISO
+ * 3166-1 alpha-2).
+ */
+ @SerializedName("country")
+ Object country;
+
+ /**
+ * 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 If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the
+ * Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ * If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates
+ * and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ * When processing card payments, Stripe uses {@code setup_future_usage} to help you comply
+ * with regional legislation and network rules, such as SCA.
+ */
+ @SerializedName("setup_future_usage")
+ SetupFutureUsage setupFutureUsage;
+
+ private Payco(
+ ApiRequestParams.EnumParam captureMethod,
+ Map If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to
+ * the Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ * If the payment method is {@code card_present} and isn't a digital wallet, Stripe
+ * creates and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ * When processing card payments, Stripe uses {@code setup_future_usage} to help you
+ * comply with regional legislation and network rules, such as SCA.
+ */
+ public Builder setSetupFutureUsage(
+ PaymentIntentConfirmParams.PaymentMethodOptions.Payco.SetupFutureUsage
+ setupFutureUsage) {
+ this.setupFutureUsage = setupFutureUsage;
+ return this;
+ }
}
public enum CaptureMethod implements ApiRequestParams.EnumParam {
@@ -20284,6 +20390,18 @@ public enum CaptureMethod implements ApiRequestParams.EnumParam {
this.value = value;
}
}
+
+ public enum SetupFutureUsage implements ApiRequestParams.EnumParam {
+ @SerializedName("none")
+ NONE("none");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ SetupFutureUsage(String value) {
+ this.value = value;
+ }
+ }
}
@Getter
@@ -22144,10 +22262,35 @@ public static class SamsungPay {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the
+ * Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ * If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates
+ * and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ * When processing card payments, Stripe uses {@code setup_future_usage} to help you comply
+ * with regional legislation and network rules, such as SCA.
+ */
+ @SerializedName("setup_future_usage")
+ SetupFutureUsage setupFutureUsage;
+
private SamsungPay(
- ApiRequestParams.EnumParam captureMethod, Map If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to
+ * the Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ * If the payment method is {@code card_present} and isn't a digital wallet, Stripe
+ * creates and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ * When processing card payments, Stripe uses {@code setup_future_usage} to help you
+ * comply with regional legislation and network rules, such as SCA.
+ */
+ public Builder setSetupFutureUsage(
+ PaymentIntentConfirmParams.PaymentMethodOptions.SamsungPay.SetupFutureUsage
+ setupFutureUsage) {
+ this.setupFutureUsage = setupFutureUsage;
+ return this;
+ }
}
public enum CaptureMethod implements ApiRequestParams.EnumParam {
@@ -22237,6 +22409,18 @@ public enum CaptureMethod implements ApiRequestParams.EnumParam {
this.value = value;
}
}
+
+ public enum SetupFutureUsage implements ApiRequestParams.EnumParam {
+ @SerializedName("none")
+ NONE("none");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ SetupFutureUsage(String value) {
+ this.value = value;
+ }
+ }
}
@Getter
@@ -25085,6 +25269,13 @@ public static class RadarOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the
+ * Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ * If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates
+ * and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ * When processing card payments, Stripe uses {@code setup_future_usage} to help you comply
+ * with regional legislation and network rules, such as SCA.
+ */
+ @SerializedName("setup_future_usage")
+ SetupFutureUsage setupFutureUsage;
+
+ private Payco(
+ ApiRequestParams.EnumParam captureMethod,
+ Map If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to
+ * the Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ * If the payment method is {@code card_present} and isn't a digital wallet, Stripe
+ * creates and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ * When processing card payments, Stripe uses {@code setup_future_usage} to help you
+ * comply with regional legislation and network rules, such as SCA.
+ */
+ public Builder setSetupFutureUsage(
+ PaymentIntentCreateParams.PaymentMethodOptions.Payco.SetupFutureUsage
+ setupFutureUsage) {
+ this.setupFutureUsage = setupFutureUsage;
+ return this;
+ }
}
public enum CaptureMethod implements ApiRequestParams.EnumParam {
@@ -20777,6 +20883,18 @@ public enum CaptureMethod implements ApiRequestParams.EnumParam {
this.value = value;
}
}
+
+ public enum SetupFutureUsage implements ApiRequestParams.EnumParam {
+ @SerializedName("none")
+ NONE("none");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ SetupFutureUsage(String value) {
+ this.value = value;
+ }
+ }
}
@Getter
@@ -22634,10 +22752,35 @@ public static class SamsungPay {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the
+ * Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ * If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates
+ * and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ * When processing card payments, Stripe uses {@code setup_future_usage} to help you comply
+ * with regional legislation and network rules, such as SCA.
+ */
+ @SerializedName("setup_future_usage")
+ SetupFutureUsage setupFutureUsage;
+
private SamsungPay(
- ApiRequestParams.EnumParam captureMethod, Map If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to
+ * the Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ * If the payment method is {@code card_present} and isn't a digital wallet, Stripe
+ * creates and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ * When processing card payments, Stripe uses {@code setup_future_usage} to help you
+ * comply with regional legislation and network rules, such as SCA.
+ */
+ public Builder setSetupFutureUsage(
+ PaymentIntentCreateParams.PaymentMethodOptions.SamsungPay.SetupFutureUsage
+ setupFutureUsage) {
+ this.setupFutureUsage = setupFutureUsage;
+ return this;
+ }
}
public enum CaptureMethod implements ApiRequestParams.EnumParam {
@@ -22726,6 +22898,18 @@ public enum CaptureMethod implements ApiRequestParams.EnumParam {
this.value = value;
}
}
+
+ public enum SetupFutureUsage implements ApiRequestParams.EnumParam {
+ @SerializedName("none")
+ NONE("none");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ SetupFutureUsage(String value) {
+ this.value = value;
+ }
+ }
}
@Getter
@@ -25572,6 +25756,13 @@ public static class RadarOptions {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the
+ * Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ * If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates
+ * and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ * When processing card payments, Stripe uses {@code setup_future_usage} to help you comply
+ * with regional legislation and network rules, such as SCA.
+ */
+ @SerializedName("setup_future_usage")
+ SetupFutureUsage setupFutureUsage;
+
+ private Payco(
+ ApiRequestParams.EnumParam captureMethod,
+ Map If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to
+ * the Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ * If the payment method is {@code card_present} and isn't a digital wallet, Stripe
+ * creates and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ * When processing card payments, Stripe uses {@code setup_future_usage} to help you
+ * comply with regional legislation and network rules, such as SCA.
+ */
+ public Builder setSetupFutureUsage(
+ PaymentIntentUpdateParams.PaymentMethodOptions.Payco.SetupFutureUsage
+ setupFutureUsage) {
+ this.setupFutureUsage = setupFutureUsage;
+ return this;
+ }
}
public enum CaptureMethod implements ApiRequestParams.EnumParam {
@@ -20632,6 +20738,18 @@ public enum CaptureMethod implements ApiRequestParams.EnumParam {
this.value = value;
}
}
+
+ public enum SetupFutureUsage implements ApiRequestParams.EnumParam {
+ @SerializedName("none")
+ NONE("none");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ SetupFutureUsage(String value) {
+ this.value = value;
+ }
+ }
}
@Getter
@@ -22544,10 +22662,35 @@ public static class SamsungPay {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the
+ * Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ * If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates
+ * and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ * When processing card payments, Stripe uses {@code setup_future_usage} to help you comply
+ * with regional legislation and network rules, such as SCA.
+ */
+ @SerializedName("setup_future_usage")
+ SetupFutureUsage setupFutureUsage;
+
private SamsungPay(
- ApiRequestParams.EnumParam captureMethod, Map If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to
+ * the Customer after the PaymentIntent is confirmed and the customer completes any required
+ * actions. If you don't provide a Customer, you can still attach the payment method to a
+ * Customer after the transaction completes.
+ *
+ * If the payment method is {@code card_present} and isn't a digital wallet, Stripe
+ * creates and attaches a generated_card
+ * payment method representing the card to the Customer instead.
+ *
+ * When processing card payments, Stripe uses {@code setup_future_usage} to help you
+ * comply with regional legislation and network rules, such as SCA.
+ */
+ public Builder setSetupFutureUsage(
+ PaymentIntentUpdateParams.PaymentMethodOptions.SamsungPay.SetupFutureUsage
+ setupFutureUsage) {
+ this.setupFutureUsage = setupFutureUsage;
+ return this;
+ }
}
public enum CaptureMethod implements ApiRequestParams.EnumParam {
@@ -22636,6 +22808,18 @@ public enum CaptureMethod implements ApiRequestParams.EnumParam {
this.value = value;
}
}
+
+ public enum SetupFutureUsage implements ApiRequestParams.EnumParam {
+ @SerializedName("none")
+ NONE("none");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ SetupFutureUsage(String value) {
+ this.value = value;
+ }
+ }
}
@Getter
@@ -26201,6 +26385,303 @@ public Builder setMetadata(Map When setting this to {@code on_session}, Checkout will show a notice to the customer that
+ * their payment details will be saved.
+ *
+ * When setting this to {@code off_session}, Checkout will show a notice to the customer that
+ * their payment details will be saved and used for future payments.
+ *
+ * If a Customer has been provided or Checkout creates a new Customer,Checkout will attach
+ * the payment method to the Customer.
+ *
+ * If Checkout does not create a Customer, the payment method is not attached to a Customer.
+ * To reuse the payment method, you can retrieve it from the Checkout Session's PaymentIntent.
+ *
+ * When processing card payments, Checkout also uses {@code setup_future_usage} to
+ * dynamically optimize your payment flow and comply with regional legislation and network
+ * rules, such as SCA.
+ */
+ @SerializedName("setup_future_usage")
+ ApiRequestParams.EnumParam setupFutureUsage;
+
/**
* Text that appears on the customer's statement as the statement descriptor for a non-card
* charge. This value overrides the account's default statement descriptor. For information
@@ -4098,12 +4463,14 @@ private PaymentIntentData(
Object description,
Map When setting this to {@code on_session}, Checkout will show a notice to the customer
+ * that their payment details will be saved.
+ *
+ * When setting this to {@code off_session}, Checkout will show a notice to the customer
+ * that their payment details will be saved and used for future payments.
+ *
+ * If a Customer has been provided or Checkout creates a new Customer,Checkout will attach
+ * the payment method to the Customer.
+ *
+ * If Checkout does not create a Customer, the payment method is not attached to a
+ * Customer. To reuse the payment method, you can retrieve it from the Checkout Session's
+ * PaymentIntent.
+ *
+ * When processing card payments, Checkout also uses {@code setup_future_usage} to
+ * dynamically optimize your payment flow and comply with regional legislation and network
+ * rules, such as SCA.
+ */
+ public Builder setSetupFutureUsage(
+ PaymentLinkUpdateParams.PaymentIntentData.SetupFutureUsage setupFutureUsage) {
+ this.setupFutureUsage = setupFutureUsage;
+ return this;
+ }
+
+ /**
+ * Indicates that you intend to make future
+ * payments with the payment method collected by this Checkout Session.
+ *
+ * When setting this to {@code on_session}, Checkout will show a notice to the customer
+ * that their payment details will be saved.
+ *
+ * When setting this to {@code off_session}, Checkout will show a notice to the customer
+ * that their payment details will be saved and used for future payments.
+ *
+ * If a Customer has been provided or Checkout creates a new Customer,Checkout will attach
+ * the payment method to the Customer.
+ *
+ * If Checkout does not create a Customer, the payment method is not attached to a
+ * Customer. To reuse the payment method, you can retrieve it from the Checkout Session's
+ * PaymentIntent.
+ *
+ * When processing card payments, Checkout also uses {@code setup_future_usage} to
+ * dynamically optimize your payment flow and comply with regional legislation and network
+ * rules, such as SCA.
+ */
+ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) {
+ this.setupFutureUsage = setupFutureUsage;
+ return this;
+ }
+
/**
* Text that appears on the customer's statement as the statement descriptor for a non-card
* charge. This value overrides the account's default statement descriptor. For information
@@ -4300,6 +4725,21 @@ public Builder setTransferGroup(EmptyParam transferGroup) {
return this;
}
}
+
+ public enum SetupFutureUsage implements ApiRequestParams.EnumParam {
+ @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
@@ -5672,6 +6112,81 @@ public enum AllowedCountry implements ApiRequestParams.EnumParam {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ShippingOption {
+ /**
+ * 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 Changing this value for the account's representative requires that the account re-accept the
+ * terms of
+ * service.
*/
@SerializedName("id_number")
String idNumber;
@@ -96,6 +100,10 @@ public class PersonCollectionCreateParams extends ApiRequestParams {
* Instead of the number itself, you can also provide a PII token provided by
* Stripe.js.
+ *
+ * Changing this value for the account's representative requires that the account re-accept the
+ * terms of
+ * service.
*/
@SerializedName("id_number_secondary")
String idNumberSecondary;
@@ -160,7 +168,13 @@ public class PersonCollectionCreateParams extends ApiRequestParams {
@SerializedName("relationship")
Relationship relationship;
- /** The last four digits of the person's Social Security number (U.S. only). */
+ /**
+ * The last four digits of the person's Social Security number (U.S. only).
+ *
+ * Changing this value for the account's representative requires that the account re-accept the
+ * terms of
+ * service.
+ */
@SerializedName("ssn_last_4")
String ssnLast4;
@@ -510,6 +524,10 @@ public Builder setGender(String gender) {
* number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you
* can also provide a PII
* token provided by Stripe.js.
+ *
+ * Changing this value for the account's representative requires that the account re-accept
+ * the terms of
+ * service.
*/
public Builder setIdNumber(String idNumber) {
this.idNumber = idNumber;
@@ -522,6 +540,10 @@ public Builder setIdNumber(String idNumber) {
* card. Instead of the number itself, you can also provide a PII token provided by
* Stripe.js.
+ *
+ * Changing this value for the account's representative requires that the account re-accept
+ * the terms of
+ * service.
*/
public Builder setIdNumberSecondary(String idNumberSecondary) {
this.idNumberSecondary = idNumberSecondary;
@@ -651,7 +673,13 @@ public Builder setRelationship(PersonCollectionCreateParams.Relationship relatio
return this;
}
- /** The last four digits of the person's Social Security number (U.S. only). */
+ /**
+ * The last four digits of the person's Social Security number (U.S. only).
+ *
+ * Changing this value for the account's representative requires that the account re-accept
+ * the terms of
+ * service.
+ */
public Builder setSsnLast4(String ssnLast4) {
this.ssnLast4 = ssnLast4;
return this;
diff --git a/src/main/java/com/stripe/param/PersonUpdateParams.java b/src/main/java/com/stripe/param/PersonUpdateParams.java
index bb6e6b882cf5..fda701f56453 100644
--- a/src/main/java/com/stripe/param/PersonUpdateParams.java
+++ b/src/main/java/com/stripe/param/PersonUpdateParams.java
@@ -86,6 +86,10 @@ public class PersonUpdateParams extends ApiRequestParams {
* in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also
* provide a PII token provided
* by Stripe.js.
+ *
+ * Changing this value for the account's representative requires that the account re-accept the
+ * terms of
+ * service.
*/
@SerializedName("id_number")
Object idNumber;
@@ -96,6 +100,10 @@ public class PersonUpdateParams extends ApiRequestParams {
* Instead of the number itself, you can also provide a PII token provided by
* Stripe.js.
+ *
+ * Changing this value for the account's representative requires that the account re-accept the
+ * terms of
+ * service.
*/
@SerializedName("id_number_secondary")
Object idNumberSecondary;
@@ -160,7 +168,13 @@ public class PersonUpdateParams extends ApiRequestParams {
@SerializedName("relationship")
Relationship relationship;
- /** The last four digits of the person's Social Security number (U.S. only). */
+ /**
+ * The last four digits of the person's Social Security number (U.S. only).
+ *
+ * Changing this value for the account's representative requires that the account re-accept the
+ * terms of
+ * service.
+ */
@SerializedName("ssn_last_4")
Object ssnLast4;
@@ -543,6 +557,10 @@ public Builder setGender(EmptyParam gender) {
* number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you
* can also provide a PII
* token provided by Stripe.js.
+ *
+ * Changing this value for the account's representative requires that the account re-accept
+ * the terms of
+ * service.
*/
public Builder setIdNumber(String idNumber) {
this.idNumber = idNumber;
@@ -554,6 +572,10 @@ public Builder setIdNumber(String idNumber) {
* number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you
* can also provide a PII
* token provided by Stripe.js.
+ *
+ * Changing this value for the account's representative requires that the account re-accept
+ * the terms of
+ * service.
*/
public Builder setIdNumber(EmptyParam idNumber) {
this.idNumber = idNumber;
@@ -566,6 +588,10 @@ public Builder setIdNumber(EmptyParam idNumber) {
* card. Instead of the number itself, you can also provide a PII token provided by
* Stripe.js.
+ *
+ * Changing this value for the account's representative requires that the account re-accept
+ * the terms of
+ * service.
*/
public Builder setIdNumberSecondary(String idNumberSecondary) {
this.idNumberSecondary = idNumberSecondary;
@@ -578,6 +604,10 @@ public Builder setIdNumberSecondary(String idNumberSecondary) {
* card. Instead of the number itself, you can also provide a PII token provided by
* Stripe.js.
+ *
+ * Changing this value for the account's representative requires that the account re-accept
+ * the terms of
+ * service.
*/
public Builder setIdNumberSecondary(EmptyParam idNumberSecondary) {
this.idNumberSecondary = idNumberSecondary;
@@ -754,13 +784,25 @@ public Builder setRelationship(PersonUpdateParams.Relationship relationship) {
return this;
}
- /** The last four digits of the person's Social Security number (U.S. only). */
+ /**
+ * The last four digits of the person's Social Security number (U.S. only).
+ *
+ * Changing this value for the account's representative requires that the account re-accept
+ * the terms of
+ * service.
+ */
public Builder setSsnLast4(String ssnLast4) {
this.ssnLast4 = ssnLast4;
return this;
}
- /** The last four digits of the person's Social Security number (U.S. only). */
+ /**
+ * The last four digits of the person's Social Security number (U.S. only).
+ *
+ * Changing this value for the account's representative requires that the account re-accept
+ * the terms of
+ * service.
+ */
public Builder setSsnLast4(EmptyParam ssnLast4) {
this.ssnLast4 = ssnLast4;
return this;
diff --git a/src/main/java/com/stripe/param/PromotionCodeCreateParams.java b/src/main/java/com/stripe/param/PromotionCodeCreateParams.java
index c2a2da106ffe..b0c66b26176d 100644
--- a/src/main/java/com/stripe/param/PromotionCodeCreateParams.java
+++ b/src/main/java/com/stripe/param/PromotionCodeCreateParams.java
@@ -400,7 +400,8 @@ public static class Restrictions {
/**
* Promotion codes defined in each available currency option. Each key must be a three-letter ISO currency code and a supported currency.
+ * href="https://stripe.com/docs/currencies">supported currency