From 5ec66ce594af94ecf8d3d814b69224f6015032c5 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 8 Aug 2024 16:53:14 -0700 Subject: [PATCH] Update generated code (#1843) * Update generated code for v1170 * Update generated code for v1171 * Update generated code for v1172 * Update generated code for v1173 * Update generated code for v1174 * Update generated code for v1175 * Update generated code for v1176 * Update generated code for v1177 * Update generated code for v1180 * Update generated code for v1182 * Update generated code for v1183 * Update generated code for v1184 * Update generated code for v1186 * Update generated code for v1187 * Update generated code for v1188 * Update generated code for v1189 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Account.java | 30 +- src/main/java/com/stripe/model/Card.java | 12 +- src/main/java/com/stripe/model/Charge.java | 26 +- .../com/stripe/model/ConfirmationToken.java | 29 + .../com/stripe/model/CustomerSession.java | 2 +- .../java/com/stripe/model/PaymentIntent.java | 1008 +++--- .../java/com/stripe/model/PaymentLink.java | 11 +- .../java/com/stripe/model/PaymentMethod.java | 29 + src/main/java/com/stripe/model/Person.java | 1 + .../java/com/stripe/model/SetupAttempt.java | 8 + .../java/com/stripe/model/StripeError.java | 13 +- .../java/com/stripe/model/Subscription.java | 6 +- .../java/com/stripe/model/billing/Alert.java | 271 +- .../stripe/model/billing/AlertCollection.java | 6 + .../com/stripe/model/checkout/Session.java | 788 ++--- .../model/identity/VerificationSession.java | 4 + .../com/stripe/model/tax/Calculation.java | 40 + .../com/stripe/model/terminal/Reader.java | 3 +- .../com/stripe/param/AccountCreateParams.java | 44 +- .../com/stripe/param/AccountUpdateParams.java | 66 +- .../com/stripe/param/ChargeCaptureParams.java | 33 +- .../com/stripe/param/ChargeCreateParams.java | 33 +- .../com/stripe/param/ChargeListParams.java | 4 +- .../param/CustomerSessionCreateParams.java | 4 +- .../com/stripe/param/InvoiceCreateParams.java | 10 +- .../param/InvoiceCreatePreviewParams.java | 7 +- .../param/InvoiceUpcomingLinesListParams.java | 20 +- .../param/InvoiceUpcomingLinesParams.java | 20 +- .../stripe/param/InvoiceUpcomingParams.java | 20 +- .../com/stripe/param/InvoiceUpdateParams.java | 10 +- .../param/PaymentIntentCaptureParams.java | 37 +- .../param/PaymentIntentConfirmParams.java | 2732 ++++++++-------- .../param/PaymentIntentCreateParams.java | 2740 ++++++++-------- ...entIntentIncrementAuthorizationParams.java | 21 +- .../param/PaymentIntentUpdateParams.java | 2787 +++++++++-------- .../stripe/param/PaymentLinkCreateParams.java | 34 +- .../stripe/param/PaymentLinkUpdateParams.java | 51 +- .../param/SetupIntentConfirmParams.java | 3 + .../stripe/param/SetupIntentCreateParams.java | 3 + .../stripe/param/SetupIntentUpdateParams.java | 3 + .../param/SubscriptionCreateParams.java | 22 +- .../param/SubscriptionUpdateParams.java | 18 +- .../stripe/param/TransferCreateParams.java | 10 +- .../param/billing/AlertActivateParams.java | 98 + .../param/billing/AlertArchiveParams.java | 98 + .../param/billing/AlertCreateParams.java | 363 +++ .../param/billing/AlertDeactivateParams.java | 98 + .../stripe/param/billing/AlertListParams.java | 215 ++ .../param/billing/AlertRetrieveParams.java | 98 + .../param/checkout/SessionCreateParams.java | 1682 +++++----- .../VerificationSessionCreateParams.java | 15 + .../VerificationSessionListParams.java | 13 + .../param/tax/CalculationRetrieveParams.java | 98 + .../com/stripe/service/BillingService.java | 4 + .../stripe/service/billing/AlertService.java | 175 ++ .../service/tax/CalculationService.java | 29 + 57 files changed, 7943 insertions(+), 6064 deletions(-) create mode 100644 src/main/java/com/stripe/model/billing/AlertCollection.java create mode 100644 src/main/java/com/stripe/param/billing/AlertActivateParams.java create mode 100644 src/main/java/com/stripe/param/billing/AlertArchiveParams.java create mode 100644 src/main/java/com/stripe/param/billing/AlertCreateParams.java create mode 100644 src/main/java/com/stripe/param/billing/AlertDeactivateParams.java create mode 100644 src/main/java/com/stripe/param/billing/AlertListParams.java create mode 100644 src/main/java/com/stripe/param/billing/AlertRetrieveParams.java create mode 100644 src/main/java/com/stripe/param/tax/CalculationRetrieveParams.java create mode 100644 src/main/java/com/stripe/service/billing/AlertService.java diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 03029e1c8f8..1af8caa5d1a 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1169 \ No newline at end of file +v1189 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java index 248a68efdd4..38ad2b0d668 100644 --- a/src/main/java/com/stripe/model/Account.java +++ b/src/main/java/com/stripe/model/Account.java @@ -2284,35 +2284,37 @@ public static class Payments extends StripeObject { String statementDescriptor; /** - * The Kana variation of the default text that appears on credit card statements when a charge - * is made (Japan only). + * The Kana variation of {@code statement_descriptor} used for charges in Japan. Japanese + * statement descriptors have special + * requirements. */ @SerializedName("statement_descriptor_kana") String statementDescriptorKana; /** - * The Kanji variation of the default text that appears on credit card statements when a - * charge is made (Japan only). + * The Kanji variation of {@code statement_descriptor} used for charges in Japan. Japanese + * statement descriptors have special + * requirements. */ @SerializedName("statement_descriptor_kanji") String statementDescriptorKanji; /** - * The Kana variation of the default text that appears on credit card statements when a charge - * is made (Japan only). This field prefixes any dynamic {@code - * statement_descriptor_suffix_kana} specified on the charge. {@code - * statement_descriptor_prefix_kana} is useful for maximizing descriptor space for the dynamic - * portion. + * The Kana variation of {@code statement_descriptor_prefix} used for card charges in Japan. + * Japanese statement descriptors have special + * requirements. */ @SerializedName("statement_descriptor_prefix_kana") String statementDescriptorPrefixKana; /** - * The Kanji variation of the default text that appears on credit card statements when a - * charge is made (Japan only). This field prefixes any dynamic {@code - * statement_descriptor_suffix_kanji} specified on the charge. {@code - * statement_descriptor_prefix_kanji} is useful for maximizing descriptor space for the - * dynamic portion. + * The Kanji variation of {@code statement_descriptor_prefix} used for card charges in Japan. + * Japanese statement descriptors have special + * requirements. */ @SerializedName("statement_descriptor_prefix_kanji") String statementDescriptorPrefixKanji; diff --git a/src/main/java/com/stripe/model/Card.java b/src/main/java/com/stripe/model/Card.java index 570012472a9..56f51c3e190 100644 --- a/src/main/java/com/stripe/model/Card.java +++ b/src/main/java/com/stripe/model/Card.java @@ -88,8 +88,8 @@ public class Card extends ApiResource /** * Card brand. Can be {@code American Express}, {@code Diners Club}, {@code Discover}, {@code - * Eftpos Australia}, {@code JCB}, {@code MasterCard}, {@code UnionPay}, {@code Visa}, or {@code - * Unknown}. + * Eftpos Australia}, {@code Girocard}, {@code JCB}, {@code MasterCard}, {@code UnionPay}, {@code + * Visa}, or {@code Unknown}. */ @SerializedName("brand") String brand; @@ -102,9 +102,11 @@ public class Card extends ApiResource String country; /** - * Three-letter ISO code for currency. Only - * applicable on accounts (not customers or recipients). The card can be used as a transfer - * destination for funds in this currency. This property is only available for accounts where ISO code for + * currency in lowercase. Must be a supported + * currency. Only applicable on accounts (not customers or recipients). The card can be used + * as a transfer destination for funds in this currency. This property is only available for + * accounts where controller.requirement_collection * is {@code application}, which includes Custom accounts. */ diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index 19faafc69f1..16fded5e54b 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -101,7 +101,7 @@ 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. This only works for card + * looks like after the static and dynamic portions are combined. This value only exists for card * payments. */ @SerializedName("calculated_statement_descriptor") @@ -302,17 +302,21 @@ public class Charge extends ApiResource implements MetadataStore, Balanc ExpandableField sourceTransfer; /** - * For card charges, use {@code statement_descriptor_suffix} instead. Otherwise, you can use this - * value as the complete description of a charge on your customers’ statements. Must contain at - * least one letter, maximum 22 characters. + * For a non-card charge, text that appears on the customer's statement as the statement + * descriptor. This value overrides the account's default statement descriptor. For a card + * charge, this value is ignored unless you don't specify a {@code statement_descriptor_suffix}, + * in which case this value is used as the suffix. */ @SerializedName("statement_descriptor") String statementDescriptor; /** - * Provides information about the charge that customers see on their statements. Concatenated with - * the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the - * complete statement descriptor. Maximum 22 characters for the concatenated descriptor. + * Provides information about a card charge. Concatenated to the account's statement + * descriptor prefix to form the complete statement descriptor that appears on the customer's + * statement. If the account has no prefix value, the suffix is concatenated to the account's + * statement descriptor. */ @SerializedName("statement_descriptor_suffix") String statementDescriptorSuffix; @@ -2204,6 +2208,14 @@ public static class Offline extends StripeObject { /** Time at which the payment was collected while offline. */ @SerializedName("stored_at") Long storedAt; + + /** + * The method used to process this payment method offline. Only deferred is allowed. + * + *

Equal to {@code deferred}. + */ + @SerializedName("type") + String type; } @Getter diff --git a/src/main/java/com/stripe/model/ConfirmationToken.java b/src/main/java/com/stripe/model/ConfirmationToken.java index f24dc4c68a0..a08839bf349 100644 --- a/src/main/java/com/stripe/model/ConfirmationToken.java +++ b/src/main/java/com/stripe/model/ConfirmationToken.java @@ -883,6 +883,14 @@ public static class Offline extends StripeObject { /** Time at which the payment was collected while offline. */ @SerializedName("stored_at") Long storedAt; + + /** + * The method used to process this payment method offline. Only deferred is allowed. + * + *

Equal to {@code deferred}. + */ + @SerializedName("type") + String type; } @Getter @@ -1194,6 +1202,10 @@ public static class CardPresent extends StripeObject { @SerializedName("networks") Networks networks; + /** Details about payment methods collected offline. */ + @SerializedName("offline") + Offline offline; + /** EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. */ @SerializedName("preferred_locales") List preferredLocales; @@ -1219,6 +1231,23 @@ public static class Networks extends StripeObject { @SerializedName("preferred") String preferred; } + + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Offline extends StripeObject { + /** Time at which the payment was collected while offline. */ + @SerializedName("stored_at") + Long storedAt; + + /** + * The method used to process this payment method offline. Only deferred is allowed. + * + *

Equal to {@code deferred}. + */ + @SerializedName("type") + String type; + } } @Getter diff --git a/src/main/java/com/stripe/model/CustomerSession.java b/src/main/java/com/stripe/model/CustomerSession.java index 5fe077f89ad..b9f64b5433a 100644 --- a/src/main/java/com/stripe/model/CustomerSession.java +++ b/src/main/java/com/stripe/model/CustomerSession.java @@ -205,7 +205,7 @@ public static class Features extends StripeObject { /** * Determines the max number of saved payment methods for the Payment Element to display. - * This parameter defaults to {@code 10}. + * This parameter defaults to {@code 3}. */ @SerializedName("payment_method_redisplay_limit") Long paymentMethodRedisplayLimit; diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java index 43fe711554c..121b35983b3 100644 --- a/src/main/java/com/stripe/model/PaymentIntent.java +++ b/src/main/java/com/stripe/model/PaymentIntent.java @@ -285,20 +285,21 @@ public class PaymentIntent extends ApiResource implements HasId, MetadataStore

Providing this parameter will attach the payment method to - * the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required - * actions from the user are complete. If no Customer was provided, the payment method can still - * be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required actions. + * If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates and + * attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code off_session}, or {@code on_session}. */ @@ -319,18 +320,21 @@ public class PaymentIntent extends ApiResource implements HasId, MetadataStore

