diff --git a/API_VERSION b/API_VERSION index c77af7bdda0..9cd67674355 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -2025-06-30.preview \ No newline at end of file +2025-07-30.preview \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 20a0a82b0f4..9779064e8b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,43 @@ * Add support for new value `xx` on enums `v2.core.AccountCreateParams.configuration.customer.shipping.address.country`, `v2.core.AccountCreateParams.configuration.merchant.support.address.country`, `v2.core.AccountCreateParams.identity.business_details.address.country`, `v2.core.AccountCreateParams.identity.business_details.script_addresses.kana.country`, `v2.core.AccountCreateParams.identity.business_details.script_addresses.kanji.country`, `v2.core.AccountCreateParams.identity.country`, `v2.core.AccountCreateParams.identity.individual.additional_addresses[].country`, `v2.core.AccountCreateParams.identity.individual.address.country`, `v2.core.AccountCreateParams.identity.individual.script_addresses.kana.country`, `v2.core.AccountCreateParams.identity.individual.script_addresses.kanji.country`, `v2.core.AccountUpdateParams.configuration.customer.shipping.address.country`, `v2.core.AccountUpdateParams.configuration.merchant.support.address.country`, `v2.core.AccountUpdateParams.identity.business_details.address.country`, `v2.core.AccountUpdateParams.identity.business_details.script_addresses.kana.country`, `v2.core.AccountUpdateParams.identity.business_details.script_addresses.kanji.country`, `v2.core.AccountUpdateParams.identity.country`, `v2.core.AccountUpdateParams.identity.individual.additional_addresses[].country`, `v2.core.AccountUpdateParams.identity.individual.address.country`, `v2.core.AccountUpdateParams.identity.individual.script_addresses.kana.country`, `v2.core.AccountUpdateParams.identity.individual.script_addresses.kanji.country`, `v2.core.PersonCreateParams.additional_addresses[].country`, `v2.core.PersonCreateParams.address.country`, `v2.core.PersonCreateParams.script_addresses.kana.country`, `v2.core.PersonCreateParams.script_addresses.kanji.country`, `v2.core.PersonUpdateParams.additional_addresses[].country`, `v2.core.PersonUpdateParams.address.country`, `v2.core.PersonUpdateParams.script_addresses.kana.country`, and `v2.core.PersonUpdateParams.script_addresses.kanji.country` * Add support for new value `xx` on enums `v2.core.AccountCreateParams.identity.individual.nationalities`, `v2.core.AccountUpdateParams.identity.individual.nationalities`, `v2.core.PersonCreateParams.nationalities`, and `v2.core.PersonUpdateParams.nationalities` +## 29.3.0 - 2025-07-01 +* [#2013](https://github.com/stripe/stripe-java/pull/2013) Update generated code + * Add support for `migrate` method on resource `Subscription` + * Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `terminal.Reader` + * Add support for `cryptoPayments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for `proofOfAddress` on `AccountCreateParams.documents` and `AccountUpdateParams.documents` + * Add support for `monthlyPayoutDays` and `weeklyPayoutDays` on `Account.settings.payouts.schedule`, `AccountCreateParams.settings.payouts.schedule`, and `AccountUpdateParams.settings.payouts.schedule` + * Add support for `crypto` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Change type of `Charge.payment_method_details.card.installments.plan.type`, `ConfirmationToken.payment_method_options.card.installments.plan.type`, `ConfirmationTokenCreateParams.payment_method_options.card.installments.plan.type`, `InvoiceCreateParams.payment_settings.payment_method_options.card.installments.plan.type`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.installments.plan.type`, `PaymentIntent.payment_method_options.card.installments.available_plans[].type`, `PaymentIntent.payment_method_options.card.installments.plan.type`, `PaymentIntentConfirmParams.payment_method_options.card.installments.plan.type`, `PaymentIntentCreateParams.payment_method_options.card.installments.plan.type`, and `PaymentIntentUpdateParams.payment_method_options.card.installments.plan.type` from `literal('fixed_count')` to `enum('bonus'|'fixed_count'|'revolving')` + * Add support for `subscriptions` on `PaymentIntentConfirmParams.payment_method_options.klarna`, `PaymentIntentCreateParams.payment_method_options.klarna`, `PaymentIntentUpdateParams.payment_method_options.klarna`, and `checkout.SessionCreateParams.payment_method_options.klarna` + * Add support for new value `crypto` on enum `checkout.SessionCreateParams.paymentMethodTypes` + * Add support for `billingMode` on `InvoiceCreatePreviewParams.schedule_details`, `InvoiceCreatePreviewParams.subscription_details`, `Quote.subscription_data`, `QuoteCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionScheduleCreateParams`, `SubscriptionSchedule`, `Subscription`, and `checkout.SessionCreateParams.subscription_data` + * Add support for new value `buut` on enums `ConfirmationTokenCreateParams.payment_method_data.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` + * Add support for new value `crypto` on enums `ConfirmationTokenCreateParams.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for new value `crypto` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` + * Change type of `Dispute.enhancedEligibilityTypes` from `literal('visa_compelling_evidence_3')` to `enum('visa_compelling_evidence_3'|'visa_compliance')` + * Add support for `relatedPerson` on `identity.VerificationSessionCreateParams` and `identity.VerificationSession` + * Add support for `matching` on `identity.VerificationSession.options` + * Add support for new value `crypto` on enums `InvoiceCreateParams.payment_settings.paymentMethodTypes`, `InvoiceUpdateParams.payment_settings.paymentMethodTypes`, `SubscriptionCreateParams.payment_settings.paymentMethodTypes`, and `SubscriptionUpdateParams.payment_settings.paymentMethodTypes` + * Add support for `klarna` on `Mandate.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options` + * Add support for `onDemand` on `PaymentIntentConfirmParams.payment_method_options.klarna`, `PaymentIntentCreateParams.payment_method_options.klarna`, and `PaymentIntentUpdateParams.payment_method_options.klarna` + * Change type of `PaymentIntent.payment_method_options.klarna.setupFutureUsage`, `PaymentIntentConfirmParams.payment_method_options.klarna.setupFutureUsage`, `PaymentIntentCreateParams.payment_method_options.klarna.setupFutureUsage`, and `PaymentIntentUpdateParams.payment_method_options.klarna.setupFutureUsage` from `literal('none')` to `enum('none'|'off_session'|'on_session')` + * Add support for `ua` on `tax.Registration.country_options` and `tax.RegistrationCreateParams.country_options` + * Change type of `terminal.LocationUpdateParams.displayName` from `string` to `emptyable(string)` + * Add support for `collectPaymentMethod` and `confirmPaymentIntent` on `terminal.Reader.action` + * Add support for `status` on `treasury.FinancialAccountListParams` + * Add support for new value `terminal.reader.action_updated` on enums `WebhookEndpointCreateParams.enabledEvents` and `WebhookEndpointUpdateParams.enabledEvents` + * Add support for new value `2025-06-30.basil` on enum `WebhookEndpointCreateParams.apiVersion` + * Add support for snapshot event `terminal.reader.action_updated` with resource `terminal.Reader` +* [#2023](https://github.com/stripe/stripe-java/pull/2023) Specify nexusUrl in deploy.gradle +* [#2020](https://github.com/stripe/stripe-java/pull/2020) Update snapshot endpoint in deploy.gradle +* [#2019](https://github.com/stripe/stripe-java/pull/2019) Update Sonatype endpoints in deploy.gradle +* [#2018](https://github.com/stripe/stripe-java/pull/2018) Link to the /changelog page instead of /upgrades +* [#2015](https://github.com/stripe/stripe-java/pull/2015) Revert "Updated StripeClient snippets with v1 namespace in Readme.md" +* [#2014](https://github.com/stripe/stripe-java/pull/2014) Updated StripeClient snippets with v1 namespace in Readme.md +* [#1987](https://github.com/stripe/stripe-java/pull/1987) Include Java versions 21, 22, 23, 24 in CI + ## 29.3.0-beta.3 - 2025-06-26 No changes in this release diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index d8931ef8a65..7b0334ddc01 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1819 \ No newline at end of file +v1868 \ 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 c1eedb5a6a0..fc56b891a81 100644 --- a/src/main/java/com/stripe/ApiVersion.java +++ b/src/main/java/com/stripe/ApiVersion.java @@ -2,5 +2,5 @@ package com.stripe; final class ApiVersion { - public static final String CURRENT = "2025-06-30.preview"; + public static final String CURRENT = "2025-07-30.preview"; } diff --git a/src/main/java/com/stripe/events/V2CoreAccountLinkCompletedEvent.java b/src/main/java/com/stripe/events/V2CoreAccountLinkReturnedEvent.java similarity index 81% rename from src/main/java/com/stripe/events/V2CoreAccountLinkCompletedEvent.java rename to src/main/java/com/stripe/events/V2CoreAccountLinkReturnedEvent.java index ef5b96bff05..54817bf3e04 100644 --- a/src/main/java/com/stripe/events/V2CoreAccountLinkCompletedEvent.java +++ b/src/main/java/com/stripe/events/V2CoreAccountLinkReturnedEvent.java @@ -8,10 +8,10 @@ import lombok.Setter; @Getter -public final class V2CoreAccountLinkCompletedEvent extends Event { - /** Data for the v2.core.account_link.completed event. */ +public final class V2CoreAccountLinkReturnedEvent extends Event { + /** Data for the v2.core.account_link.returned event. */ @SerializedName("data") - V2CoreAccountLinkCompletedEvent.EventData data; + V2CoreAccountLinkReturnedEvent.EventData data; @Getter @Setter diff --git a/src/main/java/com/stripe/events/V2OffSessionPaymentRequiresCaptureEvent.java b/src/main/java/com/stripe/events/V2MoneyManagementPayoutMethodUpdatedEvent.java similarity index 62% rename from src/main/java/com/stripe/events/V2OffSessionPaymentRequiresCaptureEvent.java rename to src/main/java/com/stripe/events/V2MoneyManagementPayoutMethodUpdatedEvent.java index c41b8298476..ac0fef5e97e 100644 --- a/src/main/java/com/stripe/events/V2OffSessionPaymentRequiresCaptureEvent.java +++ b/src/main/java/com/stripe/events/V2MoneyManagementPayoutMethodUpdatedEvent.java @@ -4,18 +4,18 @@ import com.google.gson.annotations.SerializedName; import com.stripe.exception.StripeException; import com.stripe.model.v2.Event; -import com.stripe.model.v2.payments.OffSessionPayment; +import com.stripe.model.v2.moneymanagement.PayoutMethod; import lombok.Getter; @Getter -public final class V2OffSessionPaymentRequiresCaptureEvent extends Event { +public final class V2MoneyManagementPayoutMethodUpdatedEvent extends Event { @SerializedName("related_object") /** Object containing the reference to API resource relevant to the event. */ RelatedObject relatedObject; /** Retrieves the related object from the API. Make an API request on every call. */ - public OffSessionPayment fetchRelatedObject() throws StripeException { - return (OffSessionPayment) super.fetchRelatedObject(this.relatedObject); + public PayoutMethod fetchRelatedObject() throws StripeException { + return (PayoutMethod) super.fetchRelatedObject(this.relatedObject); } } diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java index 35514f577d0..ee59a99333b 100644 --- a/src/main/java/com/stripe/model/Account.java +++ b/src/main/java/com/stripe/model/Account.java @@ -315,10 +315,10 @@ public static Account create(AccountCreateParams params, RequestOptions options) * *
Test-mode accounts can be deleted at any time. * - *
Live-mode accounts where Stripe is responsible for negative account balances cannot be - * deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for - * negative account balances, which includes Custom and Express accounts, can be deleted when all - * balances are zero. + *
Live-mode accounts that have access to the standard dashboard and Stripe is responsible for + * negative account balances cannot be deleted, which includes Standard accounts. All other + * Live-mode accounts, can be deleted when all balances are zero. * *
If you want to delete your own account, use the account information tab in your account
@@ -333,10 +333,10 @@ public Account delete() throws StripeException {
*
* Test-mode accounts can be deleted at any time.
*
- * Live-mode accounts where Stripe is responsible for negative account balances cannot be
- * deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for
- * negative account balances, which includes Custom and Express accounts, can be deleted when all
- * balances are zero.
+ * Live-mode accounts that have access to the standard dashboard and Stripe is responsible for
+ * negative account balances cannot be deleted, which includes Standard accounts. All other
+ * Live-mode accounts, can be deleted when all balances are zero.
*
* If you want to delete your own account, use the account information tab in your account
@@ -351,10 +351,10 @@ public Account delete(RequestOptions options) throws StripeException {
*
* Test-mode accounts can be deleted at any time.
*
- * Live-mode accounts where Stripe is responsible for negative account balances cannot be
- * deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for
- * negative account balances, which includes Custom and Express accounts, can be deleted when all
- * balances are zero.
+ * Live-mode accounts that have access to the standard dashboard and Stripe is responsible for
+ * negative account balances cannot be deleted, which includes Standard accounts. All other
+ * Live-mode accounts, can be deleted when all balances are zero.
*
* If you want to delete your own account, use the account information tab in your account
@@ -369,10 +369,10 @@ public Account delete(Map Test-mode accounts can be deleted at any time.
*
- * Live-mode accounts where Stripe is responsible for negative account balances cannot be
- * deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for
- * negative account balances, which includes Custom and Express accounts, can be deleted when all
- * balances are zero.
+ * Live-mode accounts that have access to the standard dashboard and Stripe is responsible for
+ * negative account balances cannot be deleted, which includes Standard accounts. All other
+ * Live-mode accounts, can be deleted when all balances are zero.
*
* If you want to delete your own account, use the account information tab in your account
@@ -758,7 +758,7 @@ public static class BusinessProfile extends StripeObject {
@SerializedName("mcc")
String mcc;
- /** Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business. */
+ /** Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business. */
@SerializedName("minority_owned_business_designation")
List One of {@code friday}, {@code monday}, {@code thursday}, {@code tuesday}, or {@code
- * wednesday}.
+ * The days of the week when available funds are paid out, specified as an array, for example,
+ * [{@code monday}, {@code tuesday}]. Only shown if {@code interval} is weekly.
*/
- @SerializedName("weekly_anchor")
- String weeklyAnchor;
+ @SerializedName("weekly_payout_days")
+ List One of {@code active}, {@code disabled}, {@code inactive}, {@code pending}, or {@code
- * unrequested}.
+ * One of {@code active}, {@code inactive}, {@code pending}, or {@code unrequested}.
*/
@SerializedName("status")
String status;
diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java
index 68bafaaa5e3..c619d379b26 100644
--- a/src/main/java/com/stripe/model/Charge.java
+++ b/src/main/java/com/stripe/model/Charge.java
@@ -1569,9 +1569,9 @@ public static class Funding extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Card extends StripeObject {
/**
- * Card brand. Can be {@code amex}, {@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 amex}, {@code cartes_bancaires}, {@code diners}, {@code
+ * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
+ * unionpay}, {@code visa} or {@code unknown}.
*/
@SerializedName("brand")
String brand;
@@ -1822,9 +1822,9 @@ public static class Card extends StripeObject {
String authorizationCode;
/**
- * Card brand. Can be {@code amex}, {@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 amex}, {@code cartes_bancaires}, {@code diners}, {@code
+ * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
+ * unionpay}, {@code visa} or {@code unknown}.
*/
@SerializedName("brand")
String brand;
@@ -2429,9 +2429,9 @@ public static class CardPresent extends StripeObject {
Long amountAuthorized;
/**
- * Card brand. Can be {@code amex}, {@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 amex}, {@code cartes_bancaires}, {@code diners}, {@code
+ * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
+ * unionpay}, {@code visa} or {@code unknown}.
*/
@SerializedName("brand")
String brand;
@@ -2715,6 +2715,10 @@ public static class Cashapp extends StripeObject {
/** A public identifier for buyers using Cash App. */
@SerializedName("cashtag")
String cashtag;
+
+ /** A unique and immutable identifier of payments assigned by Cash App. */
+ @SerializedName("transaction_id")
+ String transactionId;
}
/**
@@ -3764,9 +3768,9 @@ public static class Funding extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Card extends StripeObject {
/**
- * Card brand. Can be {@code amex}, {@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 amex}, {@code cartes_bancaires}, {@code diners}, {@code
+ * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
+ * unionpay}, {@code visa} or {@code unknown}.
*/
@SerializedName("brand")
String brand;
@@ -4198,7 +4202,9 @@ public static class Zip extends StripeObject {}
@Setter
@EqualsAndHashCode(callSuper = false)
public static class PresentmentDetails extends StripeObject {
- /** Amount intended to be collected by this payment, denominated in presentment_currency. */
+ /**
+ * Amount intended to be collected by this payment, denominated in {@code presentment_currency}.
+ */
@SerializedName("presentment_amount")
Long presentmentAmount;
diff --git a/src/main/java/com/stripe/model/ConfirmationToken.java b/src/main/java/com/stripe/model/ConfirmationToken.java
index d725d679641..e40883ec775 100644
--- a/src/main/java/com/stripe/model/ConfirmationToken.java
+++ b/src/main/java/com/stripe/model/ConfirmationToken.java
@@ -716,9 +716,9 @@ public static class Boleto extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Card extends StripeObject {
/**
- * Card brand. Can be {@code amex}, {@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 amex}, {@code cartes_bancaires}, {@code diners}, {@code
+ * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
+ * unionpay}, {@code visa} or {@code unknown}.
*/
@SerializedName("brand")
String brand;
@@ -922,9 +922,9 @@ public static class CardPresent extends StripeObject {
Long amountAuthorized;
/**
- * Card brand. Can be {@code amex}, {@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 amex}, {@code cartes_bancaires}, {@code diners}, {@code
+ * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
+ * unionpay}, {@code visa} or {@code unknown}.
*/
@SerializedName("brand")
String brand;
@@ -1412,9 +1412,9 @@ public static class VisaCheckout extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class CardPresent extends StripeObject {
/**
- * Card brand. Can be {@code amex}, {@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 amex}, {@code cartes_bancaires}, {@code diners}, {@code
+ * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
+ * unionpay}, {@code visa} or {@code unknown}.
*/
@SerializedName("brand")
String brand;
diff --git a/src/main/java/com/stripe/model/Customer.java b/src/main/java/com/stripe/model/Customer.java
index 05703b5582c..e3218dc5bc9 100644
--- a/src/main/java/com/stripe/model/Customer.java
+++ b/src/main/java/com/stripe/model/Customer.java
@@ -42,11 +42,12 @@ public class Customer extends ApiResource implements HasId, MetadataStore One of {@code available}, {@code processing}, {@code requires_evidence}, or {@code
+ * unavailable}.
+ */
+ @SerializedName("status")
+ String status;
+ }
+
@Override
public void setResponseGetter(StripeResponseGetter responseGetter) {
super.setResponseGetter(responseGetter);
@@ -1228,5 +1253,6 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
trySetResponseGetter(evidenceDetails, responseGetter);
trySetResponseGetter(paymentIntent, responseGetter);
trySetResponseGetter(paymentMethodDetails, responseGetter);
+ trySetResponseGetter(smartDisputes, responseGetter);
}
}
diff --git a/src/main/java/com/stripe/model/Event.java b/src/main/java/com/stripe/model/Event.java
index 537bae69a3b..fcfc0572adf 100644
--- a/src/main/java/com/stripe/model/Event.java
+++ b/src/main/java/com/stripe/model/Event.java
@@ -20,32 +20,24 @@
import lombok.Setter;
/**
- * Events are our way of letting you know when something interesting happens in your account. When
- * an interesting event occurs, we create a new {@code Event} object. For example, when a charge
- * succeeds, we create a {@code charge.succeeded} event, and when an invoice payment attempt fails,
- * we create an {@code invoice.payment_failed} event. Certain API requests might create multiple
- * events. For example, if you create a new subscription for a customer, you receive both a {@code
+ * Snapshot events allow you to track and react to activity in your Stripe integration. When the
+ * state of another API resource changes, Stripe creates an {@code Event} object that contains all
+ * the relevant information associated with that action, including the affected API resource. For
+ * example, a successful payment triggers a {@code charge.succeeded} event, which contains the
+ * {@code Charge} in the event's data property. Some actions trigger multiple events. For example,
+ * if you create a new subscription for a customer, it triggers both a {@code
* customer.subscription.created} event and a {@code charge.succeeded} event.
*
- * Events occur when the state of another API resource changes. The event's data field embeds the
- * resource's state at the time of the change. For example, a {@code charge.succeeded} event
- * contains a charge, and an {@code invoice.payment_failed} event contains an invoice.
+ * Configure an event destination in your account to listen for events that represent actions
+ * your integration needs to respond to. Additionally, you can retrieve an individual event or a
+ * list of events from the API.
*
- * As with other API resources, you can use endpoints to retrieve an individual event or a list of events from the API. We also have a
- * separate webhooks system for sending the
- * {@code Event} objects directly to an endpoint on your server. You can manage webhooks in your account settings. Learn how to listen for events so that your integration can
- * automatically trigger reactions.
+ * Connect platforms can also receive event
+ * notifications that occur in their connected accounts. These events include an account attribute
+ * that identifies the relevant connected account.
*
- * When using Connect, you can also receive event
- * notifications that occur in connected accounts. For these events, there's an additional {@code
- * account} attribute in the received {@code Event} object.
- *
- * We only guarantee access to events through the Retrieve Event API for 30 days.
+ * You can access events through the Retrieve Event API for 30 days.
*/
@Getter
@Setter
diff --git a/src/main/java/com/stripe/model/EventDataClassLookup.java b/src/main/java/com/stripe/model/EventDataClassLookup.java
index 6cdf055c43d..c82f3439877 100644
--- a/src/main/java/com/stripe/model/EventDataClassLookup.java
+++ b/src/main/java/com/stripe/model/EventDataClassLookup.java
@@ -117,6 +117,8 @@ public final class EventDataClassLookup {
"billing.meter_event_adjustment", com.stripe.model.billing.MeterEventAdjustment.class);
classLookup.put(
"billing.meter_event_summary", com.stripe.model.billing.MeterEventSummary.class);
+ classLookup.put("billing.meter_usage", com.stripe.model.billing.MeterUsage.class);
+ classLookup.put("billing.meter_usage_row", com.stripe.model.billing.MeterUsageRow.class);
classLookup.put(
"billing_portal.configuration", com.stripe.model.billingportal.Configuration.class);
@@ -212,6 +214,7 @@ public final class EventDataClassLookup {
classLookup.put("terminal.configuration", com.stripe.model.terminal.Configuration.class);
classLookup.put("terminal.connection_token", com.stripe.model.terminal.ConnectionToken.class);
classLookup.put("terminal.location", com.stripe.model.terminal.Location.class);
+ classLookup.put("terminal.onboarding_link", com.stripe.model.terminal.OnboardingLink.class);
classLookup.put("terminal.reader", com.stripe.model.terminal.Reader.class);
classLookup.put(
"terminal.reader_collected_data", com.stripe.model.terminal.ReaderCollectedData.class);
diff --git a/src/main/java/com/stripe/model/FxQuote.java b/src/main/java/com/stripe/model/FxQuote.java
index ac45fa429e2..4ff71a16381 100644
--- a/src/main/java/com/stripe/model/FxQuote.java
+++ b/src/main/java/com/stripe/model/FxQuote.java
@@ -19,11 +19,13 @@
import lombok.Setter;
/**
- * The FX Quotes API provides three key functions: - View current exchange rates: The object shows
- * Stripe's current exchange rate for any given currency pair. - Extended quotes: The API provides
- * rate quotes valid for a 1-hour period or a 24-hour period, eliminating uncertainty from FX
- * fluctuations. - View FX fees: The API provides information on the FX fees Stripe will charge on
- * your FX transaction, allowing you to anticipate specific settlement amounts before payment costs.
+ * The FX Quotes API provides three functions: - View Stripe's current exchange rate for any given
+ * currency pair. - Extend quoted rates for a 1-hour period or a 24-hour period, minimizing
+ * uncertainty from FX fluctuations. - Preview the FX fees Stripe will charge on your FX
+ * transaction, allowing you to anticipate specific settlement amounts before payment costs.
+ *
+ * View the
+ * docs
*/
@Getter
@Setter
diff --git a/src/main/java/com/stripe/model/Invoice.java b/src/main/java/com/stripe/model/Invoice.java
index 4868dc7471e..4ba5c9d3a54 100644
--- a/src/main/java/com/stripe/model/Invoice.java
+++ b/src/main/java/com/stripe/model/Invoice.java
@@ -2514,6 +2514,13 @@ public static class PaymentMethodOptions extends StripeObject {
@SerializedName("sepa_debit")
SepaDebit sepaDebit;
+ /**
+ * If paying by {@code upi}, this sub-hash contains details about the UPI payment method
+ * options to pass to the invoice’s PaymentIntent.
+ */
+ @SerializedName("upi")
+ Upi upi;
+
/**
* If paying by {@code us_bank_account}, this sub-hash contains details about the ACH direct
* debit payment method options to pass to the invoice’s PaymentIntent.
@@ -2702,6 +2709,53 @@ public static class Konbini extends StripeObject {}
@EqualsAndHashCode(callSuper = false)
public static class SepaDebit extends StripeObject {}
+ /**
+ * For more details about Upi, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Upi extends StripeObject {
+ @SerializedName("mandate_options")
+ MandateOptions mandateOptions;
+
+ /**
+ * For more details about MandateOptions, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MandateOptions extends StripeObject {
+ /** Amount to be charged for future payments. */
+ @SerializedName("amount")
+ Long amount;
+
+ /**
+ * One of {@code fixed} or {@code maximum}. If {@code fixed}, the {@code amount} param
+ * refers to the exact amount to be charged in future payments. If {@code maximum}, the
+ * amount charged can be up to the value passed for the {@code amount} param.
+ */
+ @SerializedName("amount_type")
+ String amountType;
+
+ /**
+ * A description of the mandate or subscription that is meant to be displayed to the
+ * customer.
+ */
+ @SerializedName("description")
+ String description;
+
+ /**
+ * End date of the mandate or subscription. If not provided, the mandate will be active
+ * until canceled. If provided, end date should be after start date.
+ */
+ @SerializedName("end_date")
+ Long endDate;
+ }
+ }
+
/**
* For more details about UsBankAccount, please refer to the API Reference.
diff --git a/src/main/java/com/stripe/model/PaymentAttemptRecord.java b/src/main/java/com/stripe/model/PaymentAttemptRecord.java
index feeb34588f6..517265c0e53 100644
--- a/src/main/java/com/stripe/model/PaymentAttemptRecord.java
+++ b/src/main/java/com/stripe/model/PaymentAttemptRecord.java
@@ -743,9 +743,9 @@ public static class Funding extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Card extends StripeObject {
/**
- * Card brand. Can be {@code amex}, {@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 amex}, {@code cartes_bancaires}, {@code diners}, {@code
+ * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
+ * unionpay}, {@code visa} or {@code unknown}.
*/
@SerializedName("brand")
String brand;
@@ -1036,9 +1036,9 @@ public static class Boleto extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Card extends StripeObject {
/**
- * Card brand. Can be {@code amex}, {@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 amex}, {@code cartes_bancaires}, {@code diners}, {@code
+ * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
+ * unionpay}, {@code visa} or {@code unknown}.
*/
@SerializedName("brand")
String brand;
@@ -1190,9 +1190,9 @@ public static class CardPresent extends StripeObject {
Long amountAuthorized;
/**
- * Card brand. Can be {@code amex}, {@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 amex}, {@code cartes_bancaires}, {@code diners}, {@code
+ * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
+ * unionpay}, {@code visa} or {@code unknown}.
*/
@SerializedName("brand")
String brand;
@@ -1476,6 +1476,10 @@ public static class Cashapp extends StripeObject {
/** A public identifier for buyers using Cash App. */
@SerializedName("cashtag")
String cashtag;
+
+ /** A unique and immutable identifier of payments assigned by Cash App. */
+ @SerializedName("transaction_id")
+ String transactionId;
}
/**
@@ -2546,9 +2550,9 @@ public static class Funding extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class Card extends StripeObject {
/**
- * Card brand. Can be {@code amex}, {@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 amex}, {@code cartes_bancaires}, {@code diners}, {@code
+ * discover}, {@code eftpos_au}, {@code jcb}, {@code link}, {@code mastercard}, {@code
+ * unionpay}, {@code visa} or {@code unknown}.
*/
@SerializedName("brand")
String brand;
diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java
index e77d124fd9a..6c2077fe52d 100644
--- a/src/main/java/com/stripe/model/PaymentIntent.java
+++ b/src/main/java/com/stripe/model/PaymentIntent.java
@@ -813,25 +813,32 @@ public PaymentIntent capture(PaymentIntentCaptureParams params, RequestOptions o
/**
* Confirm that your customer intends to pay with current or provided payment method. Upon
- * confirmation, the PaymentIntent will attempt to initiate a payment. If the selected payment
- * method requires additional authentication steps, the PaymentIntent will transition to the
- * {@code requires_action} status and suggest additional actions via {@code next_action}. If
- * payment fails, the PaymentIntent transitions to the {@code requires_payment_method} status or
- * the {@code canceled} status if the confirmation limit is reached. If payment succeeds, the
- * PaymentIntent will transition to the {@code succeeded} status (or {@code requires_capture}, if
- * {@code capture_method} is set to {@code manual}). If the {@code confirmation_method} is {@code
- * automatic}, payment may be attempted using our client SDKs
- * and the PaymentIntent’s If the selected payment method requires additional authentication steps, the PaymentIntent
+ * will transition to the {@code requires_action} status and suggest additional actions via {@code
+ * next_action}. If payment fails, the PaymentIntent transitions to the {@code
+ * requires_payment_method} status or the {@code canceled} status if the confirmation limit is
+ * reached. If payment succeeds, the PaymentIntent will transition to the {@code succeeded} status
+ * (or {@code requires_capture}, if {@code capture_method} is set to {@code manual}).
+ *
+ * If the {@code confirmation_method} is {@code automatic}, payment may be attempted using our
+ * client
+ * SDKs and the PaymentIntent’s client_secret. After
* {@code next_action}s are handled by the client, no additional confirmation is required to
- * complete the payment. If the {@code confirmation_method} is {@code manual}, all payment
- * attempts must be initiated using a secret key. If any actions are required for the payment, the
- * PaymentIntent will return to the {@code requires_confirmation} state after those actions are
- * completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the
- * next payment attempt. There is a variable upper limit on how many times a PaymentIntent can be
- * confirmed. After this limit is reached, any further calls to this endpoint will transition the
- * PaymentIntent to the {@code canceled} state.
+ * complete the payment.
+ *
+ * If the {@code confirmation_method} is {@code manual}, all payment attempts must be initiated
+ * using a secret key.
+ *
+ * If any actions are required for the payment, the PaymentIntent will return to the {@code
+ * requires_confirmation} state after those actions are completed. Your server needs to then
+ * explicitly re-confirm the PaymentIntent to initiate the next payment attempt.
+ *
+ * There is a variable upper limit on how many times a PaymentIntent can be confirmed. After
+ * this limit is reached, any further calls to this endpoint will transition the PaymentIntent to
+ * the {@code canceled} state.
*/
public PaymentIntent confirm() throws StripeException {
return confirm((Map If the {@code confirmation_method} is {@code automatic}, payment may be attempted using our
+ * client
+ * SDKs and the PaymentIntent’s client_secret. After
* {@code next_action}s are handled by the client, no additional confirmation is required to
- * complete the payment. If the {@code confirmation_method} is {@code manual}, all payment
- * attempts must be initiated using a secret key. If any actions are required for the payment, the
- * PaymentIntent will return to the {@code requires_confirmation} state after those actions are
- * completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the
- * next payment attempt. There is a variable upper limit on how many times a PaymentIntent can be
- * confirmed. After this limit is reached, any further calls to this endpoint will transition the
- * PaymentIntent to the {@code canceled} state.
+ * complete the payment.
+ *
+ * If the {@code confirmation_method} is {@code manual}, all payment attempts must be initiated
+ * using a secret key.
+ *
+ * If any actions are required for the payment, the PaymentIntent will return to the {@code
+ * requires_confirmation} state after those actions are completed. Your server needs to then
+ * explicitly re-confirm the PaymentIntent to initiate the next payment attempt.
+ *
+ * There is a variable upper limit on how many times a PaymentIntent can be confirmed. After
+ * this limit is reached, any further calls to this endpoint will transition the PaymentIntent to
+ * the {@code canceled} state.
*/
public PaymentIntent confirm(RequestOptions options) throws StripeException {
return confirm((Map If the {@code confirmation_method} is {@code automatic}, payment may be attempted using our
+ * client
+ * SDKs and the PaymentIntent’s client_secret. After
* {@code next_action}s are handled by the client, no additional confirmation is required to
- * complete the payment. If the {@code confirmation_method} is {@code manual}, all payment
- * attempts must be initiated using a secret key. If any actions are required for the payment, the
- * PaymentIntent will return to the {@code requires_confirmation} state after those actions are
- * completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the
- * next payment attempt. There is a variable upper limit on how many times a PaymentIntent can be
- * confirmed. After this limit is reached, any further calls to this endpoint will transition the
- * PaymentIntent to the {@code canceled} state.
+ * complete the payment.
+ *
+ * If the {@code confirmation_method} is {@code manual}, all payment attempts must be initiated
+ * using a secret key.
+ *
+ * If any actions are required for the payment, the PaymentIntent will return to the {@code
+ * requires_confirmation} state after those actions are completed. Your server needs to then
+ * explicitly re-confirm the PaymentIntent to initiate the next payment attempt.
+ *
+ * There is a variable upper limit on how many times a PaymentIntent can be confirmed. After
+ * this limit is reached, any further calls to this endpoint will transition the PaymentIntent to
+ * the {@code canceled} state.
*/
public PaymentIntent confirm(Map If the {@code confirmation_method} is {@code automatic}, payment may be attempted using our
+ * client
+ * SDKs and the PaymentIntent’s client_secret. After
* {@code next_action}s are handled by the client, no additional confirmation is required to
- * complete the payment. If the {@code confirmation_method} is {@code manual}, all payment
- * attempts must be initiated using a secret key. If any actions are required for the payment, the
- * PaymentIntent will return to the {@code requires_confirmation} state after those actions are
- * completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the
- * next payment attempt. There is a variable upper limit on how many times a PaymentIntent can be
- * confirmed. After this limit is reached, any further calls to this endpoint will transition the
- * PaymentIntent to the {@code canceled} state.
+ * complete the payment.
+ *
+ * If the {@code confirmation_method} is {@code manual}, all payment attempts must be initiated
+ * using a secret key.
+ *
+ * If any actions are required for the payment, the PaymentIntent will return to the {@code
+ * requires_confirmation} state after those actions are completed. Your server needs to then
+ * explicitly re-confirm the PaymentIntent to initiate the next payment attempt.
+ *
+ * There is a variable upper limit on how many times a PaymentIntent can be confirmed. After
+ * this limit is reached, any further calls to this endpoint will transition the PaymentIntent to
+ * the {@code canceled} state.
*/
public PaymentIntent confirm(Map If the {@code confirmation_method} is {@code automatic}, payment may be attempted using our
+ * client
+ * SDKs and the PaymentIntent’s client_secret. After
* {@code next_action}s are handled by the client, no additional confirmation is required to
- * complete the payment. If the {@code confirmation_method} is {@code manual}, all payment
- * attempts must be initiated using a secret key. If any actions are required for the payment, the
- * PaymentIntent will return to the {@code requires_confirmation} state after those actions are
- * completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the
- * next payment attempt. There is a variable upper limit on how many times a PaymentIntent can be
- * confirmed. After this limit is reached, any further calls to this endpoint will transition the
- * PaymentIntent to the {@code canceled} state.
+ * complete the payment.
+ *
+ * If the {@code confirmation_method} is {@code manual}, all payment attempts must be initiated
+ * using a secret key.
+ *
+ * If any actions are required for the payment, the PaymentIntent will return to the {@code
+ * requires_confirmation} state after those actions are completed. Your server needs to then
+ * explicitly re-confirm the PaymentIntent to initiate the next payment attempt.
+ *
+ * There is a variable upper limit on how many times a PaymentIntent can be confirmed. After
+ * this limit is reached, any further calls to this endpoint will transition the PaymentIntent to
+ * the {@code canceled} state.
*/
public PaymentIntent confirm(PaymentIntentConfirmParams params) throws StripeException {
return confirm(params, (RequestOptions) null);
@@ -948,25 +983,32 @@ public PaymentIntent confirm(PaymentIntentConfirmParams params) throws StripeExc
/**
* Confirm that your customer intends to pay with current or provided payment method. Upon
- * confirmation, the PaymentIntent will attempt to initiate a payment. If the selected payment
- * method requires additional authentication steps, the PaymentIntent will transition to the
- * {@code requires_action} status and suggest additional actions via {@code next_action}. If
- * payment fails, the PaymentIntent transitions to the {@code requires_payment_method} status or
- * the {@code canceled} status if the confirmation limit is reached. If payment succeeds, the
- * PaymentIntent will transition to the {@code succeeded} status (or {@code requires_capture}, if
- * {@code capture_method} is set to {@code manual}). If the {@code confirmation_method} is {@code
- * automatic}, payment may be attempted using our client SDKs
- * and the PaymentIntent’s If the selected payment method requires additional authentication steps, the PaymentIntent
+ * will transition to the {@code requires_action} status and suggest additional actions via {@code
+ * next_action}. If payment fails, the PaymentIntent transitions to the {@code
+ * requires_payment_method} status or the {@code canceled} status if the confirmation limit is
+ * reached. If payment succeeds, the PaymentIntent will transition to the {@code succeeded} status
+ * (or {@code requires_capture}, if {@code capture_method} is set to {@code manual}).
+ *
+ * If the {@code confirmation_method} is {@code automatic}, payment may be attempted using our
+ * client
+ * SDKs and the PaymentIntent’s client_secret. After
* {@code next_action}s are handled by the client, no additional confirmation is required to
- * complete the payment. If the {@code confirmation_method} is {@code manual}, all payment
- * attempts must be initiated using a secret key. If any actions are required for the payment, the
- * PaymentIntent will return to the {@code requires_confirmation} state after those actions are
- * completed. Your server needs to then explicitly re-confirm the PaymentIntent to initiate the
- * next payment attempt. There is a variable upper limit on how many times a PaymentIntent can be
- * confirmed. After this limit is reached, any further calls to this endpoint will transition the
- * PaymentIntent to the {@code canceled} state.
+ * complete the payment.
+ *
+ * If the {@code confirmation_method} is {@code manual}, all payment attempts must be initiated
+ * using a secret key.
+ *
+ * If any actions are required for the payment, the PaymentIntent will return to the {@code
+ * requires_confirmation} state after those actions are completed. Your server needs to then
+ * explicitly re-confirm the PaymentIntent to initiate the next payment attempt.
+ *
+ * There is a variable upper limit on how many times a PaymentIntent can be confirmed. After
+ * this limit is reached, any further calls to this endpoint will transition the PaymentIntent to
+ * the {@code canceled} state.
*/
public PaymentIntent confirm(PaymentIntentConfirmParams params, RequestOptions options)
throws StripeException {
@@ -6129,7 +6171,9 @@ public static class Zip extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class PresentmentDetails extends StripeObject {
- /** Amount intended to be collected by this payment, denominated in presentment_currency. */
+ /**
+ * Amount intended to be collected by this payment, denominated in {@code presentment_currency}.
+ */
@SerializedName("presentment_amount")
Long presentmentAmount;
diff --git a/src/main/java/com/stripe/model/PaymentLink.java b/src/main/java/com/stripe/model/PaymentLink.java
index 4489c19d01f..ba8c5adeca8 100644
--- a/src/main/java/com/stripe/model/PaymentLink.java
+++ b/src/main/java/com/stripe/model/PaymentLink.java
@@ -1032,6 +1032,10 @@ public static class RenderingOptions extends StripeObject {
*/
@SerializedName("amount_tax_display")
String amountTaxDisplay;
+
+ /** ID of the invoice rendering template to be used for the generated invoice. */
+ @SerializedName("template")
+ String template;
}
}
}
diff --git a/src/main/java/com/stripe/model/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java
index 197cdb73171..2858ac0947a 100644
--- a/src/main/java/com/stripe/model/PaymentMethod.java
+++ b/src/main/java/com/stripe/model/PaymentMethod.java
@@ -703,13 +703,17 @@ public static PaymentMethod retrieve(
return getGlobalResponseGetter().request(request, PaymentMethod.class);
}
- /** Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated. */
+ /**
+ * Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated.
+ */
@Override
public PaymentMethod update(Map Equal to {@code billing.meter_usage}.
+ */
+ @SerializedName("object")
+ String object;
+
+ /**
+ * Returns aggregated meter usage data for a customer within a specified time interval. The data
+ * can be grouped by various dimensions and can include multiple meters if specified.
+ */
+ public static MeterUsage retrieve() throws StripeException {
+ return retrieve((Map Equal to {@code billing.meter_usage_row}.
+ */
+ @SerializedName("object")
+ String object;
+}
diff --git a/src/main/java/com/stripe/model/billingportal/Configuration.java b/src/main/java/com/stripe/model/billingportal/Configuration.java
index 954b2ea235c..89077de319b 100644
--- a/src/main/java/com/stripe/model/billingportal/Configuration.java
+++ b/src/main/java/com/stripe/model/billingportal/Configuration.java
@@ -453,6 +453,9 @@ public static class SubscriptionUpdate extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Product extends StripeObject {
+ @SerializedName("adjustable_quantity")
+ AdjustableQuantity adjustableQuantity;
+
/** The list of price IDs which, when subscribed to, a subscription can be updated. */
@SerializedName("prices")
List One of {@code mobile_app}, or {@code web}.
+ */
+ @SerializedName("origin_context")
+ String originContext;
+
/**
* The ID of the PaymentIntent for Checkout Sessions in {@code payment} mode. You can't confirm or
* cancel the PaymentIntent for a Checkout Session. To cancel, 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;
}
/**
@@ -3776,7 +3812,9 @@ public static class PhoneNumberCollection extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class PresentmentDetails extends StripeObject {
- /** Amount intended to be collected by this payment, denominated in presentment_currency. */
+ /**
+ * Amount intended to be collected by this payment, denominated in {@code presentment_currency}.
+ */
@SerializedName("presentment_amount")
Long presentmentAmount;
diff --git a/src/main/java/com/stripe/model/radar/ValueList.java b/src/main/java/com/stripe/model/radar/ValueList.java
index f6acf98e336..88a9eb36714 100644
--- a/src/main/java/com/stripe/model/radar/ValueList.java
+++ b/src/main/java/com/stripe/model/radar/ValueList.java
@@ -52,10 +52,9 @@ public class ValueList extends ApiResource implements HasId, MetadataStore One of {@code inbound_goods}, or {@code standard}.
+ */
+ @SerializedName("place_of_supply_scheme")
+ String placeOfSupplyScheme;
+ }
}
/**
@@ -650,7 +670,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -665,6 +685,9 @@ public static class Standard extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Au extends StripeObject {
+ @SerializedName("standard")
+ Standard standard;
+
/**
* Type of registration in {@code country}.
*
@@ -672,6 +695,23 @@ public static class Au extends StripeObject {
*/
@SerializedName("type")
String type;
+
+ /**
+ * For more details about Standard, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Standard extends StripeObject {
+ /**
+ * Place of supply scheme used in an Default standard registration.
+ *
+ * One of {@code inbound_goods}, or {@code standard}.
+ */
+ @SerializedName("place_of_supply_scheme")
+ String placeOfSupplyScheme;
+ }
}
/**
@@ -789,7 +829,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -843,7 +883,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -979,6 +1019,9 @@ public static class Cd extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Ch extends StripeObject {
+ @SerializedName("standard")
+ Standard standard;
+
/**
* Type of registration in {@code country}.
*
@@ -986,6 +1029,23 @@ public static class Ch extends StripeObject {
*/
@SerializedName("type")
String type;
+
+ /**
+ * For more details about Standard, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Standard extends StripeObject {
+ /**
+ * Place of supply scheme used in an Default standard registration.
+ *
+ * One of {@code inbound_goods}, or {@code standard}.
+ */
+ @SerializedName("place_of_supply_scheme")
+ String placeOfSupplyScheme;
+ }
}
/**
@@ -1103,7 +1163,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -1140,7 +1200,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -1177,7 +1237,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -1214,7 +1274,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -1268,7 +1328,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -1322,7 +1382,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -1376,7 +1436,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -1413,7 +1473,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -1428,6 +1488,9 @@ public static class Standard extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Gb extends StripeObject {
+ @SerializedName("standard")
+ Standard standard;
+
/**
* Type of registration in {@code country}.
*
@@ -1435,6 +1498,23 @@ public static class Gb extends StripeObject {
*/
@SerializedName("type")
String type;
+
+ /**
+ * For more details about Standard, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Standard extends StripeObject {
+ /**
+ * Place of supply scheme used in an Default standard registration.
+ *
+ * One of {@code inbound_goods}, or {@code standard}.
+ */
+ @SerializedName("place_of_supply_scheme")
+ String placeOfSupplyScheme;
+ }
}
/**
@@ -1501,7 +1581,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -1538,7 +1618,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -1575,7 +1655,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -1629,7 +1709,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -1700,7 +1780,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -1715,6 +1795,9 @@ public static class Standard extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Jp extends StripeObject {
+ @SerializedName("standard")
+ Standard standard;
+
/**
* Type of registration in {@code country}.
*
@@ -1722,6 +1805,23 @@ public static class Jp extends StripeObject {
*/
@SerializedName("type")
String type;
+
+ /**
+ * For more details about Standard, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Standard extends StripeObject {
+ /**
+ * Place of supply scheme used in an Default standard registration.
+ *
+ * One of {@code inbound_goods}, or {@code standard}.
+ */
+ @SerializedName("place_of_supply_scheme")
+ String placeOfSupplyScheme;
+ }
}
/**
@@ -1856,7 +1956,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -1893,7 +1993,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -1930,7 +2030,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -2052,7 +2152,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -2140,7 +2240,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -2155,6 +2255,9 @@ public static class Standard extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class No extends StripeObject {
+ @SerializedName("standard")
+ Standard standard;
+
/**
* Type of registration in {@code country}.
*
@@ -2162,6 +2265,23 @@ public static class No extends StripeObject {
*/
@SerializedName("type")
String type;
+
+ /**
+ * For more details about Standard, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Standard extends StripeObject {
+ /**
+ * Place of supply scheme used in an Default standard registration.
+ *
+ * One of {@code inbound_goods}, or {@code standard}.
+ */
+ @SerializedName("place_of_supply_scheme")
+ String placeOfSupplyScheme;
+ }
}
/**
@@ -2189,6 +2309,9 @@ public static class Np extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Nz extends StripeObject {
+ @SerializedName("standard")
+ Standard standard;
+
/**
* Type of registration in {@code country}.
*
@@ -2196,6 +2319,23 @@ public static class Nz extends StripeObject {
*/
@SerializedName("type")
String type;
+
+ /**
+ * For more details about Standard, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Standard extends StripeObject {
+ /**
+ * Place of supply scheme used in an Default standard registration.
+ *
+ * One of {@code inbound_goods}, or {@code standard}.
+ */
+ @SerializedName("place_of_supply_scheme")
+ String placeOfSupplyScheme;
+ }
}
/**
@@ -2279,7 +2419,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -2316,7 +2456,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -2353,7 +2493,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -2441,7 +2581,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -2456,6 +2596,9 @@ public static class Standard extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Sg extends StripeObject {
+ @SerializedName("standard")
+ Standard standard;
+
/**
* Type of registration in {@code country}.
*
@@ -2463,6 +2606,23 @@ public static class Sg extends StripeObject {
*/
@SerializedName("type")
String type;
+
+ /**
+ * For more details about Standard, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Standard extends StripeObject {
+ /**
+ * Place of supply scheme used in an Default standard registration.
+ *
+ * One of {@code inbound_goods}, or {@code standard}.
+ */
+ @SerializedName("place_of_supply_scheme")
+ String placeOfSupplyScheme;
+ }
}
/**
@@ -2495,7 +2655,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
@@ -2532,7 +2692,7 @@ public static class Standard extends StripeObject {
/**
* Place of supply scheme used in an EU standard registration.
*
- * One of {@code small_seller}, or {@code standard}.
+ * One of {@code inbound_goods}, {@code small_seller}, or {@code standard}.
*/
@SerializedName("place_of_supply_scheme")
String placeOfSupplyScheme;
diff --git a/src/main/java/com/stripe/model/terminal/Configuration.java b/src/main/java/com/stripe/model/terminal/Configuration.java
index 3ee272db124..cf9dfab40be 100644
--- a/src/main/java/com/stripe/model/terminal/Configuration.java
+++ b/src/main/java/com/stripe/model/terminal/Configuration.java
@@ -365,9 +365,15 @@ public void setSplashscreenObject(File expandableObject) {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Tipping extends StripeObject {
+ @SerializedName("aed")
+ Aed aed;
+
@SerializedName("aud")
Aud aud;
+ @SerializedName("bgn")
+ Bgn bgn;
+
@SerializedName("cad")
Cad cad;
@@ -389,6 +395,9 @@ public static class Tipping extends StripeObject {
@SerializedName("hkd")
Hkd hkd;
+ @SerializedName("huf")
+ Huf huf;
+
@SerializedName("jpy")
Jpy jpy;
@@ -404,6 +413,9 @@ public static class Tipping extends StripeObject {
@SerializedName("pln")
Pln pln;
+ @SerializedName("ron")
+ Ron ron;
+
@SerializedName("sek")
Sek sek;
@@ -413,6 +425,30 @@ public static class Tipping extends StripeObject {
@SerializedName("usd")
Usd usd;
+ /**
+ * For more details about Aed, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Aed extends StripeObject {
+ /** Fixed amounts displayed when collecting a tip. */
+ @SerializedName("fixed_amounts")
+ List Equal to {@code apple_terms_and_conditions}.
+ */
+ @SerializedName("link_type")
+ String linkType;
+
+ @SerializedName("object")
+ String object;
+
+ /** Stripe account ID to generate the link for. */
+ @SerializedName("on_behalf_of")
+ String onBehalfOf;
+
+ /** The link passed back to the user for their onboarding. */
+ @SerializedName("redirect_url")
+ String redirectUrl;
+
+ /**
+ * Creates a new {@code OnboardingLink} object that contains a redirect_url used for onboarding
+ * onto Tap to Pay on iPhone.
+ */
+ public static OnboardingLink create(Map One of {@code currently_due}, or {@code eventually_due}.
+ */
+ @SerializedName("fields")
+ String fields;
+
+ /**
+ * Specifies whether the platform collects future_requirements in addition to requirements
+ * in Connect Onboarding. The default value is {@code omit}.
+ *
+ * One of {@code include}, or {@code omit}.
+ */
+ @SerializedName("future_requirements")
+ String futureRequirements;
+ }
}
/**
@@ -114,6 +150,13 @@ public static class AccountOnboarding extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AccountUpdate extends StripeObject {
+ /**
+ * Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding
+ * flow.
+ */
+ @SerializedName("collection_options")
+ CollectionOptions collectionOptions;
+
/**
* Open Enum. A v2/account can be configured to enable certain functionality. The
* configuration param targets the v2/account_link to collect information for the specified
@@ -137,6 +180,35 @@ public static class AccountUpdate extends StripeObject {
/** The URL that the user will be redirected to upon completing the linked flow. */
@SerializedName("return_url")
String returnUrl;
+
+ /**
+ * For more details about CollectionOptions, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class CollectionOptions extends StripeObject {
+ /**
+ * Specifies whether the platform collects only currently_due requirements ({@code
+ * currently_due}) or both currently_due and eventually_due requirements ({@code
+ * eventually_due}). If you don’t specify collection_options, the default value is
+ * currently_due.
+ *
+ * One of {@code currently_due}, or {@code eventually_due}.
+ */
+ @SerializedName("fields")
+ String fields;
+
+ /**
+ * Specifies whether the platform collects future_requirements in addition to requirements
+ * in Connect Onboarding. The default value is {@code omit}.
+ *
+ * One of {@code include}, or {@code omit}.
+ */
+ @SerializedName("future_requirements")
+ String futureRequirements;
+ }
}
}
}
diff --git a/src/main/java/com/stripe/model/v2/moneymanagement/PayoutMethod.java b/src/main/java/com/stripe/model/v2/moneymanagement/PayoutMethod.java
index 41dc5eb8631..076373b395e 100644
--- a/src/main/java/com/stripe/model/v2/moneymanagement/PayoutMethod.java
+++ b/src/main/java/com/stripe/model/v2/moneymanagement/PayoutMethod.java
@@ -87,6 +87,14 @@ public static class BankAccount extends StripeObject {
@SerializedName("archived")
Boolean archived;
+ /**
+ * The type of bank account (checking or savings).
+ *
+ * One of {@code checking}, or {@code savings}.
+ */
+ @SerializedName("bank_account_type")
+ String bankAccountType;
+
/**
* The name of the bank this bank account is in. This field is populated automatically by
* Stripe.
diff --git a/src/main/java/com/stripe/model/v2/payments/OffSessionPayment.java b/src/main/java/com/stripe/model/v2/payments/OffSessionPayment.java
index c420e9a5b52..8f6cd546414 100644
--- a/src/main/java/com/stripe/model/v2/payments/OffSessionPayment.java
+++ b/src/main/java/com/stripe/model/v2/payments/OffSessionPayment.java
@@ -15,44 +15,47 @@
@Setter
@EqualsAndHashCode(callSuper = false)
public class OffSessionPayment extends StripeObject implements HasId {
- /** The amount you requested to be collected on the OSP upon creation. */
+ /** The “presentment amount” to be collected from the customer. */
@SerializedName("amount_requested")
Amount amountRequested;
/**
- * The frequency of the underlying payment that this OSP represents.
+ * The frequency of the underlying payment.
*
* One of {@code recurring}, or {@code unscheduled}.
*/
@SerializedName("cadence")
String cadence;
- /** ID of owning compartment. */
+ /** ID of the owning compartment. */
@SerializedName("compartment_id")
String compartmentId;
- /** Timestamp of creation. */
+ /**
+ * Creation time of the OffSessionPayment. Represented as a RFC 3339 date & time UTC value in
+ * millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ */
@SerializedName("created")
Instant created;
- /** Customer owning the supplied payment method. */
+ /** ID of the Customer to which this OffSessionPayment belongs. */
@SerializedName("customer")
String customer;
/**
- * Reason why the OSP failed.
+ * The reason why the OffSessionPayment failed.
*
* One of {@code rejected_by_partner}, or {@code retries_exhausted}.
*/
@SerializedName("failure_reason")
String failureReason;
- /** ID of the OSP. */
+ /** Unique identifier for the object.. */
@Getter(onMethod_ = {@Override})
@SerializedName("id")
String id;
- /** Last error returned by the financial partner for a failed authorization. */
+ /** The payment error encountered in the previous attempt to authorize the payment. */
@SerializedName("last_authorization_attempt_error")
String lastAuthorizationAttemptError;
@@ -60,11 +63,20 @@ public class OffSessionPayment extends StripeObject implements HasId {
@SerializedName("latest_payment_attempt_record")
String latestPaymentAttemptRecord;
- /** True if the txn is livemode, false otherwise. */
+ /**
+ * Has the value true if the object exists in live mode or the value false if the object exists in
+ * test mode.
+ */
@SerializedName("livemode")
Boolean livemode;
- /** Metadata you provided. */
+ /**
+ * Set of key-value pairs that you can
+ * attach to an object. This can be useful for storing additional information about the object in
+ * a structured format. Learn more about storing
+ * information in metadata.
+ */
@SerializedName("metadata")
Map One of {@code canceled}, {@code failed}, {@code pending}, {@code pending_retry}, {@code
- * processing}, {@code requires_capture}, or {@code succeeded}.
+ * Status of this OffSessionPayment, one of {@code pending}, {@code pending_retry}, {@code
+ * processing}, {@code failed}, {@code canceled}, {@code requires_capture}, or {@code succeeded}.
*/
@SerializedName("status")
String status;
- /** Test clock to be used to advance the retry attempts. */
+ /** Test clock that can be used to advance the retry attempts in a sandbox. */
@SerializedName("test_clock")
String testClock;
- /** Instructions for the transfer to be made with this OSP after successful money movement. */
+ /**
+ * The data that automatically creates a Transfer after the payment finalizes. Learn more about
+ * the use case for connected
+ * accounts.
+ */
@SerializedName("transfer_data")
TransferData transferData;
@@ -131,7 +156,7 @@ public static class RetryDetails extends StripeObject {
Integer attempts;
/**
- * How you want Stripe to retry the payment.
+ * Indicates the strategy for how you want Stripe to retry the payment.
*
* One of {@code none}, or {@code smart}.
*/
@@ -147,11 +172,21 @@ public static class RetryDetails extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class TransferData extends StripeObject {
- /** Amount in minor units that you want to transfer. */
+ /**
+ * The amount transferred to the destination account. This transfer will occur automatically
+ * after the payment succeeds. If no amount is specified, by default the entire payment amount
+ * is transferred to the destination account. The amount must be less than or equal to the amount_requested,
+ * and must be a positive integer representing how much to transfer in the smallest currency
+ * unit (e.g., 100 cents to charge $1.00).
+ */
@SerializedName("amount")
Integer amount;
- /** ID of the connected account where you want money to go. */
+ /**
+ * The account (if any) that the payment is attributed to for tax reporting, and where funds
+ * from the payment are transferred to after payment success.
+ */
@SerializedName("destination")
String destination;
}
diff --git a/src/main/java/com/stripe/param/AccountCreateParams.java b/src/main/java/com/stripe/param/AccountCreateParams.java
index 24edd33dabe..b1cc90f795c 100644
--- a/src/main/java/com/stripe/param/AccountCreateParams.java
+++ b/src/main/java/com/stripe/param/AccountCreateParams.java
@@ -627,7 +627,7 @@ public static class BusinessProfile {
@SerializedName("mcc")
String mcc;
- /** Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business. */
+ /** Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business. */
@SerializedName("minority_owned_business_designation")
List You can create Account Links of type {@code account_update} only for connected accounts
+ * where your platform is responsible for collecting requirements, including Custom accounts. You
+ * can't create them for accounts that have access to a Stripe-hosted Dashboard. If you use Connect embedded
+ * components, you can include components that allow your connected accounts to update their
+ * own information. For an account without Stripe-hosted Dashboard access where Stripe is liable
+ * for negative balances, you must use embedded components.
*/
@SerializedName("type")
Type type;
@@ -210,8 +217,15 @@ public Builder setReturnUrl(String returnUrl) {
}
/**
- * Required. The type of account link the user is requesting. Possible values
- * are {@code account_onboarding} or {@code account_update}.
+ * Required. The type of account link the user is requesting.
+ *
+ * You can create Account Links of type {@code account_update} only for connected accounts
+ * where your platform is responsible for collecting requirements, including Custom accounts.
+ * You can't create them for accounts that have access to a Stripe-hosted Dashboard. If you use
+ * Connect embedded
+ * components, you can include components that allow your connected accounts to update their
+ * own information. For an account without Stripe-hosted Dashboard access where Stripe is liable
+ * for negative balances, you must use embedded components.
*/
public Builder setType(AccountLinkCreateParams.Type type) {
this.type = type;
diff --git a/src/main/java/com/stripe/param/AccountSessionCreateParams.java b/src/main/java/com/stripe/param/AccountSessionCreateParams.java
index 3baf36e3de1..ee561901ada 100644
--- a/src/main/java/com/stripe/param/AccountSessionCreateParams.java
+++ b/src/main/java/com/stripe/param/AccountSessionCreateParams.java
@@ -259,6 +259,14 @@ public static class Components {
@SerializedName("financial_account_transactions")
FinancialAccountTransactions financialAccountTransactions;
+ /**
+ * Configuration for the instant
+ * payouts promotion embedded component.
+ */
+ @SerializedName("instant_payouts_promotion")
+ InstantPayoutsPromotion instantPayoutsPromotion;
+
/**
* Configuration for the issuing
@@ -395,6 +403,7 @@ private Components(
Map For more information, see the installments integration guide.
@@ -2887,7 +2917,7 @@ public Builder putAllExtraParam(Map For more information, see the installments integration
@@ -3675,6 +3705,242 @@ public Builder putAllExtraParam(Map For more information, see the installments integration guide.
@@ -2881,7 +2911,7 @@ public Builder putAllExtraParam(Map For more information, see the installments integration
@@ -3698,6 +3728,251 @@ public Builder putAllExtraParam(Map For more information, see the installments integration guide.
@@ -16756,7 +17951,7 @@ public Builder putAllExtraParam(Map For more information, see the installments integration guide.
diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
index bb36666714d..de439e6e57f 100644
--- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java
@@ -27,6 +27,10 @@ public class PaymentIntentCreateParams extends ApiRequestParams {
@SerializedName("amount")
Long amount;
+ /** Provides industry-specific information about the amount. */
+ @SerializedName("amount_details")
+ AmountDetails amountDetails;
+
/**
* The amount of the application fee (if any) that will be requested to be applied to the payment
* and transferred to the application owner's Stripe account. The amount of the application fee
@@ -354,6 +358,7 @@ public class PaymentIntentCreateParams extends ApiRequestParams {
private PaymentIntentCreateParams(
Long amount,
+ AmountDetails amountDetails,
Long applicationFeeAmount,
AutomaticPaymentMethods automaticPaymentMethods,
CaptureMethod captureMethod,
@@ -392,6 +397,7 @@ private PaymentIntentCreateParams(
String transferGroup,
Boolean useStripeSdk) {
this.amount = amount;
+ this.amountDetails = amountDetails;
this.applicationFeeAmount = applicationFeeAmount;
this.automaticPaymentMethods = automaticPaymentMethods;
this.captureMethod = captureMethod;
@@ -438,6 +444,8 @@ public static Builder builder() {
public static class Builder {
private Long amount;
+ private AmountDetails amountDetails;
+
private Long applicationFeeAmount;
private AutomaticPaymentMethods automaticPaymentMethods;
@@ -516,6 +524,7 @@ public static class Builder {
public PaymentIntentCreateParams build() {
return new PaymentIntentCreateParams(
this.amount,
+ this.amountDetails,
this.applicationFeeAmount,
this.automaticPaymentMethods,
this.captureMethod,
@@ -570,6 +579,12 @@ public Builder setAmount(Long amount) {
return this;
}
+ /** Provides industry-specific information about the amount. */
+ public Builder setAmountDetails(PaymentIntentCreateParams.AmountDetails amountDetails) {
+ this.amountDetails = amountDetails;
+ return this;
+ }
+
/**
* The amount of the application fee (if any) that will be requested to be applied to the
* payment and transferred to the application owner's Stripe account. The amount of the
@@ -1068,6 +1083,1177 @@ public Builder setUseStripeSdk(Boolean useStripeSdk) {
}
}
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class AmountDetails {
+ /** The amount an item was discounted for. */
+ @SerializedName("discount_amount")
+ Object discountAmount;
+
+ /**
+ * 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 For more information, see the installments integration guide.
@@ -17274,7 +18460,7 @@ public Builder putAllExtraParam(Map For more information, see the installments integration guide.
diff --git a/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java b/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java
index 3dd7226575b..8fd7e5d03e3 100644
--- a/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java
+++ b/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java
@@ -21,6 +21,10 @@ public class PaymentIntentIncrementAuthorizationParams extends ApiRequestParams
@SerializedName("amount")
Long amount;
+ /** Provides industry-specific information about the amount. */
+ @SerializedName("amount_details")
+ AmountDetails amountDetails;
+
/**
* The amount of the application fee (if any) that will be requested to be applied to the payment
* and transferred to the application owner's Stripe account. The amount of the application fee
@@ -61,6 +65,10 @@ public class PaymentIntentIncrementAuthorizationParams extends ApiRequestParams
@SerializedName("metadata")
Map