From d54dccae29e36f56ce51ad2db5ca07c73617a1bd Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 25 Jul 2024 21:57:29 +0000 Subject: [PATCH 01/11] Update generated code for v1158 --- OPENAPI_VERSION | 2 +- .../com/stripe/model/financialconnections/Account.java | 7 ++++--- .../model/financialconnections/AccountInferredBalance.java | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 0560d3ff738..9ddce71ae54 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1157 \ No newline at end of file +v1158 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/financialconnections/Account.java b/src/main/java/com/stripe/model/financialconnections/Account.java index dce1eecf5c0..763790aa4e0 100644 --- a/src/main/java/com/stripe/model/financialconnections/Account.java +++ b/src/main/java/com/stripe/model/financialconnections/Account.java @@ -608,7 +608,8 @@ public static class Balance extends StripeObject { Credit credit; /** - * The balances owed to (or by) the account holder. + * The balances owed to (or by) the account holder, before subtracting any outbound pending + * transactions or adding any inbound pending transactions. * *

Each key is a three-letter ISO * currency code, in lowercase. @@ -633,8 +634,8 @@ public static class Balance extends StripeObject { @EqualsAndHashCode(callSuper = false) public static class Cash extends StripeObject { /** - * The funds available to the account holder. Typically this is the current balance less any - * holds. + * The funds available to the account holder. Typically this is the current balance after + * subtracting any outbound pending transactions and adding any inbound pending transactions. * *

Each key is a three-letter ISO currency code, in diff --git a/src/main/java/com/stripe/model/financialconnections/AccountInferredBalance.java b/src/main/java/com/stripe/model/financialconnections/AccountInferredBalance.java index 19aedaa661b..eb9e39f2098 100644 --- a/src/main/java/com/stripe/model/financialconnections/AccountInferredBalance.java +++ b/src/main/java/com/stripe/model/financialconnections/AccountInferredBalance.java @@ -33,7 +33,8 @@ public class AccountInferredBalance extends ApiResource implements HasId { Long asOf; /** - * The balances owed to (or by) the account holder. + * The balances owed to (or by) the account holder, before subtracting any outbound pending + * transactions or adding any inbound pending transactions. * *

Each key is a three-letter ISO * currency code, in lowercase. From 376cc42da96d8741dd139826b7af4f28b447e97f Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 25 Jul 2024 23:33:20 +0000 Subject: [PATCH 02/11] Update generated code for v1159 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Charge.java | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 9ddce71ae54..3ed5e1e130c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1158 \ No newline at end of file +v1159 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index a321e96ee91..2cfbf17f444 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -1574,10 +1574,6 @@ public static class Card extends StripeObject { @SerializedName("amount_authorized") Long amountAuthorized; - /** Authorization code on the charge. */ - @SerializedName("authorization_code") - String authorizationCode; - /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. From c6c1ce8dd18c1a75553992692051c095e3c27e7d Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 30 Jul 2024 00:17:43 +0000 Subject: [PATCH 03/11] Update generated code for v1161 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Event.java | 9 +++-- .../QuotePreviewSubscriptionSchedule.java | 40 +++++++++++++++++++ .../java/com/stripe/model/Subscription.java | 39 ++++++++++++++++++ .../stripe/model/SubscriptionSchedule.java | 39 ++++++++++++++++++ .../param/WebhookEndpointCreateParams.java | 6 +++ .../param/WebhookEndpointUpdateParams.java | 6 +++ 7 files changed, 136 insertions(+), 5 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 3ed5e1e130c..83f499e087f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1159 \ No newline at end of file +v1161 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Event.java b/src/main/java/com/stripe/model/Event.java index ace21983436..ae041da6bbb 100644 --- a/src/main/java/com/stripe/model/Event.java +++ b/src/main/java/com/stripe/model/Event.java @@ -142,7 +142,8 @@ public class Event extends ApiResource implements HasId { * {@code customer.subscription.created}, {@code customer.subscription.custom_event}, {@code * customer.subscription.deleted}, {@code customer.subscription.paused}, {@code * customer.subscription.pending_update_applied}, {@code - * customer.subscription.pending_update_expired}, {@code customer.subscription.resumed}, {@code + * customer.subscription.pending_update_expired}, {@code + * customer.subscription.price_migration_failed}, {@code customer.subscription.resumed}, {@code * customer.subscription.trial_will_end}, {@code customer.subscription.updated}, {@code * customer.tax_id.created}, {@code customer.tax_id.deleted}, {@code customer.tax_id.updated}, * {@code customer.updated}, {@code customer_cash_balance_transaction.created}, {@code @@ -201,9 +202,9 @@ public class Event extends ApiResource implements HasId { * source.transaction.updated}, {@code subscription_schedule.aborted}, {@code * subscription_schedule.canceled}, {@code subscription_schedule.completed}, {@code * subscription_schedule.created}, {@code subscription_schedule.expiring}, {@code - * subscription_schedule.released}, {@code subscription_schedule.updated}, {@code - * tax.form.updated}, {@code tax.settings.updated}, {@code tax_rate.created}, {@code - * tax_rate.updated}, {@code terminal.reader.action_failed}, {@code + * subscription_schedule.price_migration_failed}, {@code subscription_schedule.released}, {@code + * subscription_schedule.updated}, {@code tax.form.updated}, {@code tax.settings.updated}, {@code + * tax_rate.created}, {@code tax_rate.updated}, {@code terminal.reader.action_failed}, {@code * terminal.reader.action_succeeded}, {@code terminal.reader.action_updated}, {@code * test_helpers.test_clock.advancing}, {@code test_helpers.test_clock.created}, {@code * test_helpers.test_clock.deleted}, {@code test_helpers.test_clock.internal_failure}, {@code diff --git a/src/main/java/com/stripe/model/QuotePreviewSubscriptionSchedule.java b/src/main/java/com/stripe/model/QuotePreviewSubscriptionSchedule.java index 3c6094870d5..154c019b96d 100644 --- a/src/main/java/com/stripe/model/QuotePreviewSubscriptionSchedule.java +++ b/src/main/java/com/stripe/model/QuotePreviewSubscriptionSchedule.java @@ -94,6 +94,10 @@ public class QuotePreviewSubscriptionSchedule extends ApiResource implements Has @SerializedName("id") String id; + /** Details of the most recent price migration that failed for the subscription schedule. */ + @SerializedName("last_price_migration_error") + LastPriceMigrationError lastPriceMigrationError; + /** * Has the value {@code true} if the object exists in live mode or the value {@code false} if the * object exists in test mode. @@ -649,6 +653,41 @@ public void setDestinationObject(Account expandableObject) { } } + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class LastPriceMigrationError extends StripeObject { + /** The time at which the price migration encountered an error. */ + @SerializedName("errored_at") + Long erroredAt; + + /** The involved price pairs in each failed transition. */ + @SerializedName("failed_transitions") + List + failedTransitions; + + /** + * The type of error encountered by the price migration. + * + *

Equal to {@code price_uniqueness_violation}. + */ + @SerializedName("type") + String type; + + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class FailedTransition extends StripeObject { + /** The original price to be migrated. */ + @SerializedName("source_price") + String sourcePrice; + + /** The intended resulting price of the migration. */ + @SerializedName("target_price") + String targetPrice; + } + } + /** * A phase describes the plans, coupon, and trialing status of a subscription for a predefined * time period. @@ -1671,6 +1710,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) { trySetResponseGetter(currentPhase, responseGetter); trySetResponseGetter(customer, responseGetter); trySetResponseGetter(defaultSettings, responseGetter); + trySetResponseGetter(lastPriceMigrationError, responseGetter); trySetResponseGetter(prebilling, responseGetter); trySetResponseGetter(subscription, responseGetter); trySetResponseGetter(testClock, responseGetter); diff --git a/src/main/java/com/stripe/model/Subscription.java b/src/main/java/com/stripe/model/Subscription.java index 9124e5ccdb2..912cf5fc0e6 100644 --- a/src/main/java/com/stripe/model/Subscription.java +++ b/src/main/java/com/stripe/model/Subscription.java @@ -220,6 +220,10 @@ public class Subscription extends ApiResource implements HasId, MetadataStore failedTransitions; + + /** + * The type of error encountered by the price migration. + * + *

Equal to {@code price_uniqueness_violation}. + */ + @SerializedName("type") + String type; + + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class FailedTransition extends StripeObject { + /** The original price to be migrated. */ + @SerializedName("source_price") + String sourcePrice; + + /** The intended resulting price of the migration. */ + @SerializedName("target_price") + String targetPrice; + } + } + /** * The Pause Collection settings determine how we will pause collection for this subscription and * for how long the subscription should be paused. @@ -2019,6 +2057,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) { trySetResponseGetter(discount, responseGetter); trySetResponseGetter(invoiceSettings, responseGetter); trySetResponseGetter(items, responseGetter); + trySetResponseGetter(lastPriceMigrationError, responseGetter); trySetResponseGetter(latestInvoice, responseGetter); trySetResponseGetter(onBehalfOf, responseGetter); trySetResponseGetter(pauseCollection, responseGetter); diff --git a/src/main/java/com/stripe/model/SubscriptionSchedule.java b/src/main/java/com/stripe/model/SubscriptionSchedule.java index df852c7352b..e4a8f1db047 100644 --- a/src/main/java/com/stripe/model/SubscriptionSchedule.java +++ b/src/main/java/com/stripe/model/SubscriptionSchedule.java @@ -106,6 +106,10 @@ public class SubscriptionSchedule extends ApiResource @SerializedName("id") String id; + /** Details of the most recent price migration that failed for the subscription schedule. */ + @SerializedName("last_price_migration_error") + LastPriceMigrationError lastPriceMigrationError; + /** * Has the value {@code true} if the object exists in live mode or the value {@code false} if the * object exists in test mode. @@ -980,6 +984,40 @@ public void setDestinationObject(Account expandableObject) { } } + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class LastPriceMigrationError extends StripeObject { + /** The time at which the price migration encountered an error. */ + @SerializedName("errored_at") + Long erroredAt; + + /** The involved price pairs in each failed transition. */ + @SerializedName("failed_transitions") + List failedTransitions; + + /** + * The type of error encountered by the price migration. + * + *

Equal to {@code price_uniqueness_violation}. + */ + @SerializedName("type") + String type; + + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class FailedTransition extends StripeObject { + /** The original price to be migrated. */ + @SerializedName("source_price") + String sourcePrice; + + /** The intended resulting price of the migration. */ + @SerializedName("target_price") + String targetPrice; + } + } + /** * A phase describes the plans, coupon, and trialing status of a subscription for a predefined * time period. @@ -2001,6 +2039,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) { trySetResponseGetter(currentPhase, responseGetter); trySetResponseGetter(customer, responseGetter); trySetResponseGetter(defaultSettings, responseGetter); + trySetResponseGetter(lastPriceMigrationError, responseGetter); trySetResponseGetter(prebilling, responseGetter); trySetResponseGetter(subscription, responseGetter); trySetResponseGetter(testClock, responseGetter); diff --git a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java index a8eef1ed6e3..0f44c690609 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java @@ -822,6 +822,9 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("customer.subscription.pending_update_expired") CUSTOMER__SUBSCRIPTION__PENDING_UPDATE_EXPIRED("customer.subscription.pending_update_expired"), + @SerializedName("customer.subscription.price_migration_failed") + CUSTOMER__SUBSCRIPTION__PRICE_MIGRATION_FAILED("customer.subscription.price_migration_failed"), + @SerializedName("customer.subscription.resumed") CUSTOMER__SUBSCRIPTION__RESUMED("customer.subscription.resumed"), @@ -1235,6 +1238,9 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("subscription_schedule.expiring") SUBSCRIPTION_SCHEDULE__EXPIRING("subscription_schedule.expiring"), + @SerializedName("subscription_schedule.price_migration_failed") + SUBSCRIPTION_SCHEDULE__PRICE_MIGRATION_FAILED("subscription_schedule.price_migration_failed"), + @SerializedName("subscription_schedule.released") SUBSCRIPTION_SCHEDULE__RELEASED("subscription_schedule.released"), diff --git a/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java b/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java index 9b5407df5f9..c58d918987b 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java @@ -486,6 +486,9 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("customer.subscription.pending_update_expired") CUSTOMER__SUBSCRIPTION__PENDING_UPDATE_EXPIRED("customer.subscription.pending_update_expired"), + @SerializedName("customer.subscription.price_migration_failed") + CUSTOMER__SUBSCRIPTION__PRICE_MIGRATION_FAILED("customer.subscription.price_migration_failed"), + @SerializedName("customer.subscription.resumed") CUSTOMER__SUBSCRIPTION__RESUMED("customer.subscription.resumed"), @@ -899,6 +902,9 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("subscription_schedule.expiring") SUBSCRIPTION_SCHEDULE__EXPIRING("subscription_schedule.expiring"), + @SerializedName("subscription_schedule.price_migration_failed") + SUBSCRIPTION_SCHEDULE__PRICE_MIGRATION_FAILED("subscription_schedule.price_migration_failed"), + @SerializedName("subscription_schedule.released") SUBSCRIPTION_SCHEDULE__RELEASED("subscription_schedule.released"), From 62ff9f2f98b3ac5ade049c8f1f7c7b9c31473666 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 30 Jul 2024 00:53:51 +0000 Subject: [PATCH 04/11] Update generated code for v1162 --- OPENAPI_VERSION | 2 +- .../stripe/param/PaymentIntentUpdateParams.java | 15 --------------- .../com/stripe/param/SetupIntentUpdateParams.java | 6 +++--- 3 files changed, 4 insertions(+), 19 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 83f499e087f..2057f98b863 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1161 \ No newline at end of file +v1162 \ No newline at end of file diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index f2467770c39..9371f7fc362 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -96,11 +96,6 @@ public class PaymentIntentUpdateParams extends ApiRequestParams { @SerializedName("payment_details") Object paymentDetails; - /** - * ID of the payment method (a PaymentMethod, Card, or compatible - * Source object) to attach to this PaymentIntent. - */ @SerializedName("payment_method") Object paymentMethod; @@ -559,21 +554,11 @@ public Builder setPaymentDetails(EmptyParam paymentDetails) { return this; } - /** - * ID of the payment method (a PaymentMethod, Card, or compatible - * Source object) to attach to this PaymentIntent. - */ public Builder setPaymentMethod(String paymentMethod) { this.paymentMethod = paymentMethod; return this; } - /** - * ID of the payment method (a PaymentMethod, Card, or compatible - * Source object) to attach to this PaymentIntent. - */ public Builder setPaymentMethod(EmptyParam paymentMethod) { this.paymentMethod = paymentMethod; return this; diff --git a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java index d87b460e161..9561aa6285f 100644 --- a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java @@ -70,7 +70,7 @@ public class SetupIntentUpdateParams extends ApiRequestParams { /** * ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this - * SetupIntent. + * SetupIntent. To unset this field to null, pass in an empty string. */ @SerializedName("payment_method") Object paymentMethod; @@ -351,7 +351,7 @@ public Builder setMetadata(Map metadata) { /** * ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this - * SetupIntent. + * SetupIntent. To unset this field to null, pass in an empty string. */ public Builder setPaymentMethod(String paymentMethod) { this.paymentMethod = paymentMethod; @@ -360,7 +360,7 @@ public Builder setPaymentMethod(String paymentMethod) { /** * ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this - * SetupIntent. + * SetupIntent. To unset this field to null, pass in an empty string. */ public Builder setPaymentMethod(EmptyParam paymentMethod) { this.paymentMethod = paymentMethod; From 687b3c62228ef7a1496111f17ac20545f5ff52ef Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 30 Jul 2024 17:50:44 +0000 Subject: [PATCH 05/11] Update generated code for v1163 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Order.java | 52 ++ .../java/com/stripe/model/PaymentIntent.java | 168 ++++- .../java/com/stripe/model/SetupIntent.java | 7 +- .../com/stripe/model/checkout/Session.java | 120 ++++ .../com/stripe/param/OrderCreateParams.java | 225 ++++++- .../com/stripe/param/OrderUpdateParams.java | 225 ++++++- .../param/PaymentIntentConfirmParams.java | 570 +++++++++++++--- .../param/PaymentIntentCreateParams.java | 584 ++++++++++++++--- .../param/PaymentIntentUpdateParams.java | 606 +++++++++++++++--- .../param/checkout/SessionCreateParams.java | 258 +++++++- 11 files changed, 2450 insertions(+), 367 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 2057f98b863..69f220482f8 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1162 \ No newline at end of file +v1163 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Order.java b/src/main/java/com/stripe/model/Order.java index bd425522713..5faae78c8eb 100644 --- a/src/main/java/com/stripe/model/Order.java +++ b/src/main/java/com/stripe/model/Order.java @@ -896,6 +896,10 @@ public static class AcssDebit extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as Payment methods attached to other Customers cannot be used with this PaymentIntent. * - *

If present in combination with setup_future_usage, - * this PaymentIntent's payment method will be attached to the Customer after the PaymentIntent - * has been confirmed and any required actions from the user are complete. + *

If setup_future_usage + * is set and this PaymentIntent's payment method is not {@code card_present}, then the payment + * method attaches to the Customer after the PaymentIntent has been confirmed and any required + * actions from the user are complete. If the payment method is {@code card_present} and isn't a + * digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. */ @SerializedName("customer") @Getter(lombok.AccessLevel.NONE) @@ -304,6 +308,10 @@ public class PaymentIntent extends ApiResource implements HasId, MetadataStore

attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to dynamically * optimize your payment flow and comply with regional legislation and network rules, such as SCA. @@ -2892,6 +2900,10 @@ public static class AcssDebit extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2969,6 +2981,10 @@ public static class Affirm extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3010,6 +3026,10 @@ public static class AfterpayClearpay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3035,6 +3055,10 @@ public static class Alipay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3068,6 +3092,10 @@ public static class AmazonPay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3093,6 +3121,10 @@ public static class AuBecsDebit extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3118,6 +3150,10 @@ public static class BacsDebit extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3151,6 +3187,10 @@ public static class Bancontact extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3176,6 +3216,10 @@ public static class Blik extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3209,6 +3253,10 @@ public static class Boleto extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3333,6 +3381,10 @@ public static class Card extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3598,6 +3650,10 @@ public static class Cashapp extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3635,6 +3691,10 @@ public static class CustomerBalance extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3703,6 +3763,10 @@ public static class Eps extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3728,6 +3792,10 @@ public static class Fpx extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3753,6 +3821,10 @@ public static class Giropay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3778,6 +3850,10 @@ public static class Grabpay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3803,6 +3879,10 @@ public static class Ideal extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3845,6 +3925,10 @@ public static class Klarna extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3900,6 +3984,10 @@ public static class Konbini extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3938,6 +4026,10 @@ public static class Link extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3971,6 +4063,10 @@ public static class Mobilepay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3996,6 +4092,10 @@ public static class Multibanco extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -4029,6 +4129,10 @@ public static class Oxxo extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -4054,6 +4158,10 @@ public static class P24 extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -4079,6 +4187,10 @@ public static class Paynow extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -4132,6 +4244,10 @@ public static class Paypal extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -4169,6 +4285,10 @@ public static class Payto extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -4256,6 +4376,10 @@ public static class Pix extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -4281,6 +4405,10 @@ public static class Promptpay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -4323,6 +4451,10 @@ public static class RevolutPay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -4351,6 +4483,10 @@ public static class SepaDebit extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -4390,6 +4526,10 @@ public static class Sofort extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -4419,6 +4559,10 @@ public static class Swish extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -4444,6 +4588,10 @@ public static class Twint extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -4483,6 +4631,10 @@ public static class UsBankAccount extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -4599,6 +4751,10 @@ public static class WechatPay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -4624,6 +4780,10 @@ public static class Zip extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. diff --git a/src/main/java/com/stripe/model/SetupIntent.java b/src/main/java/com/stripe/model/SetupIntent.java index d3a759b9287..7cb13782c78 100644 --- a/src/main/java/com/stripe/model/SetupIntent.java +++ b/src/main/java/com/stripe/model/SetupIntent.java @@ -183,7 +183,12 @@ public class SetupIntent extends ApiResource implements HasId, MetadataStore onBehalfOf; - /** ID of the payment method used with this SetupIntent. */ + /** + * ID of the payment method used with this SetupIntent. If the payment method is {@code + * card_present} and isn't a digital wallet, then the generated_card + * associated with the {@code latest_attempt} is attached to the Customer instead. + */ @SerializedName("payment_method") @Getter(lombok.AccessLevel.NONE) @Setter(lombok.AccessLevel.NONE) diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java index b263b476671..09cd33d3293 100644 --- a/src/main/java/com/stripe/model/checkout/Session.java +++ b/src/main/java/com/stripe/model/checkout/Session.java @@ -1560,6 +1560,10 @@ public static class AcssDebit extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1632,6 +1636,10 @@ public static class Affirm extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1657,6 +1665,10 @@ public static class AfterpayClearpay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1682,6 +1694,10 @@ public static class Alipay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1707,6 +1723,10 @@ public static class AmazonPay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1732,6 +1752,10 @@ public static class AuBecsDebit extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1757,6 +1781,10 @@ public static class BacsDebit extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1782,6 +1810,10 @@ public static class Bancontact extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1815,6 +1847,10 @@ public static class Boleto extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1859,6 +1895,10 @@ public static class Card extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1913,6 +1953,10 @@ public static class Cashapp extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1950,6 +1994,10 @@ public static class CustomerBalance extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2018,6 +2066,10 @@ public static class Eps extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2043,6 +2095,10 @@ public static class Fpx extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2068,6 +2124,10 @@ public static class Giropay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2093,6 +2153,10 @@ public static class Grabpay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2118,6 +2182,10 @@ public static class Ideal extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2143,6 +2211,10 @@ public static class Klarna extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2177,6 +2249,10 @@ public static class Konbini extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2202,6 +2278,10 @@ public static class Link extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2227,6 +2307,10 @@ public static class Mobilepay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2252,6 +2336,10 @@ public static class Multibanco extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2285,6 +2373,10 @@ public static class Oxxo extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2310,6 +2402,10 @@ public static class P24 extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2335,6 +2431,10 @@ public static class Paynow extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2380,6 +2480,10 @@ public static class Paypal extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2423,6 +2527,10 @@ public static class RevolutPay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2448,6 +2556,10 @@ public static class SepaDebit extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2473,6 +2585,10 @@ public static class Sofort extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2513,6 +2629,10 @@ public static class UsBankAccount extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. diff --git a/src/main/java/com/stripe/param/OrderCreateParams.java b/src/main/java/com/stripe/param/OrderCreateParams.java index 8725bc42e3b..c812c860a58 100644 --- a/src/main/java/com/stripe/param/OrderCreateParams.java +++ b/src/main/java/com/stripe/param/OrderCreateParams.java @@ -2772,13 +2772,17 @@ public static class AcssDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -2871,13 +2875,18 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -2899,13 +2908,18 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -3382,13 +3396,17 @@ public static class Alipay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -3457,13 +3475,18 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -3485,13 +3508,18 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -3547,13 +3575,17 @@ public static class Bancontact { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -3638,13 +3670,18 @@ public Builder setPreferredLanguage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -3666,13 +3703,18 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -3924,13 +3966,17 @@ public static class CustomerBalance { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -4030,13 +4076,18 @@ public Builder setFundingType( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -4404,13 +4455,17 @@ public static class Ideal { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -4479,13 +4534,18 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -4507,13 +4567,18 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -4581,13 +4646,17 @@ public static class Klarna { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -4713,13 +4782,18 @@ public Builder setPreferredLocale( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -4944,13 +5018,17 @@ public static class Link { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -5072,13 +5150,18 @@ public Builder setPersistentToken(String persistentToken) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -5100,13 +5183,18 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -5175,13 +5263,17 @@ public static class Oxxo { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -5265,13 +5357,18 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -5319,13 +5416,17 @@ public static class P24 { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -5403,13 +5504,18 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -5496,13 +5602,17 @@ public static class Paypal { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -5666,13 +5776,18 @@ public Builder setRiskCorrelationId(String riskCorrelationId) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -5694,13 +5809,18 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -5866,13 +5986,17 @@ public static class SepaDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -5954,13 +6078,18 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -5982,13 +6111,18 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -6107,13 +6241,17 @@ public static class Sofort { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -6201,13 +6339,18 @@ public Builder setPreferredLanguage(EmptyParam preferredLanguage) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -6229,13 +6372,18 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -6322,13 +6470,17 @@ public static class WechatPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -6421,13 +6573,18 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( diff --git a/src/main/java/com/stripe/param/OrderUpdateParams.java b/src/main/java/com/stripe/param/OrderUpdateParams.java index a196da7a12e..48276518e14 100644 --- a/src/main/java/com/stripe/param/OrderUpdateParams.java +++ b/src/main/java/com/stripe/param/OrderUpdateParams.java @@ -3219,13 +3219,17 @@ public static class AcssDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -3318,13 +3322,18 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -3346,13 +3355,18 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -3848,13 +3862,17 @@ public static class Alipay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -3923,13 +3941,18 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -3951,13 +3974,18 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -4013,13 +4041,17 @@ public static class Bancontact { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -4104,13 +4136,18 @@ public Builder setPreferredLanguage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -4132,13 +4169,18 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -4390,13 +4432,17 @@ public static class CustomerBalance { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -4496,13 +4542,18 @@ public Builder setFundingType( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -4880,13 +4931,17 @@ public static class Ideal { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -4955,13 +5010,18 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -4983,13 +5043,18 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -5057,13 +5122,17 @@ public static class Klarna { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -5189,13 +5258,18 @@ public Builder setPreferredLocale( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -5420,13 +5494,17 @@ public static class Link { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -5555,13 +5633,18 @@ public Builder setPersistentToken(EmptyParam persistentToken) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -5583,13 +5666,18 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -5658,13 +5746,17 @@ public static class Oxxo { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -5748,13 +5840,18 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -5802,13 +5899,17 @@ public static class P24 { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -5886,13 +5987,18 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -5979,13 +6085,17 @@ public static class Paypal { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -6178,13 +6288,18 @@ public Builder setRiskCorrelationId(EmptyParam riskCorrelationId) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -6206,13 +6321,18 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -6378,13 +6498,17 @@ public static class SepaDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -6466,13 +6590,18 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -6494,13 +6623,18 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -6619,13 +6753,17 @@ public static class Sofort { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -6713,13 +6851,18 @@ public Builder setPreferredLanguage(EmptyParam preferredLanguage) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( @@ -6741,13 +6884,18 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -6834,13 +6982,17 @@ public static class WechatPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using - * a publishable key, you may only update the value from {@code on_session} to {@code + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -6941,13 +7093,18 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a + * generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and * network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request - * using a publishable key, you may only update the value from {@code on_session} to + * using a publishable key, you can only update the value from {@code on_session} to * {@code off_session}. */ public Builder setSetupFutureUsage( diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java index 64c03408b83..f2f196e91c2 100644 --- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java @@ -145,12 +145,16 @@ public class PaymentIntentConfirmParams extends ApiRequestParams { * be attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to dynamically * optimize your payment flow and comply with regional legislation and network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code off_session}. + * publishable key, you can only update the value from {@code on_session} to {@code off_session}. */ @SerializedName("setup_future_usage") ApiRequestParams.EnumParam setupFutureUsage; @@ -551,12 +555,16 @@ public Builder setReturnUrl(String returnUrl) { * can still be attached to a * Customer after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to dynamically * optimize your payment flow and comply with regional legislation and network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -575,12 +583,16 @@ public Builder setSetupFutureUsage( * can still be attached to a * Customer after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to dynamically * optimize your payment flow and comply with regional legislation and network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -11332,12 +11344,16 @@ public static class AcssDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -11428,12 +11444,16 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11455,12 +11475,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -11741,12 +11765,16 @@ public static class Affirm { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -11861,12 +11889,16 @@ public Builder setPreferredLocale(String preferredLocale) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11945,12 +11977,16 @@ public static class AfterpayClearpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12070,12 +12106,16 @@ public Builder setReference(String reference) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12133,12 +12173,16 @@ public static class Alipay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12204,12 +12248,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12231,12 +12279,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -12296,6 +12348,10 @@ public static class AmazonPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -12400,6 +12456,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -12423,6 +12483,10 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -12483,12 +12547,16 @@ public static class AuBecsDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12555,12 +12623,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12582,12 +12654,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -12637,12 +12713,16 @@ public static class BacsDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12709,12 +12789,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12736,12 +12820,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -12797,12 +12885,16 @@ public static class Bancontact { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12885,12 +12977,16 @@ public Builder setPreferredLanguage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12912,12 +13008,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -12992,12 +13092,16 @@ public static class Blik { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13078,12 +13182,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13105,12 +13213,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -13162,12 +13274,16 @@ public static class Boleto { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13249,12 +13365,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13276,12 +13396,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -13439,12 +13563,16 @@ public static class Card { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13797,12 +13925,16 @@ public Builder setRequireCvcRecollection(Boolean requireCvcRecollection) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13824,12 +13956,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -15726,12 +15862,16 @@ public static class Cashapp { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -15834,12 +15974,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15861,12 +16005,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -15942,12 +16090,16 @@ public static class CustomerBalance { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -16047,12 +16199,16 @@ public Builder setFundingType( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -16414,12 +16570,16 @@ public static class Eps { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -16485,12 +16645,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -16535,12 +16699,16 @@ public static class Fpx { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -16606,12 +16774,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -16656,12 +16828,16 @@ public static class Giropay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -16727,12 +16903,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -16778,12 +16958,16 @@ public static class Grabpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -16849,12 +17033,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -16900,12 +17088,16 @@ public static class Ideal { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -16971,12 +17163,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -16998,12 +17194,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -17127,12 +17327,16 @@ public static class Klarna { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -17249,12 +17453,16 @@ public Builder setPreferredLocale( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -17490,12 +17698,16 @@ public static class Konbini { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -17662,12 +17874,16 @@ public Builder setProductDescription(EmptyParam productDescription) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -17731,12 +17947,16 @@ public static class Link { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -17850,12 +18070,16 @@ public Builder setPersistentToken(String persistentToken) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -17877,12 +18101,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -17954,12 +18182,16 @@ public static class Mobilepay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -18062,12 +18294,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -18125,12 +18361,16 @@ public static class Multibanco { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -18196,12 +18436,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -18255,12 +18499,16 @@ public static class Oxxo { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -18342,12 +18590,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -18393,12 +18645,16 @@ public static class P24 { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -18474,12 +18730,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -18530,12 +18790,16 @@ public static class Paynow { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -18601,12 +18865,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -18683,12 +18951,16 @@ public static class Paypal { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -18848,12 +19120,16 @@ public Builder setRiskCorrelationId(String riskCorrelationId) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -18875,12 +19151,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -19047,12 +19327,16 @@ public static class Payto { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -19135,12 +19419,16 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -19162,12 +19450,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -19502,12 +19794,16 @@ public static class Pix { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -19601,12 +19897,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -19651,12 +19951,16 @@ public static class Promptpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -19722,12 +20026,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -19857,6 +20165,10 @@ public static class RevolutPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -19962,6 +20274,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -19985,6 +20301,10 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -20049,12 +20369,16 @@ public static class SepaDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -20134,12 +20458,16 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -20161,12 +20489,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -20281,12 +20613,16 @@ public static class Sofort { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -20372,12 +20708,16 @@ public Builder setPreferredLanguage(EmptyParam preferredLanguage) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -20399,12 +20739,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -20485,12 +20829,16 @@ public static class Swish { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -20572,12 +20920,16 @@ public Builder setReference(EmptyParam reference) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -20623,12 +20975,16 @@ public static class Twint { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -20694,12 +21050,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -20761,12 +21121,16 @@ public static class UsBankAccount { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -20903,12 +21267,16 @@ public Builder setPreferredSettlementSpeed(EmptyParam preferredSettlementSpeed) * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -20930,12 +21298,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -21781,12 +22153,16 @@ public static class WechatPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -21875,12 +22251,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -21944,12 +22324,16 @@ public static class Zip { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -22015,12 +22399,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java index 82abde4afce..c02a7f8c85a 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java @@ -89,10 +89,14 @@ public class PaymentIntentCreateParams extends ApiRequestParams { * *

Payment methods attached to other Customers cannot be used with this PaymentIntent. * - *

If present in combination with setup_future_usage, - * this PaymentIntent's payment method will be attached to the Customer after the PaymentIntent - * has been confirmed and any required actions from the user are complete. + *

If setup_future_usage + * is set and this PaymentIntent's payment method is not {@code card_present}, then the payment + * method attaches to the Customer after the PaymentIntent has been confirmed and any required + * actions from the user are complete. If the payment method is {@code card_present} and isn't a + * digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. */ @SerializedName("customer") String customer; @@ -254,6 +258,10 @@ public class PaymentIntentCreateParams extends ApiRequestParams { * be attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to dynamically * optimize your payment flow and comply with regional legislation and network rules, such as SCA. @@ -596,10 +604,14 @@ public Builder setCurrency(String currency) { * *

Payment methods attached to other Customers cannot be used with this PaymentIntent. * - *

If present in combination with setup_future_usage, - * this PaymentIntent's payment method will be attached to the Customer after the PaymentIntent - * has been confirmed and any required actions from the user are complete. + *

If setup_future_usage + * is set and this PaymentIntent's payment method is not {@code card_present}, then the payment + * method attaches to the Customer after the PaymentIntent has been confirmed and any required + * actions from the user are complete. If the payment method is {@code card_present} and isn't a + * digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. */ public Builder setCustomer(String customer) { this.customer = customer; @@ -895,6 +907,10 @@ public Builder setSecretKeyConfirmation( * can still be attached to a * Customer after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to dynamically * optimize your payment flow and comply with regional legislation and network rules, such as SCA. @@ -11796,12 +11812,16 @@ public static class AcssDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -11892,12 +11912,16 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11919,12 +11943,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -12205,12 +12233,16 @@ public static class Affirm { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12325,12 +12357,16 @@ public Builder setPreferredLocale(String preferredLocale) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12409,12 +12445,16 @@ public static class AfterpayClearpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12534,12 +12574,16 @@ public Builder setReference(String reference) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12597,12 +12641,16 @@ public static class Alipay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12668,12 +12716,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12695,12 +12747,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -12760,6 +12816,10 @@ public static class AmazonPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -12864,6 +12924,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -12887,6 +12951,10 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -12947,12 +13015,16 @@ public static class AuBecsDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13019,12 +13091,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13046,12 +13122,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -13101,12 +13181,16 @@ public static class BacsDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13173,12 +13257,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13200,12 +13288,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -13261,12 +13353,16 @@ public static class Bancontact { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13349,12 +13445,16 @@ public Builder setPreferredLanguage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13376,12 +13476,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -13456,12 +13560,16 @@ public static class Blik { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13542,12 +13650,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13568,12 +13680,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -13625,12 +13741,16 @@ public static class Boleto { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13712,12 +13832,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13739,12 +13863,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -13902,12 +14030,16 @@ public static class Card { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -14260,12 +14392,16 @@ public Builder setRequireCvcRecollection(Boolean requireCvcRecollection) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14286,12 +14422,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -16185,12 +16325,16 @@ public static class Cashapp { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -16293,12 +16437,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -16320,12 +16468,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -16401,12 +16553,16 @@ public static class CustomerBalance { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -16506,12 +16662,16 @@ public Builder setFundingType( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -16873,12 +17033,16 @@ public static class Eps { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -16944,12 +17108,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -16994,12 +17162,16 @@ public static class Fpx { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -17065,12 +17237,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -17115,12 +17291,16 @@ public static class Giropay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -17186,12 +17366,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -17237,12 +17421,16 @@ public static class Grabpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -17308,12 +17496,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -17359,12 +17551,16 @@ public static class Ideal { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -17430,12 +17626,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -17457,12 +17657,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -17586,12 +17790,16 @@ public static class Klarna { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -17707,12 +17915,16 @@ public Builder setPreferredLocale( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -17948,12 +18160,16 @@ public static class Konbini { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -18120,12 +18336,16 @@ public Builder setProductDescription(EmptyParam productDescription) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -18189,12 +18409,16 @@ public static class Link { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -18308,12 +18532,16 @@ public Builder setPersistentToken(String persistentToken) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -18334,12 +18562,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -18411,12 +18643,16 @@ public static class Mobilepay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -18519,12 +18755,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -18582,12 +18822,16 @@ public static class Multibanco { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -18653,12 +18897,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -18712,12 +18960,16 @@ public static class Oxxo { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -18799,12 +19051,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -18849,12 +19105,16 @@ public static class P24 { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -18930,12 +19190,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -18986,12 +19250,16 @@ public static class Paynow { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -19057,12 +19325,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -19139,12 +19411,16 @@ public static class Paypal { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -19303,12 +19579,16 @@ public Builder setRiskCorrelationId(String riskCorrelationId) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -19330,12 +19610,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -19502,12 +19786,16 @@ public static class Payto { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -19590,12 +19878,16 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -19617,12 +19909,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -19956,12 +20252,16 @@ public static class Pix { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -20055,12 +20355,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -20105,12 +20409,16 @@ public static class Promptpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -20176,12 +20484,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -20311,6 +20623,10 @@ public static class RevolutPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -20415,6 +20731,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -20438,6 +20758,10 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -20502,12 +20826,16 @@ public static class SepaDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -20587,12 +20915,16 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -20614,12 +20946,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -20734,12 +21070,16 @@ public static class Sofort { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -20825,12 +21165,16 @@ public Builder setPreferredLanguage(EmptyParam preferredLanguage) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -20852,12 +21196,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -20938,12 +21286,16 @@ public static class Swish { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -21025,12 +21377,16 @@ public Builder setReference(EmptyParam reference) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -21076,12 +21432,16 @@ public static class Twint { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -21147,12 +21507,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -21214,12 +21578,16 @@ public static class UsBankAccount { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -21354,12 +21722,16 @@ public Builder setPreferredSettlementSpeed(EmptyParam preferredSettlementSpeed) * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -21381,12 +21753,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -22232,12 +22608,16 @@ public static class WechatPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -22326,12 +22706,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -22395,12 +22779,16 @@ public static class Zip { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -22466,12 +22854,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index 9371f7fc362..b015d68e1c1 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -54,10 +54,14 @@ public class PaymentIntentUpdateParams extends ApiRequestParams { * *

Payment methods attached to other Customers cannot be used with this PaymentIntent. * - *

If present in combination with setup_future_usage, - * this PaymentIntent's payment method will be attached to the Customer after the PaymentIntent - * has been confirmed and any required actions from the user are complete. + *

If setup_future_usage + * is set and this PaymentIntent's payment method is not {@code card_present}, then the payment + * method attaches to the Customer after the PaymentIntent has been confirmed and any required + * actions from the user are complete. If the payment method is {@code card_present} and isn't a + * digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. */ @SerializedName("customer") Object customer; @@ -142,12 +146,16 @@ public class PaymentIntentUpdateParams extends ApiRequestParams { * be attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to dynamically * optimize your payment flow and comply with regional legislation and network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code off_session}. + * publishable key, you can only update the value from {@code on_session} to {@code off_session}. */ @SerializedName("setup_future_usage") ApiRequestParams.EnumParam setupFutureUsage; @@ -397,10 +405,14 @@ public Builder setCurrency(EmptyParam currency) { * *

Payment methods attached to other Customers cannot be used with this PaymentIntent. * - *

If present in combination with setup_future_usage, - * this PaymentIntent's payment method will be attached to the Customer after the PaymentIntent - * has been confirmed and any required actions from the user are complete. + *

If setup_future_usage + * is set and this PaymentIntent's payment method is not {@code card_present}, then the payment + * method attaches to the Customer after the PaymentIntent has been confirmed and any required + * actions from the user are complete. If the payment method is {@code card_present} and isn't a + * digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. */ public Builder setCustomer(String customer) { this.customer = customer; @@ -412,10 +424,14 @@ public Builder setCustomer(String customer) { * *

Payment methods attached to other Customers cannot be used with this PaymentIntent. * - *

If present in combination with setup_future_usage, - * this PaymentIntent's payment method will be attached to the Customer after the PaymentIntent - * has been confirmed and any required actions from the user are complete. + *

If setup_future_usage + * is set and this PaymentIntent's payment method is not {@code card_present}, then the payment + * method attaches to the Customer after the PaymentIntent has been confirmed and any required + * actions from the user are complete. If the payment method is {@code card_present} and isn't a + * digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. */ public Builder setCustomer(EmptyParam customer) { this.customer = customer; @@ -651,12 +667,16 @@ public Builder setReceiptEmail(EmptyParam receiptEmail) { * can still be attached to a * Customer after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to dynamically * optimize your payment flow and comply with regional legislation and network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -675,12 +695,16 @@ public Builder setSetupFutureUsage( * can still be attached to a * Customer after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to dynamically * optimize your payment flow and comply with regional legislation and network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -11979,12 +12003,16 @@ public static class AcssDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12075,12 +12103,16 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12102,12 +12134,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -12397,12 +12433,16 @@ public static class Affirm { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12525,12 +12565,16 @@ public Builder setPreferredLocale(EmptyParam preferredLocale) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12609,12 +12653,16 @@ public static class AfterpayClearpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12744,12 +12792,16 @@ public Builder setReference(EmptyParam reference) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12807,12 +12859,16 @@ public static class Alipay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12878,12 +12934,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12905,12 +12965,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -12970,6 +13034,10 @@ public static class AmazonPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -13074,6 +13142,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -13097,6 +13169,10 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -13157,12 +13233,16 @@ public static class AuBecsDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13229,12 +13309,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13256,12 +13340,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -13311,12 +13399,16 @@ public static class BacsDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13383,12 +13475,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13410,12 +13506,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -13471,12 +13571,16 @@ public static class Bancontact { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13559,12 +13663,16 @@ public Builder setPreferredLanguage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13586,12 +13694,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -13666,12 +13778,16 @@ public static class Blik { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13761,12 +13877,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13787,12 +13907,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -13844,12 +13968,16 @@ public static class Boleto { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13931,12 +14059,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13958,12 +14090,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -14121,12 +14257,16 @@ public static class Card { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -14489,12 +14629,16 @@ public Builder setRequireCvcRecollection(Boolean requireCvcRecollection) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14515,12 +14659,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -16513,12 +16661,16 @@ public static class Cashapp { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -16621,12 +16773,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -16648,12 +16804,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -16729,12 +16889,16 @@ public static class CustomerBalance { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -16834,12 +16998,16 @@ public Builder setFundingType( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -17211,12 +17379,16 @@ public static class Eps { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -17282,12 +17454,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -17332,12 +17508,16 @@ public static class Fpx { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -17403,12 +17583,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -17453,12 +17637,16 @@ public static class Giropay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -17524,12 +17712,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -17575,12 +17767,16 @@ public static class Grabpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -17646,12 +17842,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -17697,12 +17897,16 @@ public static class Ideal { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -17768,12 +17972,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -17795,12 +18003,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -17924,12 +18136,16 @@ public static class Klarna { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -18045,12 +18261,16 @@ public Builder setPreferredLocale( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -18286,12 +18506,16 @@ public static class Konbini { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -18458,12 +18682,16 @@ public Builder setProductDescription(EmptyParam productDescription) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -18527,12 +18755,16 @@ public static class Link { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -18653,12 +18885,16 @@ public Builder setPersistentToken(EmptyParam persistentToken) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -18679,12 +18915,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -18756,12 +18996,16 @@ public static class Mobilepay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -18864,12 +19108,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -18927,12 +19175,16 @@ public static class Multibanco { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -18998,12 +19250,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -19057,12 +19313,16 @@ public static class Oxxo { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -19144,12 +19404,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -19194,12 +19458,16 @@ public static class P24 { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -19275,12 +19543,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -19331,12 +19603,16 @@ public static class Paynow { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -19402,12 +19678,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -19484,12 +19764,16 @@ public static class Paypal { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -19676,12 +19960,16 @@ public Builder setRiskCorrelationId(EmptyParam riskCorrelationId) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -19703,12 +19991,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -19875,12 +20167,16 @@ public static class Payto { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -19963,12 +20259,16 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -19990,12 +20290,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -20338,12 +20642,16 @@ public static class Pix { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -20437,12 +20745,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -20487,12 +20799,16 @@ public static class Promptpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -20558,12 +20874,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -20699,6 +21019,10 @@ public static class RevolutPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -20803,6 +21127,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -20826,6 +21154,10 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -20890,12 +21222,16 @@ public static class SepaDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -20975,12 +21311,16 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -21002,12 +21342,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -21122,12 +21466,16 @@ public static class Sofort { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -21213,12 +21561,16 @@ public Builder setPreferredLanguage(EmptyParam preferredLanguage) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -21240,12 +21592,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -21326,12 +21682,16 @@ public static class Swish { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -21413,12 +21773,16 @@ public Builder setReference(EmptyParam reference) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -21464,12 +21828,16 @@ public static class Twint { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -21535,12 +21903,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -21602,12 +21974,16 @@ public static class UsBankAccount { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -21742,12 +22118,16 @@ public Builder setPreferredSettlementSpeed(EmptyParam preferredSettlementSpeed) * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -21769,12 +22149,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -22635,12 +23019,16 @@ public static class WechatPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -22735,12 +23123,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -22804,12 +23196,16 @@ public static class Zip { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -22875,12 +23271,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java index 8819444c759..52bf3ef1608 100644 --- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java +++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java @@ -6145,6 +6145,10 @@ public static class AcssDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -6252,6 +6256,10 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -6593,6 +6601,10 @@ public static class Affirm { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -6660,6 +6672,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -6706,6 +6722,10 @@ public static class AfterpayClearpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -6773,6 +6793,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -6820,6 +6844,10 @@ public static class Alipay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -6887,6 +6915,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -6933,6 +6965,10 @@ public static class AmazonPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7000,6 +7036,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7049,6 +7089,10 @@ public static class AuBecsDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7116,6 +7160,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7163,6 +7211,10 @@ public static class BacsDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7230,6 +7282,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7282,6 +7338,10 @@ public static class Bancontact { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7349,6 +7409,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7403,6 +7467,10 @@ public static class Boleto { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7486,6 +7554,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7556,6 +7628,10 @@ public static class Card { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7690,6 +7766,10 @@ public Builder setRequestThreeDSecure( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7859,6 +7939,10 @@ public static class Cashapp { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7926,6 +8010,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7992,6 +8080,10 @@ public static class CustomerBalance { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8089,6 +8181,10 @@ public Builder setFundingType( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8445,6 +8541,10 @@ public static class Eps { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8512,6 +8612,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8558,6 +8662,10 @@ public static class Fpx { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8625,6 +8733,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8671,6 +8783,10 @@ public static class Giropay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8738,6 +8854,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8784,6 +8904,10 @@ public static class Grabpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8851,6 +8975,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8897,6 +9025,10 @@ public static class Ideal { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8964,6 +9096,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9010,6 +9146,10 @@ public static class Klarna { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9077,6 +9217,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9132,6 +9276,10 @@ public static class Konbini { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9216,6 +9364,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9262,6 +9414,10 @@ public static class Link { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9329,6 +9485,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9378,6 +9538,10 @@ public static class Mobilepay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9445,6 +9609,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9491,6 +9659,10 @@ public static class Multibanco { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9558,6 +9730,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9612,6 +9788,10 @@ public static class Oxxo { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9695,6 +9875,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9741,6 +9925,10 @@ public static class P24 { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9818,6 +10006,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9870,6 +10062,10 @@ public static class Paynow { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9937,6 +10133,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -10014,12 +10214,16 @@ public static class Paypal { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -10178,12 +10382,16 @@ public Builder setRiskCorrelationId(String riskCorrelationId) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -10204,12 +10412,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -10443,6 +10655,10 @@ public static class RevolutPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -10510,6 +10726,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -10559,6 +10779,10 @@ public static class SepaDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -10626,6 +10850,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -10678,6 +10906,10 @@ public static class Sofort { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -10745,6 +10977,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -10872,6 +11108,10 @@ public static class UsBankAccount { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -10964,6 +11204,10 @@ public Builder setFinancialConnections( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -11256,6 +11500,10 @@ public static class WechatPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -11345,6 +11593,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. From 4ed2187715383c802eff6e9e31a42d1798a6b05c Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 31 Jul 2024 16:48:50 +0000 Subject: [PATCH 06/11] Update generated code for v1165 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Invoice.java | 151 ++++++++ src/main/java/com/stripe/model/Quote.java | 25 +- .../param/InvoiceAttachPaymentParams.java | 357 ++++++++++++++++++ .../com/stripe/service/InvoiceService.java | 97 +++++ 5 files changed, 628 insertions(+), 4 deletions(-) create mode 100644 src/main/java/com/stripe/param/InvoiceAttachPaymentParams.java diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 69f220482f8..404e303aff8 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1163 \ No newline at end of file +v1165 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Invoice.java b/src/main/java/com/stripe/model/Invoice.java index 0da0f9ef489..8b6bec98484 100644 --- a/src/main/java/com/stripe/model/Invoice.java +++ b/src/main/java/com/stripe/model/Invoice.java @@ -13,6 +13,7 @@ import com.stripe.net.StripeResponseGetter; import com.stripe.param.InvoiceAddLinesParams; import com.stripe.param.InvoiceAttachPaymentIntentParams; +import com.stripe.param.InvoiceAttachPaymentParams; import com.stripe.param.InvoiceCreateParams; import com.stripe.param.InvoiceCreatePreviewParams; import com.stripe.param.InvoiceFinalizeInvoiceParams; @@ -1026,6 +1027,156 @@ public Invoice addLines(InvoiceAddLinesParams params, RequestOptions options) return getResponseGetter().request(request, Invoice.class); } + /** + * Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of + * {@code payments}. + * + *

For Out of Band Payment, the payment is credited to the invoice immediately, increasing the + * {@code amount_paid} of the invoice and subsequently transitioning the status of the invoice to + * {@code paid} if necessary. + * + *

For the PaymentIntent, when the PaymentIntent’s status changes to {@code succeeded}, the + * payment is credited to the invoice, increasing its {@code amount_paid}. When the invoice is + * fully paid, the invoice’s status becomes {@code paid}. + * + *

If the PaymentIntent’s status is already {@code succeeded} when it’s attached, it’s credited + * to the invoice immediately. + * + *

See: Create an invoice + * payment to learn more. + */ + public Invoice attachPayment() throws StripeException { + return attachPayment((Map) null, (RequestOptions) null); + } + + /** + * Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of + * {@code payments}. + * + *

For Out of Band Payment, the payment is credited to the invoice immediately, increasing the + * {@code amount_paid} of the invoice and subsequently transitioning the status of the invoice to + * {@code paid} if necessary. + * + *

For the PaymentIntent, when the PaymentIntent’s status changes to {@code succeeded}, the + * payment is credited to the invoice, increasing its {@code amount_paid}. When the invoice is + * fully paid, the invoice’s status becomes {@code paid}. + * + *

If the PaymentIntent’s status is already {@code succeeded} when it’s attached, it’s credited + * to the invoice immediately. + * + *

See: Create an invoice + * payment to learn more. + */ + public Invoice attachPayment(RequestOptions options) throws StripeException { + return attachPayment((Map) null, options); + } + + /** + * Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of + * {@code payments}. + * + *

For Out of Band Payment, the payment is credited to the invoice immediately, increasing the + * {@code amount_paid} of the invoice and subsequently transitioning the status of the invoice to + * {@code paid} if necessary. + * + *

For the PaymentIntent, when the PaymentIntent’s status changes to {@code succeeded}, the + * payment is credited to the invoice, increasing its {@code amount_paid}. When the invoice is + * fully paid, the invoice’s status becomes {@code paid}. + * + *

If the PaymentIntent’s status is already {@code succeeded} when it’s attached, it’s credited + * to the invoice immediately. + * + *

See: Create an invoice + * payment to learn more. + */ + public Invoice attachPayment(Map params) throws StripeException { + return attachPayment(params, (RequestOptions) null); + } + + /** + * Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of + * {@code payments}. + * + *

For Out of Band Payment, the payment is credited to the invoice immediately, increasing the + * {@code amount_paid} of the invoice and subsequently transitioning the status of the invoice to + * {@code paid} if necessary. + * + *

For the PaymentIntent, when the PaymentIntent’s status changes to {@code succeeded}, the + * payment is credited to the invoice, increasing its {@code amount_paid}. When the invoice is + * fully paid, the invoice’s status becomes {@code paid}. + * + *

If the PaymentIntent’s status is already {@code succeeded} when it’s attached, it’s credited + * to the invoice immediately. + * + *

See: Create an invoice + * payment to learn more. + */ + public Invoice attachPayment(Map params, RequestOptions options) + throws StripeException { + String path = + String.format("/v1/invoices/%s/attach_payment", ApiResource.urlEncodeId(this.getId())); + ApiRequest request = + new ApiRequest( + BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options, ApiMode.V1); + return getResponseGetter().request(request, Invoice.class); + } + + /** + * Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of + * {@code payments}. + * + *

For Out of Band Payment, the payment is credited to the invoice immediately, increasing the + * {@code amount_paid} of the invoice and subsequently transitioning the status of the invoice to + * {@code paid} if necessary. + * + *

For the PaymentIntent, when the PaymentIntent’s status changes to {@code succeeded}, the + * payment is credited to the invoice, increasing its {@code amount_paid}. When the invoice is + * fully paid, the invoice’s status becomes {@code paid}. + * + *

If the PaymentIntent’s status is already {@code succeeded} when it’s attached, it’s credited + * to the invoice immediately. + * + *

See: Create an invoice + * payment to learn more. + */ + public Invoice attachPayment(InvoiceAttachPaymentParams params) throws StripeException { + return attachPayment(params, (RequestOptions) null); + } + + /** + * Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of + * {@code payments}. + * + *

For Out of Band Payment, the payment is credited to the invoice immediately, increasing the + * {@code amount_paid} of the invoice and subsequently transitioning the status of the invoice to + * {@code paid} if necessary. + * + *

For the PaymentIntent, when the PaymentIntent’s status changes to {@code succeeded}, the + * payment is credited to the invoice, increasing its {@code amount_paid}. When the invoice is + * fully paid, the invoice’s status becomes {@code paid}. + * + *

If the PaymentIntent’s status is already {@code succeeded} when it’s attached, it’s credited + * to the invoice immediately. + * + *

See: Create an invoice + * payment to learn more. + */ + public Invoice attachPayment(InvoiceAttachPaymentParams params, RequestOptions options) + throws StripeException { + String path = + String.format("/v1/invoices/%s/attach_payment", ApiResource.urlEncodeId(this.getId())); + ApiResource.checkNullTypedParams(path, params); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options, + ApiMode.V1); + return getResponseGetter().request(request, Invoice.class); + } + /** * Attaches a PaymentIntent to the invoice, adding it to the list of {@code payments}. When the * PaymentIntent’s status changes to {@code succeeded}, the payment is credited to the invoice, diff --git a/src/main/java/com/stripe/model/Quote.java b/src/main/java/com/stripe/model/Quote.java index 81a3b08b788..9b93d1dc4d5 100644 --- a/src/main/java/com/stripe/model/Quote.java +++ b/src/main/java/com/stripe/model/Quote.java @@ -1758,6 +1758,12 @@ public static class LastReason extends StripeObject { @SerializedName("line_invalid") String lineInvalid; + /** + * The IDs of the lines that are invalid if the stale reason type is {@code lines_invalid}. + */ + @SerializedName("lines_invalid") + List linesInvalid; + /** The user supplied mark stale reason. */ @SerializedName("marked_stale") String markedStale; @@ -1788,14 +1794,27 @@ public static class LastReason extends StripeObject { * The reason the quote was marked as stale. * *

One of {@code accept_failed_validations}, {@code bill_on_acceptance_invalid}, {@code - * line_invalid}, {@code marked_stale}, {@code subscription_canceled}, {@code - * subscription_changed}, {@code subscription_expired}, {@code - * subscription_schedule_canceled}, {@code subscription_schedule_changed}, or {@code + * line_invalid}, {@code lines_invalid}, {@code marked_stale}, {@code + * subscription_canceled}, {@code subscription_changed}, {@code subscription_expired}, + * {@code subscription_schedule_canceled}, {@code subscription_schedule_changed}, or {@code * subscription_schedule_released}. */ @SerializedName("type") String type; + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class LinesInvalid extends StripeObject { + /** The timestamp at which the lines were marked as invalid. */ + @SerializedName("invalid_at") + Long invalidAt; + + /** The list of lines that became invalid at the given timestamp. */ + @SerializedName("lines") + List lines; + } + @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/param/InvoiceAttachPaymentParams.java b/src/main/java/com/stripe/param/InvoiceAttachPaymentParams.java new file mode 100644 index 00000000000..88b0c71a46b --- /dev/null +++ b/src/main/java/com/stripe/param/InvoiceAttachPaymentParams.java @@ -0,0 +1,357 @@ +// File generated from our OpenAPI spec +package com.stripe.param; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import com.stripe.param.common.EmptyParam; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.Getter; + +@Getter +public class InvoiceAttachPaymentParams extends ApiRequestParams { + /** + * The portion of the {@code amount} on the PaymentIntent or out of band payment to apply to this + * invoice. It defaults to the entire amount. + */ + @SerializedName("amount_requested") + Long amountRequested; + + /** Specifies which fields in the response should be expanded. */ + @SerializedName("expand") + List expand; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** The out of band payment to attach to the invoice. */ + @SerializedName("out_of_band_payment") + OutOfBandPayment outOfBandPayment; + + /** The ID of the PaymentIntent to attach to the invoice. */ + @SerializedName("payment_intent") + String paymentIntent; + + private InvoiceAttachPaymentParams( + Long amountRequested, + List expand, + Map extraParams, + OutOfBandPayment outOfBandPayment, + String paymentIntent) { + this.amountRequested = amountRequested; + this.expand = expand; + this.extraParams = extraParams; + this.outOfBandPayment = outOfBandPayment; + this.paymentIntent = paymentIntent; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Long amountRequested; + + private List expand; + + private Map extraParams; + + private OutOfBandPayment outOfBandPayment; + + private String paymentIntent; + + /** Finalize and obtain parameter instance from this builder. */ + public InvoiceAttachPaymentParams build() { + return new InvoiceAttachPaymentParams( + this.amountRequested, + this.expand, + this.extraParams, + this.outOfBandPayment, + this.paymentIntent); + } + + /** + * The portion of the {@code amount} on the PaymentIntent or out of band payment to apply to + * this invoice. It defaults to the entire amount. + */ + public Builder setAmountRequested(Long amountRequested) { + this.amountRequested = amountRequested; + return this; + } + + /** + * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * InvoiceAttachPaymentParams#expand} for the field documentation. + */ + public Builder addExpand(String element) { + if (this.expand == null) { + this.expand = new ArrayList<>(); + } + this.expand.add(element); + return this; + } + + /** + * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and + * subsequent calls adds additional elements to the original list. See {@link + * InvoiceAttachPaymentParams#expand} for the field documentation. + */ + public Builder addAllExpand(List elements) { + if (this.expand == null) { + this.expand = new ArrayList<>(); + } + this.expand.addAll(elements); + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * InvoiceAttachPaymentParams#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link InvoiceAttachPaymentParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** The out of band payment to attach to the invoice. */ + public Builder setOutOfBandPayment( + InvoiceAttachPaymentParams.OutOfBandPayment outOfBandPayment) { + this.outOfBandPayment = outOfBandPayment; + return this; + } + + /** The ID of the PaymentIntent to attach to the invoice. */ + public Builder setPaymentIntent(String paymentIntent) { + this.paymentIntent = paymentIntent; + return this; + } + } + + @Getter + public static class OutOfBandPayment { + /** Required. The amount that was paid out of band. */ + @SerializedName("amount") + Long amount; + + /** Required. The currency that was paid out of band. */ + @SerializedName("currency") + String currency; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * 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. Individual keys can be unset by posting an empty value to them. All keys + * can be unset by posting an empty value to {@code metadata}. + */ + @SerializedName("metadata") + Object metadata; + + /** + * Required. The type of money movement for this out of band payment record. + */ + @SerializedName("money_movement_type") + String moneyMovementType; + + /** The timestamp when this out of band payment was paid. */ + @SerializedName("paid_at") + Long paidAt; + + /** The reference for this out of band payment record. */ + @SerializedName("payment_reference") + String paymentReference; + + private OutOfBandPayment( + Long amount, + String currency, + Map extraParams, + Object metadata, + String moneyMovementType, + Long paidAt, + String paymentReference) { + this.amount = amount; + this.currency = currency; + this.extraParams = extraParams; + this.metadata = metadata; + this.moneyMovementType = moneyMovementType; + this.paidAt = paidAt; + this.paymentReference = paymentReference; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Long amount; + + private String currency; + + private Map extraParams; + + private Object metadata; + + private String moneyMovementType; + + private Long paidAt; + + private String paymentReference; + + /** Finalize and obtain parameter instance from this builder. */ + public InvoiceAttachPaymentParams.OutOfBandPayment build() { + return new InvoiceAttachPaymentParams.OutOfBandPayment( + this.amount, + this.currency, + this.extraParams, + this.metadata, + this.moneyMovementType, + this.paidAt, + this.paymentReference); + } + + /** Required. The amount that was paid out of band. */ + public Builder setAmount(Long amount) { + this.amount = amount; + return this; + } + + /** Required. The currency that was paid out of band. */ + public Builder setCurrency(String currency) { + this.currency = currency; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * InvoiceAttachPaymentParams.OutOfBandPayment#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link InvoiceAttachPaymentParams.OutOfBandPayment#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * InvoiceAttachPaymentParams.OutOfBandPayment#metadata} for the field documentation. + */ + @SuppressWarnings("unchecked") + public Builder putMetadata(String key, String value) { + if (this.metadata == null || this.metadata instanceof EmptyParam) { + this.metadata = new HashMap(); + } + ((Map) this.metadata).put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `metadata` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link InvoiceAttachPaymentParams.OutOfBandPayment#metadata} for the field + * documentation. + */ + @SuppressWarnings("unchecked") + public Builder putAllMetadata(Map map) { + if (this.metadata == null || this.metadata instanceof EmptyParam) { + this.metadata = new HashMap(); + } + ((Map) this.metadata).putAll(map); + return this; + } + + /** + * 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. Individual keys can be unset by posting an empty value to them. All + * keys can be unset by posting an empty value to {@code metadata}. + */ + public Builder setMetadata(EmptyParam metadata) { + this.metadata = metadata; + return this; + } + + /** + * 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. Individual keys can be unset by posting an empty value to them. All + * keys can be unset by posting an empty value to {@code metadata}. + */ + public Builder setMetadata(Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Required. The type of money movement for this out of band payment record. + */ + public Builder setMoneyMovementType(String moneyMovementType) { + this.moneyMovementType = moneyMovementType; + return this; + } + + /** The timestamp when this out of band payment was paid. */ + public Builder setPaidAt(Long paidAt) { + this.paidAt = paidAt; + return this; + } + + /** The reference for this out of band payment record. */ + public Builder setPaymentReference(String paymentReference) { + this.paymentReference = paymentReference; + return this; + } + } + } +} diff --git a/src/main/java/com/stripe/service/InvoiceService.java b/src/main/java/com/stripe/service/InvoiceService.java index 11b5639625c..0cb2bb68a91 100644 --- a/src/main/java/com/stripe/service/InvoiceService.java +++ b/src/main/java/com/stripe/service/InvoiceService.java @@ -16,6 +16,7 @@ import com.stripe.net.StripeResponseGetter; import com.stripe.param.InvoiceAddLinesParams; import com.stripe.param.InvoiceAttachPaymentIntentParams; +import com.stripe.param.InvoiceAttachPaymentParams; import com.stripe.param.InvoiceCreateParams; import com.stripe.param.InvoiceCreatePreviewParams; import com.stripe.param.InvoiceFinalizeInvoiceParams; @@ -393,6 +394,102 @@ public Invoice addLines(String invoice, InvoiceAddLinesParams params, RequestOpt ApiMode.V1); return this.request(request, Invoice.class); } + /** + * Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of + * {@code payments}. + * + *

For Out of Band Payment, the payment is credited to the invoice immediately, increasing the + * {@code amount_paid} of the invoice and subsequently transitioning the status of the invoice to + * {@code paid} if necessary. + * + *

For the PaymentIntent, when the PaymentIntent’s status changes to {@code succeeded}, the + * payment is credited to the invoice, increasing its {@code amount_paid}. When the invoice is + * fully paid, the invoice’s status becomes {@code paid}. + * + *

If the PaymentIntent’s status is already {@code succeeded} when it’s attached, it’s credited + * to the invoice immediately. + * + *

See: Create an invoice + * payment to learn more. + */ + public Invoice attachPayment(String invoice, InvoiceAttachPaymentParams params) + throws StripeException { + return attachPayment(invoice, params, (RequestOptions) null); + } + /** + * Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of + * {@code payments}. + * + *

For Out of Band Payment, the payment is credited to the invoice immediately, increasing the + * {@code amount_paid} of the invoice and subsequently transitioning the status of the invoice to + * {@code paid} if necessary. + * + *

For the PaymentIntent, when the PaymentIntent’s status changes to {@code succeeded}, the + * payment is credited to the invoice, increasing its {@code amount_paid}. When the invoice is + * fully paid, the invoice’s status becomes {@code paid}. + * + *

If the PaymentIntent’s status is already {@code succeeded} when it’s attached, it’s credited + * to the invoice immediately. + * + *

See: Create an invoice + * payment to learn more. + */ + public Invoice attachPayment(String invoice, RequestOptions options) throws StripeException { + return attachPayment(invoice, (InvoiceAttachPaymentParams) null, options); + } + /** + * Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of + * {@code payments}. + * + *

For Out of Band Payment, the payment is credited to the invoice immediately, increasing the + * {@code amount_paid} of the invoice and subsequently transitioning the status of the invoice to + * {@code paid} if necessary. + * + *

For the PaymentIntent, when the PaymentIntent’s status changes to {@code succeeded}, the + * payment is credited to the invoice, increasing its {@code amount_paid}. When the invoice is + * fully paid, the invoice’s status becomes {@code paid}. + * + *

If the PaymentIntent’s status is already {@code succeeded} when it’s attached, it’s credited + * to the invoice immediately. + * + *

See: Create an invoice + * payment to learn more. + */ + public Invoice attachPayment(String invoice) throws StripeException { + return attachPayment(invoice, (InvoiceAttachPaymentParams) null, (RequestOptions) null); + } + /** + * Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of + * {@code payments}. + * + *

For Out of Band Payment, the payment is credited to the invoice immediately, increasing the + * {@code amount_paid} of the invoice and subsequently transitioning the status of the invoice to + * {@code paid} if necessary. + * + *

For the PaymentIntent, when the PaymentIntent’s status changes to {@code succeeded}, the + * payment is credited to the invoice, increasing its {@code amount_paid}. When the invoice is + * fully paid, the invoice’s status becomes {@code paid}. + * + *

If the PaymentIntent’s status is already {@code succeeded} when it’s attached, it’s credited + * to the invoice immediately. + * + *

See: Create an invoice + * payment to learn more. + */ + public Invoice attachPayment( + String invoice, InvoiceAttachPaymentParams params, RequestOptions options) + throws StripeException { + String path = String.format("/v1/invoices/%s/attach_payment", ApiResource.urlEncodeId(invoice)); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options, + ApiMode.V1); + return this.request(request, Invoice.class); + } /** * Attaches a PaymentIntent to the invoice, adding it to the list of {@code payments}. When the * PaymentIntent’s status changes to {@code succeeded}, the payment is credited to the invoice, From c6490f67e7435eef0fc7119396d1d50a4247fa06 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 31 Jul 2024 18:44:42 +0000 Subject: [PATCH 07/11] Update generated code for v1166 --- OPENAPI_VERSION | 2 +- .../java/com/stripe/model/StripeError.java | 47 ++++++++++--------- 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 404e303aff8..20d9fb7b9e4 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1165 \ No newline at end of file +v1166 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/StripeError.java b/src/main/java/com/stripe/model/StripeError.java index 17700823c8c..621644922d9 100644 --- a/src/main/java/com/stripe/model/StripeError.java +++ b/src/main/java/com/stripe/model/StripeError.java @@ -32,29 +32,30 @@ public class StripeError extends StripeObject { * card_decline_rate_limit_exceeded}, {@code card_declined}, {@code * cardholder_phone_number_required}, {@code charge_already_captured}, {@code * charge_already_refunded}, {@code charge_disputed}, {@code charge_exceeds_source_limit}, {@code - * charge_expired_for_capture}, {@code charge_invalid_parameter}, {@code charge_not_refundable}, - * {@code clearing_code_unsupported}, {@code country_code_invalid}, {@code country_unsupported}, - * {@code coupon_expired}, {@code customer_max_payment_methods}, {@code - * customer_max_subscriptions}, {@code customer_tax_location_invalid}, {@code - * debit_not_authorized}, {@code email_invalid}, {@code expired_card}, {@code - * financial_connections_account_inactive}, {@code financial_connections_institution_unavailable}, - * {@code financial_connections_no_successful_transaction_refresh}, {@code - * forwarding_api_inactive}, {@code forwarding_api_invalid_parameter}, {@code - * forwarding_api_upstream_connection_error}, {@code forwarding_api_upstream_connection_timeout}, - * {@code gift_card_balance_insufficient}, {@code gift_card_code_exists}, {@code - * gift_card_inactive}, {@code idempotency_key_in_use}, {@code incorrect_address}, {@code - * incorrect_cvc}, {@code incorrect_number}, {@code incorrect_zip}, {@code - * instant_payouts_config_disabled}, {@code instant_payouts_currency_disabled}, {@code - * instant_payouts_limit_exceeded}, {@code instant_payouts_unsupported}, {@code - * insufficient_funds}, {@code intent_invalid_state}, {@code intent_verification_method_missing}, - * {@code invalid_card_type}, {@code invalid_characters}, {@code invalid_charge_amount}, {@code - * invalid_cvc}, {@code invalid_expiry_month}, {@code invalid_expiry_year}, {@code - * invalid_number}, {@code invalid_source_usage}, {@code invalid_tax_location}, {@code - * invoice_no_customer_line_items}, {@code invoice_no_payment_method_types}, {@code - * invoice_no_subscription_line_items}, {@code invoice_not_editable}, {@code - * invoice_on_behalf_of_not_editable}, {@code invoice_payment_intent_requires_action}, {@code - * invoice_upcoming_none}, {@code livemode_mismatch}, {@code lock_timeout}, {@code missing}, - * {@code no_account}, {@code not_allowed_on_standard_account}, {@code out_of_inventory}, {@code + * charge_exceeds_transaction_limit}, {@code charge_expired_for_capture}, {@code + * charge_invalid_parameter}, {@code charge_not_refundable}, {@code clearing_code_unsupported}, + * {@code country_code_invalid}, {@code country_unsupported}, {@code coupon_expired}, {@code + * customer_max_payment_methods}, {@code customer_max_subscriptions}, {@code + * customer_tax_location_invalid}, {@code debit_not_authorized}, {@code email_invalid}, {@code + * expired_card}, {@code financial_connections_account_inactive}, {@code + * financial_connections_institution_unavailable}, {@code + * financial_connections_no_successful_transaction_refresh}, {@code forwarding_api_inactive}, + * {@code forwarding_api_invalid_parameter}, {@code forwarding_api_upstream_connection_error}, + * {@code forwarding_api_upstream_connection_timeout}, {@code gift_card_balance_insufficient}, + * {@code gift_card_code_exists}, {@code gift_card_inactive}, {@code idempotency_key_in_use}, + * {@code incorrect_address}, {@code incorrect_cvc}, {@code incorrect_number}, {@code + * incorrect_zip}, {@code instant_payouts_config_disabled}, {@code + * instant_payouts_currency_disabled}, {@code instant_payouts_limit_exceeded}, {@code + * instant_payouts_unsupported}, {@code insufficient_funds}, {@code intent_invalid_state}, {@code + * intent_verification_method_missing}, {@code invalid_card_type}, {@code invalid_characters}, + * {@code invalid_charge_amount}, {@code invalid_cvc}, {@code invalid_expiry_month}, {@code + * invalid_expiry_year}, {@code invalid_number}, {@code invalid_source_usage}, {@code + * invalid_tax_location}, {@code invoice_no_customer_line_items}, {@code + * invoice_no_payment_method_types}, {@code invoice_no_subscription_line_items}, {@code + * invoice_not_editable}, {@code invoice_on_behalf_of_not_editable}, {@code + * invoice_payment_intent_requires_action}, {@code invoice_upcoming_none}, {@code + * livemode_mismatch}, {@code lock_timeout}, {@code missing}, {@code no_account}, {@code + * not_allowed_on_standard_account}, {@code out_of_inventory}, {@code * ownership_declaration_not_allowed}, {@code parameter_invalid_empty}, {@code * parameter_invalid_integer}, {@code parameter_invalid_string_blank}, {@code * parameter_invalid_string_empty}, {@code parameter_missing}, {@code parameter_unknown}, {@code From ae9892c1c670f5484eca9f2b8225e592355d697e Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 31 Jul 2024 22:46:39 +0000 Subject: [PATCH 08/11] Update generated code for v1167 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Dispute.java | 10 - .../com/stripe/model/checkout/Session.java | 5 +- .../param/AccountSessionCreateParams.java | 417 ++++++++++++++++++ 4 files changed, 422 insertions(+), 12 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 20d9fb7b9e4..472b52dc732 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1166 \ No newline at end of file +v1167 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Dispute.java b/src/main/java/com/stripe/model/Dispute.java index ec041dea5c8..4ae2b714689 100644 --- a/src/main/java/com/stripe/model/Dispute.java +++ b/src/main/java/com/stripe/model/Dispute.java @@ -1009,16 +1009,6 @@ public static class EnhancedEligibility extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class VisaCompellingEvidence3 extends StripeObject { - /** - * Rejection reason for evidence submitted as Visa Compelling Evidence 3.0 to Visa and - * rejected by Visa. - * - *

One of {@code fraudulent_prior_transaction}, {@code other}, or {@code - * visa_internal_error}. - */ - @SerializedName("partner_rejected_details") - String partnerRejectedDetails; - /** * List of actions required to qualify dispute for Visa Compelling Evidence 3.0 evidence * submission. diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java index 09cd33d3293..57ae93daca4 100644 --- a/src/main/java/com/stripe/model/checkout/Session.java +++ b/src/main/java/com/stripe/model/checkout/Session.java @@ -127,7 +127,10 @@ public class Session extends ApiResource implements HasId, MetadataStoreAdaptive Pricing sessions + */ @SerializedName("currency_conversion") CurrencyConversion currencyConversion; diff --git a/src/main/java/com/stripe/param/AccountSessionCreateParams.java b/src/main/java/com/stripe/param/AccountSessionCreateParams.java index b0194d94523..59a7c3f74cd 100644 --- a/src/main/java/com/stripe/param/AccountSessionCreateParams.java +++ b/src/main/java/com/stripe/param/AccountSessionCreateParams.java @@ -3,6 +3,7 @@ import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; +import com.stripe.param.common.EmptyParam; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -142,6 +143,14 @@ public static class Components { @SerializedName("account_onboarding") AccountOnboarding accountOnboarding; + /** Configuration for the app install component. */ + @SerializedName("app_install") + AppInstall appInstall; + + /** Configuration for the app viewport component. */ + @SerializedName("app_viewport") + AppViewport appViewport; + /** Configuration for the balances embedded component. */ @SerializedName("balances") Balances balances; @@ -217,6 +226,8 @@ public static class Components { private Components( AccountManagement accountManagement, AccountOnboarding accountOnboarding, + AppInstall appInstall, + AppViewport appViewport, Balances balances, CapitalFinancingPromotion capitalFinancingPromotion, CapitalOverview capitalOverview, @@ -236,6 +247,8 @@ private Components( TaxSettings taxSettings) { this.accountManagement = accountManagement; this.accountOnboarding = accountOnboarding; + this.appInstall = appInstall; + this.appViewport = appViewport; this.balances = balances; this.capitalFinancingPromotion = capitalFinancingPromotion; this.capitalOverview = capitalOverview; @@ -264,6 +277,10 @@ public static class Builder { private AccountOnboarding accountOnboarding; + private AppInstall appInstall; + + private AppViewport appViewport; + private Balances balances; private CapitalFinancingPromotion capitalFinancingPromotion; @@ -303,6 +320,8 @@ public AccountSessionCreateParams.Components build() { return new AccountSessionCreateParams.Components( this.accountManagement, this.accountOnboarding, + this.appInstall, + this.appViewport, this.balances, this.capitalFinancingPromotion, this.capitalOverview, @@ -336,6 +355,18 @@ public Builder setAccountOnboarding( return this; } + /** Configuration for the app install component. */ + public Builder setAppInstall(AccountSessionCreateParams.Components.AppInstall appInstall) { + this.appInstall = appInstall; + return this; + } + + /** Configuration for the app viewport component. */ + public Builder setAppViewport(AccountSessionCreateParams.Components.AppViewport appViewport) { + this.appViewport = appViewport; + return this; + } + /** Configuration for the balances embedded component. */ public Builder setBalances(AccountSessionCreateParams.Components.Balances balances) { this.balances = balances; @@ -809,6 +840,392 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class AppInstall { + /** Required. Whether the embedded component is enabled. */ + @SerializedName("enabled") + Boolean enabled; + + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** The list of features enabled in the embedded component. */ + @SerializedName("features") + Features features; + + private AppInstall(Boolean enabled, Map extraParams, Features features) { + this.enabled = enabled; + this.extraParams = extraParams; + this.features = features; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Boolean enabled; + + private Map extraParams; + + private Features features; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountSessionCreateParams.Components.AppInstall build() { + return new AccountSessionCreateParams.Components.AppInstall( + this.enabled, this.extraParams, this.features); + } + + /** Required. Whether the embedded component is enabled. */ + public Builder setEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountSessionCreateParams.Components.AppInstall#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountSessionCreateParams.Components.AppInstall#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** The list of features enabled in the embedded component. */ + public Builder setFeatures( + AccountSessionCreateParams.Components.AppInstall.Features features) { + this.features = features; + return this; + } + } + + @Getter + public static class Features { + /** List of apps allowed to be enabled for this account session. */ + @SerializedName("allowed_apps") + Object allowedApps; + + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private Features(Object allowedApps, Map extraParams) { + this.allowedApps = allowedApps; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object allowedApps; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountSessionCreateParams.Components.AppInstall.Features build() { + return new AccountSessionCreateParams.Components.AppInstall.Features( + this.allowedApps, this.extraParams); + } + + /** + * Add an element to `allowedApps` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountSessionCreateParams.Components.AppInstall.Features#allowedApps} for the field + * documentation. + */ + @SuppressWarnings("unchecked") + public Builder addAllowedApp(String element) { + if (this.allowedApps == null || this.allowedApps instanceof EmptyParam) { + this.allowedApps = new ArrayList(); + } + ((List) this.allowedApps).add(element); + return this; + } + + /** + * Add all elements to `allowedApps` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. + * See {@link AccountSessionCreateParams.Components.AppInstall.Features#allowedApps} for + * the field documentation. + */ + @SuppressWarnings("unchecked") + public Builder addAllAllowedApp(List elements) { + if (this.allowedApps == null || this.allowedApps instanceof EmptyParam) { + this.allowedApps = new ArrayList(); + } + ((List) this.allowedApps).addAll(elements); + return this; + } + + /** List of apps allowed to be enabled for this account session. */ + public Builder setAllowedApps(EmptyParam allowedApps) { + this.allowedApps = allowedApps; + return this; + } + + /** List of apps allowed to be enabled for this account session. */ + public Builder setAllowedApps(List allowedApps) { + this.allowedApps = allowedApps; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountSessionCreateParams.Components.AppInstall.Features#extraParams} + * for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountSessionCreateParams.Components.AppInstall.Features#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } + } + + @Getter + public static class AppViewport { + /** Required. Whether the embedded component is enabled. */ + @SerializedName("enabled") + Boolean enabled; + + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** The list of features enabled in the embedded component. */ + @SerializedName("features") + Features features; + + private AppViewport(Boolean enabled, Map extraParams, Features features) { + this.enabled = enabled; + this.extraParams = extraParams; + this.features = features; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Boolean enabled; + + private Map extraParams; + + private Features features; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountSessionCreateParams.Components.AppViewport build() { + return new AccountSessionCreateParams.Components.AppViewport( + this.enabled, this.extraParams, this.features); + } + + /** Required. Whether the embedded component is enabled. */ + public Builder setEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountSessionCreateParams.Components.AppViewport#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountSessionCreateParams.Components.AppViewport#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** The list of features enabled in the embedded component. */ + public Builder setFeatures( + AccountSessionCreateParams.Components.AppViewport.Features features) { + this.features = features; + return this; + } + } + + @Getter + public static class Features { + /** List of apps allowed to be enabled for this account session. */ + @SerializedName("allowed_apps") + Object allowedApps; + + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private Features(Object allowedApps, Map extraParams) { + this.allowedApps = allowedApps; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Object allowedApps; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountSessionCreateParams.Components.AppViewport.Features build() { + return new AccountSessionCreateParams.Components.AppViewport.Features( + this.allowedApps, this.extraParams); + } + + /** + * Add an element to `allowedApps` list. A list is initialized for the first `add/addAll` + * call, and subsequent calls adds additional elements to the original list. See {@link + * AccountSessionCreateParams.Components.AppViewport.Features#allowedApps} for the field + * documentation. + */ + @SuppressWarnings("unchecked") + public Builder addAllowedApp(String element) { + if (this.allowedApps == null || this.allowedApps instanceof EmptyParam) { + this.allowedApps = new ArrayList(); + } + ((List) this.allowedApps).add(element); + return this; + } + + /** + * Add all elements to `allowedApps` list. A list is initialized for the first + * `add/addAll` call, and subsequent calls adds additional elements to the original list. + * See {@link AccountSessionCreateParams.Components.AppViewport.Features#allowedApps} for + * the field documentation. + */ + @SuppressWarnings("unchecked") + public Builder addAllAllowedApp(List elements) { + if (this.allowedApps == null || this.allowedApps instanceof EmptyParam) { + this.allowedApps = new ArrayList(); + } + ((List) this.allowedApps).addAll(elements); + return this; + } + + /** List of apps allowed to be enabled for this account session. */ + public Builder setAllowedApps(EmptyParam allowedApps) { + this.allowedApps = allowedApps; + return this; + } + + /** List of apps allowed to be enabled for this account session. */ + public Builder setAllowedApps(List allowedApps) { + this.allowedApps = allowedApps; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountSessionCreateParams.Components.AppViewport.Features#extraParams} + * for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountSessionCreateParams.Components.AppViewport.Features#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } + } + @Getter public static class Balances { /** Required. Whether the embedded component is enabled. */ From d6dbb547b93c706b4f1d8b25300f11e72dfabeb7 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 18:34:02 +0000 Subject: [PATCH 09/11] Update generated code for v1169 --- OPENAPI_VERSION | 2 +- .../com/stripe/param/SubscriptionCreateParams.java | 10 ++++++++-- .../com/stripe/param/SubscriptionItemUpdateParams.java | 10 ++++++++-- .../com/stripe/param/SubscriptionUpdateParams.java | 10 ++++++++-- 4 files changed, 25 insertions(+), 7 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 472b52dc732..03029e1c8f8 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1167 \ No newline at end of file +v1169 \ No newline at end of file diff --git a/src/main/java/com/stripe/param/SubscriptionCreateParams.java b/src/main/java/com/stripe/param/SubscriptionCreateParams.java index 576eb8e39db..df3298c4c07 100644 --- a/src/main/java/com/stripe/param/SubscriptionCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionCreateParams.java @@ -198,7 +198,10 @@ public class SubscriptionCreateParams extends ApiRequestParams { @SerializedName("metadata") Object metadata; - /** Indicates if a customer is on or off-session while an invoice payment is attempted. */ + /** + * Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to + * {@code false} (on-session). + */ @SerializedName("off_session") Boolean offSession; @@ -958,7 +961,10 @@ public Builder setMetadata(Map metadata) { return this; } - /** Indicates if a customer is on or off-session while an invoice payment is attempted. */ + /** + * Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults + * to {@code false} (on-session). + */ public Builder setOffSession(Boolean offSession) { this.offSession = offSession; return this; diff --git a/src/main/java/com/stripe/param/SubscriptionItemUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionItemUpdateParams.java index 6b66c9aae25..4c80262d9ae 100644 --- a/src/main/java/com/stripe/param/SubscriptionItemUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionItemUpdateParams.java @@ -46,7 +46,10 @@ public class SubscriptionItemUpdateParams extends ApiRequestParams { @SerializedName("metadata") Object metadata; - /** Indicates if a customer is on or off-session while an invoice payment is attempted. */ + /** + * Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to + * {@code false} (on-session). + */ @SerializedName("off_session") Boolean offSession; @@ -376,7 +379,10 @@ public Builder setMetadata(Map metadata) { return this; } - /** Indicates if a customer is on or off-session while an invoice payment is attempted. */ + /** + * Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults + * to {@code false} (on-session). + */ public Builder setOffSession(Boolean offSession) { this.offSession = offSession; return this; diff --git a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java index c7e4db066c7..8b23a15470c 100644 --- a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java @@ -174,7 +174,10 @@ public class SubscriptionUpdateParams extends ApiRequestParams { @SerializedName("metadata") Object metadata; - /** Indicates if a customer is on or off-session while an invoice payment is attempted. */ + /** + * Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to + * {@code false} (on-session). + */ @SerializedName("off_session") Boolean offSession; @@ -956,7 +959,10 @@ public Builder setMetadata(Map metadata) { return this; } - /** Indicates if a customer is on or off-session while an invoice payment is attempted. */ + /** + * Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults + * to {@code false} (on-session). + */ public Builder setOffSession(Boolean offSession) { this.offSession = offSession; return this; From 71b1c2bac94f8bd9bfe4072abe43c5e180bc96b4 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 17:17:29 -0400 Subject: [PATCH 10/11] Update generated code (#1841) * Update generated code for v1157 * Update generated code for v1158 * Update generated code for v1159 * Update generated code for v1160 * Update generated code for v1162 * Update generated code for v1163 * Update generated code for v1166 * Update generated code for v1167 * Update generated code for v1169 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Charge.java | 7 +- src/main/java/com/stripe/model/Event.java | 32 +- .../stripe/model/EventDataClassLookup.java | 2 + .../java/com/stripe/model/PaymentIntent.java | 164 ++++- .../java/com/stripe/model/SetupIntent.java | 7 +- .../java/com/stripe/model/StripeError.java | 12 +- .../java/com/stripe/model/billing/Alert.java | 153 +++++ .../stripe/model/billing/AlertTriggered.java | 48 ++ .../com/stripe/model/checkout/Session.java | 125 +++- .../model/financialconnections/Account.java | 7 +- .../param/PaymentIntentConfirmParams.java | 552 +++++++++++++--- .../param/PaymentIntentCreateParams.java | 566 ++++++++++++++--- .../param/PaymentIntentUpdateParams.java | 597 +++++++++++++++--- .../stripe/param/SetupIntentUpdateParams.java | 6 +- .../param/SubscriptionCreateParams.java | 10 +- .../param/SubscriptionItemUpdateParams.java | 10 +- .../param/SubscriptionUpdateParams.java | 10 +- .../param/WebhookEndpointCreateParams.java | 3 + .../param/WebhookEndpointUpdateParams.java | 3 + .../param/checkout/SessionCreateParams.java | 258 +++++++- 21 files changed, 2241 insertions(+), 333 deletions(-) create mode 100644 src/main/java/com/stripe/model/billing/Alert.java create mode 100644 src/main/java/com/stripe/model/billing/AlertTriggered.java diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 0692ea66267..03029e1c8f8 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1155 \ No newline at end of file +v1169 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index 4ae95ca6a93..19faafc69f1 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -101,7 +101,8 @@ public class Charge extends ApiResource implements MetadataStore, Balanc /** * The full statement descriptor that is passed to card networks, and that is displayed on your * customers' credit card and bank statements. Allows you to see what the statement descriptor - * looks like after the static and dynamic portions are combined. + * looks like after the static and dynamic portions are combined. This only works for card + * payments. */ @SerializedName("calculated_statement_descriptor") String calculatedStatementDescriptor; @@ -1567,10 +1568,6 @@ public static class Card extends StripeObject { @SerializedName("amount_authorized") Long amountAuthorized; - /** Authorization code on the charge. */ - @SerializedName("authorization_code") - String authorizationCode; - /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. diff --git a/src/main/java/com/stripe/model/Event.java b/src/main/java/com/stripe/model/Event.java index 017aa2b9329..5d261353bae 100644 --- a/src/main/java/com/stripe/model/Event.java +++ b/src/main/java/com/stripe/model/Event.java @@ -107,22 +107,22 @@ public class Event extends ApiResource implements HasId { * {@code account.external_account.created}, {@code account.external_account.deleted}, {@code * account.external_account.updated}, {@code account.updated}, {@code application_fee.created}, * {@code application_fee.refund.updated}, {@code application_fee.refunded}, {@code - * balance.available}, {@code billing_portal.configuration.created}, {@code - * billing_portal.configuration.updated}, {@code billing_portal.session.created}, {@code - * capability.updated}, {@code cash_balance.funds_available}, {@code charge.captured}, {@code - * charge.dispute.closed}, {@code charge.dispute.created}, {@code - * charge.dispute.funds_reinstated}, {@code charge.dispute.funds_withdrawn}, {@code - * charge.dispute.updated}, {@code charge.expired}, {@code charge.failed}, {@code charge.pending}, - * {@code charge.refund.updated}, {@code charge.refunded}, {@code charge.succeeded}, {@code - * charge.updated}, {@code checkout.session.async_payment_failed}, {@code - * checkout.session.async_payment_succeeded}, {@code checkout.session.completed}, {@code - * checkout.session.expired}, {@code climate.order.canceled}, {@code climate.order.created}, - * {@code climate.order.delayed}, {@code climate.order.delivered}, {@code - * climate.order.product_substituted}, {@code climate.product.created}, {@code - * climate.product.pricing_updated}, {@code coupon.created}, {@code coupon.deleted}, {@code - * coupon.updated}, {@code credit_note.created}, {@code credit_note.updated}, {@code - * credit_note.voided}, {@code customer.created}, {@code customer.deleted}, {@code - * customer.discount.created}, {@code customer.discount.deleted}, {@code + * balance.available}, {@code billing.alert.triggered}, {@code + * billing_portal.configuration.created}, {@code billing_portal.configuration.updated}, {@code + * billing_portal.session.created}, {@code capability.updated}, {@code + * cash_balance.funds_available}, {@code charge.captured}, {@code charge.dispute.closed}, {@code + * charge.dispute.created}, {@code charge.dispute.funds_reinstated}, {@code + * charge.dispute.funds_withdrawn}, {@code charge.dispute.updated}, {@code charge.expired}, {@code + * charge.failed}, {@code charge.pending}, {@code charge.refund.updated}, {@code charge.refunded}, + * {@code charge.succeeded}, {@code charge.updated}, {@code + * checkout.session.async_payment_failed}, {@code checkout.session.async_payment_succeeded}, + * {@code checkout.session.completed}, {@code checkout.session.expired}, {@code + * climate.order.canceled}, {@code climate.order.created}, {@code climate.order.delayed}, {@code + * climate.order.delivered}, {@code climate.order.product_substituted}, {@code + * climate.product.created}, {@code climate.product.pricing_updated}, {@code coupon.created}, + * {@code coupon.deleted}, {@code coupon.updated}, {@code credit_note.created}, {@code + * credit_note.updated}, {@code credit_note.voided}, {@code customer.created}, {@code + * customer.deleted}, {@code customer.discount.created}, {@code customer.discount.deleted}, {@code * customer.discount.updated}, {@code customer.source.created}, {@code customer.source.deleted}, * {@code customer.source.expiring}, {@code customer.source.updated}, {@code * customer.subscription.created}, {@code customer.subscription.deleted}, {@code diff --git a/src/main/java/com/stripe/model/EventDataClassLookup.java b/src/main/java/com/stripe/model/EventDataClassLookup.java index e988acd0f1b..1d62653f018 100644 --- a/src/main/java/com/stripe/model/EventDataClassLookup.java +++ b/src/main/java/com/stripe/model/EventDataClassLookup.java @@ -89,6 +89,8 @@ final class EventDataClassLookup { classLookup.put("apps.secret", com.stripe.model.apps.Secret.class); + classLookup.put("billing.alert", com.stripe.model.billing.Alert.class); + classLookup.put("billing.alert_triggered", com.stripe.model.billing.AlertTriggered.class); classLookup.put("billing.meter", com.stripe.model.billing.Meter.class); classLookup.put("billing.meter_event", com.stripe.model.billing.MeterEvent.class); classLookup.put( diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java index ff162764219..43fe711554c 100644 --- a/src/main/java/com/stripe/model/PaymentIntent.java +++ b/src/main/java/com/stripe/model/PaymentIntent.java @@ -157,10 +157,14 @@ public class PaymentIntent extends ApiResource implements HasId, MetadataStore

Payment methods attached to other Customers cannot be used with this PaymentIntent. * - *

If present in combination with setup_future_usage, - * this PaymentIntent's payment method will be attached to the Customer after the PaymentIntent - * has been confirmed and any required actions from the user are complete. + *

If setup_future_usage + * is set and this PaymentIntent's payment method is not {@code card_present}, then the payment + * method attaches to the Customer after the PaymentIntent has been confirmed and any required + * actions from the user are complete. If the payment method is {@code card_present} and isn't a + * digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. */ @SerializedName("customer") @Getter(lombok.AccessLevel.NONE) @@ -288,6 +292,10 @@ public class PaymentIntent extends ApiResource implements HasId, MetadataStore

attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to dynamically * optimize your payment flow and comply with regional legislation and network rules, such as SCA. @@ -2443,6 +2451,10 @@ public static class AcssDebit extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2520,6 +2532,10 @@ public static class Affirm extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2561,6 +2577,10 @@ public static class AfterpayClearpay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2586,6 +2606,10 @@ public static class Alipay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2619,6 +2643,10 @@ public static class AmazonPay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2644,6 +2672,10 @@ public static class AuBecsDebit extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2669,6 +2701,10 @@ public static class BacsDebit extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2702,6 +2738,10 @@ public static class Bancontact extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2727,6 +2767,10 @@ public static class Blik extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2760,6 +2804,10 @@ public static class Boleto extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2874,6 +2922,10 @@ public static class Card extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3092,6 +3144,10 @@ public static class Cashapp extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3129,6 +3185,10 @@ public static class CustomerBalance extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3197,6 +3257,10 @@ public static class Eps extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3222,6 +3286,10 @@ public static class Fpx extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3247,6 +3315,10 @@ public static class Giropay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3272,6 +3344,10 @@ public static class Grabpay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3297,6 +3373,10 @@ public static class Ideal extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3339,6 +3419,10 @@ public static class Klarna extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3394,6 +3478,10 @@ public static class Konbini extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3432,6 +3520,10 @@ public static class Link extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3465,6 +3557,10 @@ public static class Mobilepay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3490,6 +3586,10 @@ public static class Multibanco extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3523,6 +3623,10 @@ public static class Oxxo extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3548,6 +3652,10 @@ public static class P24 extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3573,6 +3681,10 @@ public static class Paynow extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3618,6 +3730,10 @@ public static class Paypal extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3651,6 +3767,10 @@ public static class Pix extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3676,6 +3796,10 @@ public static class Promptpay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3709,6 +3833,10 @@ public static class RevolutPay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3737,6 +3865,10 @@ public static class SepaDebit extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3776,6 +3908,10 @@ public static class Sofort extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3805,6 +3941,10 @@ public static class Swish extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3830,6 +3970,10 @@ public static class Twint extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3869,6 +4013,10 @@ public static class UsBankAccount extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3965,6 +4113,10 @@ public static class WechatPay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -3990,6 +4142,10 @@ public static class Zip extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. diff --git a/src/main/java/com/stripe/model/SetupIntent.java b/src/main/java/com/stripe/model/SetupIntent.java index b34a9455dfc..8b81055d829 100644 --- a/src/main/java/com/stripe/model/SetupIntent.java +++ b/src/main/java/com/stripe/model/SetupIntent.java @@ -183,7 +183,12 @@ public class SetupIntent extends ApiResource implements HasId, MetadataStore onBehalfOf; - /** ID of the payment method used with this SetupIntent. */ + /** + * ID of the payment method used with this SetupIntent. If the payment method is {@code + * card_present} and isn't a digital wallet, then the generated_card + * associated with the {@code latest_attempt} is attached to the Customer instead. + */ @SerializedName("payment_method") @Getter(lombok.AccessLevel.NONE) @Setter(lombok.AccessLevel.NONE) diff --git a/src/main/java/com/stripe/model/StripeError.java b/src/main/java/com/stripe/model/StripeError.java index 8015a29e871..61a7c6b7e4c 100644 --- a/src/main/java/com/stripe/model/StripeError.java +++ b/src/main/java/com/stripe/model/StripeError.java @@ -32,12 +32,12 @@ public class StripeError extends StripeObject { * card_decline_rate_limit_exceeded}, {@code card_declined}, {@code * cardholder_phone_number_required}, {@code charge_already_captured}, {@code * charge_already_refunded}, {@code charge_disputed}, {@code charge_exceeds_source_limit}, {@code - * charge_expired_for_capture}, {@code charge_invalid_parameter}, {@code charge_not_refundable}, - * {@code clearing_code_unsupported}, {@code country_code_invalid}, {@code country_unsupported}, - * {@code coupon_expired}, {@code customer_max_payment_methods}, {@code - * customer_max_subscriptions}, {@code customer_tax_location_invalid}, {@code - * debit_not_authorized}, {@code email_invalid}, {@code expired_card}, {@code - * financial_connections_account_inactive}, {@code + * charge_exceeds_transaction_limit}, {@code charge_expired_for_capture}, {@code + * charge_invalid_parameter}, {@code charge_not_refundable}, {@code clearing_code_unsupported}, + * {@code country_code_invalid}, {@code country_unsupported}, {@code coupon_expired}, {@code + * customer_max_payment_methods}, {@code customer_max_subscriptions}, {@code + * customer_tax_location_invalid}, {@code debit_not_authorized}, {@code email_invalid}, {@code + * expired_card}, {@code financial_connections_account_inactive}, {@code * financial_connections_no_successful_transaction_refresh}, {@code forwarding_api_inactive}, * {@code forwarding_api_invalid_parameter}, {@code forwarding_api_upstream_connection_error}, * {@code forwarding_api_upstream_connection_timeout}, {@code idempotency_key_in_use}, {@code diff --git a/src/main/java/com/stripe/model/billing/Alert.java b/src/main/java/com/stripe/model/billing/Alert.java new file mode 100644 index 00000000000..e2a747f7c2d --- /dev/null +++ b/src/main/java/com/stripe/model/billing/Alert.java @@ -0,0 +1,153 @@ +// File generated from our OpenAPI spec +package com.stripe.model.billing; + +import com.google.gson.annotations.SerializedName; +import com.stripe.model.Customer; +import com.stripe.model.ExpandableField; +import com.stripe.model.HasId; +import com.stripe.model.StripeObject; +import com.stripe.net.ApiResource; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.Setter; + +/** + * A billing alert is a resource that notifies you when a certain usage threshold on a meter is + * crossed. For example, you might create a billing alert to notify you when a certain user made 100 + * API requests. + */ +@Getter +@Setter +@EqualsAndHashCode(callSuper = false) +public class Alert extends StripeObject implements HasId { + /** + * Defines the type of the alert. + * + *

Equal to {@code usage_threshold}. + */ + @SerializedName("alert_type") + String alertType; + + /** + * Limits the scope of the alert to a specific customer. + */ + @SerializedName("filter") + Filter filter; + + /** Unique identifier for the object. */ + @Getter(onMethod_ = {@Override}) + @SerializedName("id") + String id; + + /** + * Has the value {@code true} if the object exists in live mode or the value {@code false} if the + * object exists in test mode. + */ + @SerializedName("livemode") + Boolean livemode; + + /** + * String representing the object's type. Objects of the same type share the same value. + * + *

Equal to {@code billing.alert}. + */ + @SerializedName("object") + String object; + + /** + * Status of the alert. This can be active, inactive or archived. + * + *

One of {@code active}, {@code archived}, or {@code inactive}. + */ + @SerializedName("status") + String status; + + /** Title of the alert. */ + @SerializedName("title") + String title; + + /** + * Encapsulates configuration of the alert to monitor usage on a specific Billing Meter. + */ + @SerializedName("usage_threshold_config") + UsageThresholdConfig usageThresholdConfig; + + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Filter extends StripeObject { + /** Limit the scope of the alert to this customer ID. */ + @SerializedName("customer") + @Getter(lombok.AccessLevel.NONE) + @Setter(lombok.AccessLevel.NONE) + ExpandableField customer; + + /** Get ID of expandable {@code customer} object. */ + public String getCustomer() { + return (this.customer != null) ? this.customer.getId() : null; + } + + public void setCustomer(String id) { + this.customer = ApiResource.setExpandableFieldId(id, this.customer); + } + + /** Get expanded {@code customer}. */ + public Customer getCustomerObject() { + return (this.customer != null) ? this.customer.getExpanded() : null; + } + + public void setCustomerObject(Customer expandableObject) { + this.customer = new ExpandableField(expandableObject.getId(), expandableObject); + } + } + + /** + * The usage threshold alert configuration enables setting up alerts for when a certain usage + * threshold on a specific meter is crossed. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class UsageThresholdConfig extends StripeObject { + /** The value at which this alert will trigger. */ + @SerializedName("gte") + Long gte; + + /** + * The Billing Meter ID whose usage is + * monitored. + */ + @SerializedName("meter") + @Getter(lombok.AccessLevel.NONE) + @Setter(lombok.AccessLevel.NONE) + ExpandableField meter; + + /** + * Defines how the alert will behave. + * + *

Equal to {@code one_time}. + */ + @SerializedName("recurrence") + String recurrence; + + /** Get ID of expandable {@code meter} object. */ + public String getMeter() { + return (this.meter != null) ? this.meter.getId() : null; + } + + public void setMeter(String id) { + this.meter = ApiResource.setExpandableFieldId(id, this.meter); + } + + /** Get expanded {@code meter}. */ + public Meter getMeterObject() { + return (this.meter != null) ? this.meter.getExpanded() : null; + } + + public void setMeterObject(Meter expandableObject) { + this.meter = new ExpandableField(expandableObject.getId(), expandableObject); + } + } +} diff --git a/src/main/java/com/stripe/model/billing/AlertTriggered.java b/src/main/java/com/stripe/model/billing/AlertTriggered.java new file mode 100644 index 00000000000..c02dc2f80d7 --- /dev/null +++ b/src/main/java/com/stripe/model/billing/AlertTriggered.java @@ -0,0 +1,48 @@ +// File generated from our OpenAPI spec +package com.stripe.model.billing; + +import com.google.gson.annotations.SerializedName; +import com.stripe.model.StripeObject; +import lombok.EqualsAndHashCode; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +@EqualsAndHashCode(callSuper = false) +public class AlertTriggered extends StripeObject { + /** + * A billing alert is a resource that notifies you when a certain usage threshold on a meter is + * crossed. For example, you might create a billing alert to notify you when a certain user made + * 100 API requests. + */ + @SerializedName("alert") + Alert alert; + + /** Time at which the object was created. Measured in seconds since the Unix epoch. */ + @SerializedName("created") + Long created; + + /** ID of customer for which the alert triggered. */ + @SerializedName("customer") + String customer; + + /** + * Has the value {@code true} if the object exists in live mode or the value {@code false} if the + * object exists in test mode. + */ + @SerializedName("livemode") + Boolean livemode; + + /** + * String representing the object's type. Objects of the same type share the same value. + * + *

Equal to {@code billing.alert_triggered}. + */ + @SerializedName("object") + String object; + + /** The value triggering the alert. */ + @SerializedName("value") + Long value; +} diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java index 087a6a574b4..73c9e0bf45f 100644 --- a/src/main/java/com/stripe/model/checkout/Session.java +++ b/src/main/java/com/stripe/model/checkout/Session.java @@ -127,7 +127,10 @@ public class Session extends ApiResource implements HasId, MetadataStoreAdaptive Pricing sessions + */ @SerializedName("currency_conversion") CurrencyConversion currencyConversion; @@ -1560,6 +1563,10 @@ public static class AcssDebit extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1632,6 +1639,10 @@ public static class Affirm extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1657,6 +1668,10 @@ public static class AfterpayClearpay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1682,6 +1697,10 @@ public static class Alipay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1707,6 +1726,10 @@ public static class AmazonPay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1732,6 +1755,10 @@ public static class AuBecsDebit extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1757,6 +1784,10 @@ public static class BacsDebit extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1782,6 +1813,10 @@ public static class Bancontact extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1815,6 +1850,10 @@ public static class Boleto extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1859,6 +1898,10 @@ public static class Card extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1913,6 +1956,10 @@ public static class Cashapp extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -1950,6 +1997,10 @@ public static class CustomerBalance extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2018,6 +2069,10 @@ public static class Eps extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2043,6 +2098,10 @@ public static class Fpx extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2068,6 +2127,10 @@ public static class Giropay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2093,6 +2156,10 @@ public static class Grabpay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2118,6 +2185,10 @@ public static class Ideal extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2143,6 +2214,10 @@ public static class Klarna extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2177,6 +2252,10 @@ public static class Konbini extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2202,6 +2281,10 @@ public static class Link extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2227,6 +2310,10 @@ public static class Mobilepay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2252,6 +2339,10 @@ public static class Multibanco extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2285,6 +2376,10 @@ public static class Oxxo extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2310,6 +2405,10 @@ public static class P24 extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2335,6 +2434,10 @@ public static class Paynow extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2380,6 +2483,10 @@ public static class Paypal extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2414,6 +2521,10 @@ public static class RevolutPay extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2439,6 +2550,10 @@ public static class SepaDebit extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2464,6 +2579,10 @@ public static class Sofort extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -2504,6 +2623,10 @@ public static class UsBankAccount extends StripeObject { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. diff --git a/src/main/java/com/stripe/model/financialconnections/Account.java b/src/main/java/com/stripe/model/financialconnections/Account.java index aa72ad5d4d6..e331b99eabb 100644 --- a/src/main/java/com/stripe/model/financialconnections/Account.java +++ b/src/main/java/com/stripe/model/financialconnections/Account.java @@ -604,7 +604,8 @@ public static class Balance extends StripeObject { Credit credit; /** - * The balances owed to (or by) the account holder. + * The balances owed to (or by) the account holder, before subtracting any outbound pending + * transactions or adding any inbound pending transactions. * *

Each key is a three-letter ISO * currency code, in lowercase. @@ -629,8 +630,8 @@ public static class Balance extends StripeObject { @EqualsAndHashCode(callSuper = false) public static class Cash extends StripeObject { /** - * The funds available to the account holder. Typically this is the current balance less any - * holds. + * The funds available to the account holder. Typically this is the current balance after + * subtracting any outbound pending transactions and adding any inbound pending transactions. * *

Each key is a three-letter ISO currency code, in diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java index 0880008bc2f..43c8cc774a1 100644 --- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java @@ -127,12 +127,16 @@ public class PaymentIntentConfirmParams extends ApiRequestParams { * be attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to dynamically * optimize your payment flow and comply with regional legislation and network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code off_session}. + * publishable key, you can only update the value from {@code on_session} to {@code off_session}. */ @SerializedName("setup_future_usage") ApiRequestParams.EnumParam setupFutureUsage; @@ -476,12 +480,16 @@ public Builder setReturnUrl(String returnUrl) { * can still be attached to a * Customer after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to dynamically * optimize your payment flow and comply with regional legislation and network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -500,12 +508,16 @@ public Builder setSetupFutureUsage( * can still be attached to a * Customer after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to dynamically * optimize your payment flow and comply with regional legislation and network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -6568,12 +6580,16 @@ public static class AcssDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -6664,12 +6680,16 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -6691,12 +6711,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -6977,12 +7001,16 @@ public static class Affirm { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -7097,12 +7125,16 @@ public Builder setPreferredLocale(String preferredLocale) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7181,12 +7213,16 @@ public static class AfterpayClearpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -7306,12 +7342,16 @@ public Builder setReference(String reference) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7369,12 +7409,16 @@ public static class Alipay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -7440,12 +7484,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7467,12 +7515,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -7532,6 +7584,10 @@ public static class AmazonPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7636,6 +7692,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7659,6 +7719,10 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7719,12 +7783,16 @@ public static class AuBecsDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -7791,12 +7859,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7818,12 +7890,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -7873,12 +7949,16 @@ public static class BacsDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -7945,12 +8025,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7972,12 +8056,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8033,12 +8121,16 @@ public static class Bancontact { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -8121,12 +8213,16 @@ public Builder setPreferredLanguage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8148,12 +8244,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8228,12 +8328,16 @@ public static class Blik { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -8314,12 +8418,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8341,12 +8449,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8398,12 +8510,16 @@ public static class Boleto { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -8485,12 +8601,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8512,12 +8632,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8667,12 +8791,16 @@ public static class Card { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -8996,12 +9124,16 @@ public Builder setRequireCvcRecollection(Boolean requireCvcRecollection) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -9023,12 +9155,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -10641,12 +10777,16 @@ public static class Cashapp { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -10749,12 +10889,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -10776,12 +10920,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -10857,12 +11005,16 @@ public static class CustomerBalance { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -10962,12 +11114,16 @@ public Builder setFundingType( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11329,12 +11485,16 @@ public static class Eps { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -11400,12 +11560,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11450,12 +11614,16 @@ public static class Fpx { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -11521,12 +11689,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11571,12 +11743,16 @@ public static class Giropay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -11642,12 +11818,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11693,12 +11873,16 @@ public static class Grabpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -11764,12 +11948,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11815,12 +12003,16 @@ public static class Ideal { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -11886,12 +12078,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11913,12 +12109,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -12042,12 +12242,16 @@ public static class Klarna { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12164,12 +12368,16 @@ public Builder setPreferredLocale( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12405,12 +12613,16 @@ public static class Konbini { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12577,12 +12789,16 @@ public Builder setProductDescription(EmptyParam productDescription) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12646,12 +12862,16 @@ public static class Link { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12765,12 +12985,16 @@ public Builder setPersistentToken(String persistentToken) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12792,12 +13016,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -12869,12 +13097,16 @@ public static class Mobilepay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12977,12 +13209,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13040,12 +13276,16 @@ public static class Multibanco { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13111,12 +13351,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13170,12 +13414,16 @@ public static class Oxxo { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13257,12 +13505,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13308,12 +13560,16 @@ public static class P24 { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13389,12 +13645,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13445,12 +13705,16 @@ public static class Paynow { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13516,12 +13780,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13590,12 +13858,16 @@ public static class Paypal { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13726,12 +13998,16 @@ public Builder setRiskCorrelationId(String riskCorrelationId) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13753,12 +14029,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -13903,12 +14183,16 @@ public static class Pix { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -14002,12 +14286,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14052,12 +14340,16 @@ public static class Promptpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -14123,12 +14415,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14187,6 +14483,10 @@ public static class RevolutPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -14292,6 +14592,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -14315,6 +14619,10 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -14379,12 +14687,16 @@ public static class SepaDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -14464,12 +14776,16 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14491,12 +14807,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -14611,12 +14931,16 @@ public static class Sofort { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -14702,12 +15026,16 @@ public Builder setPreferredLanguage(EmptyParam preferredLanguage) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14729,12 +15057,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -14815,12 +15147,16 @@ public static class Swish { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -14902,12 +15238,16 @@ public Builder setReference(EmptyParam reference) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14953,12 +15293,16 @@ public static class Twint { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -15024,12 +15368,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15091,12 +15439,16 @@ public static class UsBankAccount { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -15233,12 +15585,16 @@ public Builder setPreferredSettlementSpeed(EmptyParam preferredSettlementSpeed) * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15260,12 +15616,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -15973,12 +16333,16 @@ public static class WechatPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -16067,12 +16431,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -16136,12 +16504,16 @@ public static class Zip { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -16207,12 +16579,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java index 68c2ef8c8b2..43d3bcc1efc 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java @@ -85,10 +85,14 @@ public class PaymentIntentCreateParams extends ApiRequestParams { * *

Payment methods attached to other Customers cannot be used with this PaymentIntent. * - *

If present in combination with setup_future_usage, - * this PaymentIntent's payment method will be attached to the Customer after the PaymentIntent - * has been confirmed and any required actions from the user are complete. + *

If setup_future_usage + * is set and this PaymentIntent's payment method is not {@code card_present}, then the payment + * method attaches to the Customer after the PaymentIntent has been confirmed and any required + * actions from the user are complete. If the payment method is {@code card_present} and isn't a + * digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. */ @SerializedName("customer") String customer; @@ -239,6 +243,10 @@ public class PaymentIntentCreateParams extends ApiRequestParams { * be attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to dynamically * optimize your payment flow and comply with regional legislation and network rules, such as SCA. @@ -560,10 +568,14 @@ public Builder setCurrency(String currency) { * *

Payment methods attached to other Customers cannot be used with this PaymentIntent. * - *

If present in combination with setup_future_usage, - * this PaymentIntent's payment method will be attached to the Customer after the PaymentIntent - * has been confirmed and any required actions from the user are complete. + *

If setup_future_usage + * is set and this PaymentIntent's payment method is not {@code card_present}, then the payment + * method attaches to the Customer after the PaymentIntent has been confirmed and any required + * actions from the user are complete. If the payment method is {@code card_present} and isn't a + * digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. */ public Builder setCustomer(String customer) { this.customer = customer; @@ -843,6 +855,10 @@ public Builder setReturnUrl(String returnUrl) { * can still be attached to a * Customer after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to dynamically * optimize your payment flow and comply with regional legislation and network rules, such as SCA. @@ -7064,12 +7080,16 @@ public static class AcssDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -7160,12 +7180,16 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7187,12 +7211,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -7473,12 +7501,16 @@ public static class Affirm { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -7593,12 +7625,16 @@ public Builder setPreferredLocale(String preferredLocale) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7677,12 +7713,16 @@ public static class AfterpayClearpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -7802,12 +7842,16 @@ public Builder setReference(String reference) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7865,12 +7909,16 @@ public static class Alipay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -7936,12 +7984,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7963,12 +8015,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8028,6 +8084,10 @@ public static class AmazonPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8132,6 +8192,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8155,6 +8219,10 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8215,12 +8283,16 @@ public static class AuBecsDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -8287,12 +8359,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8314,12 +8390,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8369,12 +8449,16 @@ public static class BacsDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -8441,12 +8525,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8468,12 +8556,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8529,12 +8621,16 @@ public static class Bancontact { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -8617,12 +8713,16 @@ public Builder setPreferredLanguage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8644,12 +8744,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8724,12 +8828,16 @@ public static class Blik { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -8810,12 +8918,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8836,12 +8948,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8893,12 +9009,16 @@ public static class Boleto { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -8980,12 +9100,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -9007,12 +9131,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -9162,12 +9290,16 @@ public static class Card { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -9491,12 +9623,16 @@ public Builder setRequireCvcRecollection(Boolean requireCvcRecollection) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -9517,12 +9653,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -11133,12 +11273,16 @@ public static class Cashapp { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -11241,12 +11385,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11268,12 +11416,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -11349,12 +11501,16 @@ public static class CustomerBalance { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -11454,12 +11610,16 @@ public Builder setFundingType( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11821,12 +11981,16 @@ public static class Eps { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -11892,12 +12056,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11942,12 +12110,16 @@ public static class Fpx { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12013,12 +12185,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12063,12 +12239,16 @@ public static class Giropay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12134,12 +12314,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12185,12 +12369,16 @@ public static class Grabpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12256,12 +12444,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12307,12 +12499,16 @@ public static class Ideal { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12378,12 +12574,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12405,12 +12605,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -12534,12 +12738,16 @@ public static class Klarna { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12655,12 +12863,16 @@ public Builder setPreferredLocale( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12896,12 +13108,16 @@ public static class Konbini { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13068,12 +13284,16 @@ public Builder setProductDescription(EmptyParam productDescription) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13137,12 +13357,16 @@ public static class Link { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13256,12 +13480,16 @@ public Builder setPersistentToken(String persistentToken) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13282,12 +13510,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -13359,12 +13591,16 @@ public static class Mobilepay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13467,12 +13703,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13530,12 +13770,16 @@ public static class Multibanco { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13601,12 +13845,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13660,12 +13908,16 @@ public static class Oxxo { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13747,12 +13999,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13797,12 +14053,16 @@ public static class P24 { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13878,12 +14138,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13934,12 +14198,16 @@ public static class Paynow { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -14005,12 +14273,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14079,12 +14351,16 @@ public static class Paypal { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -14214,12 +14490,16 @@ public Builder setRiskCorrelationId(String riskCorrelationId) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14241,12 +14521,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -14391,12 +14675,16 @@ public static class Pix { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -14490,12 +14778,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14540,12 +14832,16 @@ public static class Promptpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -14611,12 +14907,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14675,6 +14975,10 @@ public static class RevolutPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -14779,6 +15083,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -14802,6 +15110,10 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -14866,12 +15178,16 @@ public static class SepaDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -14951,12 +15267,16 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14978,12 +15298,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -15098,12 +15422,16 @@ public static class Sofort { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -15189,12 +15517,16 @@ public Builder setPreferredLanguage(EmptyParam preferredLanguage) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15216,12 +15548,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -15302,12 +15638,16 @@ public static class Swish { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -15389,12 +15729,16 @@ public Builder setReference(EmptyParam reference) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15440,12 +15784,16 @@ public static class Twint { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -15511,12 +15859,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15578,12 +15930,16 @@ public static class UsBankAccount { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -15718,12 +16074,16 @@ public Builder setPreferredSettlementSpeed(EmptyParam preferredSettlementSpeed) * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15745,12 +16105,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -16458,12 +16822,16 @@ public static class WechatPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -16552,12 +16920,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -16621,12 +16993,16 @@ public static class Zip { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -16692,12 +17068,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index f8f8762a934..6612ced6cd1 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -50,10 +50,14 @@ public class PaymentIntentUpdateParams extends ApiRequestParams { * *

Payment methods attached to other Customers cannot be used with this PaymentIntent. * - *

If present in combination with setup_future_usage, - * this PaymentIntent's payment method will be attached to the Customer after the PaymentIntent - * has been confirmed and any required actions from the user are complete. + *

If setup_future_usage + * is set and this PaymentIntent's payment method is not {@code card_present}, then the payment + * method attaches to the Customer after the PaymentIntent has been confirmed and any required + * actions from the user are complete. If the payment method is {@code card_present} and isn't a + * digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. */ @SerializedName("customer") Object customer; @@ -87,7 +91,8 @@ public class PaymentIntentUpdateParams extends ApiRequestParams { /** * ID of the payment method (a PaymentMethod, Card, or compatible - * Source object) to attach to this PaymentIntent. + * Source object) to attach to this PaymentIntent. To unset this field to null, pass in an + * empty string. */ @SerializedName("payment_method") Object paymentMethod; @@ -135,12 +140,16 @@ public class PaymentIntentUpdateParams extends ApiRequestParams { * be attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to dynamically * optimize your payment flow and comply with regional legislation and network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code off_session}. + * publishable key, you can only update the value from {@code on_session} to {@code off_session}. */ @SerializedName("setup_future_usage") ApiRequestParams.EnumParam setupFutureUsage; @@ -369,10 +378,14 @@ public Builder setCurrency(EmptyParam currency) { * *

Payment methods attached to other Customers cannot be used with this PaymentIntent. * - *

If present in combination with setup_future_usage, - * this PaymentIntent's payment method will be attached to the Customer after the PaymentIntent - * has been confirmed and any required actions from the user are complete. + *

If setup_future_usage + * is set and this PaymentIntent's payment method is not {@code card_present}, then the payment + * method attaches to the Customer after the PaymentIntent has been confirmed and any required + * actions from the user are complete. If the payment method is {@code card_present} and isn't a + * digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. */ public Builder setCustomer(String customer) { this.customer = customer; @@ -384,10 +397,14 @@ public Builder setCustomer(String customer) { * *

Payment methods attached to other Customers cannot be used with this PaymentIntent. * - *

If present in combination with setup_future_usage, - * this PaymentIntent's payment method will be attached to the Customer after the PaymentIntent - * has been confirmed and any required actions from the user are complete. + *

If setup_future_usage + * is set and this PaymentIntent's payment method is not {@code card_present}, then the payment + * method attaches to the Customer after the PaymentIntent has been confirmed and any required + * actions from the user are complete. If the payment method is {@code card_present} and isn't a + * digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. */ public Builder setCustomer(EmptyParam customer) { this.customer = customer; @@ -511,7 +528,8 @@ public Builder setMetadata(Map metadata) { /** * ID of the payment method (a PaymentMethod, Card, or compatible - * Source object) to attach to this PaymentIntent. + * Source object) to attach to this PaymentIntent. To unset this field to null, pass in an + * empty string. */ public Builder setPaymentMethod(String paymentMethod) { this.paymentMethod = paymentMethod; @@ -521,7 +539,8 @@ public Builder setPaymentMethod(String paymentMethod) { /** * ID of the payment method (a PaymentMethod, Card, or compatible - * Source object) to attach to this PaymentIntent. + * Source object) to attach to this PaymentIntent. To unset this field to null, pass in an + * empty string. */ public Builder setPaymentMethod(EmptyParam paymentMethod) { this.paymentMethod = paymentMethod; @@ -615,12 +634,16 @@ public Builder setReceiptEmail(EmptyParam receiptEmail) { * can still be attached to a * Customer after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to dynamically * optimize your payment flow and comply with regional legislation and network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -639,12 +662,16 @@ public Builder setSetupFutureUsage( * can still be attached to a * Customer after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to dynamically * optimize your payment flow and comply with regional legislation and network rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -6517,12 +6544,16 @@ public static class AcssDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -6613,12 +6644,16 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -6640,12 +6675,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -6935,12 +6974,16 @@ public static class Affirm { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -7063,12 +7106,16 @@ public Builder setPreferredLocale(EmptyParam preferredLocale) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7147,12 +7194,16 @@ public static class AfterpayClearpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -7282,12 +7333,16 @@ public Builder setReference(EmptyParam reference) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7345,12 +7400,16 @@ public static class Alipay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -7416,12 +7475,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7443,12 +7506,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -7508,6 +7575,10 @@ public static class AmazonPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7612,6 +7683,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7635,6 +7710,10 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7695,12 +7774,16 @@ public static class AuBecsDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -7767,12 +7850,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7794,12 +7881,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -7849,12 +7940,16 @@ public static class BacsDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -7921,12 +8016,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7948,12 +8047,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8009,12 +8112,16 @@ public static class Bancontact { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -8097,12 +8204,16 @@ public Builder setPreferredLanguage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8124,12 +8235,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8204,12 +8319,16 @@ public static class Blik { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -8299,12 +8418,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8325,12 +8448,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8382,12 +8509,16 @@ public static class Boleto { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -8469,12 +8600,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8496,12 +8631,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8651,12 +8790,16 @@ public static class Card { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -8990,12 +9133,16 @@ public Builder setRequireCvcRecollection(Boolean requireCvcRecollection) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -9016,12 +9163,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -10686,12 +10837,16 @@ public static class Cashapp { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -10794,12 +10949,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -10821,12 +10980,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -10902,12 +11065,16 @@ public static class CustomerBalance { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -11007,12 +11174,16 @@ public Builder setFundingType( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11384,12 +11555,16 @@ public static class Eps { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -11455,12 +11630,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11505,12 +11684,16 @@ public static class Fpx { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -11576,12 +11759,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11626,12 +11813,16 @@ public static class Giropay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -11697,12 +11888,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11748,12 +11943,16 @@ public static class Grabpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -11819,12 +12018,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11870,12 +12073,16 @@ public static class Ideal { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -11941,12 +12148,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11968,12 +12179,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -12097,12 +12312,16 @@ public static class Klarna { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12218,12 +12437,16 @@ public Builder setPreferredLocale( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12459,12 +12682,16 @@ public static class Konbini { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12631,12 +12858,16 @@ public Builder setProductDescription(EmptyParam productDescription) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12700,12 +12931,16 @@ public static class Link { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -12826,12 +13061,16 @@ public Builder setPersistentToken(EmptyParam persistentToken) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12852,12 +13091,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -12929,12 +13172,16 @@ public static class Mobilepay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13037,12 +13284,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13100,12 +13351,16 @@ public static class Multibanco { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13171,12 +13426,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13230,12 +13489,16 @@ public static class Oxxo { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13317,12 +13580,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13367,12 +13634,16 @@ public static class P24 { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13448,12 +13719,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13504,12 +13779,16 @@ public static class Paynow { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13575,12 +13854,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13649,12 +13932,16 @@ public static class Paypal { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -13802,12 +14089,16 @@ public Builder setRiskCorrelationId(EmptyParam riskCorrelationId) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13829,12 +14120,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -13979,12 +14274,16 @@ public static class Pix { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -14078,12 +14377,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14128,12 +14431,16 @@ public static class Promptpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -14199,12 +14506,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14263,6 +14574,10 @@ public static class RevolutPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -14367,6 +14682,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -14390,6 +14709,10 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -14454,12 +14777,16 @@ public static class SepaDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -14539,12 +14866,16 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14566,12 +14897,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -14686,12 +15021,16 @@ public static class Sofort { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -14777,12 +15116,16 @@ public Builder setPreferredLanguage(EmptyParam preferredLanguage) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14804,12 +15147,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -14890,12 +15237,16 @@ public static class Swish { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -14977,12 +15328,16 @@ public Builder setReference(EmptyParam reference) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15028,12 +15383,16 @@ public static class Twint { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -15099,12 +15458,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15166,12 +15529,16 @@ public static class UsBankAccount { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -15306,12 +15673,16 @@ public Builder setPreferredSettlementSpeed(EmptyParam preferredSettlementSpeed) * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15333,12 +15704,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -16055,12 +16430,16 @@ public static class WechatPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -16155,12 +16534,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -16224,12 +16607,16 @@ public static class Zip { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -16295,12 +16682,16 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( diff --git a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java index 7b33e9b74a4..cb4ddfcb19f 100644 --- a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java @@ -70,7 +70,7 @@ public class SetupIntentUpdateParams extends ApiRequestParams { /** * ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this - * SetupIntent. + * SetupIntent. To unset this field to null, pass in an empty string. */ @SerializedName("payment_method") Object paymentMethod; @@ -351,7 +351,7 @@ public Builder setMetadata(Map metadata) { /** * ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this - * SetupIntent. + * SetupIntent. To unset this field to null, pass in an empty string. */ public Builder setPaymentMethod(String paymentMethod) { this.paymentMethod = paymentMethod; @@ -360,7 +360,7 @@ public Builder setPaymentMethod(String paymentMethod) { /** * ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this - * SetupIntent. + * SetupIntent. To unset this field to null, pass in an empty string. */ public Builder setPaymentMethod(EmptyParam paymentMethod) { this.paymentMethod = paymentMethod; diff --git a/src/main/java/com/stripe/param/SubscriptionCreateParams.java b/src/main/java/com/stripe/param/SubscriptionCreateParams.java index 2b333615812..eee789d1ea7 100644 --- a/src/main/java/com/stripe/param/SubscriptionCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionCreateParams.java @@ -198,7 +198,10 @@ public class SubscriptionCreateParams extends ApiRequestParams { @SerializedName("metadata") Object metadata; - /** Indicates if a customer is on or off-session while an invoice payment is attempted. */ + /** + * Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to + * {@code false} (on-session). + */ @SerializedName("off_session") Boolean offSession; @@ -949,7 +952,10 @@ public Builder setMetadata(Map metadata) { return this; } - /** Indicates if a customer is on or off-session while an invoice payment is attempted. */ + /** + * Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults + * to {@code false} (on-session). + */ public Builder setOffSession(Boolean offSession) { this.offSession = offSession; return this; diff --git a/src/main/java/com/stripe/param/SubscriptionItemUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionItemUpdateParams.java index 27784ce86ca..6cc0712aa2e 100644 --- a/src/main/java/com/stripe/param/SubscriptionItemUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionItemUpdateParams.java @@ -46,7 +46,10 @@ public class SubscriptionItemUpdateParams extends ApiRequestParams { @SerializedName("metadata") Object metadata; - /** Indicates if a customer is on or off-session while an invoice payment is attempted. */ + /** + * Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to + * {@code false} (on-session). + */ @SerializedName("off_session") Boolean offSession; @@ -376,7 +379,10 @@ public Builder setMetadata(Map metadata) { return this; } - /** Indicates if a customer is on or off-session while an invoice payment is attempted. */ + /** + * Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults + * to {@code false} (on-session). + */ public Builder setOffSession(Boolean offSession) { this.offSession = offSession; return this; diff --git a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java index 94c5d249e4a..d735d7f53fb 100644 --- a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java @@ -174,7 +174,10 @@ public class SubscriptionUpdateParams extends ApiRequestParams { @SerializedName("metadata") Object metadata; - /** Indicates if a customer is on or off-session while an invoice payment is attempted. */ + /** + * Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to + * {@code false} (on-session). + */ @SerializedName("off_session") Boolean offSession; @@ -947,7 +950,10 @@ public Builder setMetadata(Map metadata) { return this; } - /** Indicates if a customer is on or off-session while an invoice payment is attempted. */ + /** + * Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults + * to {@code false} (on-session). + */ public Builder setOffSession(Boolean offSession) { this.offSession = offSession; return this; diff --git a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java index d83120a2280..c58bb754745 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java @@ -630,6 +630,9 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("balance.available") BALANCE__AVAILABLE("balance.available"), + @SerializedName("billing.alert.triggered") + BILLING__ALERT__TRIGGERED("billing.alert.triggered"), + @SerializedName("billing_portal.configuration.created") BILLING_PORTAL__CONFIGURATION__CREATED("billing_portal.configuration.created"), diff --git a/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java b/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java index ebc63b73f34..2de1390745f 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointUpdateParams.java @@ -294,6 +294,9 @@ public enum EnabledEvent implements ApiRequestParams.EnumParam { @SerializedName("balance.available") BALANCE__AVAILABLE("balance.available"), + @SerializedName("billing.alert.triggered") + BILLING__ALERT__TRIGGERED("billing.alert.triggered"), + @SerializedName("billing_portal.configuration.created") BILLING_PORTAL__CONFIGURATION__CREATED("billing_portal.configuration.created"), diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java index 5e514efc2d3..76eed351f61 100644 --- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java +++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java @@ -6145,6 +6145,10 @@ public static class AcssDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -6252,6 +6256,10 @@ public Builder setMandateOptions( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -6593,6 +6601,10 @@ public static class Affirm { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -6660,6 +6672,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -6706,6 +6722,10 @@ public static class AfterpayClearpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -6773,6 +6793,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -6820,6 +6844,10 @@ public static class Alipay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -6887,6 +6915,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -6933,6 +6965,10 @@ public static class AmazonPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7000,6 +7036,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7049,6 +7089,10 @@ public static class AuBecsDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7116,6 +7160,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7163,6 +7211,10 @@ public static class BacsDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7230,6 +7282,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7282,6 +7338,10 @@ public static class Bancontact { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7349,6 +7409,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7403,6 +7467,10 @@ public static class Boleto { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7486,6 +7554,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7556,6 +7628,10 @@ public static class Card { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7690,6 +7766,10 @@ public Builder setRequestThreeDSecure( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7859,6 +7939,10 @@ public static class Cashapp { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7926,6 +8010,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -7992,6 +8080,10 @@ public static class CustomerBalance { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8089,6 +8181,10 @@ public Builder setFundingType( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8445,6 +8541,10 @@ public static class Eps { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8512,6 +8612,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8558,6 +8662,10 @@ public static class Fpx { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8625,6 +8733,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8671,6 +8783,10 @@ public static class Giropay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8738,6 +8854,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8784,6 +8904,10 @@ public static class Grabpay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8851,6 +8975,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8897,6 +9025,10 @@ public static class Ideal { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -8964,6 +9096,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9010,6 +9146,10 @@ public static class Klarna { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9077,6 +9217,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9132,6 +9276,10 @@ public static class Konbini { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9216,6 +9364,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9262,6 +9414,10 @@ public static class Link { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9329,6 +9485,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9378,6 +9538,10 @@ public static class Mobilepay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9445,6 +9609,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9491,6 +9659,10 @@ public static class Multibanco { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9558,6 +9730,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9612,6 +9788,10 @@ public static class Oxxo { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9695,6 +9875,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9741,6 +9925,10 @@ public static class P24 { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9818,6 +10006,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9870,6 +10062,10 @@ public static class Paynow { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -9937,6 +10133,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -10006,12 +10206,16 @@ public static class Paypal { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @SerializedName("setup_future_usage") @@ -10141,12 +10345,16 @@ public Builder setRiskCorrelationId(String riskCorrelationId) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -10167,12 +10375,16 @@ public Builder setSetupFutureUsage( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. * *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you may only update the value from {@code on_session} to {@code + * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -10380,6 +10592,10 @@ public static class RevolutPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -10447,6 +10663,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -10496,6 +10716,10 @@ public static class SepaDebit { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -10563,6 +10787,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -10615,6 +10843,10 @@ public static class Sofort { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -10682,6 +10914,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -10809,6 +11045,10 @@ public static class UsBankAccount { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -10901,6 +11141,10 @@ public Builder setFinancialConnections( * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -11190,6 +11434,10 @@ public static class WechatPay { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer after * the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. @@ -11279,6 +11527,10 @@ public Builder putAllExtraParam(Map map) { * href="https://stripe.com/docs/api/payment_methods/attach">attached to a Customer * after the transaction completes. * + *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card + * payment method representing the card is created and attached to the Customer instead. + * *

When processing card payments, Stripe also uses {@code setup_future_usage} to * dynamically optimize your payment flow and comply with regional legislation and network * rules, such as SCA. From 59fe02e3e5c3ef52a58f981cc4c88a66b6221802 Mon Sep 17 00:00:00 2001 From: Prathmesh Ranaut Date: Thu, 1 Aug 2024 17:24:39 -0400 Subject: [PATCH 11/11] Bump version to 26.6.0 --- CHANGELOG.md | 6 ++++++ README.md | 8 ++++---- VERSION | 2 +- gradle.properties | 2 +- src/main/java/com/stripe/Stripe.java | 2 +- 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e255bd4c850..3a40df83971 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 26.6.0 - 2024-08-01 +* [#1841](https://github.com/stripe/stripe-java/pull/1841) Update generated code + * Add support for new resources `Billing.AlertTriggered` and `Billing.Alert` + * ⚠️ Remove support for `authorization_code` on `Charge.payment_method_details.card`. This was accidentally released last week. + * Add support for new value `billing.alert.triggered` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + ## 26.5.1 - 2024-07-25 * [#1840](https://github.com/stripe/stripe-java/pull/1840) Update generated code * Add support for `tax_registrations` and `tax_settings` on `AccountSession.components` and `AccountSessionCreateParams.components` diff --git a/README.md b/README.md index 08c17678bc2..35b76f7a638 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Stripe Java client library -[![Maven Central](https://img.shields.io/badge/maven--central-v26.5.1-blue)](https://mvnrepository.com/artifact/com.stripe/stripe-java) +[![Maven Central](https://img.shields.io/badge/maven--central-v26.6.0-blue)](https://mvnrepository.com/artifact/com.stripe/stripe-java) [![JavaDoc](http://img.shields.io/badge/javadoc-reference-blue.svg)](https://stripe.dev/stripe-java) [![Build Status](https://github.com/stripe/stripe-java/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/stripe/stripe-java/actions?query=branch%3Amaster) [![Coverage Status](https://coveralls.io/repos/github/stripe/stripe-java/badge.svg?branch=master)](https://coveralls.io/github/stripe/stripe-java?branch=master) @@ -18,7 +18,7 @@ The official [Stripe][stripe] Java client library. Add this dependency to your project's build file: ```groovy -implementation "com.stripe:stripe-java:26.5.1" +implementation "com.stripe:stripe-java:26.6.0" ``` ### Maven users @@ -29,7 +29,7 @@ Add this dependency to your project's POM: com.stripe stripe-java - 26.5.1 + 26.6.0 ``` @@ -37,7 +37,7 @@ Add this dependency to your project's POM: You'll need to manually install the following JARs: -- [The Stripe JAR](https://search.maven.org/remotecontent?filepath=com/stripe/stripe-java/26.5.1/stripe-java-26.5.1.jar) +- [The Stripe JAR](https://search.maven.org/remotecontent?filepath=com/stripe/stripe-java/26.6.0/stripe-java-26.6.0.jar) - [Google Gson][gson] from . ### [ProGuard][proguard] diff --git a/VERSION b/VERSION index 0a2925f0d90..2e6fb0f271e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -26.5.1 +26.6.0 diff --git a/gradle.properties b/gradle.properties index 88b5076faed..ba411f27612 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ GROUP=com.stripe -VERSION_NAME=26.5.1 +VERSION_NAME=26.6.0 POM_URL=https://github.com/stripe/stripe-java POM_SCM_URL=git@github.com:stripe/stripe-java.git diff --git a/src/main/java/com/stripe/Stripe.java b/src/main/java/com/stripe/Stripe.java index fcf740074e3..8cc8d7326a8 100644 --- a/src/main/java/com/stripe/Stripe.java +++ b/src/main/java/com/stripe/Stripe.java @@ -13,7 +13,7 @@ public abstract class Stripe { public static final String CONNECT_API_BASE = "https://connect.stripe.com"; public static final String LIVE_API_BASE = "https://api.stripe.com"; public static final String UPLOAD_API_BASE = "https://files.stripe.com"; - public static final String VERSION = "26.5.1"; + public static final String VERSION = "26.6.0"; public static volatile String apiKey; public static volatile String clientId;