source; /** - * For card charges, use statement_descriptor_suffix. - * Otherwise, you can use this value as the complete description of a charge on your customers' - * statements. It must contain at least one letter and be 1–22 characters long. + * Text that appears on the customer's statement as the statement + * descriptor for a non-card charge. This value overrides the account's default statement + * descriptor. Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix + * instead. */ @SerializedName("statement_descriptor") String statementDescriptor; /** - * Provides information about a card payment that customers see on their statements. Concatenated - * with the prefix (shortened descriptor) or statement descriptor that’s set on the account to - * form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor. + * Provides information about a card charge. Concatenated to the account's statement + * descriptor prefix to form the complete statement descriptor that appears on the customer's + * statement. */ @SerializedName("statement_descriptor_suffix") String statementDescriptorSuffix; @@ -2443,21 +2447,21 @@ public static class AcssDebit extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, {@code off_session}, or {@code on_session}. */ @@ -2524,21 +2528,21 @@ public static class Affirm extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -2569,21 +2573,21 @@ public static class AfterpayClearpay extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -2598,21 +2602,21 @@ public static class Alipay extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, or {@code off_session}. */ @@ -2635,21 +2639,21 @@ public static class AmazonPay extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, or {@code off_session}. */ @@ -2664,21 +2668,21 @@ public static class AuBecsDebit extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, {@code off_session}, or {@code on_session}. */ @@ -2693,21 +2697,21 @@ public static class BacsDebit extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, {@code off_session}, or {@code on_session}. */ @@ -2730,21 +2734,21 @@ public static class Bancontact extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, or {@code off_session}. */ @@ -2759,21 +2763,21 @@ public static class Blik extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -2796,21 +2800,21 @@ public static class Boleto extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, {@code off_session}, or {@code on_session}. */ @@ -2914,21 +2918,21 @@ public static class Card extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, {@code off_session}, or {@code on_session}. */ @@ -3136,21 +3140,21 @@ public static class Cashapp extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, {@code off_session}, or {@code on_session}. */ @@ -3177,21 +3181,21 @@ public static class CustomerBalance extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -3249,21 +3253,21 @@ public static class Eps extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -3278,21 +3282,21 @@ public static class Fpx extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -3307,21 +3311,21 @@ public static class Giropay extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -3336,21 +3340,21 @@ public static class Grabpay extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -3365,21 +3369,21 @@ public static class Ideal extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, or {@code off_session}. */ @@ -3411,21 +3415,21 @@ public static class Klarna extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -3470,21 +3474,21 @@ public static class Konbini extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -3512,21 +3516,21 @@ public static class Link extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, or {@code off_session}. */ @@ -3549,21 +3553,21 @@ public static class Mobilepay extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -3578,21 +3582,21 @@ public static class Multibanco extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -3615,21 +3619,21 @@ public static class Oxxo extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -3644,21 +3648,21 @@ public static class P24 extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -3673,21 +3677,21 @@ public static class Paynow extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -3722,21 +3726,21 @@ public static class Paypal extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, or {@code off_session}. */ @@ -3759,21 +3763,21 @@ public static class Pix extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -3788,21 +3792,21 @@ public static class Promptpay extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -3825,21 +3829,21 @@ public static class RevolutPay extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, or {@code off_session}. */ @@ -3857,21 +3861,21 @@ public static class SepaDebit extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, {@code off_session}, or {@code on_session}. */ @@ -3900,21 +3904,21 @@ public static class Sofort extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, or {@code off_session}. */ @@ -3933,21 +3937,21 @@ public static class Swish extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -3962,21 +3966,21 @@ public static class Twint extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -4005,21 +4009,21 @@ public static class UsBankAccount extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, {@code off_session}, or {@code on_session}. */ @@ -4105,21 +4109,21 @@ public static class WechatPay extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -4134,21 +4138,21 @@ public static class Zip extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method 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 you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ diff --git a/src/main/java/com/stripe/model/PaymentLink.java b/src/main/java/com/stripe/model/PaymentLink.java index 34f3114275e..fa181a99991 100644 --- a/src/main/java/com/stripe/model/PaymentLink.java +++ b/src/main/java/com/stripe/model/PaymentLink.java @@ -973,17 +973,16 @@ public static class PaymentIntentData extends StripeObject { String setupFutureUsage; /** - * Extra information about the payment. This will appear on your customer's statement when this - * payment succeeds in creating a charge. + * For a non-card payment, information about the charge that appears on the customer's statement + * when this payment succeeds in creating a charge. */ @SerializedName("statement_descriptor") String statementDescriptor; /** - * Provides information about the charge that customers see on their statements. Concatenated - * with the prefix (shortened descriptor) or statement descriptor that's set on the account to - * form the complete statement descriptor. Maximum 22 characters for the concatenated - * descriptor. + * For a card payment, information about the charge that appears on the customer's statement + * when this payment succeeds in creating a charge. Concatenated with the account's statement + * descriptor prefix to form the complete statement descriptor. */ @SerializedName("statement_descriptor_suffix") String statementDescriptorSuffix; diff --git a/src/main/java/com/stripe/model/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java index a08fc373fda..0feb377abd7 100644 --- a/src/main/java/com/stripe/model/PaymentMethod.java +++ b/src/main/java/com/stripe/model/PaymentMethod.java @@ -1125,6 +1125,14 @@ public static class Offline extends StripeObject { /** Time at which the payment was collected while offline. */ @SerializedName("stored_at") Long storedAt; + + /** + * The method used to process this payment method offline. Only deferred is allowed. + * + *

Equal to {@code deferred}. + */ + @SerializedName("type") + String type; } @Getter @@ -1430,6 +1438,10 @@ public static class CardPresent extends StripeObject { @SerializedName("networks") Networks networks; + /** Details about payment methods collected offline. */ + @SerializedName("offline") + Offline offline; + /** EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. */ @SerializedName("preferred_locales") List preferredLocales; @@ -1455,6 +1467,23 @@ public static class Networks extends StripeObject { @SerializedName("preferred") String preferred; } + + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Offline extends StripeObject { + /** Time at which the payment was collected while offline. */ + @SerializedName("stored_at") + Long storedAt; + + /** + * The method used to process this payment method offline. Only deferred is allowed. + * + *

Equal to {@code deferred}. + */ + @SerializedName("type") + String type; + } } @Getter diff --git a/src/main/java/com/stripe/model/Person.java b/src/main/java/com/stripe/model/Person.java index 2eb63c56979..cf6263a0bc0 100644 --- a/src/main/java/com/stripe/model/Person.java +++ b/src/main/java/com/stripe/model/Person.java @@ -285,6 +285,7 @@ public Person update(PersonUpdateParams params, RequestOptions options) throws S @Setter @EqualsAndHashCode(callSuper = false) public static class AdditionalTosAcceptances extends StripeObject { + /** Details on the legal guardian's acceptance of the main Stripe service agreement. */ @SerializedName("account") Account account; diff --git a/src/main/java/com/stripe/model/SetupAttempt.java b/src/main/java/com/stripe/model/SetupAttempt.java index 0fc0a7a8f24..8ef8993ea5f 100644 --- a/src/main/java/com/stripe/model/SetupAttempt.java +++ b/src/main/java/com/stripe/model/SetupAttempt.java @@ -687,6 +687,14 @@ public static class Offline extends StripeObject { /** Time at which the payment was collected while offline. */ @SerializedName("stored_at") Long storedAt; + + /** + * The method used to process this payment method offline. Only deferred is allowed. + * + *

Equal to {@code deferred}. + */ + @SerializedName("type") + String type; } } diff --git a/src/main/java/com/stripe/model/StripeError.java b/src/main/java/com/stripe/model/StripeError.java index 61a7c6b7e4c..51b85143d9d 100644 --- a/src/main/java/com/stripe/model/StripeError.java +++ b/src/main/java/com/stripe/model/StripeError.java @@ -47,12 +47,13 @@ public class StripeError extends StripeObject { * 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 + * invalid_mandate_reference_prefix_format}, {@code invalid_number}, {@code invalid_source_usage}, + * {@code invalid_tax_location}, {@code invoice_no_customer_line_items}, {@code + * invoice_no_payment_method_types}, {@code invoice_no_subscription_line_items}, {@code + * invoice_not_editable}, {@code invoice_on_behalf_of_not_editable}, {@code + * invoice_payment_intent_requires_action}, {@code invoice_upcoming_none}, {@code + * livemode_mismatch}, {@code lock_timeout}, {@code missing}, {@code no_account}, {@code + * not_allowed_on_standard_account}, {@code out_of_inventory}, {@code * ownership_declaration_not_allowed}, {@code parameter_invalid_empty}, {@code * parameter_invalid_integer}, {@code parameter_invalid_string_blank}, {@code * parameter_invalid_string_empty}, {@code parameter_missing}, {@code parameter_unknown}, {@code diff --git a/src/main/java/com/stripe/model/Subscription.java b/src/main/java/com/stripe/model/Subscription.java index 7eafc515afc..30415ab55ca 100644 --- a/src/main/java/com/stripe/model/Subscription.java +++ b/src/main/java/com/stripe/model/Subscription.java @@ -78,10 +78,8 @@ public class Subscription extends ApiResource implements HasId, MetadataStore) null, (RequestOptions) null); + } + + /** Reactivates this alert, allowing it to trigger again. */ + public Alert activate(RequestOptions options) throws StripeException { + return activate((Map) null, options); + } + + /** Reactivates this alert, allowing it to trigger again. */ + public Alert activate(Map params) throws StripeException { + return activate(params, (RequestOptions) null); + } + + /** Reactivates this alert, allowing it to trigger again. */ + public Alert activate(Map params, RequestOptions options) throws StripeException { + String path = + String.format("/v1/billing/alerts/%s/activate", ApiResource.urlEncodeId(this.getId())); + ApiRequest request = + new ApiRequest( + BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options, ApiMode.V1); + return getResponseGetter().request(request, Alert.class); + } + + /** Reactivates this alert, allowing it to trigger again. */ + public Alert activate(AlertActivateParams params) throws StripeException { + return activate(params, (RequestOptions) null); + } + + /** Reactivates this alert, allowing it to trigger again. */ + public Alert activate(AlertActivateParams params, RequestOptions options) throws StripeException { + String path = + String.format("/v1/billing/alerts/%s/activate", 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, Alert.class); + } + + /** Archives this alert, removing it from the list view and APIs. This is non-reversible. */ + public Alert archive() throws StripeException { + return archive((Map) null, (RequestOptions) null); + } + + /** Archives this alert, removing it from the list view and APIs. This is non-reversible. */ + public Alert archive(RequestOptions options) throws StripeException { + return archive((Map) null, options); + } + + /** Archives this alert, removing it from the list view and APIs. This is non-reversible. */ + public Alert archive(Map params) throws StripeException { + return archive(params, (RequestOptions) null); + } + + /** Archives this alert, removing it from the list view and APIs. This is non-reversible. */ + public Alert archive(Map params, RequestOptions options) throws StripeException { + String path = + String.format("/v1/billing/alerts/%s/archive", ApiResource.urlEncodeId(this.getId())); + ApiRequest request = + new ApiRequest( + BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options, ApiMode.V1); + return getResponseGetter().request(request, Alert.class); + } + + /** Archives this alert, removing it from the list view and APIs. This is non-reversible. */ + public Alert archive(AlertArchiveParams params) throws StripeException { + return archive(params, (RequestOptions) null); + } + + /** Archives this alert, removing it from the list view and APIs. This is non-reversible. */ + public Alert archive(AlertArchiveParams params, RequestOptions options) throws StripeException { + String path = + String.format("/v1/billing/alerts/%s/archive", 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, Alert.class); + } + + /** Creates a billing alert. */ + public static Alert create(Map params) throws StripeException { + return create(params, (RequestOptions) null); + } + + /** Creates a billing alert. */ + public static Alert create(Map params, RequestOptions options) + throws StripeException { + String path = "/v1/billing/alerts"; + ApiRequest request = + new ApiRequest( + BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options, ApiMode.V1); + return getGlobalResponseGetter().request(request, Alert.class); + } + + /** Creates a billing alert. */ + public static Alert create(AlertCreateParams params) throws StripeException { + return create(params, (RequestOptions) null); + } + + /** Creates a billing alert. */ + public static Alert create(AlertCreateParams params, RequestOptions options) + throws StripeException { + String path = "/v1/billing/alerts"; + ApiResource.checkNullTypedParams(path, params); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options, + ApiMode.V1); + return getGlobalResponseGetter().request(request, Alert.class); + } + + /** Deactivates this alert, preventing it from triggering. */ + public Alert deactivate() throws StripeException { + return deactivate((Map) null, (RequestOptions) null); + } + + /** Deactivates this alert, preventing it from triggering. */ + public Alert deactivate(RequestOptions options) throws StripeException { + return deactivate((Map) null, options); + } + + /** Deactivates this alert, preventing it from triggering. */ + public Alert deactivate(Map params) throws StripeException { + return deactivate(params, (RequestOptions) null); + } + + /** Deactivates this alert, preventing it from triggering. */ + public Alert deactivate(Map params, RequestOptions options) + throws StripeException { + String path = + String.format("/v1/billing/alerts/%s/deactivate", ApiResource.urlEncodeId(this.getId())); + ApiRequest request = + new ApiRequest( + BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options, ApiMode.V1); + return getResponseGetter().request(request, Alert.class); + } + + /** Deactivates this alert, preventing it from triggering. */ + public Alert deactivate(AlertDeactivateParams params) throws StripeException { + return deactivate(params, (RequestOptions) null); + } + + /** Deactivates this alert, preventing it from triggering. */ + public Alert deactivate(AlertDeactivateParams params, RequestOptions options) + throws StripeException { + String path = + String.format("/v1/billing/alerts/%s/deactivate", 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, Alert.class); + } + + /** Lists billing active and inactive alerts. */ + public static AlertCollection list(Map params) throws StripeException { + return list(params, (RequestOptions) null); + } + + /** Lists billing active and inactive alerts. */ + public static AlertCollection list(Map params, RequestOptions options) + throws StripeException { + String path = "/v1/billing/alerts"; + ApiRequest request = + new ApiRequest( + BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options, ApiMode.V1); + return getGlobalResponseGetter().request(request, AlertCollection.class); + } + + /** Lists billing active and inactive alerts. */ + public static AlertCollection list(AlertListParams params) throws StripeException { + return list(params, (RequestOptions) null); + } + + /** Lists billing active and inactive alerts. */ + public static AlertCollection list(AlertListParams params, RequestOptions options) + throws StripeException { + String path = "/v1/billing/alerts"; + ApiResource.checkNullTypedParams(path, params); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + path, + ApiRequestParams.paramsToMap(params), + options, + ApiMode.V1); + return getGlobalResponseGetter().request(request, AlertCollection.class); + } + + /** Retrieves a billing alert given an ID. */ + public static Alert retrieve(String id) throws StripeException { + return retrieve(id, (Map) null, (RequestOptions) null); + } + + /** Retrieves a billing alert given an ID. */ + public static Alert retrieve(String id, RequestOptions options) throws StripeException { + return retrieve(id, (Map) null, options); + } + + /** Retrieves a billing alert given an ID. */ + public static Alert retrieve(String id, Map params, RequestOptions options) + throws StripeException { + String path = String.format("/v1/billing/alerts/%s", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest( + BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options, ApiMode.V1); + return getGlobalResponseGetter().request(request, Alert.class); + } + + /** Retrieves a billing alert given an ID. */ + public static Alert retrieve(String id, AlertRetrieveParams params, RequestOptions options) + throws StripeException { + String path = String.format("/v1/billing/alerts/%s", ApiResource.urlEncodeId(id)); + ApiResource.checkNullTypedParams(path, params); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + path, + ApiRequestParams.paramsToMap(params), + options, + ApiMode.V1); + return getGlobalResponseGetter().request(request, Alert.class); + } + @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -150,4 +412,11 @@ public void setMeterObject(Meter expandableObject) { this.meter = new ExpandableField(expandableObject.getId(), expandableObject); } } + + @Override + public void setResponseGetter(StripeResponseGetter responseGetter) { + super.setResponseGetter(responseGetter); + trySetResponseGetter(filter, responseGetter); + trySetResponseGetter(usageThresholdConfig, responseGetter); + } } diff --git a/src/main/java/com/stripe/model/billing/AlertCollection.java b/src/main/java/com/stripe/model/billing/AlertCollection.java new file mode 100644 index 00000000000..3795c405f0b --- /dev/null +++ b/src/main/java/com/stripe/model/billing/AlertCollection.java @@ -0,0 +1,6 @@ +// File generated from our OpenAPI spec +package com.stripe.model.billing; + +import com.stripe.model.StripeCollection; + +public class AlertCollection extends StripeCollection {} diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java index 73c9e0bf45f..3e7104002aa 100644 --- a/src/main/java/com/stripe/model/checkout/Session.java +++ b/src/main/java/com/stripe/model/checkout/Session.java @@ -1555,21 +1555,21 @@ public static class AcssDebit extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method 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 you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, {@code off_session}, or {@code on_session}. */ @@ -1631,21 +1631,21 @@ public static class Affirm extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -1660,21 +1660,21 @@ public static class AfterpayClearpay extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -1689,21 +1689,21 @@ public static class Alipay extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -1718,21 +1718,21 @@ public static class AmazonPay extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, or {@code off_session}. */ @@ -1747,21 +1747,21 @@ public static class AuBecsDebit extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -1776,21 +1776,21 @@ public static class BacsDebit extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, {@code off_session}, or {@code on_session}. */ @@ -1805,21 +1805,21 @@ public static class Bancontact extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -1842,21 +1842,21 @@ public static class Boleto extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, {@code off_session}, or {@code on_session}. */ @@ -1890,21 +1890,21 @@ public static class Card extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, {@code off_session}, or {@code on_session}. */ @@ -1948,21 +1948,21 @@ public static class Cashapp extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -1989,21 +1989,21 @@ public static class CustomerBalance extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -2061,21 +2061,21 @@ public static class Eps extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -2090,21 +2090,21 @@ public static class Fpx extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -2119,21 +2119,21 @@ public static class Giropay extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -2148,21 +2148,21 @@ public static class Grabpay extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -2177,21 +2177,21 @@ public static class Ideal extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -2206,21 +2206,21 @@ public static class Klarna extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, {@code off_session}, or {@code on_session}. */ @@ -2244,21 +2244,21 @@ public static class Konbini extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -2273,21 +2273,21 @@ public static class Link extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, or {@code off_session}. */ @@ -2302,21 +2302,21 @@ public static class Mobilepay extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -2331,21 +2331,21 @@ public static class Multibanco extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -2368,21 +2368,21 @@ public static class Oxxo extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -2397,21 +2397,21 @@ public static class P24 extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -2426,21 +2426,21 @@ public static class Paynow extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -2475,21 +2475,21 @@ public static class Paypal extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, or {@code off_session}. */ @@ -2513,21 +2513,21 @@ public static class RevolutPay extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, or {@code off_session}. */ @@ -2542,21 +2542,21 @@ public static class SepaDebit extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, {@code off_session}, or {@code on_session}. */ @@ -2571,21 +2571,21 @@ public static class Sofort extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

Equal to {@code none}. */ @@ -2615,21 +2615,21 @@ public static class UsBankAccount extends StripeObject { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method 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 you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. + * + *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * *

One of {@code none}, {@code off_session}, or {@code on_session}. */ diff --git a/src/main/java/com/stripe/model/identity/VerificationSession.java b/src/main/java/com/stripe/model/identity/VerificationSession.java index 6353fcdf956..38db0863067 100644 --- a/src/main/java/com/stripe/model/identity/VerificationSession.java +++ b/src/main/java/com/stripe/model/identity/VerificationSession.java @@ -130,6 +130,10 @@ public class VerificationSession extends ApiResource @SerializedName("redaction") Redaction redaction; + /** Token referencing a Customer resource. */ + @SerializedName("related_customer") + String relatedCustomer; + /** * Status of this VerificationSession. Learn more about the lifecycle of diff --git a/src/main/java/com/stripe/model/tax/Calculation.java b/src/main/java/com/stripe/model/tax/Calculation.java index cc51e6981cf..da69ddf7ed6 100644 --- a/src/main/java/com/stripe/model/tax/Calculation.java +++ b/src/main/java/com/stripe/model/tax/Calculation.java @@ -14,6 +14,7 @@ import com.stripe.net.StripeResponseGetter; import com.stripe.param.tax.CalculationCreateParams; import com.stripe.param.tax.CalculationListLineItemsParams; +import com.stripe.param.tax.CalculationRetrieveParams; import java.util.List; import java.util.Map; import lombok.EqualsAndHashCode; @@ -202,6 +203,45 @@ public CalculationLineItemCollection listLineItems( return getResponseGetter().request(request, CalculationLineItemCollection.class); } + /** Retrieves a Tax {@code Calculation} object, if the calculation hasn’t expired. */ + public static Calculation retrieve(String calculation) throws StripeException { + return retrieve(calculation, (Map) null, (RequestOptions) null); + } + + /** Retrieves a Tax {@code Calculation} object, if the calculation hasn’t expired. */ + public static Calculation retrieve(String calculation, RequestOptions options) + throws StripeException { + return retrieve(calculation, (Map) null, options); + } + + /** Retrieves a Tax {@code Calculation} object, if the calculation hasn’t expired. */ + public static Calculation retrieve( + String calculation, Map params, RequestOptions options) + throws StripeException { + String path = String.format("/v1/tax/calculations/%s", ApiResource.urlEncodeId(calculation)); + ApiRequest request = + new ApiRequest( + BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options, ApiMode.V1); + return getGlobalResponseGetter().request(request, Calculation.class); + } + + /** Retrieves a Tax {@code Calculation} object, if the calculation hasn’t expired. */ + public static Calculation retrieve( + String calculation, CalculationRetrieveParams params, RequestOptions options) + throws StripeException { + String path = String.format("/v1/tax/calculations/%s", ApiResource.urlEncodeId(calculation)); + ApiResource.checkNullTypedParams(path, params); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + path, + ApiRequestParams.paramsToMap(params), + options, + ApiMode.V1); + return getGlobalResponseGetter().request(request, Calculation.class); + } + @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/terminal/Reader.java b/src/main/java/com/stripe/model/terminal/Reader.java index ea5812c28d9..207334f28db 100644 --- a/src/main/java/com/stripe/model/terminal/Reader.java +++ b/src/main/java/com/stripe/model/terminal/Reader.java @@ -112,7 +112,8 @@ public class Reader extends ApiResource implements HasId, MetadataStore String serialNumber; /** - * The networking status of the reader. + * The networking status of the reader. We do not recommend using this field in flows that may + * block taking payments. * *

One of {@code offline}, or {@code online}. */ diff --git a/src/main/java/com/stripe/param/AccountCreateParams.java b/src/main/java/com/stripe/param/AccountCreateParams.java index f82049e9658..a61d565d848 100644 --- a/src/main/java/com/stripe/param/AccountCreateParams.java +++ b/src/main/java/com/stripe/param/AccountCreateParams.java @@ -10896,22 +10896,32 @@ public static class Payments { Map extraParams; /** - * The default text that appears on credit card statements when a charge is made. This field - * prefixes any dynamic {@code statement_descriptor} specified on the charge. + * The default text that appears on statements for non-card charges outside of Japan. For card + * charges, if you don't set a {@code statement_descriptor_prefix}, this text is also used as + * the statement descriptor prefix. In that case, if concatenating the statement descriptor + * suffix causes the combined statement descriptor to exceed 22 characters, we truncate the + * {@code statement_descriptor} text to limit the full descriptor to 22 characters. For more + * information about statement descriptors and their requirements, see the account settings + * documentation. */ @SerializedName("statement_descriptor") String statementDescriptor; /** - * The Kana variation of the default text that appears on credit card statements when a charge - * is made (Japan only). + * The Kana variation of {@code statement_descriptor} used for charges in Japan. Japanese + * statement descriptors have special + * requirements. */ @SerializedName("statement_descriptor_kana") String statementDescriptorKana; /** - * The Kanji variation of the default text that appears on credit card statements when a - * charge is made (Japan only). + * The Kanji variation of {@code statement_descriptor} used for charges in Japan. Japanese + * statement descriptors have special + * requirements. */ @SerializedName("statement_descriptor_kanji") String statementDescriptorKanji; @@ -10978,8 +10988,14 @@ public Builder putAllExtraParam(Map map) { } /** - * The default text that appears on credit card statements when a charge is made. This field - * prefixes any dynamic {@code statement_descriptor} specified on the charge. + * The default text that appears on statements for non-card charges outside of Japan. For + * card charges, if you don't set a {@code statement_descriptor_prefix}, this text is also + * used as the statement descriptor prefix. In that case, if concatenating the statement + * descriptor suffix causes the combined statement descriptor to exceed 22 characters, we + * truncate the {@code statement_descriptor} text to limit the full descriptor to 22 + * characters. For more information about statement descriptors and their requirements, see + * the account + * settings documentation. */ public Builder setStatementDescriptor(String statementDescriptor) { this.statementDescriptor = statementDescriptor; @@ -10987,8 +11003,10 @@ public Builder setStatementDescriptor(String statementDescriptor) { } /** - * The Kana variation of the default text that appears on credit card statements when a - * charge is made (Japan only). + * The Kana variation of {@code statement_descriptor} used for charges in Japan. Japanese + * statement descriptors have special + * requirements. */ public Builder setStatementDescriptorKana(String statementDescriptorKana) { this.statementDescriptorKana = statementDescriptorKana; @@ -10996,8 +11014,10 @@ public Builder setStatementDescriptorKana(String statementDescriptorKana) { } /** - * The Kanji variation of the default text that appears on credit card statements when a - * charge is made (Japan only). + * The Kanji variation of {@code statement_descriptor} used for charges in Japan. Japanese + * statement descriptors have special + * requirements. */ public Builder setStatementDescriptorKanji(String statementDescriptorKanji) { this.statementDescriptorKanji = statementDescriptorKanji; diff --git a/src/main/java/com/stripe/param/AccountUpdateParams.java b/src/main/java/com/stripe/param/AccountUpdateParams.java index 767918706e3..9d45c561e66 100644 --- a/src/main/java/com/stripe/param/AccountUpdateParams.java +++ b/src/main/java/com/stripe/param/AccountUpdateParams.java @@ -11313,22 +11313,32 @@ public static class Payments { Map extraParams; /** - * The default text that appears on credit card statements when a charge is made. This field - * prefixes any dynamic {@code statement_descriptor} specified on the charge. + * The default text that appears on statements for non-card charges outside of Japan. For card + * charges, if you don't set a {@code statement_descriptor_prefix}, this text is also used as + * the statement descriptor prefix. In that case, if concatenating the statement descriptor + * suffix causes the combined statement descriptor to exceed 22 characters, we truncate the + * {@code statement_descriptor} text to limit the full descriptor to 22 characters. For more + * information about statement descriptors and their requirements, see the account settings + * documentation. */ @SerializedName("statement_descriptor") Object statementDescriptor; /** - * The Kana variation of the default text that appears on credit card statements when a charge - * is made (Japan only). + * The Kana variation of {@code statement_descriptor} used for charges in Japan. Japanese + * statement descriptors have special + * requirements. */ @SerializedName("statement_descriptor_kana") Object statementDescriptorKana; /** - * The Kanji variation of the default text that appears on credit card statements when a - * charge is made (Japan only). + * The Kanji variation of {@code statement_descriptor} used for charges in Japan. Japanese + * statement descriptors have special + * requirements. */ @SerializedName("statement_descriptor_kanji") Object statementDescriptorKanji; @@ -11395,8 +11405,14 @@ public Builder putAllExtraParam(Map map) { } /** - * The default text that appears on credit card statements when a charge is made. This field - * prefixes any dynamic {@code statement_descriptor} specified on the charge. + * The default text that appears on statements for non-card charges outside of Japan. For + * card charges, if you don't set a {@code statement_descriptor_prefix}, this text is also + * used as the statement descriptor prefix. In that case, if concatenating the statement + * descriptor suffix causes the combined statement descriptor to exceed 22 characters, we + * truncate the {@code statement_descriptor} text to limit the full descriptor to 22 + * characters. For more information about statement descriptors and their requirements, see + * the account + * settings documentation. */ public Builder setStatementDescriptor(String statementDescriptor) { this.statementDescriptor = statementDescriptor; @@ -11404,8 +11420,14 @@ public Builder setStatementDescriptor(String statementDescriptor) { } /** - * The default text that appears on credit card statements when a charge is made. This field - * prefixes any dynamic {@code statement_descriptor} specified on the charge. + * The default text that appears on statements for non-card charges outside of Japan. For + * card charges, if you don't set a {@code statement_descriptor_prefix}, this text is also + * used as the statement descriptor prefix. In that case, if concatenating the statement + * descriptor suffix causes the combined statement descriptor to exceed 22 characters, we + * truncate the {@code statement_descriptor} text to limit the full descriptor to 22 + * characters. For more information about statement descriptors and their requirements, see + * the account + * settings documentation. */ public Builder setStatementDescriptor(EmptyParam statementDescriptor) { this.statementDescriptor = statementDescriptor; @@ -11413,8 +11435,10 @@ public Builder setStatementDescriptor(EmptyParam statementDescriptor) { } /** - * The Kana variation of the default text that appears on credit card statements when a - * charge is made (Japan only). + * The Kana variation of {@code statement_descriptor} used for charges in Japan. Japanese + * statement descriptors have special + * requirements. */ public Builder setStatementDescriptorKana(String statementDescriptorKana) { this.statementDescriptorKana = statementDescriptorKana; @@ -11422,8 +11446,10 @@ public Builder setStatementDescriptorKana(String statementDescriptorKana) { } /** - * The Kana variation of the default text that appears on credit card statements when a - * charge is made (Japan only). + * The Kana variation of {@code statement_descriptor} used for charges in Japan. Japanese + * statement descriptors have special + * requirements. */ public Builder setStatementDescriptorKana(EmptyParam statementDescriptorKana) { this.statementDescriptorKana = statementDescriptorKana; @@ -11431,8 +11457,10 @@ public Builder setStatementDescriptorKana(EmptyParam statementDescriptorKana) { } /** - * The Kanji variation of the default text that appears on credit card statements when a - * charge is made (Japan only). + * The Kanji variation of {@code statement_descriptor} used for charges in Japan. Japanese + * statement descriptors have special + * requirements. */ public Builder setStatementDescriptorKanji(String statementDescriptorKanji) { this.statementDescriptorKanji = statementDescriptorKanji; @@ -11440,8 +11468,10 @@ public Builder setStatementDescriptorKanji(String statementDescriptorKanji) { } /** - * The Kanji variation of the default text that appears on credit card statements when a - * charge is made (Japan only). + * The Kanji variation of {@code statement_descriptor} used for charges in Japan. Japanese + * statement descriptors have special + * requirements. */ public Builder setStatementDescriptorKanji(EmptyParam statementDescriptorKanji) { this.statementDescriptorKanji = statementDescriptorKanji; diff --git a/src/main/java/com/stripe/param/ChargeCaptureParams.java b/src/main/java/com/stripe/param/ChargeCaptureParams.java index c540c370c85..01d377bb789 100644 --- a/src/main/java/com/stripe/param/ChargeCaptureParams.java +++ b/src/main/java/com/stripe/param/ChargeCaptureParams.java @@ -50,17 +50,21 @@ public class ChargeCaptureParams extends ApiRequestParams { String receiptEmail; /** - * For card charges, use {@code statement_descriptor_suffix} instead. Otherwise, you can use this - * value as the complete description of a charge on your customers’ statements. Must contain at - * least one letter, maximum 22 characters. + * For a non-card charge, text that appears on the customer's statement as the statement + * descriptor. This value overrides the account's default statement descriptor. For a card + * charge, this value is ignored unless you don't specify a {@code statement_descriptor_suffix}, + * in which case this value is used as the suffix. */ @SerializedName("statement_descriptor") String statementDescriptor; /** - * Provides information about the charge that customers see on their statements. Concatenated with - * the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the - * complete statement descriptor. Maximum 22 characters for the concatenated descriptor. + * Provides information about a card charge. Concatenated to the account's statement + * descriptor prefix to form the complete statement descriptor that appears on the customer's + * statement. If the account has no prefix value, the suffix is concatenated to the account's + * statement descriptor. */ @SerializedName("statement_descriptor_suffix") String statementDescriptorSuffix; @@ -232,9 +236,11 @@ public Builder setReceiptEmail(String receiptEmail) { } /** - * For card charges, use {@code statement_descriptor_suffix} instead. Otherwise, you can use - * this value as the complete description of a charge on your customers’ statements. Must - * contain at least one letter, maximum 22 characters. + * For a non-card charge, text that appears on the customer's statement as the statement + * descriptor. This value overrides the account's default statement descriptor. For a card + * charge, this value is ignored unless you don't specify a {@code statement_descriptor_suffix}, + * in which case this value is used as the suffix. */ public Builder setStatementDescriptor(String statementDescriptor) { this.statementDescriptor = statementDescriptor; @@ -242,10 +248,11 @@ public Builder setStatementDescriptor(String statementDescriptor) { } /** - * Provides information about the charge that customers see on their statements. Concatenated - * with the prefix (shortened descriptor) or statement descriptor that’s set on the account to - * form the complete statement descriptor. Maximum 22 characters for the concatenated - * descriptor. + * Provides information about a card charge. Concatenated to the account's statement + * descriptor prefix to form the complete statement descriptor that appears on the + * customer's statement. If the account has no prefix value, the suffix is concatenated to the + * account's statement descriptor. */ public Builder setStatementDescriptorSuffix(String statementDescriptorSuffix) { this.statementDescriptorSuffix = statementDescriptorSuffix; diff --git a/src/main/java/com/stripe/param/ChargeCreateParams.java b/src/main/java/com/stripe/param/ChargeCreateParams.java index 2ab7f0c864b..0001254d3e3 100644 --- a/src/main/java/com/stripe/param/ChargeCreateParams.java +++ b/src/main/java/com/stripe/param/ChargeCreateParams.java @@ -142,17 +142,21 @@ public class ChargeCreateParams extends ApiRequestParams { String source; /** - * For card charges, use {@code statement_descriptor_suffix} instead. Otherwise, you can use this - * value as the complete description of a charge on your customers’ statements. Must contain at - * least one letter, maximum 22 characters. + * For a non-card charge, text that appears on the customer's statement as the statement + * descriptor. This value overrides the account's default statement descriptor. For a card + * charge, this value is ignored unless you don't specify a {@code statement_descriptor_suffix}, + * in which case this value is used as the suffix. */ @SerializedName("statement_descriptor") String statementDescriptor; /** - * Provides information about the charge that customers see on their statements. Concatenated with - * the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the - * complete statement descriptor. Maximum 22 characters for the concatenated descriptor. + * Provides information about a card charge. Concatenated to the account's statement + * descriptor prefix to form the complete statement descriptor that appears on the customer's + * statement. If the account has no prefix value, the suffix is concatenated to the account's + * statement descriptor. */ @SerializedName("statement_descriptor_suffix") String statementDescriptorSuffix; @@ -523,9 +527,11 @@ public Builder setSource(String source) { } /** - * For card charges, use {@code statement_descriptor_suffix} instead. Otherwise, you can use - * this value as the complete description of a charge on your customers’ statements. Must - * contain at least one letter, maximum 22 characters. + * For a non-card charge, text that appears on the customer's statement as the statement + * descriptor. This value overrides the account's default statement descriptor. For a card + * charge, this value is ignored unless you don't specify a {@code statement_descriptor_suffix}, + * in which case this value is used as the suffix. */ public Builder setStatementDescriptor(String statementDescriptor) { this.statementDescriptor = statementDescriptor; @@ -533,10 +539,11 @@ public Builder setStatementDescriptor(String statementDescriptor) { } /** - * Provides information about the charge that customers see on their statements. Concatenated - * with the prefix (shortened descriptor) or statement descriptor that’s set on the account to - * form the complete statement descriptor. Maximum 22 characters for the concatenated - * descriptor. + * Provides information about a card charge. Concatenated to the account's statement + * descriptor prefix to form the complete statement descriptor that appears on the + * customer's statement. If the account has no prefix value, the suffix is concatenated to the + * account's statement descriptor. */ public Builder setStatementDescriptorSuffix(String statementDescriptorSuffix) { this.statementDescriptorSuffix = statementDescriptorSuffix; diff --git a/src/main/java/com/stripe/param/ChargeListParams.java b/src/main/java/com/stripe/param/ChargeListParams.java index 211b770567f..6628420460e 100644 --- a/src/main/java/com/stripe/param/ChargeListParams.java +++ b/src/main/java/com/stripe/param/ChargeListParams.java @@ -63,7 +63,7 @@ public class ChargeListParams extends ApiRequestParams { @SerializedName("starting_after") String startingAfter; - /** Only return charges for this transfer group. */ + /** Only return charges for this transfer group, limited to 100. */ @SerializedName("transfer_group") String transferGroup; @@ -235,7 +235,7 @@ public Builder setStartingAfter(String startingAfter) { return this; } - /** Only return charges for this transfer group. */ + /** Only return charges for this transfer group, limited to 100. */ public Builder setTransferGroup(String transferGroup) { this.transferGroup = transferGroup; return this; diff --git a/src/main/java/com/stripe/param/CustomerSessionCreateParams.java b/src/main/java/com/stripe/param/CustomerSessionCreateParams.java index 0d6e393f76b..38713fb1642 100644 --- a/src/main/java/com/stripe/param/CustomerSessionCreateParams.java +++ b/src/main/java/com/stripe/param/CustomerSessionCreateParams.java @@ -432,7 +432,7 @@ public static class Features { /** * Determines the max number of saved payment methods for the Payment Element to display. - * This parameter defaults to {@code 10}. + * This parameter defaults to {@code 3}. */ @SerializedName("payment_method_redisplay_limit") Long paymentMethodRedisplayLimit; @@ -612,7 +612,7 @@ public Builder setPaymentMethodRedisplay( /** * Determines the max number of saved payment methods for the Payment Element to display. - * This parameter defaults to {@code 10}. + * This parameter defaults to {@code 3}. */ public Builder setPaymentMethodRedisplayLimit(Long paymentMethodRedisplayLimit) { this.paymentMethodRedisplayLimit = paymentMethodRedisplayLimit; diff --git a/src/main/java/com/stripe/param/InvoiceCreateParams.java b/src/main/java/com/stripe/param/InvoiceCreateParams.java index 714365deaab..b1ee84f0fe9 100644 --- a/src/main/java/com/stripe/param/InvoiceCreateParams.java +++ b/src/main/java/com/stripe/param/InvoiceCreateParams.java @@ -2465,8 +2465,8 @@ public Builder setPlan(EmptyParam plan) { @Getter public static class Plan { /** - * Required. For {@code fixed_count} installment plans, this is the - * number of installment payments your customer will make to their credit card. + * For {@code fixed_count} installment plans, this is required. It represents the number + * of installment payments your customer will make to their credit card. */ @SerializedName("count") Long count; @@ -2482,7 +2482,7 @@ public static class Plan { Map extraParams; /** - * Required. For {@code fixed_count} installment plans, this is the + * For {@code fixed_count} installment plans, this is required. It represents the * interval between installment payments your customer will make to their credit card. * One of {@code month}. */ @@ -2522,7 +2522,7 @@ public static class Builder { } /** - * Required. For {@code fixed_count} installment plans, this is the + * For {@code fixed_count} installment plans, this is required. It represents the * number of installment payments your customer will make to their credit card. */ public Builder setCount(Long count) { @@ -2561,7 +2561,7 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. For {@code fixed_count} installment plans, this is the + * For {@code fixed_count} installment plans, this is required. It represents the * interval between installment payments your customer will make to their credit card. * One of {@code month}. */ diff --git a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java index d66843bd36d..f45763a5912 100644 --- a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java +++ b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java @@ -6036,7 +6036,8 @@ public static class SubscriptionDetails { Object cancelAt; /** - * Boolean indicating whether this subscription should cancel at the end of the current period. + * Indicate whether this subscription should cancel at the end of the current period ({@code + * current_period_end}). Defaults to {@code false}. */ @SerializedName("cancel_at_period_end") Boolean cancelAtPeriodEnd; @@ -6228,8 +6229,8 @@ public Builder setCancelAt(EmptyParam cancelAt) { } /** - * Boolean indicating whether this subscription should cancel at the end of the current - * period. + * Indicate whether this subscription should cancel at the end of the current period ({@code + * current_period_end}). Defaults to {@code false}. */ public Builder setCancelAtPeriodEnd(Boolean cancelAtPeriodEnd) { this.cancelAtPeriodEnd = cancelAtPeriodEnd; diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java index 96ed7a0f186..58389b6e803 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java @@ -166,9 +166,9 @@ public class InvoiceUpcomingLinesListParams extends ApiRequestParams { Object subscriptionCancelAt; /** - * Boolean indicating whether this subscription should cancel at the end of the current period. - * This field has been deprecated and will be removed in a future API version. Use {@code - * subscription_details.cancel_at_period_end} instead. + * Indicate whether this subscription should cancel at the end of the current period ({@code + * current_period_end}). Defaults to {@code false}. This field has been deprecated and will be + * removed in a future API version. Use {@code subscription_details.cancel_at_period_end} instead. */ @SerializedName("subscription_cancel_at_period_end") Boolean subscriptionCancelAtPeriodEnd; @@ -763,9 +763,10 @@ public Builder setSubscriptionCancelAt(EmptyParam subscriptionCancelAt) { } /** - * Boolean indicating whether this subscription should cancel at the end of the current period. - * This field has been deprecated and will be removed in a future API version. Use {@code - * subscription_details.cancel_at_period_end} instead. + * Indicate whether this subscription should cancel at the end of the current period ({@code + * current_period_end}). Defaults to {@code false}. This field has been deprecated and will be + * removed in a future API version. Use {@code subscription_details.cancel_at_period_end} + * instead. */ public Builder setSubscriptionCancelAtPeriodEnd(Boolean subscriptionCancelAtPeriodEnd) { this.subscriptionCancelAtPeriodEnd = subscriptionCancelAtPeriodEnd; @@ -6556,7 +6557,8 @@ public static class SubscriptionDetails { Object cancelAt; /** - * Boolean indicating whether this subscription should cancel at the end of the current period. + * Indicate whether this subscription should cancel at the end of the current period ({@code + * current_period_end}). Defaults to {@code false}. */ @SerializedName("cancel_at_period_end") Boolean cancelAtPeriodEnd; @@ -6749,8 +6751,8 @@ public Builder setCancelAt(EmptyParam cancelAt) { } /** - * Boolean indicating whether this subscription should cancel at the end of the current - * period. + * Indicate whether this subscription should cancel at the end of the current period ({@code + * current_period_end}). Defaults to {@code false}. */ public Builder setCancelAtPeriodEnd(Boolean cancelAtPeriodEnd) { this.cancelAtPeriodEnd = cancelAtPeriodEnd; diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java index c16bd1fc047..7fb2f57596b 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java @@ -166,9 +166,9 @@ public class InvoiceUpcomingLinesParams extends ApiRequestParams { Object subscriptionCancelAt; /** - * Boolean indicating whether this subscription should cancel at the end of the current period. - * This field has been deprecated and will be removed in a future API version. Use {@code - * subscription_details.cancel_at_period_end} instead. + * Indicate whether this subscription should cancel at the end of the current period ({@code + * current_period_end}). Defaults to {@code false}. This field has been deprecated and will be + * removed in a future API version. Use {@code subscription_details.cancel_at_period_end} instead. */ @SerializedName("subscription_cancel_at_period_end") Boolean subscriptionCancelAtPeriodEnd; @@ -760,9 +760,10 @@ public Builder setSubscriptionCancelAt(EmptyParam subscriptionCancelAt) { } /** - * Boolean indicating whether this subscription should cancel at the end of the current period. - * This field has been deprecated and will be removed in a future API version. Use {@code - * subscription_details.cancel_at_period_end} instead. + * Indicate whether this subscription should cancel at the end of the current period ({@code + * current_period_end}). Defaults to {@code false}. This field has been deprecated and will be + * removed in a future API version. Use {@code subscription_details.cancel_at_period_end} + * instead. */ public Builder setSubscriptionCancelAtPeriodEnd(Boolean subscriptionCancelAtPeriodEnd) { this.subscriptionCancelAtPeriodEnd = subscriptionCancelAtPeriodEnd; @@ -6519,7 +6520,8 @@ public static class SubscriptionDetails { Object cancelAt; /** - * Boolean indicating whether this subscription should cancel at the end of the current period. + * Indicate whether this subscription should cancel at the end of the current period ({@code + * current_period_end}). Defaults to {@code false}. */ @SerializedName("cancel_at_period_end") Boolean cancelAtPeriodEnd; @@ -6711,8 +6713,8 @@ public Builder setCancelAt(EmptyParam cancelAt) { } /** - * Boolean indicating whether this subscription should cancel at the end of the current - * period. + * Indicate whether this subscription should cancel at the end of the current period ({@code + * current_period_end}). Defaults to {@code false}. */ public Builder setCancelAtPeriodEnd(Boolean cancelAtPeriodEnd) { this.cancelAtPeriodEnd = cancelAtPeriodEnd; diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java index a50ed5d0a20..c6a24c8fb94 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java @@ -141,9 +141,9 @@ public class InvoiceUpcomingParams extends ApiRequestParams { Object subscriptionCancelAt; /** - * Boolean indicating whether this subscription should cancel at the end of the current period. - * This field has been deprecated and will be removed in a future API version. Use {@code - * subscription_details.cancel_at_period_end} instead. + * Indicate whether this subscription should cancel at the end of the current period ({@code + * current_period_end}). Defaults to {@code false}. This field has been deprecated and will be + * removed in a future API version. Use {@code subscription_details.cancel_at_period_end} instead. */ @SerializedName("subscription_cancel_at_period_end") Boolean subscriptionCancelAtPeriodEnd; @@ -689,9 +689,10 @@ public Builder setSubscriptionCancelAt(EmptyParam subscriptionCancelAt) { } /** - * Boolean indicating whether this subscription should cancel at the end of the current period. - * This field has been deprecated and will be removed in a future API version. Use {@code - * subscription_details.cancel_at_period_end} instead. + * Indicate whether this subscription should cancel at the end of the current period ({@code + * current_period_end}). Defaults to {@code false}. This field has been deprecated and will be + * removed in a future API version. Use {@code subscription_details.cancel_at_period_end} + * instead. */ public Builder setSubscriptionCancelAtPeriodEnd(Boolean subscriptionCancelAtPeriodEnd) { this.subscriptionCancelAtPeriodEnd = subscriptionCancelAtPeriodEnd; @@ -6412,7 +6413,8 @@ public static class SubscriptionDetails { Object cancelAt; /** - * Boolean indicating whether this subscription should cancel at the end of the current period. + * Indicate whether this subscription should cancel at the end of the current period ({@code + * current_period_end}). Defaults to {@code false}. */ @SerializedName("cancel_at_period_end") Boolean cancelAtPeriodEnd; @@ -6604,8 +6606,8 @@ public Builder setCancelAt(EmptyParam cancelAt) { } /** - * Boolean indicating whether this subscription should cancel at the end of the current - * period. + * Indicate whether this subscription should cancel at the end of the current period ({@code + * current_period_end}). Defaults to {@code false}. */ public Builder setCancelAtPeriodEnd(Boolean cancelAtPeriodEnd) { this.cancelAtPeriodEnd = cancelAtPeriodEnd; diff --git a/src/main/java/com/stripe/param/InvoiceUpdateParams.java b/src/main/java/com/stripe/param/InvoiceUpdateParams.java index bf6a19bcc63..223412314be 100644 --- a/src/main/java/com/stripe/param/InvoiceUpdateParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpdateParams.java @@ -2444,8 +2444,8 @@ public Builder setPlan(EmptyParam plan) { @Getter public static class Plan { /** - * Required. For {@code fixed_count} installment plans, this is the - * number of installment payments your customer will make to their credit card. + * For {@code fixed_count} installment plans, this is required. It represents the number + * of installment payments your customer will make to their credit card. */ @SerializedName("count") Long count; @@ -2461,7 +2461,7 @@ public static class Plan { Map extraParams; /** - * Required. For {@code fixed_count} installment plans, this is the + * For {@code fixed_count} installment plans, this is required. It represents the * interval between installment payments your customer will make to their credit card. * One of {@code month}. */ @@ -2501,7 +2501,7 @@ public static class Builder { } /** - * Required. For {@code fixed_count} installment plans, this is the + * For {@code fixed_count} installment plans, this is required. It represents the * number of installment payments your customer will make to their credit card. */ public Builder setCount(Long count) { @@ -2540,7 +2540,7 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. For {@code fixed_count} installment plans, this is the + * For {@code fixed_count} installment plans, this is required. It represents the * interval between installment payments your customer will make to their credit card. * One of {@code month}. */ diff --git a/src/main/java/com/stripe/param/PaymentIntentCaptureParams.java b/src/main/java/com/stripe/param/PaymentIntentCaptureParams.java index 59f205225b3..1d661de21c8 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCaptureParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCaptureParams.java @@ -63,19 +63,21 @@ public class PaymentIntentCaptureParams extends ApiRequestParams { Object metadata; /** - * For card charges, use statement_descriptor_suffix. - * Otherwise, you can use this value as the complete description of a charge on your customers' - * statements. It must contain at least one letter and be 1–22 characters long. + * Text that appears on the customer's statement as the statement + * descriptor for a non-card charge. This value overrides the account's default statement + * descriptor. Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix + * instead. */ @SerializedName("statement_descriptor") String statementDescriptor; /** - * Provides information about a card payment that customers see on their statements. Concatenated - * with the prefix (shortened descriptor) or statement descriptor that’s set on the account to - * form the complete statement descriptor. The concatenated descriptor must be 1-22 characters - * long. + * Provides information about a card charge. Concatenated to the account's statement + * descriptor prefix to form the complete statement descriptor that appears on the customer's + * statement. */ @SerializedName("statement_descriptor_suffix") String statementDescriptorSuffix; @@ -283,10 +285,13 @@ public Builder setMetadata(Map metadata) { } /** - * For card charges, use statement_descriptor_suffix. - * Otherwise, you can use this value as the complete description of a charge on your customers' - * statements. It must contain at least one letter and be 1–22 characters long. + * Text that appears on the customer's statement as the statement + * descriptor for a non-card charge. This value overrides the account's default statement + * descriptor. Setting this value for a card charge returns an error. For card charges, set the + * statement_descriptor_suffix + * instead. */ public Builder setStatementDescriptor(String statementDescriptor) { this.statementDescriptor = statementDescriptor; @@ -294,10 +299,10 @@ public Builder setStatementDescriptor(String statementDescriptor) { } /** - * Provides information about a card payment that customers see on their statements. - * Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the - * account to form the complete statement descriptor. The concatenated descriptor must be 1-22 - * characters long. + * Provides information about a card charge. Concatenated to the account's statement + * descriptor prefix to form the complete statement descriptor that appears on the + * customer's statement. */ public Builder setStatementDescriptorSuffix(String statementDescriptorSuffix) { this.statementDescriptorSuffix = statementDescriptorSuffix; diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java index 43c8cc774a1..0e6723cbc45 100644 --- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java @@ -120,22 +120,23 @@ public class PaymentIntentConfirmParams extends ApiRequestParams { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method to - * the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required - * actions from the user are complete. If no Customer was provided, the payment method can still - * be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required actions. + * If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates and + * attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code off_session}. */ @SerializedName("setup_future_usage") @@ -473,22 +474,23 @@ public Builder setReturnUrl(String returnUrl) { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method to - * the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment method - * can still be attached to a + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -501,22 +503,23 @@ public Builder setSetupFutureUsage( /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method to - * the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment method - * can still be attached to a + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -6572,23 +6575,23 @@ public static class AcssDebit { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -6672,24 +6675,24 @@ public Builder setMandateOptions( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -6703,24 +6706,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -6993,23 +6996,23 @@ public static class Affirm { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -7117,24 +7120,24 @@ public Builder setPreferredLocale(String preferredLocale) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7205,23 +7208,23 @@ public static class AfterpayClearpay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -7334,24 +7337,24 @@ public Builder setReference(String reference) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7401,23 +7404,23 @@ public static class Alipay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -7476,24 +7479,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7507,24 +7510,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -7576,21 +7579,21 @@ public static class AmazonPay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") ApiRequestParams.EnumParam setupFutureUsage; @@ -7684,21 +7687,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( PaymentIntentConfirmParams.PaymentMethodOptions.AmazonPay.SetupFutureUsage @@ -7711,21 +7714,21 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { this.setupFutureUsage = setupFutureUsage; @@ -7775,23 +7778,23 @@ public static class AuBecsDebit { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -7851,24 +7854,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7882,24 +7885,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -7941,23 +7944,23 @@ public static class BacsDebit { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -8017,24 +8020,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8048,24 +8051,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8113,23 +8116,23 @@ public static class Bancontact { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -8205,24 +8208,24 @@ public Builder setPreferredLanguage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8236,24 +8239,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8320,23 +8323,23 @@ public static class Blik { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -8410,24 +8413,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8441,24 +8444,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8502,23 +8505,23 @@ public static class Boleto { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -8593,24 +8596,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8624,24 +8627,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8783,23 +8786,23 @@ public static class Card { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -9116,24 +9119,24 @@ public Builder setRequireCvcRecollection(Boolean requireCvcRecollection) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -9147,24 +9150,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -9345,8 +9348,8 @@ public Builder setPlan(EmptyParam plan) { @Getter public static class Plan { /** - * Required. For {@code fixed_count} installment plans, this is the - * number of installment payments your customer will make to their credit card. + * For {@code fixed_count} installment plans, this is required. It represents the number + * of installment payments your customer will make to their credit card. */ @SerializedName("count") Long count; @@ -9362,9 +9365,9 @@ public static class Plan { Map extraParams; /** - * Required. For {@code fixed_count} installment plans, this is the - * interval between installment payments your customer will make to their credit card. One - * of {@code month}. + * For {@code fixed_count} installment plans, this is required. It represents the interval + * between installment payments your customer will make to their credit card. One of + * {@code month}. */ @SerializedName("interval") Interval interval; @@ -9400,8 +9403,8 @@ public PaymentIntentConfirmParams.PaymentMethodOptions.Card.Installments.Plan bu } /** - * Required. For {@code fixed_count} installment plans, this is the - * number of installment payments your customer will make to their credit card. + * For {@code fixed_count} installment plans, this is required. It represents the number + * of installment payments your customer will make to their credit card. */ public Builder setCount(Long count) { this.count = count; @@ -9439,7 +9442,7 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. For {@code fixed_count} installment plans, this is the + * For {@code fixed_count} installment plans, this is required. It represents the * interval between installment payments your customer will make to their credit card. * One of {@code month}. */ @@ -10394,6 +10397,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("eftpos_au") EFTPOS_AU("eftpos_au"), + @SerializedName("girocard") + GIROCARD("girocard"), + @SerializedName("interac") INTERAC("interac"), @@ -10769,23 +10775,23 @@ public static class Cashapp { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -10881,24 +10887,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -10912,24 +10918,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -10997,23 +11003,23 @@ public static class CustomerBalance { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -11106,24 +11112,24 @@ public Builder setFundingType( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11477,23 +11483,23 @@ public static class Eps { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -11552,24 +11558,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11606,23 +11612,23 @@ public static class Fpx { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -11681,24 +11687,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11735,23 +11741,23 @@ public static class Giropay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -11810,24 +11816,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11865,23 +11871,23 @@ public static class Grabpay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -11940,24 +11946,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11995,23 +12001,23 @@ public static class Ideal { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -12070,24 +12076,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12101,24 +12107,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -12234,23 +12240,23 @@ public static class Klarna { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -12360,24 +12366,24 @@ public Builder setPreferredLocale( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12605,23 +12611,23 @@ public static class Konbini { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -12781,24 +12787,24 @@ public Builder setProductDescription(EmptyParam productDescription) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12854,23 +12860,23 @@ public static class Link { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -12977,24 +12983,24 @@ public Builder setPersistentToken(String persistentToken) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13008,24 +13014,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -13089,23 +13095,23 @@ public static class Mobilepay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -13201,24 +13207,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13268,23 +13274,23 @@ public static class Multibanco { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -13343,24 +13349,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13406,23 +13412,23 @@ public static class Oxxo { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -13497,24 +13503,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13552,23 +13558,23 @@ public static class P24 { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -13637,24 +13643,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13697,23 +13703,23 @@ public static class Paynow { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -13772,24 +13778,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13850,23 +13856,23 @@ public static class Paypal { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -13990,24 +13996,24 @@ public Builder setRiskCorrelationId(String riskCorrelationId) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14021,24 +14027,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -14175,23 +14181,23 @@ public static class Pix { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -14278,24 +14284,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14332,23 +14338,23 @@ public static class Promptpay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -14407,24 +14413,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14475,21 +14481,21 @@ public static class RevolutPay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") ApiRequestParams.EnumParam setupFutureUsage; @@ -14584,21 +14590,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( PaymentIntentConfirmParams.PaymentMethodOptions.RevolutPay.SetupFutureUsage @@ -14611,21 +14617,21 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { this.setupFutureUsage = setupFutureUsage; @@ -14679,23 +14685,23 @@ public static class SepaDebit { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -14768,24 +14774,24 @@ public Builder setMandateOptions( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14799,24 +14805,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -14923,23 +14929,23 @@ public static class Sofort { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -15018,24 +15024,24 @@ public Builder setPreferredLanguage(EmptyParam preferredLanguage) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15049,24 +15055,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -15139,23 +15145,23 @@ public static class Swish { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -15230,24 +15236,24 @@ public Builder setReference(EmptyParam reference) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15285,23 +15291,23 @@ public static class Twint { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -15360,24 +15366,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15431,23 +15437,23 @@ public static class UsBankAccount { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -15577,24 +15583,24 @@ public Builder setPreferredSettlementSpeed(EmptyParam preferredSettlementSpeed) * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15608,24 +15614,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -16325,23 +16331,23 @@ public static class WechatPay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -16423,24 +16429,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -16496,23 +16502,23 @@ public static class Zip { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -16571,24 +16577,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java index 43d3bcc1efc..46b4614f519 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java @@ -236,20 +236,21 @@ public class PaymentIntentCreateParams extends ApiRequestParams { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method to - * the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required - * actions from the user are complete. If no Customer was provided, the payment method can still - * be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required actions. + * If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates and + * attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -259,19 +260,21 @@ public class PaymentIntentCreateParams extends ApiRequestParams { Shipping shipping; /** - * For card charges, use statement_descriptor_suffix. - * Otherwise, you can use this value as the complete description of a charge on your customers' - * statements. It must contain at least one letter and be 1–22 characters long. + * Text that appears on the customer's statement as the statement + * descriptor for a non-card charge. This value overrides the account's default statement + * descriptor. Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix + * instead. */ @SerializedName("statement_descriptor") String statementDescriptor; /** - * Provides information about a card payment that customers see on their statements. Concatenated - * with the prefix (shortened descriptor) or statement descriptor that’s set on the account to - * form the complete statement descriptor. The concatenated descriptor must contain 1-22 - * characters. + * Provides information about a card charge. Concatenated to the account's statement + * descriptor prefix to form the complete statement descriptor that appears on the customer's + * statement. */ @SerializedName("statement_descriptor_suffix") String statementDescriptorSuffix; @@ -848,20 +851,21 @@ public Builder setReturnUrl(String returnUrl) { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method to - * the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment method - * can still be attached to a + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( PaymentIntentCreateParams.SetupFutureUsage setupFutureUsage) { @@ -876,10 +880,13 @@ public Builder setShipping(PaymentIntentCreateParams.Shipping shipping) { } /** - * For card charges, use statement_descriptor_suffix. - * Otherwise, you can use this value as the complete description of a charge on your customers' - * statements. It must contain at least one letter and be 1–22 characters long. + * Text that appears on the customer's statement as the statement + * descriptor for a non-card charge. This value overrides the account's default statement + * descriptor. Setting this value for a card charge returns an error. For card charges, set the + * statement_descriptor_suffix + * instead. */ public Builder setStatementDescriptor(String statementDescriptor) { this.statementDescriptor = statementDescriptor; @@ -887,10 +894,10 @@ public Builder setStatementDescriptor(String statementDescriptor) { } /** - * Provides information about a card payment that customers see on their statements. - * Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the - * account to form the complete statement descriptor. The concatenated descriptor must contain - * 1-22 characters. + * Provides information about a card charge. Concatenated to the account's statement + * descriptor prefix to form the complete statement descriptor that appears on the + * customer's statement. */ public Builder setStatementDescriptorSuffix(String statementDescriptorSuffix) { this.statementDescriptorSuffix = statementDescriptorSuffix; @@ -7072,23 +7079,23 @@ public static class AcssDebit { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -7172,24 +7179,24 @@ public Builder setMandateOptions( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7203,24 +7210,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -7493,23 +7500,23 @@ public static class Affirm { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -7617,24 +7624,24 @@ public Builder setPreferredLocale(String preferredLocale) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7705,23 +7712,23 @@ public static class AfterpayClearpay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -7834,24 +7841,24 @@ public Builder setReference(String reference) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7901,23 +7908,23 @@ public static class Alipay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -7976,24 +7983,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8007,24 +8014,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8076,21 +8083,21 @@ public static class AmazonPay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") ApiRequestParams.EnumParam setupFutureUsage; @@ -8184,21 +8191,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( PaymentIntentCreateParams.PaymentMethodOptions.AmazonPay.SetupFutureUsage @@ -8211,21 +8218,21 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { this.setupFutureUsage = setupFutureUsage; @@ -8275,23 +8282,23 @@ public static class AuBecsDebit { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -8351,24 +8358,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8382,24 +8389,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8441,23 +8448,23 @@ public static class BacsDebit { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -8517,24 +8524,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8548,24 +8555,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8613,23 +8620,23 @@ public static class Bancontact { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -8705,24 +8712,24 @@ public Builder setPreferredLanguage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8736,24 +8743,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8820,23 +8827,23 @@ public static class Blik { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -8910,24 +8917,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8940,24 +8947,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -9001,23 +9008,23 @@ public static class Boleto { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -9092,24 +9099,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -9123,24 +9130,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -9282,23 +9289,23 @@ public static class Card { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -9615,24 +9622,24 @@ public Builder setRequireCvcRecollection(Boolean requireCvcRecollection) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -9645,24 +9652,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -9843,8 +9850,8 @@ public Builder setPlan(EmptyParam plan) { @Getter public static class Plan { /** - * Required. For {@code fixed_count} installment plans, this is the - * number of installment payments your customer will make to their credit card. + * For {@code fixed_count} installment plans, this is required. It represents the number + * of installment payments your customer will make to their credit card. */ @SerializedName("count") Long count; @@ -9860,9 +9867,9 @@ public static class Plan { Map extraParams; /** - * Required. For {@code fixed_count} installment plans, this is the - * interval between installment payments your customer will make to their credit card. One - * of {@code month}. + * For {@code fixed_count} installment plans, this is required. It represents the interval + * between installment payments your customer will make to their credit card. One of + * {@code month}. */ @SerializedName("interval") Interval interval; @@ -9898,8 +9905,8 @@ public PaymentIntentCreateParams.PaymentMethodOptions.Card.Installments.Plan bui } /** - * Required. For {@code fixed_count} installment plans, this is the - * number of installment payments your customer will make to their credit card. + * For {@code fixed_count} installment plans, this is required. It represents the number + * of installment payments your customer will make to their credit card. */ public Builder setCount(Long count) { this.count = count; @@ -9937,7 +9944,7 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. For {@code fixed_count} installment plans, this is the + * For {@code fixed_count} installment plans, this is required. It represents the * interval between installment payments your customer will make to their credit card. * One of {@code month}. */ @@ -10890,6 +10897,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("eftpos_au") EFTPOS_AU("eftpos_au"), + @SerializedName("girocard") + GIROCARD("girocard"), + @SerializedName("interac") INTERAC("interac"), @@ -11265,23 +11275,23 @@ public static class Cashapp { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -11377,24 +11387,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11408,24 +11418,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -11493,23 +11503,23 @@ public static class CustomerBalance { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -11602,24 +11612,24 @@ public Builder setFundingType( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11973,23 +11983,23 @@ public static class Eps { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -12048,24 +12058,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12102,23 +12112,23 @@ public static class Fpx { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -12177,24 +12187,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12231,23 +12241,23 @@ public static class Giropay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -12306,24 +12316,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12361,23 +12371,23 @@ public static class Grabpay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -12436,24 +12446,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12491,23 +12501,23 @@ public static class Ideal { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -12566,24 +12576,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12597,24 +12607,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -12730,23 +12740,23 @@ public static class Klarna { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -12855,24 +12865,24 @@ public Builder setPreferredLocale( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13100,23 +13110,23 @@ public static class Konbini { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -13276,24 +13286,24 @@ public Builder setProductDescription(EmptyParam productDescription) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13349,23 +13359,23 @@ public static class Link { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -13472,24 +13482,24 @@ public Builder setPersistentToken(String persistentToken) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13502,24 +13512,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -13583,23 +13593,23 @@ public static class Mobilepay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -13695,24 +13705,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13762,23 +13772,23 @@ public static class Multibanco { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -13837,24 +13847,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13900,23 +13910,23 @@ public static class Oxxo { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -13991,24 +14001,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14045,23 +14055,23 @@ public static class P24 { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -14130,24 +14140,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14190,23 +14200,23 @@ public static class Paynow { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -14265,24 +14275,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14343,23 +14353,23 @@ public static class Paypal { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -14482,24 +14492,24 @@ public Builder setRiskCorrelationId(String riskCorrelationId) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14513,24 +14523,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -14667,23 +14677,23 @@ public static class Pix { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -14770,24 +14780,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14824,23 +14834,23 @@ public static class Promptpay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -14899,24 +14909,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14967,21 +14977,21 @@ public static class RevolutPay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") ApiRequestParams.EnumParam setupFutureUsage; @@ -15075,21 +15085,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( PaymentIntentCreateParams.PaymentMethodOptions.RevolutPay.SetupFutureUsage @@ -15102,21 +15112,21 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { this.setupFutureUsage = setupFutureUsage; @@ -15170,23 +15180,23 @@ public static class SepaDebit { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -15259,24 +15269,24 @@ public Builder setMandateOptions( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15290,24 +15300,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -15414,23 +15424,23 @@ public static class Sofort { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -15509,24 +15519,24 @@ public Builder setPreferredLanguage(EmptyParam preferredLanguage) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15540,24 +15550,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -15630,23 +15640,23 @@ public static class Swish { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -15721,24 +15731,24 @@ public Builder setReference(EmptyParam reference) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15776,23 +15786,23 @@ public static class Twint { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -15851,24 +15861,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15922,23 +15932,23 @@ public static class UsBankAccount { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -16066,24 +16076,24 @@ public Builder setPreferredSettlementSpeed(EmptyParam preferredSettlementSpeed) * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -16097,24 +16107,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -16814,23 +16824,23 @@ public static class WechatPay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -16912,24 +16922,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -16985,23 +16995,23 @@ public static class Zip { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -17060,24 +17070,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( diff --git a/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java b/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java index 449fd14698d..0a7ed7ef162 100644 --- a/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java @@ -55,10 +55,12 @@ public class PaymentIntentIncrementAuthorizationParams extends ApiRequestParams Map metadata; /** - * For card charges, use statement_descriptor_suffix. - * Otherwise, you can use this value as the complete description of a charge on your customers' - * statements. It must contain at least one letter and be 1–22 characters long. + * Text that appears on the customer's statement as the statement + * descriptor for a non-card charge. This value overrides the account's default statement + * descriptor. Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix + * instead. */ @SerializedName("statement_descriptor") String statementDescriptor; @@ -231,10 +233,13 @@ public Builder putAllMetadata(Map map) { } /** - * For card charges, use statement_descriptor_suffix. - * Otherwise, you can use this value as the complete description of a charge on your customers' - * statements. It must contain at least one letter and be 1–22 characters long. + * Text that appears on the customer's statement as the statement + * descriptor for a non-card charge. This value overrides the account's default statement + * descriptor. Setting this value for a card charge returns an error. For card charges, set the + * statement_descriptor_suffix + * instead. */ public Builder setStatementDescriptor(String statementDescriptor) { this.statementDescriptor = statementDescriptor; diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index 6612ced6cd1..1869b92a7d3 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -133,22 +133,23 @@ public class PaymentIntentUpdateParams extends ApiRequestParams { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method to - * the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required - * actions from the user are complete. If no Customer was provided, the payment method can still - * be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required actions. + * If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates and + * attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code off_session}. */ @SerializedName("setup_future_usage") @@ -159,18 +160,21 @@ public class PaymentIntentUpdateParams extends ApiRequestParams { Object shipping; /** - * For card charges, use statement_descriptor_suffix. - * Otherwise, you can use this value as the complete description of a charge on your customers' - * statements. It must contain at least one letter and be 1–22 characters long. + * Text that appears on the customer's statement as the statement + * descriptor for a non-card charge. This value overrides the account's default statement + * descriptor. Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix + * instead. */ @SerializedName("statement_descriptor") Object statementDescriptor; /** - * Provides information about a card payment that customers see on their statements. Concatenated - * with the prefix (shortened descriptor) or statement descriptor that’s set on the account to - * form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor. + * Provides information about a card charge. Concatenated to the account's statement + * descriptor prefix to form the complete statement descriptor that appears on the customer's + * statement. */ @SerializedName("statement_descriptor_suffix") Object statementDescriptorSuffix; @@ -627,22 +631,23 @@ public Builder setReceiptEmail(EmptyParam receiptEmail) { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method to - * the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment method - * can still be attached to a + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -655,22 +660,23 @@ public Builder setSetupFutureUsage( /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method to - * the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment method - * can still be attached to a + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -692,10 +698,13 @@ public Builder setShipping(EmptyParam shipping) { } /** - * For card charges, use statement_descriptor_suffix. - * Otherwise, you can use this value as the complete description of a charge on your customers' - * statements. It must contain at least one letter and be 1–22 characters long. + * Text that appears on the customer's statement as the statement + * descriptor for a non-card charge. This value overrides the account's default statement + * descriptor. Setting this value for a card charge returns an error. For card charges, set the + * statement_descriptor_suffix + * instead. */ public Builder setStatementDescriptor(String statementDescriptor) { this.statementDescriptor = statementDescriptor; @@ -703,10 +712,13 @@ public Builder setStatementDescriptor(String statementDescriptor) { } /** - * For card charges, use statement_descriptor_suffix. - * Otherwise, you can use this value as the complete description of a charge on your customers' - * statements. It must contain at least one letter and be 1–22 characters long. + * Text that appears on the customer's statement as the statement + * descriptor for a non-card charge. This value overrides the account's default statement + * descriptor. Setting this value for a card charge returns an error. For card charges, set the + * statement_descriptor_suffix + * instead. */ public Builder setStatementDescriptor(EmptyParam statementDescriptor) { this.statementDescriptor = statementDescriptor; @@ -714,10 +726,10 @@ public Builder setStatementDescriptor(EmptyParam statementDescriptor) { } /** - * Provides information about a card payment that customers see on their statements. - * Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the - * account to form the complete statement descriptor. Maximum 22 characters for the concatenated - * descriptor. + * Provides information about a card charge. Concatenated to the account's statement + * descriptor prefix to form the complete statement descriptor that appears on the + * customer's statement. */ public Builder setStatementDescriptorSuffix(String statementDescriptorSuffix) { this.statementDescriptorSuffix = statementDescriptorSuffix; @@ -725,10 +737,10 @@ public Builder setStatementDescriptorSuffix(String statementDescriptorSuffix) { } /** - * Provides information about a card payment that customers see on their statements. - * Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the - * account to form the complete statement descriptor. Maximum 22 characters for the concatenated - * descriptor. + * Provides information about a card charge. Concatenated to the account's statement + * descriptor prefix to form the complete statement descriptor that appears on the + * customer's statement. */ public Builder setStatementDescriptorSuffix(EmptyParam statementDescriptorSuffix) { this.statementDescriptorSuffix = statementDescriptorSuffix; @@ -6536,23 +6548,23 @@ public static class AcssDebit { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -6636,24 +6648,24 @@ public Builder setMandateOptions( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -6667,24 +6679,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -6966,23 +6978,23 @@ public static class Affirm { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -7098,24 +7110,24 @@ public Builder setPreferredLocale(EmptyParam preferredLocale) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7186,23 +7198,23 @@ public static class AfterpayClearpay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -7325,24 +7337,24 @@ public Builder setReference(EmptyParam reference) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7392,23 +7404,23 @@ public static class Alipay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -7467,24 +7479,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7498,24 +7510,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -7567,21 +7579,21 @@ public static class AmazonPay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") ApiRequestParams.EnumParam setupFutureUsage; @@ -7675,21 +7687,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( PaymentIntentUpdateParams.PaymentMethodOptions.AmazonPay.SetupFutureUsage @@ -7702,21 +7714,21 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { this.setupFutureUsage = setupFutureUsage; @@ -7766,23 +7778,23 @@ public static class AuBecsDebit { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -7842,24 +7854,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -7873,24 +7885,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -7932,23 +7944,23 @@ public static class BacsDebit { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -8008,24 +8020,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8039,24 +8051,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8104,23 +8116,23 @@ public static class Bancontact { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -8196,24 +8208,24 @@ public Builder setPreferredLanguage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8227,24 +8239,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8311,23 +8323,23 @@ public static class Blik { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -8410,24 +8422,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8440,24 +8452,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8501,23 +8513,23 @@ public static class Boleto { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -8592,24 +8604,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -8623,24 +8635,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -8782,23 +8794,23 @@ public static class Card { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -9125,24 +9137,24 @@ public Builder setRequireCvcRecollection(Boolean requireCvcRecollection) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -9155,24 +9167,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -9353,8 +9365,8 @@ public Builder setPlan(EmptyParam plan) { @Getter public static class Plan { /** - * Required. For {@code fixed_count} installment plans, this is the - * number of installment payments your customer will make to their credit card. + * For {@code fixed_count} installment plans, this is required. It represents the number + * of installment payments your customer will make to their credit card. */ @SerializedName("count") Long count; @@ -9370,9 +9382,9 @@ public static class Plan { Map extraParams; /** - * Required. For {@code fixed_count} installment plans, this is the - * interval between installment payments your customer will make to their credit card. One - * of {@code month}. + * For {@code fixed_count} installment plans, this is required. It represents the interval + * between installment payments your customer will make to their credit card. One of + * {@code month}. */ @SerializedName("interval") Interval interval; @@ -9408,8 +9420,8 @@ public PaymentIntentUpdateParams.PaymentMethodOptions.Card.Installments.Plan bui } /** - * Required. For {@code fixed_count} installment plans, this is the - * number of installment payments your customer will make to their credit card. + * For {@code fixed_count} installment plans, this is required. It represents the number + * of installment payments your customer will make to their credit card. */ public Builder setCount(Long count) { this.count = count; @@ -9447,7 +9459,7 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. For {@code fixed_count} installment plans, this is the + * For {@code fixed_count} installment plans, this is required. It represents the * interval between installment payments your customer will make to their credit card. * One of {@code month}. */ @@ -10454,6 +10466,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("eftpos_au") EFTPOS_AU("eftpos_au"), + @SerializedName("girocard") + GIROCARD("girocard"), + @SerializedName("interac") INTERAC("interac"), @@ -10829,23 +10844,23 @@ public static class Cashapp { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -10941,24 +10956,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -10972,24 +10987,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -11057,23 +11072,23 @@ public static class CustomerBalance { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -11166,24 +11181,24 @@ public Builder setFundingType( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11547,23 +11562,23 @@ public static class Eps { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -11622,24 +11637,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11676,23 +11691,23 @@ public static class Fpx { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -11751,24 +11766,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11805,23 +11820,23 @@ public static class Giropay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -11880,24 +11895,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -11935,23 +11950,23 @@ public static class Grabpay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -12010,24 +12025,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12065,23 +12080,23 @@ public static class Ideal { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -12140,24 +12155,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12171,24 +12186,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -12304,23 +12319,23 @@ public static class Klarna { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -12429,24 +12444,24 @@ public Builder setPreferredLocale( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12674,23 +12689,23 @@ public static class Konbini { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -12850,24 +12865,24 @@ public Builder setProductDescription(EmptyParam productDescription) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -12923,23 +12938,23 @@ public static class Link { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -13053,24 +13068,24 @@ public Builder setPersistentToken(EmptyParam persistentToken) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13083,24 +13098,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -13164,23 +13179,23 @@ public static class Mobilepay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -13276,24 +13291,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13343,23 +13358,23 @@ public static class Multibanco { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -13418,24 +13433,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13481,23 +13496,23 @@ public static class Oxxo { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -13572,24 +13587,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13626,23 +13641,23 @@ public static class P24 { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -13711,24 +13726,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13771,23 +13786,23 @@ public static class Paynow { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -13846,24 +13861,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -13924,23 +13939,23 @@ public static class Paypal { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -14081,24 +14096,24 @@ public Builder setRiskCorrelationId(EmptyParam riskCorrelationId) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14112,24 +14127,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -14266,23 +14281,23 @@ public static class Pix { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -14369,24 +14384,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14423,23 +14438,23 @@ public static class Promptpay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -14498,24 +14513,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14566,21 +14581,21 @@ public static class RevolutPay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") ApiRequestParams.EnumParam setupFutureUsage; @@ -14674,21 +14689,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( PaymentIntentUpdateParams.PaymentMethodOptions.RevolutPay.SetupFutureUsage @@ -14701,21 +14716,21 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { this.setupFutureUsage = setupFutureUsage; @@ -14769,23 +14784,23 @@ public static class SepaDebit { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -14858,24 +14873,24 @@ public Builder setMandateOptions( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -14889,24 +14904,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -15013,23 +15028,23 @@ public static class Sofort { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -15108,24 +15123,24 @@ public Builder setPreferredLanguage(EmptyParam preferredLanguage) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15139,24 +15154,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -15229,23 +15244,23 @@ public static class Swish { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -15320,24 +15335,24 @@ public Builder setReference(EmptyParam reference) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15375,23 +15390,23 @@ public static class Twint { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -15450,24 +15465,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15521,23 +15536,23 @@ public static class UsBankAccount { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -15665,24 +15680,24 @@ public Builder setPreferredSettlementSpeed(EmptyParam preferredSettlementSpeed) * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -15696,24 +15711,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -16422,23 +16437,23 @@ public static class WechatPay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -16526,24 +16541,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -16599,23 +16614,23 @@ public static class Zip { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -16674,24 +16689,24 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( diff --git a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java index 65e0b180d28..2c73f60736a 100644 --- a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java @@ -3542,17 +3542,22 @@ public static class PaymentIntentData { SetupFutureUsage setupFutureUsage; /** - * Extra information about the payment. This will appear on your customer's statement when this - * payment succeeds in creating a charge. + * Text that appears on the customer's statement as the statement + * descriptor for a non-card charge. This value overrides the account's default statement + * descriptor. Setting this value for a card charge returns an error. For card charges, set the + * statement_descriptor_suffix + * instead. */ @SerializedName("statement_descriptor") String statementDescriptor; /** - * Provides information about the charge that customers see on their statements. Concatenated - * with the prefix (shortened descriptor) or statement descriptor that's set on the account to - * form the complete statement descriptor. Maximum 22 characters for the concatenated - * descriptor. + * Provides information about a card charge. Concatenated to the account's statement + * descriptor prefix to form the complete statement descriptor that appears on the + * customer's statement. */ @SerializedName("statement_descriptor_suffix") String statementDescriptorSuffix; @@ -3713,8 +3718,13 @@ public Builder setSetupFutureUsage( } /** - * Extra information about the payment. This will appear on your customer's statement when - * this payment succeeds in creating a charge. + * Text that appears on the customer's statement as the statement + * descriptor for a non-card charge. This value overrides the account's default statement + * descriptor. Setting this value for a card charge returns an error. For card charges, set + * the statement_descriptor_suffix + * instead. */ public Builder setStatementDescriptor(String statementDescriptor) { this.statementDescriptor = statementDescriptor; @@ -3722,10 +3732,10 @@ public Builder setStatementDescriptor(String statementDescriptor) { } /** - * Provides information about the charge that customers see on their statements. Concatenated - * with the prefix (shortened descriptor) or statement descriptor that's set on the account to - * form the complete statement descriptor. Maximum 22 characters for the concatenated - * descriptor. + * Provides information about a card charge. Concatenated to the account's statement + * descriptor prefix to form the complete statement descriptor that appears on the + * customer's statement. */ public Builder setStatementDescriptorSuffix(String statementDescriptorSuffix) { this.statementDescriptorSuffix = statementDescriptorSuffix; diff --git a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java index 0d4ab6ce16e..a0fdc578406 100644 --- a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java @@ -3240,17 +3240,22 @@ public static class PaymentIntentData { Object metadata; /** - * Extra information about the payment. This will appear on your customer's statement when this - * payment succeeds in creating a charge. + * Text that appears on the customer's statement as the statement + * descriptor for a non-card charge. This value overrides the account's default statement + * descriptor. Setting this value for a card charge returns an error. For card charges, set the + * statement_descriptor_suffix + * instead. */ @SerializedName("statement_descriptor") Object statementDescriptor; /** - * Provides information about the charge that customers see on their statements. Concatenated - * with the prefix (shortened descriptor) or statement descriptor that's set on the account to - * form the complete statement descriptor. Maximum 22 characters for the concatenated - * descriptor. + * Provides information about a card charge. Concatenated to the account's statement + * descriptor prefix to form the complete statement descriptor that appears on the + * customer's statement. */ @SerializedName("statement_descriptor_suffix") Object statementDescriptorSuffix; @@ -3396,8 +3401,13 @@ public Builder setMetadata(Map metadata) { } /** - * Extra information about the payment. This will appear on your customer's statement when - * this payment succeeds in creating a charge. + * Text that appears on the customer's statement as the statement + * descriptor for a non-card charge. This value overrides the account's default statement + * descriptor. Setting this value for a card charge returns an error. For card charges, set + * the statement_descriptor_suffix + * instead. */ public Builder setStatementDescriptor(String statementDescriptor) { this.statementDescriptor = statementDescriptor; @@ -3405,8 +3415,13 @@ public Builder setStatementDescriptor(String statementDescriptor) { } /** - * Extra information about the payment. This will appear on your customer's statement when - * this payment succeeds in creating a charge. + * Text that appears on the customer's statement as the statement + * descriptor for a non-card charge. This value overrides the account's default statement + * descriptor. Setting this value for a card charge returns an error. For card charges, set + * the statement_descriptor_suffix + * instead. */ public Builder setStatementDescriptor(EmptyParam statementDescriptor) { this.statementDescriptor = statementDescriptor; @@ -3414,10 +3429,10 @@ public Builder setStatementDescriptor(EmptyParam statementDescriptor) { } /** - * Provides information about the charge that customers see on their statements. Concatenated - * with the prefix (shortened descriptor) or statement descriptor that's set on the account to - * form the complete statement descriptor. Maximum 22 characters for the concatenated - * descriptor. + * Provides information about a card charge. Concatenated to the account's statement + * descriptor prefix to form the complete statement descriptor that appears on the + * customer's statement. */ public Builder setStatementDescriptorSuffix(String statementDescriptorSuffix) { this.statementDescriptorSuffix = statementDescriptorSuffix; @@ -3425,10 +3440,10 @@ public Builder setStatementDescriptorSuffix(String statementDescriptorSuffix) { } /** - * Provides information about the charge that customers see on their statements. Concatenated - * with the prefix (shortened descriptor) or statement descriptor that's set on the account to - * form the complete statement descriptor. Maximum 22 characters for the concatenated - * descriptor. + * Provides information about a card charge. Concatenated to the account's statement + * descriptor prefix to form the complete statement descriptor that appears on the + * customer's statement. */ public Builder setStatementDescriptorSuffix(EmptyParam statementDescriptorSuffix) { this.statementDescriptorSuffix = statementDescriptorSuffix; diff --git a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java index 376ca27ae59..6037b2f204c 100644 --- a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java @@ -6751,6 +6751,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("eftpos_au") EFTPOS_AU("eftpos_au"), + @SerializedName("girocard") + GIROCARD("girocard"), + @SerializedName("interac") INTERAC("interac"), diff --git a/src/main/java/com/stripe/param/SetupIntentCreateParams.java b/src/main/java/com/stripe/param/SetupIntentCreateParams.java index 077baa11671..98206b5b2b5 100644 --- a/src/main/java/com/stripe/param/SetupIntentCreateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentCreateParams.java @@ -7205,6 +7205,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("eftpos_au") EFTPOS_AU("eftpos_au"), + @SerializedName("girocard") + GIROCARD("girocard"), + @SerializedName("interac") INTERAC("interac"), diff --git a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java index cb4ddfcb19f..88ca435b578 100644 --- a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java @@ -6750,6 +6750,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("eftpos_au") EFTPOS_AU("eftpos_au"), + @SerializedName("girocard") + GIROCARD("girocard"), + @SerializedName("interac") INTERAC("interac"), diff --git a/src/main/java/com/stripe/param/SubscriptionCreateParams.java b/src/main/java/com/stripe/param/SubscriptionCreateParams.java index eee789d1ea7..ba06eae2cf0 100644 --- a/src/main/java/com/stripe/param/SubscriptionCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionCreateParams.java @@ -81,7 +81,8 @@ public class SubscriptionCreateParams extends ApiRequestParams { Long cancelAt; /** - * Boolean indicating whether this subscription should cancel at the end of the current period. + * Indicate whether this subscription should cancel at the end of the current period ({@code + * current_period_end}). Defaults to {@code false}. */ @SerializedName("cancel_at_period_end") Boolean cancelAtPeriodEnd; @@ -258,9 +259,9 @@ public class SubscriptionCreateParams extends ApiRequestParams { Object pendingInvoiceItemInterval; /** - * The ID of a promotion code to apply to this subscription. A promotion code applied to a - * subscription will only affect invoices created for that particular subscription. This field has - * been deprecated and will be removed in a future API version. Use {@code discounts} instead. + * The promotion code to apply to this subscription. A promotion code applied to a subscription + * will only affect invoices created for that particular subscription. This field has been + * deprecated and will be removed in a future API version. Use {@code discounts} instead. */ @SerializedName("promotion_code") String promotionCode; @@ -633,7 +634,8 @@ public Builder setCancelAt(Long cancelAt) { } /** - * Boolean indicating whether this subscription should cancel at the end of the current period. + * Indicate whether this subscription should cancel at the end of the current period ({@code + * current_period_end}). Defaults to {@code false}. */ public Builder setCancelAtPeriodEnd(Boolean cancelAtPeriodEnd) { this.cancelAtPeriodEnd = cancelAtPeriodEnd; @@ -1039,10 +1041,9 @@ public Builder setPendingInvoiceItemInterval(EmptyParam pendingInvoiceItemInterv } /** - * The ID of a promotion code to apply to this subscription. A promotion code applied to a - * subscription will only affect invoices created for that particular subscription. This field - * has been deprecated and will be removed in a future API version. Use {@code discounts} - * instead. + * The promotion code to apply to this subscription. A promotion code applied to a subscription + * will only affect invoices created for that particular subscription. This field has been + * deprecated and will be removed in a future API version. Use {@code discounts} instead. */ public Builder setPromotionCode(String promotionCode) { this.promotionCode = promotionCode; @@ -4237,6 +4238,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("eftpos_au") EFTPOS_AU("eftpos_au"), + @SerializedName("girocard") + GIROCARD("girocard"), + @SerializedName("interac") INTERAC("interac"), diff --git a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java index d735d7f53fb..a00a6ef836a 100644 --- a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java @@ -64,7 +64,8 @@ public class SubscriptionUpdateParams extends ApiRequestParams { Object cancelAt; /** - * Boolean indicating whether this subscription should cancel at the end of the current period. + * Indicate whether this subscription should cancel at the end of the current period ({@code + * current_period_end}). Defaults to {@code false}. */ @SerializedName("cancel_at_period_end") Boolean cancelAtPeriodEnd; @@ -238,7 +239,8 @@ public class SubscriptionUpdateParams extends ApiRequestParams { /** * The promotion code to apply to this subscription. A promotion code applied to a subscription - * will only affect invoices created for that particular subscription. + * will only affect invoices created for that particular subscription. This field has been + * deprecated and will be removed in a future API version. Use {@code discounts} instead. */ @SerializedName("promotion_code") Object promotionCode; @@ -593,7 +595,8 @@ public Builder setCancelAt(EmptyParam cancelAt) { } /** - * Boolean indicating whether this subscription should cancel at the end of the current period. + * Indicate whether this subscription should cancel at the end of the current period ({@code + * current_period_end}). Defaults to {@code false}. */ public Builder setCancelAtPeriodEnd(Boolean cancelAtPeriodEnd) { this.cancelAtPeriodEnd = cancelAtPeriodEnd; @@ -1055,7 +1058,8 @@ public Builder setPendingInvoiceItemInterval(EmptyParam pendingInvoiceItemInterv /** * The promotion code to apply to this subscription. A promotion code applied to a subscription - * will only affect invoices created for that particular subscription. + * will only affect invoices created for that particular subscription. This field has been + * deprecated and will be removed in a future API version. Use {@code discounts} instead. */ public Builder setPromotionCode(String promotionCode) { this.promotionCode = promotionCode; @@ -1064,7 +1068,8 @@ public Builder setPromotionCode(String promotionCode) { /** * The promotion code to apply to this subscription. A promotion code applied to a subscription - * will only affect invoices created for that particular subscription. + * will only affect invoices created for that particular subscription. This field has been + * deprecated and will be removed in a future API version. Use {@code discounts} instead. */ public Builder setPromotionCode(EmptyParam promotionCode) { this.promotionCode = promotionCode; @@ -4626,6 +4631,9 @@ public enum Network implements ApiRequestParams.EnumParam { @SerializedName("eftpos_au") EFTPOS_AU("eftpos_au"), + @SerializedName("girocard") + GIROCARD("girocard"), + @SerializedName("interac") INTERAC("interac"), diff --git a/src/main/java/com/stripe/param/TransferCreateParams.java b/src/main/java/com/stripe/param/TransferCreateParams.java index 86b6cfcefde..81262d9c642 100644 --- a/src/main/java/com/stripe/param/TransferCreateParams.java +++ b/src/main/java/com/stripe/param/TransferCreateParams.java @@ -16,8 +16,9 @@ public class TransferCreateParams extends ApiRequestParams { Long amount; /** - * Required. 3-letter ISO code for - * currency. + * Required. Three-letter ISO code for currency in lowercase. + * Must be a supported currency. */ @SerializedName("currency") String currency; @@ -151,8 +152,9 @@ public Builder setAmount(Long amount) { } /** - * Required. 3-letter ISO code for - * currency. + * Required. Three-letter ISO code for currency in + * lowercase. Must be a supported currency. */ public Builder setCurrency(String currency) { this.currency = currency; diff --git a/src/main/java/com/stripe/param/billing/AlertActivateParams.java b/src/main/java/com/stripe/param/billing/AlertActivateParams.java new file mode 100644 index 00000000000..a2f3bcf392e --- /dev/null +++ b/src/main/java/com/stripe/param/billing/AlertActivateParams.java @@ -0,0 +1,98 @@ +// File generated from our OpenAPI spec +package com.stripe.param.billing; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.Getter; + +@Getter +public class AlertActivateParams extends ApiRequestParams { + /** Specifies which fields in the response should be expanded. */ + @SerializedName("expand") + List expand; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private AlertActivateParams(List expand, Map extraParams) { + this.expand = expand; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private List expand; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public AlertActivateParams build() { + return new AlertActivateParams(this.expand, this.extraParams); + } + + /** + * 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 + * AlertActivateParams#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 + * AlertActivateParams#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 + * AlertActivateParams#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 AlertActivateParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } +} diff --git a/src/main/java/com/stripe/param/billing/AlertArchiveParams.java b/src/main/java/com/stripe/param/billing/AlertArchiveParams.java new file mode 100644 index 00000000000..13131aa45fa --- /dev/null +++ b/src/main/java/com/stripe/param/billing/AlertArchiveParams.java @@ -0,0 +1,98 @@ +// File generated from our OpenAPI spec +package com.stripe.param.billing; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.Getter; + +@Getter +public class AlertArchiveParams extends ApiRequestParams { + /** Specifies which fields in the response should be expanded. */ + @SerializedName("expand") + List expand; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private AlertArchiveParams(List expand, Map extraParams) { + this.expand = expand; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private List expand; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public AlertArchiveParams build() { + return new AlertArchiveParams(this.expand, this.extraParams); + } + + /** + * 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 + * AlertArchiveParams#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 + * AlertArchiveParams#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 + * AlertArchiveParams#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 AlertArchiveParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } +} diff --git a/src/main/java/com/stripe/param/billing/AlertCreateParams.java b/src/main/java/com/stripe/param/billing/AlertCreateParams.java new file mode 100644 index 00000000000..a5eedc69050 --- /dev/null +++ b/src/main/java/com/stripe/param/billing/AlertCreateParams.java @@ -0,0 +1,363 @@ +// File generated from our OpenAPI spec +package com.stripe.param.billing; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.Getter; + +@Getter +public class AlertCreateParams extends ApiRequestParams { + /** Required. The type of alert to create. */ + @SerializedName("alert_type") + AlertType alertType; + + /** 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; + + /** Filters to limit the scope of an alert. */ + @SerializedName("filter") + Filter filter; + + /** Required. The title of the alert. */ + @SerializedName("title") + String title; + + /** The configuration of the usage threshold. */ + @SerializedName("usage_threshold_config") + UsageThresholdConfig usageThresholdConfig; + + private AlertCreateParams( + AlertType alertType, + List expand, + Map extraParams, + Filter filter, + String title, + UsageThresholdConfig usageThresholdConfig) { + this.alertType = alertType; + this.expand = expand; + this.extraParams = extraParams; + this.filter = filter; + this.title = title; + this.usageThresholdConfig = usageThresholdConfig; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private AlertType alertType; + + private List expand; + + private Map extraParams; + + private Filter filter; + + private String title; + + private UsageThresholdConfig usageThresholdConfig; + + /** Finalize and obtain parameter instance from this builder. */ + public AlertCreateParams build() { + return new AlertCreateParams( + this.alertType, + this.expand, + this.extraParams, + this.filter, + this.title, + this.usageThresholdConfig); + } + + /** Required. The type of alert to create. */ + public Builder setAlertType(AlertCreateParams.AlertType alertType) { + this.alertType = alertType; + 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 + * AlertCreateParams#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 + * AlertCreateParams#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 + * AlertCreateParams#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 AlertCreateParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Filters to limit the scope of an alert. */ + public Builder setFilter(AlertCreateParams.Filter filter) { + this.filter = filter; + return this; + } + + /** Required. The title of the alert. */ + public Builder setTitle(String title) { + this.title = title; + return this; + } + + /** The configuration of the usage threshold. */ + public Builder setUsageThresholdConfig( + AlertCreateParams.UsageThresholdConfig usageThresholdConfig) { + this.usageThresholdConfig = usageThresholdConfig; + return this; + } + } + + @Getter + public static class Filter { + /** Limit the scope to this alert only to this customer. */ + @SerializedName("customer") + String customer; + + /** + * 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 Filter(String customer, Map extraParams) { + this.customer = customer; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private String customer; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public AlertCreateParams.Filter build() { + return new AlertCreateParams.Filter(this.customer, this.extraParams); + } + + /** Limit the scope to this alert only to this customer. */ + public Builder setCustomer(String customer) { + this.customer = customer; + 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 + * AlertCreateParams.Filter#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 AlertCreateParams.Filter#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 UsageThresholdConfig { + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Required. Defines at which value the alert will fire. */ + @SerializedName("gte") + Long gte; + + /** + * The Billing Meter ID whose usage is + * monitored. + */ + @SerializedName("meter") + String meter; + + /** + * Required. Whether the alert should only fire only once, or once per billing + * cycle. + */ + @SerializedName("recurrence") + Recurrence recurrence; + + private UsageThresholdConfig( + Map extraParams, Long gte, String meter, Recurrence recurrence) { + this.extraParams = extraParams; + this.gte = gte; + this.meter = meter; + this.recurrence = recurrence; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Long gte; + + private String meter; + + private Recurrence recurrence; + + /** Finalize and obtain parameter instance from this builder. */ + public AlertCreateParams.UsageThresholdConfig build() { + return new AlertCreateParams.UsageThresholdConfig( + this.extraParams, this.gte, this.meter, this.recurrence); + } + + /** + * 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 + * AlertCreateParams.UsageThresholdConfig#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 AlertCreateParams.UsageThresholdConfig#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Required. Defines at which value the alert will fire. */ + public Builder setGte(Long gte) { + this.gte = gte; + return this; + } + + /** + * The Billing Meter ID whose usage is + * monitored. + */ + public Builder setMeter(String meter) { + this.meter = meter; + return this; + } + + /** + * Required. Whether the alert should only fire only once, or once per + * billing cycle. + */ + public Builder setRecurrence(AlertCreateParams.UsageThresholdConfig.Recurrence recurrence) { + this.recurrence = recurrence; + return this; + } + } + + public enum Recurrence implements ApiRequestParams.EnumParam { + @SerializedName("one_time") + ONE_TIME("one_time"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + Recurrence(String value) { + this.value = value; + } + } + } + + public enum AlertType implements ApiRequestParams.EnumParam { + @SerializedName("usage_threshold") + USAGE_THRESHOLD("usage_threshold"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + AlertType(String value) { + this.value = value; + } + } +} diff --git a/src/main/java/com/stripe/param/billing/AlertDeactivateParams.java b/src/main/java/com/stripe/param/billing/AlertDeactivateParams.java new file mode 100644 index 00000000000..43379dc79da --- /dev/null +++ b/src/main/java/com/stripe/param/billing/AlertDeactivateParams.java @@ -0,0 +1,98 @@ +// File generated from our OpenAPI spec +package com.stripe.param.billing; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.Getter; + +@Getter +public class AlertDeactivateParams extends ApiRequestParams { + /** Specifies which fields in the response should be expanded. */ + @SerializedName("expand") + List expand; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private AlertDeactivateParams(List expand, Map extraParams) { + this.expand = expand; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private List expand; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public AlertDeactivateParams build() { + return new AlertDeactivateParams(this.expand, this.extraParams); + } + + /** + * 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 + * AlertDeactivateParams#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 + * AlertDeactivateParams#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 + * AlertDeactivateParams#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 AlertDeactivateParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } +} diff --git a/src/main/java/com/stripe/param/billing/AlertListParams.java b/src/main/java/com/stripe/param/billing/AlertListParams.java new file mode 100644 index 00000000000..59c7a97cad4 --- /dev/null +++ b/src/main/java/com/stripe/param/billing/AlertListParams.java @@ -0,0 +1,215 @@ +// File generated from our OpenAPI spec +package com.stripe.param.billing; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.Getter; + +@Getter +public class AlertListParams extends ApiRequestParams { + /** Filter results to only include this type of alert. */ + @SerializedName("alert_type") + AlertType alertType; + + /** + * A cursor for use in pagination. {@code ending_before} is an object ID that defines your place + * in the list. For instance, if you make a list request and receive 100 objects, starting with + * {@code obj_bar}, your subsequent call can include {@code ending_before=obj_bar} in order to + * fetch the previous page of the list. + */ + @SerializedName("ending_before") + String endingBefore; + + /** 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; + + /** + * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 10. + */ + @SerializedName("limit") + Long limit; + + /** Filter results to only include alerts with the given meter. */ + @SerializedName("meter") + String meter; + + /** + * A cursor for use in pagination. {@code starting_after} is an object ID that defines your place + * in the list. For instance, if you make a list request and receive 100 objects, ending with + * {@code obj_foo}, your subsequent call can include {@code starting_after=obj_foo} in order to + * fetch the next page of the list. + */ + @SerializedName("starting_after") + String startingAfter; + + private AlertListParams( + AlertType alertType, + String endingBefore, + List expand, + Map extraParams, + Long limit, + String meter, + String startingAfter) { + this.alertType = alertType; + this.endingBefore = endingBefore; + this.expand = expand; + this.extraParams = extraParams; + this.limit = limit; + this.meter = meter; + this.startingAfter = startingAfter; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private AlertType alertType; + + private String endingBefore; + + private List expand; + + private Map extraParams; + + private Long limit; + + private String meter; + + private String startingAfter; + + /** Finalize and obtain parameter instance from this builder. */ + public AlertListParams build() { + return new AlertListParams( + this.alertType, + this.endingBefore, + this.expand, + this.extraParams, + this.limit, + this.meter, + this.startingAfter); + } + + /** Filter results to only include this type of alert. */ + public Builder setAlertType(AlertListParams.AlertType alertType) { + this.alertType = alertType; + return this; + } + + /** + * A cursor for use in pagination. {@code ending_before} is an object ID that defines your place + * in the list. For instance, if you make a list request and receive 100 objects, starting with + * {@code obj_bar}, your subsequent call can include {@code ending_before=obj_bar} in order to + * fetch the previous page of the list. + */ + public Builder setEndingBefore(String endingBefore) { + this.endingBefore = endingBefore; + 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 + * AlertListParams#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 + * AlertListParams#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 + * AlertListParams#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 AlertListParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 10. + */ + public Builder setLimit(Long limit) { + this.limit = limit; + return this; + } + + /** Filter results to only include alerts with the given meter. */ + public Builder setMeter(String meter) { + this.meter = meter; + return this; + } + + /** + * A cursor for use in pagination. {@code starting_after} is an object ID that defines your + * place in the list. For instance, if you make a list request and receive 100 objects, ending + * with {@code obj_foo}, your subsequent call can include {@code starting_after=obj_foo} in + * order to fetch the next page of the list. + */ + public Builder setStartingAfter(String startingAfter) { + this.startingAfter = startingAfter; + return this; + } + } + + public enum AlertType implements ApiRequestParams.EnumParam { + @SerializedName("usage_threshold") + USAGE_THRESHOLD("usage_threshold"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + AlertType(String value) { + this.value = value; + } + } +} diff --git a/src/main/java/com/stripe/param/billing/AlertRetrieveParams.java b/src/main/java/com/stripe/param/billing/AlertRetrieveParams.java new file mode 100644 index 00000000000..bea36ab5c82 --- /dev/null +++ b/src/main/java/com/stripe/param/billing/AlertRetrieveParams.java @@ -0,0 +1,98 @@ +// File generated from our OpenAPI spec +package com.stripe.param.billing; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.Getter; + +@Getter +public class AlertRetrieveParams extends ApiRequestParams { + /** Specifies which fields in the response should be expanded. */ + @SerializedName("expand") + List expand; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private AlertRetrieveParams(List expand, Map extraParams) { + this.expand = expand; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private List expand; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public AlertRetrieveParams build() { + return new AlertRetrieveParams(this.expand, this.extraParams); + } + + /** + * 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 + * AlertRetrieveParams#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 + * AlertRetrieveParams#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 + * AlertRetrieveParams#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 AlertRetrieveParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } +} diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java index 76eed351f61..e811316426b 100644 --- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java +++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java @@ -4751,17 +4751,22 @@ public static class PaymentIntentData { Shipping shipping; /** - * Extra information about the payment. This will appear on your customer's statement when this - * payment succeeds in creating a charge. + * Text that appears on the customer's statement as the statement + * descriptor for a non-card charge. This value overrides the account's default statement + * descriptor. Setting this value for a card charge returns an error. For card charges, set the + * statement_descriptor_suffix + * instead. */ @SerializedName("statement_descriptor") String statementDescriptor; /** - * Provides information about the charge that customers see on their statements. Concatenated - * with the prefix (shortened descriptor) or statement descriptor that’s set on the account to - * form the complete statement descriptor. Maximum 22 characters for the concatenated - * descriptor. + * Provides information about a card charge. Concatenated to the account's statement + * descriptor prefix to form the complete statement descriptor that appears on the + * customer's statement. */ @SerializedName("statement_descriptor_suffix") String statementDescriptorSuffix; @@ -4993,8 +4998,13 @@ public Builder setShipping(SessionCreateParams.PaymentIntentData.Shipping shippi } /** - * Extra information about the payment. This will appear on your customer's statement when - * this payment succeeds in creating a charge. + * Text that appears on the customer's statement as the statement + * descriptor for a non-card charge. This value overrides the account's default statement + * descriptor. Setting this value for a card charge returns an error. For card charges, set + * the statement_descriptor_suffix + * instead. */ public Builder setStatementDescriptor(String statementDescriptor) { this.statementDescriptor = statementDescriptor; @@ -5002,10 +5012,10 @@ public Builder setStatementDescriptor(String statementDescriptor) { } /** - * Provides information about the charge that customers see on their statements. Concatenated - * with the prefix (shortened descriptor) or statement descriptor that’s set on the account to - * form the complete statement descriptor. Maximum 22 characters for the concatenated - * descriptor. + * Provides information about a card charge. Concatenated to the account's statement + * descriptor prefix to form the complete statement descriptor that appears on the + * customer's statement. */ public Builder setStatementDescriptorSuffix(String statementDescriptorSuffix) { this.statementDescriptorSuffix = statementDescriptorSuffix; @@ -6137,21 +6147,21 @@ public static class AcssDebit { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -6248,21 +6258,21 @@ public Builder setMandateOptions( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.AcssDebit.SetupFutureUsage setupFutureUsage) { @@ -6593,21 +6603,21 @@ public static class Affirm { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -6664,21 +6674,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.Affirm.SetupFutureUsage setupFutureUsage) { @@ -6714,21 +6724,21 @@ public static class AfterpayClearpay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -6785,21 +6795,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.AfterpayClearpay.SetupFutureUsage @@ -6836,21 +6846,21 @@ public static class Alipay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -6907,21 +6917,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.Alipay.SetupFutureUsage setupFutureUsage) { @@ -6957,21 +6967,21 @@ public static class AmazonPay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -7028,21 +7038,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.AmazonPay.SetupFutureUsage setupFutureUsage) { @@ -7081,21 +7091,21 @@ public static class AuBecsDebit { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -7152,21 +7162,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.AuBecsDebit.SetupFutureUsage @@ -7203,21 +7213,21 @@ public static class BacsDebit { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -7274,21 +7284,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.BacsDebit.SetupFutureUsage setupFutureUsage) { @@ -7330,21 +7340,21 @@ public static class Bancontact { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -7401,21 +7411,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.Bancontact.SetupFutureUsage setupFutureUsage) { @@ -7459,21 +7469,21 @@ public static class Boleto { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -7546,21 +7556,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.Boleto.SetupFutureUsage setupFutureUsage) { @@ -7620,21 +7630,21 @@ public static class Card { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -7758,21 +7768,21 @@ public Builder setRequestThreeDSecure( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.Card.SetupFutureUsage setupFutureUsage) { @@ -7931,21 +7941,21 @@ public static class Cashapp { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -8002,21 +8012,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.Cashapp.SetupFutureUsage setupFutureUsage) { @@ -8072,21 +8082,21 @@ public static class CustomerBalance { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -8173,21 +8183,21 @@ public Builder setFundingType( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.CustomerBalance.SetupFutureUsage @@ -8533,21 +8543,21 @@ public static class Eps { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -8604,21 +8614,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.Eps.SetupFutureUsage setupFutureUsage) { @@ -8654,21 +8664,21 @@ public static class Fpx { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -8725,21 +8735,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.Fpx.SetupFutureUsage setupFutureUsage) { @@ -8775,21 +8785,21 @@ public static class Giropay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -8846,21 +8856,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.Giropay.SetupFutureUsage setupFutureUsage) { @@ -8896,21 +8906,21 @@ public static class Grabpay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -8967,21 +8977,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.Grabpay.SetupFutureUsage setupFutureUsage) { @@ -9017,21 +9027,21 @@ public static class Ideal { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -9088,21 +9098,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.Ideal.SetupFutureUsage setupFutureUsage) { @@ -9138,21 +9148,21 @@ public static class Klarna { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -9209,21 +9219,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.Klarna.SetupFutureUsage setupFutureUsage) { @@ -9268,21 +9278,21 @@ public static class Konbini { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -9356,21 +9366,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.Konbini.SetupFutureUsage setupFutureUsage) { @@ -9406,21 +9416,21 @@ public static class Link { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -9477,21 +9487,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.Link.SetupFutureUsage setupFutureUsage) { @@ -9530,21 +9540,21 @@ public static class Mobilepay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -9601,21 +9611,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.Mobilepay.SetupFutureUsage setupFutureUsage) { @@ -9651,21 +9661,21 @@ public static class Multibanco { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -9722,21 +9732,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.Multibanco.SetupFutureUsage setupFutureUsage) { @@ -9780,21 +9790,21 @@ public static class Oxxo { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -9867,21 +9877,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.Oxxo.SetupFutureUsage setupFutureUsage) { @@ -9917,21 +9927,21 @@ public static class P24 { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -9998,21 +10008,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.P24.SetupFutureUsage setupFutureUsage) { @@ -10054,21 +10064,21 @@ public static class Paynow { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -10125,21 +10135,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.Paynow.SetupFutureUsage setupFutureUsage) { @@ -10198,23 +10208,23 @@ public static class Paypal { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a + *

If you've already set {@code setup_future_usage} and you're performing a request using a * publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ @@ -10337,24 +10347,24 @@ public Builder setRiskCorrelationId(String riskCorrelationId) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

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

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage( @@ -10367,24 +10377,24 @@ public Builder setSetupFutureUsage( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

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

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

When processing card payments, Stripe also uses {@code setup_future_usage} to - * dynamically optimize your payment flow and comply with regional legislation and network - * rules, such as SCA. + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. * - *

If {@code setup_future_usage} is already set and you are performing a request using a - * publishable key, you can only update the value from {@code on_session} to {@code + *

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code * off_session}. */ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { @@ -10584,21 +10594,21 @@ public static class RevolutPay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card - * payment method representing the card is created and attached to the Customer instead. + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

When processing card payments, Stripe also uses {@code setup_future_usage} to - * dynamically optimize your payment flow and comply with regional legislation and network - * rules, such as SCA. + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -10655,21 +10665,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card - * payment method representing the card is created and attached to the Customer instead. + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

When processing card payments, Stripe also uses {@code setup_future_usage} to - * dynamically optimize your payment flow and comply with regional legislation and network - * rules, such as SCA. + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.RevolutPay.SetupFutureUsage setupFutureUsage) { @@ -10708,21 +10718,21 @@ public static class SepaDebit { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card - * payment method representing the card is created and attached to the Customer instead. + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

When processing card payments, Stripe also uses {@code setup_future_usage} to - * dynamically optimize your payment flow and comply with regional legislation and network - * rules, such as SCA. + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -10779,21 +10789,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card - * payment method representing the card is created and attached to the Customer instead. + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

When processing card payments, Stripe also uses {@code setup_future_usage} to - * dynamically optimize your payment flow and comply with regional legislation and network - * rules, such as SCA. + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.SepaDebit.SetupFutureUsage setupFutureUsage) { @@ -10835,21 +10845,21 @@ public static class Sofort { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card - * payment method representing the card is created and attached to the Customer instead. + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

When processing card payments, Stripe also uses {@code setup_future_usage} to - * dynamically optimize your payment flow and comply with regional legislation and network - * rules, such as SCA. + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -10906,21 +10916,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card - * payment method representing the card is created and attached to the Customer instead. + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

When processing card payments, Stripe also uses {@code setup_future_usage} to - * dynamically optimize your payment flow and comply with regional legislation and network - * rules, such as SCA. + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.Sofort.SetupFutureUsage setupFutureUsage) { @@ -11037,21 +11047,21 @@ public static class UsBankAccount { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card - * payment method representing the card is created and attached to the Customer instead. + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

When processing card payments, Stripe also uses {@code setup_future_usage} to - * dynamically optimize your payment flow and comply with regional legislation and network - * rules, such as SCA. + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -11133,21 +11143,21 @@ public Builder setFinancialConnections( * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card - * payment method representing the card is created and attached to the Customer instead. + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

When processing card payments, Stripe also uses {@code setup_future_usage} to - * dynamically optimize your payment flow and comply with regional legislation and network - * rules, such as SCA. + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.UsBankAccount.SetupFutureUsage @@ -11426,21 +11436,21 @@ public static class WechatPay { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer after - * the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to the + * Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card - * payment method representing the card is created and attached to the Customer instead. + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe creates + * and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

When processing card payments, Stripe also uses {@code setup_future_usage} to - * dynamically optimize your payment flow and comply with regional legislation and network - * rules, such as SCA. + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you comply + * with regional legislation and network rules, such as SCA. */ @SerializedName("setup_future_usage") SetupFutureUsage setupFutureUsage; @@ -11519,21 +11529,21 @@ public Builder putAllExtraParam(Map map) { * Indicates that you intend to make future payments with this PaymentIntent's payment * method. * - *

Providing this parameter will attach the payment method - * to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any - * required actions from the user are complete. If no Customer was provided, the payment - * method can still be attached to a Customer - * after the transaction completes. + *

If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + * the Customer after the PaymentIntent is confirmed and the customer completes any required + * actions. If you don't provide a Customer, you can still attach the payment method to a + * Customer after the transaction completes. * - *

If the payment method is {@code card_present} and isn't a digital wallet, then a generated_card - * payment method representing the card is created and attached to the Customer instead. + *

If the payment method is {@code card_present} and isn't a digital wallet, Stripe + * creates and attaches a generated_card + * payment method representing the card to the Customer instead. * - *

When processing card payments, Stripe also uses {@code setup_future_usage} to - * dynamically optimize your payment flow and comply with regional legislation and network - * rules, such as SCA. + *

When processing card payments, Stripe uses {@code setup_future_usage} to help you + * comply with regional legislation and network rules, such as SCA. */ public Builder setSetupFutureUsage( SessionCreateParams.PaymentMethodOptions.WechatPay.SetupFutureUsage setupFutureUsage) { diff --git a/src/main/java/com/stripe/param/identity/VerificationSessionCreateParams.java b/src/main/java/com/stripe/param/identity/VerificationSessionCreateParams.java index 6c10b864dff..9f47aecddbe 100644 --- a/src/main/java/com/stripe/param/identity/VerificationSessionCreateParams.java +++ b/src/main/java/com/stripe/param/identity/VerificationSessionCreateParams.java @@ -49,6 +49,10 @@ public class VerificationSessionCreateParams extends ApiRequestParams { @SerializedName("provided_details") ProvidedDetails providedDetails; + /** Token referencing a Customer resource. */ + @SerializedName("related_customer") + String relatedCustomer; + /** The URL that the user will be redirected to upon completing the verification flow. */ @SerializedName("return_url") String returnUrl; @@ -75,6 +79,7 @@ private VerificationSessionCreateParams( Map metadata, Options options, ProvidedDetails providedDetails, + String relatedCustomer, String returnUrl, Type type, String verificationFlow) { @@ -84,6 +89,7 @@ private VerificationSessionCreateParams( this.metadata = metadata; this.options = options; this.providedDetails = providedDetails; + this.relatedCustomer = relatedCustomer; this.returnUrl = returnUrl; this.type = type; this.verificationFlow = verificationFlow; @@ -106,6 +112,8 @@ public static class Builder { private ProvidedDetails providedDetails; + private String relatedCustomer; + private String returnUrl; private Type type; @@ -121,6 +129,7 @@ public VerificationSessionCreateParams build() { this.metadata, this.options, this.providedDetails, + this.relatedCustomer, this.returnUrl, this.type, this.verificationFlow); @@ -226,6 +235,12 @@ public Builder setProvidedDetails( return this; } + /** Token referencing a Customer resource. */ + public Builder setRelatedCustomer(String relatedCustomer) { + this.relatedCustomer = relatedCustomer; + return this; + } + /** The URL that the user will be redirected to upon completing the verification flow. */ public Builder setReturnUrl(String returnUrl) { this.returnUrl = returnUrl; diff --git a/src/main/java/com/stripe/param/identity/VerificationSessionListParams.java b/src/main/java/com/stripe/param/identity/VerificationSessionListParams.java index 9ff7ac0e553..12ba3450f81 100644 --- a/src/main/java/com/stripe/param/identity/VerificationSessionListParams.java +++ b/src/main/java/com/stripe/param/identity/VerificationSessionListParams.java @@ -51,6 +51,9 @@ public class VerificationSessionListParams extends ApiRequestParams { @SerializedName("limit") Long limit; + @SerializedName("related_customer") + String relatedCustomer; + /** * A cursor for use in pagination. {@code starting_after} is an object ID that defines your place * in the list. For instance, if you make a list request and receive 100 objects, ending with @@ -75,6 +78,7 @@ private VerificationSessionListParams( List expand, Map extraParams, Long limit, + String relatedCustomer, String startingAfter, Status status) { this.clientReferenceId = clientReferenceId; @@ -83,6 +87,7 @@ private VerificationSessionListParams( this.expand = expand; this.extraParams = extraParams; this.limit = limit; + this.relatedCustomer = relatedCustomer; this.startingAfter = startingAfter; this.status = status; } @@ -104,6 +109,8 @@ public static class Builder { private Long limit; + private String relatedCustomer; + private String startingAfter; private Status status; @@ -117,6 +124,7 @@ public VerificationSessionListParams build() { this.expand, this.extraParams, this.limit, + this.relatedCustomer, this.startingAfter, this.status); } @@ -214,6 +222,11 @@ public Builder setLimit(Long limit) { return this; } + public Builder setRelatedCustomer(String relatedCustomer) { + this.relatedCustomer = relatedCustomer; + return this; + } + /** * A cursor for use in pagination. {@code starting_after} is an object ID that defines your * place in the list. For instance, if you make a list request and receive 100 objects, ending diff --git a/src/main/java/com/stripe/param/tax/CalculationRetrieveParams.java b/src/main/java/com/stripe/param/tax/CalculationRetrieveParams.java new file mode 100644 index 00000000000..d2bbd00f3da --- /dev/null +++ b/src/main/java/com/stripe/param/tax/CalculationRetrieveParams.java @@ -0,0 +1,98 @@ +// File generated from our OpenAPI spec +package com.stripe.param.tax; + +import com.google.gson.annotations.SerializedName; +import com.stripe.net.ApiRequestParams; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import lombok.Getter; + +@Getter +public class CalculationRetrieveParams extends ApiRequestParams { + /** Specifies which fields in the response should be expanded. */ + @SerializedName("expand") + List expand; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private CalculationRetrieveParams(List expand, Map extraParams) { + this.expand = expand; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private List expand; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public CalculationRetrieveParams build() { + return new CalculationRetrieveParams(this.expand, this.extraParams); + } + + /** + * 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 + * CalculationRetrieveParams#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 + * CalculationRetrieveParams#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 + * CalculationRetrieveParams#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 CalculationRetrieveParams#extraParams} for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } +} diff --git a/src/main/java/com/stripe/service/BillingService.java b/src/main/java/com/stripe/service/BillingService.java index e90f4b39f36..f8281269a70 100644 --- a/src/main/java/com/stripe/service/BillingService.java +++ b/src/main/java/com/stripe/service/BillingService.java @@ -9,6 +9,10 @@ public BillingService(StripeResponseGetter responseGetter) { super(responseGetter); } + public com.stripe.service.billing.AlertService alerts() { + return new com.stripe.service.billing.AlertService(this.getResponseGetter()); + } + public com.stripe.service.billing.MeterEventAdjustmentService meterEventAdjustments() { return new com.stripe.service.billing.MeterEventAdjustmentService(this.getResponseGetter()); } diff --git a/src/main/java/com/stripe/service/billing/AlertService.java b/src/main/java/com/stripe/service/billing/AlertService.java new file mode 100644 index 00000000000..543eedbe5d5 --- /dev/null +++ b/src/main/java/com/stripe/service/billing/AlertService.java @@ -0,0 +1,175 @@ +// File generated from our OpenAPI spec +package com.stripe.service.billing; + +import com.google.gson.reflect.TypeToken; +import com.stripe.exception.StripeException; +import com.stripe.model.StripeCollection; +import com.stripe.model.billing.Alert; +import com.stripe.net.ApiMode; +import com.stripe.net.ApiRequest; +import com.stripe.net.ApiRequestParams; +import com.stripe.net.ApiResource; +import com.stripe.net.ApiService; +import com.stripe.net.BaseAddress; +import com.stripe.net.RequestOptions; +import com.stripe.net.StripeResponseGetter; +import com.stripe.param.billing.AlertActivateParams; +import com.stripe.param.billing.AlertArchiveParams; +import com.stripe.param.billing.AlertCreateParams; +import com.stripe.param.billing.AlertDeactivateParams; +import com.stripe.param.billing.AlertListParams; +import com.stripe.param.billing.AlertRetrieveParams; + +public final class AlertService extends ApiService { + public AlertService(StripeResponseGetter responseGetter) { + super(responseGetter); + } + + /** Lists billing active and inactive alerts. */ + public StripeCollection list(AlertListParams params) throws StripeException { + return list(params, (RequestOptions) null); + } + /** Lists billing active and inactive alerts. */ + public StripeCollection list(RequestOptions options) throws StripeException { + return list((AlertListParams) null, options); + } + /** Lists billing active and inactive alerts. */ + public StripeCollection list() throws StripeException { + return list((AlertListParams) null, (RequestOptions) null); + } + /** Lists billing active and inactive alerts. */ + public StripeCollection list(AlertListParams params, RequestOptions options) + throws StripeException { + String path = "/v1/billing/alerts"; + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + path, + ApiRequestParams.paramsToMap(params), + options, + ApiMode.V1); + return this.request(request, new TypeToken>() {}.getType()); + } + /** Creates a billing alert. */ + public Alert create(AlertCreateParams params) throws StripeException { + return create(params, (RequestOptions) null); + } + /** Creates a billing alert. */ + public Alert create(AlertCreateParams params, RequestOptions options) throws StripeException { + String path = "/v1/billing/alerts"; + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options, + ApiMode.V1); + return this.request(request, Alert.class); + } + /** Retrieves a billing alert given an ID. */ + public Alert retrieve(String id, AlertRetrieveParams params) throws StripeException { + return retrieve(id, params, (RequestOptions) null); + } + /** Retrieves a billing alert given an ID. */ + public Alert retrieve(String id, RequestOptions options) throws StripeException { + return retrieve(id, (AlertRetrieveParams) null, options); + } + /** Retrieves a billing alert given an ID. */ + public Alert retrieve(String id) throws StripeException { + return retrieve(id, (AlertRetrieveParams) null, (RequestOptions) null); + } + /** Retrieves a billing alert given an ID. */ + public Alert retrieve(String id, AlertRetrieveParams params, RequestOptions options) + throws StripeException { + String path = String.format("/v1/billing/alerts/%s", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + path, + ApiRequestParams.paramsToMap(params), + options, + ApiMode.V1); + return this.request(request, Alert.class); + } + /** Reactivates this alert, allowing it to trigger again. */ + public Alert activate(String id, AlertActivateParams params) throws StripeException { + return activate(id, params, (RequestOptions) null); + } + /** Reactivates this alert, allowing it to trigger again. */ + public Alert activate(String id, RequestOptions options) throws StripeException { + return activate(id, (AlertActivateParams) null, options); + } + /** Reactivates this alert, allowing it to trigger again. */ + public Alert activate(String id) throws StripeException { + return activate(id, (AlertActivateParams) null, (RequestOptions) null); + } + /** Reactivates this alert, allowing it to trigger again. */ + public Alert activate(String id, AlertActivateParams params, RequestOptions options) + throws StripeException { + String path = String.format("/v1/billing/alerts/%s/activate", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options, + ApiMode.V1); + return this.request(request, Alert.class); + } + /** Archives this alert, removing it from the list view and APIs. This is non-reversible. */ + public Alert archive(String id, AlertArchiveParams params) throws StripeException { + return archive(id, params, (RequestOptions) null); + } + /** Archives this alert, removing it from the list view and APIs. This is non-reversible. */ + public Alert archive(String id, RequestOptions options) throws StripeException { + return archive(id, (AlertArchiveParams) null, options); + } + /** Archives this alert, removing it from the list view and APIs. This is non-reversible. */ + public Alert archive(String id) throws StripeException { + return archive(id, (AlertArchiveParams) null, (RequestOptions) null); + } + /** Archives this alert, removing it from the list view and APIs. This is non-reversible. */ + public Alert archive(String id, AlertArchiveParams params, RequestOptions options) + throws StripeException { + String path = String.format("/v1/billing/alerts/%s/archive", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options, + ApiMode.V1); + return this.request(request, Alert.class); + } + /** Deactivates this alert, preventing it from triggering. */ + public Alert deactivate(String id, AlertDeactivateParams params) throws StripeException { + return deactivate(id, params, (RequestOptions) null); + } + /** Deactivates this alert, preventing it from triggering. */ + public Alert deactivate(String id, RequestOptions options) throws StripeException { + return deactivate(id, (AlertDeactivateParams) null, options); + } + /** Deactivates this alert, preventing it from triggering. */ + public Alert deactivate(String id) throws StripeException { + return deactivate(id, (AlertDeactivateParams) null, (RequestOptions) null); + } + /** Deactivates this alert, preventing it from triggering. */ + public Alert deactivate(String id, AlertDeactivateParams params, RequestOptions options) + throws StripeException { + String path = String.format("/v1/billing/alerts/%s/deactivate", ApiResource.urlEncodeId(id)); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.POST, + path, + ApiRequestParams.paramsToMap(params), + options, + ApiMode.V1); + return this.request(request, Alert.class); + } +} diff --git a/src/main/java/com/stripe/service/tax/CalculationService.java b/src/main/java/com/stripe/service/tax/CalculationService.java index db89635530a..7e3d1a1c667 100644 --- a/src/main/java/com/stripe/service/tax/CalculationService.java +++ b/src/main/java/com/stripe/service/tax/CalculationService.java @@ -12,12 +12,41 @@ import com.stripe.net.RequestOptions; import com.stripe.net.StripeResponseGetter; import com.stripe.param.tax.CalculationCreateParams; +import com.stripe.param.tax.CalculationRetrieveParams; public final class CalculationService extends ApiService { public CalculationService(StripeResponseGetter responseGetter) { super(responseGetter); } + /** Retrieves a Tax {@code Calculation} object, if the calculation hasn’t expired. */ + public Calculation retrieve(String calculation, CalculationRetrieveParams params) + throws StripeException { + return retrieve(calculation, params, (RequestOptions) null); + } + /** Retrieves a Tax {@code Calculation} object, if the calculation hasn’t expired. */ + public Calculation retrieve(String calculation, RequestOptions options) throws StripeException { + return retrieve(calculation, (CalculationRetrieveParams) null, options); + } + /** Retrieves a Tax {@code Calculation} object, if the calculation hasn’t expired. */ + public Calculation retrieve(String calculation) throws StripeException { + return retrieve(calculation, (CalculationRetrieveParams) null, (RequestOptions) null); + } + /** Retrieves a Tax {@code Calculation} object, if the calculation hasn’t expired. */ + public Calculation retrieve( + String calculation, CalculationRetrieveParams params, RequestOptions options) + throws StripeException { + String path = String.format("/v1/tax/calculations/%s", ApiResource.urlEncodeId(calculation)); + ApiRequest request = + new ApiRequest( + BaseAddress.API, + ApiResource.RequestMethod.GET, + path, + ApiRequestParams.paramsToMap(params), + options, + ApiMode.V1); + return this.request(request, Calculation.class); + } /** Calculates tax based on the input and returns a Tax {@code Calculation} object. */ public Calculation create(CalculationCreateParams params) throws StripeException { return create(params, (RequestOptions) null);